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.
		
		
		
		
		
			
		
			
				
					
					
						
							81 lines
						
					
					
						
							2.5 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							81 lines
						
					
					
						
							2.5 KiB
						
					
					
				| <?php | |
|     session_start(); | |
| 
 | |
|     @include '../cgi-bin/conn.conn'; | |
|     @include '../cgi-bin/functions.inc'; | |
|     @include '../cgi-bin/params.inc'; | |
| 
 | |
|     $GLOBALS['conn']; | |
| 
 | |
|     $conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR"); | |
|     mysqli_set_charset($conn, "utf8"); | |
| 
 | |
| 
 | |
| ?> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
|     <title>Ordine dei Farmacisti della Provincia di Salerno</title> | |
|     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
|     <base href="<?php echo $BASE_URL;?>/"> | |
|     <link href="<?php echo $BASE_URL;?>/css/styles.css" rel="stylesheet" type="text/css"/> | |
|     <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> | |
| </head> | |
| <body> | |
|     <div class="row no-gutters"> | |
|  | |
|         <?php | |
|  | |
|             if($_POST['delete']){ | |
|                 $q=mysqli_query($conn, "DELETE FROM advertisement WHERE id=".$_POST['delete']); | |
|                 echo "<script>parent.$.fn.colorbox.close(); </script>"; | |
|             } | |
|  | |
|             if($_SESSION['AUTH'] && $_SESSION['AUTH']['id'] == $_GET['uid']){ | |
|         ?> | |
|  | |
|         <form method="post"> | |
|             <div class="row"> | |
|                 <div class="col-10 col-sm-6 mx-auto text-center"> | |
|                     <p><i class="fa fa-question-circle font-alert pb-4"></i></p> | |
|                     <p class="my-3">Sei sicuro di voler eliminare questo annuncio?</p> | |
|                     <input type="hidden" name="delete" value="<?= $_GET['id'];?>"> | |
|                     <input type="submit" name="go" value="Elimina annuncio"> | |
|                 </div> | |
|             </div> | |
|         </form> | |
|  | |
|         <?php | |
|             }else{ | |
|         ?> | |
|             <div class="col-10 text-center mx-auto"> | |
|                 <p><i class="fa fa-exclamation-triangle font-alert pb-4"></i></p> | |
|                 ATTENZIONE:<br> | |
|                 Accesso non autorizzato, controlla di avere i permessi per eliminare l'annuncio. | |
|             </div> | |
|         <?php | |
|             } | |
|         ?> | |
|  | |
|  | |
|  | |
|     </div> | |
|  | |
|     <script type="text/javascript" src="<?php echo $BASE_URL;?>/node_modules/jquery/dist/jquery.min.js"></script> | |
|     <script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script> | |
|  | |
|     <script> | |
|         $('#actions .not-user').on('click', function(){ | |
|             $('#actions').fadeOut( function(){ | |
|                 $('#adv-form').fadeIn(); | |
|             }); | |
|         }); | |
|  | |
|         $('#actions .is-user').on('click', function(){ | |
|             $('#actions').fadeOut( function(){ | |
|                 $('#login-form').fadeIn(); | |
|             }); | |
|         }); | |
|     </script> | |
| </body> | |
| </html>
 |