feedback notifications and fun search bar stuff

This commit is contained in:
ThaMunsta
2024-12-18 12:03:03 -05:00
parent 51897d0bf3
commit 2cbd3d1728
2 changed files with 40 additions and 3 deletions

View File

@@ -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";

View File

@@ -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">