feedback notifications and fun search bar stuff
This commit is contained in:
@@ -118,7 +118,9 @@ if (isset($_GET['add_ticket_feedback'], $_GET['url_key'])) {
|
||||
mysqli_query($mysqli, "UPDATE tickets SET ticket_feedback = '$feedback' WHERE ticket_id = $ticket_id AND ticket_url_key = '$url_key'");
|
||||
// Notify on bad feedback
|
||||
if ($feedback == "Bad") {
|
||||
appNotify("Feedback", "Guest rated ticket ID $ticket_id as bad");
|
||||
appNotify("Feedback", "Guest rated ticket ID $ticket_id as bad!", "ticket.php?ticket_id=$ticket_id");
|
||||
} else {
|
||||
appNotify("Feedback", "Guest rated ticket ID $ticket_id as good. Fuck ya bud!", "ticket.php?ticket_id=$ticket_id");
|
||||
}
|
||||
|
||||
$_SESSION['alert_message'] = "Feedback recorded - thank you";
|
||||
|
||||
39
top_nav.php
39
top_nav.php
@@ -10,11 +10,46 @@
|
||||
|
||||
<!-- Center navbar links -->
|
||||
<ul class="navbar-nav ml-auto">
|
||||
|
||||
<?php
|
||||
$placeholder = array(
|
||||
"Search",
|
||||
"Find",
|
||||
"Find something",
|
||||
"Find anything",
|
||||
"Find meaning",
|
||||
"Search anywhere",
|
||||
"Search somewhere",
|
||||
"Search everywhere",
|
||||
"Search nowhere",
|
||||
"Search everything",
|
||||
"Search nothing",
|
||||
"Search life",
|
||||
"NO IMAGINATION",
|
||||
"OBEY",
|
||||
"OBEY GOVERNMENT",
|
||||
"STAY ASLEEP",
|
||||
"WORK 8 HOURS",
|
||||
"PLAY 8 HOURS",
|
||||
"SLEEP 8 HOURS",
|
||||
"SURRENDER",
|
||||
"YOU LOVE THIS",
|
||||
"YOU NEED THIS",
|
||||
"BE NORMAL",
|
||||
"SEARCH CORRUPT",
|
||||
"NO THOUGHT",
|
||||
"CONFORM",
|
||||
"CONSUME",
|
||||
"DO NOT QUESTION",
|
||||
"FOLLOW ORDERS",
|
||||
"HONOR APATHY",
|
||||
"END"
|
||||
);
|
||||
shuffle($placeholder);
|
||||
?>
|
||||
<!-- SEARCH FORM -->
|
||||
<form class="form-inline" action="global_search.php">
|
||||
<div class="input-group input-group-sm">
|
||||
<input class="form-control form-control-navbar" type="search" placeholder="Search everywhere" name="query"
|
||||
<input class="form-control form-control-navbar" type="search" placeholder="<?php echo $placeholder[0]?>" name="query"
|
||||
value="<?php if (isset($_GET['query'])) { echo nullable_htmlentities($_GET['query']); } ?>">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-navbar" type="submit">
|
||||
|
||||
Reference in New Issue
Block a user