|
Server : Apache System : Linux ecngx264.inmotionhosting.com 4.18.0-553.77.1.lve.el8.x86_64 #1 SMP Wed Oct 8 14:21:00 UTC 2025 x86_64 User : lonias5 ( 3576) PHP Version : 7.3.33 Disable Function : NONE Directory : /var/softaculous/magento24/ |
Upload File : |
<?php
//////////////////////////////////////////////////////////////
//===========================================================
// remove.php(For individual softwares)
//===========================================================
// SOFTACULOUS
// Version : 1.0
// Inspired by the DESIRE to be the BEST OF ALL
// ----------------------------------------------------------
// Started by: Alons
// Date: 21st July 2016
// Time: 15:00 hrs
// Site: http://www.softaculous.com/ (SOFTACULOUS)
// ----------------------------------------------------------
// Please Read the Terms of use at http://www.softaculous.com
// ----------------------------------------------------------
//===========================================================
// (c)Softaculous Inc.
//===========================================================
//////////////////////////////////////////////////////////////
if(!defined('SOFTACULOUS')){
die('Hacking Attempt');
}
/////////////////////////////////////////
// All functions in this PAGE must begin
// with TWO UNDERSCORE '__' to avoid
// clashes with SOFTACULOUS Functions
// e.g. __funcname()
/////////////////////////////////////////
//////////////////////////////////////////
// Note : The path of the upgrade package
// is $software['path'].'/' . So to
// access other files use
// $software['path'].'/other_file.ext'
//////////////////////////////////////////
//The Remove process
function __scripts_pre_remove(){
global $__settings, $globals, $softpanel;
//Remove the two additional cron commands
$softpanel->delcron(base64_decode($__settings['add_cron_command_1']));
$softpanel->delcron(base64_decode($__settings['add_cron_command_2']));
// Remove the symlinks in /pub folder manually
$symlinks = filelist($__settings['softpath'].'/pub');
foreach($symlinks as $sk => $sv){
sunlink($sk);
}
}
?>