%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/softaculous/magento18/
Upload File :
Create Path :
Current File : //var/softaculous/magento18/remove.php

<?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);
	}
	
}

?>

Zerion Mini Shell 1.0