HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/thread-self/root/home/awaldron/public_html/archive/ras/admin/gallery/gallery_delete.php
<?php
include "../../f_db.php";
dbconnect();

$gal = substr($_REQUEST['gal'],4);
$photos = rset("SELECT * FROM ras_gallery_phogal as A, ras_gallery_photo as B WHERE A.gal_id=".$gal." AND A.photo_id=B.photo_id");

// DELETE PHOTOS
foreach ($photos as $p) {
	$upd = qupdate("DELETE FROM ras_gallery_phogal WHERE photo_id=".$p['photo_id']." AND gal_id=".$gal);
	//$upd = qupdate("DELETE FROM ras_gallery_photo WHERE photo_id=".$p['photo_id']);	
	//unlink('/home/awaldron/public_html/ras/gallery/lg_'.$p['photo_file']);
	//unlink('/home/awaldron/public_html/ras/gallery/tn_'.$p['photo_file']);	
}

// DELETE GALLERY
$upd = qupdate("DELETE FROM ras_gallery WHERE gal_id=".$gal);	

?>