HEX
Server: Apache
System: Linux viper.innovativeinternet.net 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
User: thetradingroom (1095)
PHP: 8.3.25
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //ibin/oscmax-clean
# oscmax-clean
#!/usr/bin/perl

#clear

$SOURCE_FOLDER = "/home/system/download/src/oscmax";
$VERSION_FILE  = "oscmax2_RC3_0_1.zip";

$DOMAIN_NAME = "detodoalmayor.com";
$TARGET_FOLDER = "/home/$DOMAIN_NAME/crap/catalog";

#${}
#${SOURCE_FOLDER}
#${VERSION_FILE}

system("mkdir -p /home/$DOMAIN_NAME/crap/catalog");

system("unzip $SOURCE_FOLDER/$VERSION_FILE -d $TARGET_FOLDER/IISG_Install_Files");

system("mv $TARGET_FOLDER/IISG_Install_Files/catalog/* $TARGET_FOLDER"); 
system("mv $TARGET_FOLDER/IISG_Install_Files/catalog/.* $TARGET_FOLDER"); 
system("rm -rf  $TARGET_FOLDER/IISG_Install_Files/catalog"); 


system("chmod 644 $TARGET_FOLDER/includes/configure.php");
system("chmod 777 $TARGET_FOLDER/images");
system("chmod 777 $TARGET_FOLDER/admin/backups");
system("chmod 755 $TARGET_FOLDER/includes");
system("chmod 755 $TARGET_FOLDER/admin/includes");