You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							77 lines
						
					
					
						
							1.6 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							77 lines
						
					
					
						
							1.6 KiB
						
					
					
				| <?php | |
| 
 | |
|     session_start(); | |
| 
 | |
|     @include 'cgi-bin/conn.conn'; | |
|     @include 'cgi-bin/functions.inc'; | |
|     @include 'cgi-bin/params.inc'; | |
| 
 | |
|     $conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR"); | |
|     mysqli_set_charset($conn, "utf8"); | |
| 
 | |
| ?> | |
|  | |
|  | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
|  | |
|     <title>COZe</title> | |
|  | |
|     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
|     <meta name="description" content="COZe"> | |
|     <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> | |
|  | |
|     <base href="<?php echo $BASE_URL;?>/"> | |
|     <?php | |
|     @include 'cssvendors.php'; | |
|     ?> | |
|  | |
| </head> | |
| <body> | |
|  | |
|     <div id="MainContent" class="container"> | |
|         <form method="post"> | |
|  | |
|         <?php | |
|             if($_POST['id']) { | |
|  | |
|             $q = mysqli_query($conn, "DELETE FROM messages WHERE id=".$_POST['id'].""); | |
|             echo "<script>parent.window.location=parent.window.location</script>"; | |
|  | |
|             } else { | |
|  | |
|         ?> | |
|  | |
|          <div class="row"> | |
|             <div class="col-12 text-center p-4"> | |
|                 <span class="font-24">Delete message</span> | |
|                 <input type="hidden" name="id" value="<?= $_GET['id'];?>"> | |
|             </div> | |
|  | |
|             <div class="col-12 text-center p4"> | |
|                 <button type="submit" class="button big confirm mx-0">Go</button> | |
|             </div> | |
|         </div> | |
|  | |
|         <?php | |
|             } | |
|         ?> | |
|  | |
|         </form> | |
|     </div> | |
|  | |
|     <?php | |
|         @include 'jsvendors.php'; | |
|         @include 'scripts/'.$getQ[0].'.php'; | |
|     ?> | |
|  | |
|  | |
| </body> | |
| </html> | |
|  | |
|  | |
|  | |
| <?php | |
| mysqli_close($conn); | |
| ?>
 |