Fifth pass at adding key files
This commit is contained in:
		
							
								
								
									
										29
									
								
								site/runshops/delete_X.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								site/runshops/delete_X.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
<?PHP
 | 
			
		||||
 | 
			
		||||
include("config.php");
 | 
			
		||||
 | 
			
		||||
if (!$_POST || !is_admin()){ header('Location: '.$site_url); }
 | 
			
		||||
 | 
			
		||||
$sql = "DELETE FROM ".$prefix."Runshops WHERE runshop_id = '$_POST[runshop_id]'";
 | 
			
		||||
 | 
			
		||||
mysql_query($sql) or die(mysql_error());
 | 
			
		||||
 | 
			
		||||
$sql = "DELETE FROM ".$prefix."RunshopsEdits WHERE runshop_id_fk = '$_POST[runshop_id]'";
 | 
			
		||||
 | 
			
		||||
mysql_query($sql) or die(mysql_error());
 | 
			
		||||
 | 
			
		||||
$sql = "DELETE FROM ".$prefix."RunshopsEditors WHERE runshop_id_fk = '$_POST[runshop_id]'";
 | 
			
		||||
 | 
			
		||||
mysql_query($sql) or die(mysql_error());
 | 
			
		||||
 | 
			
		||||
$sql = "DELETE FROM ".$prefix."RunshopsComment WHERE runshop_id_fk = '$_POST[runshop_id]'";
 | 
			
		||||
 | 
			
		||||
mysql_query($sql) or die(mysql_error());
 | 
			
		||||
 | 
			
		||||
$sql = "DELETE FROM ".$prefix."RunshopsRating WHERE runshop_id_fk = '$_POST[runshop_id]'";
 | 
			
		||||
 | 
			
		||||
mysql_query($sql) or die(mysql_error());
 | 
			
		||||
 | 
			
		||||
header('Location: '.$site_url);
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user