ok

Mini Shell

Direktori : /proc/thread-self/root/proc/thread-self/root/usr/local/sitepad/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/usr/local/sitepad/globals.php

<?php

//////////////////////////////////////////////////////////////
//===========================================================
// globals.php
//===========================================================
// SOFTACULOUS 
// Version : 1.1
// Inspired by the DESIRE to be the BEST OF ALL
// ----------------------------------------------------------
// Started by: Alons
// Date:       10th Jan 2009
// Time:       21:00 hrs
// Site:       http://www.softaculous.com/ (SOFTACULOUS)
// ----------------------------------------------------------
// Please Read the Terms of use at http://www.softaculous.com
// ----------------------------------------------------------
//===========================================================
// (c)Softaculous Inc.
//===========================================================
//////////////////////////////////////////////////////////////

if(!defined('SITEPAD') && !defined('SITEMUSH')){

	die('Hacking Attempt');

}

@ini_set('safe_mode', '0');

$globals['hf_loaded'] = 0;
$globals['charset'] = 'UTF-8';
$globals['showntimetaken'] = 1;
$globals['ins_num'] = 0;
$globals['version'] = '1.8.8';
$globals['license'] = '00000-00000-00000-00000-00000';//Dummy License
$globals['dirchmod'] = 0755;
$globals['sitepad_editor_api'] = (empty($globals['host_sm']) ? 'https://us.sitepad.com' : $globals['host_sm']);
$globals['sitepad_editor_api'] = substr($globals['sitepad_editor_api'], 0, 4) != 'http' ? 'http://'.$globals['sitepad_editor_api'] : $globals['sitepad_editor_api'];
$globals['error_log'] = '/var/log/sitepad_errors';
$globals['php_bin'] = empty($globals['php_bin']) ? 'php' : $globals['php_bin'];
$globals['sitepad_editor_new'] = 1;

$globals['mirrors'] = array('us.sitepad.com', 'eu.sitepad.com');
$globals['sm_brand_demos'] = !empty($globals['sm_brand_demos']) ? $globals['sm_brand_demos'] : 'https://demos.sitepad.com';
$globals['sm_brand_demos'] = preg_match('/^http/is', $globals['sm_brand_demos']) ? $globals['sm_brand_demos'] : 'https://'.$globals['sm_brand_demos'];

// This is for extraordinary write permissions like making a Directory Writable
$globals['os'] = (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' ? 'windows' : (strtoupper(substr(PHP_OS, 0, 3)) == 'DAR' ? 'darwin' : 'linux'));

// Global VARS
$globals['php_path'] = 'php';
$globals['DEV'] = ($globals['os'] == 'windows' ? 1 : 0);

// For Dev
if(!empty($globals['DEV'])){
	$globals['php_path'] = 'E:\Program Files\EasyPHP 3.0\php\php.exe';
}

// Set the environment variables for the binaries
if(strtoupper(substr(PHP_OS, 0, 3)) != 'WIN'){
	putenv('PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin');
}

date_default_timezone_set('UTC');

@ini_set('memory_limit', '64M');

// Update the includes path as per the current PHP version and it respective encoded files

if(version_compare(PHP_VERSION, '7.4.0', '>=')){
	$includes_path = 'includes';
}elseif(version_compare(PHP_VERSION, '7.1.0', '>=') && is_dir($globals['path'].'/includes71')){
	$includes_path = 'includes71';
}elseif(version_compare(PHP_VERSION, '5.6.0', '>=') && is_dir($globals['path'].'/includes56')){
	$includes_path = 'includes56';
}elseif(version_compare(PHP_VERSION, '5.3.0', '>=') && is_dir($globals['path'].'/includes53')){
	$includes_path = 'includes53';
}elseif(is_dir($globals['path'].'/includes52')){
	$includes_path = 'includes52';
}else{
	$includes_path = 'includes';
}

$globals['includes_path'] = $globals['path'].'/'.$includes_path;
$globals['mainfiles'] = $globals['includes_path'].'/main';
$globals['adminfiles'] = $globals['includes_path'].'/admin';
$globals['clifiles'] = $globals['includes_path'].'/cli';
$globals['libfiles'] = $globals['path'].'/lib';
$globals['enduser'] = $globals['path']; // Is just an alias
$globals['wwwdir'] = $globals['path'].'/www';
$globals['euthemes'] = $globals['wwwdir'].'/themes';
$globals['protocols'] = array('http' => 'http://', 'https' => 'https://', 'http_www' => 'http://www.', 'https_www' => 'https://www.');
$globals['site_fileindex'] = array('index.php', '.htaccess', 'sitepad', 'sitepad-data');
$globals['orig_editor_path'] = $globals['path'].'/editor';
$globals['editor_path'] = $globals['path'].'/editor';

// This is for extraordinary write permissions like making a Directory Writable
// If no suPHP is detected write permissions would be 0777
// If suPHP is detected we change it to 0755
$globals['odc'] = 0777;//Octal Directory CHMOD
$globals['sdc'] = '0777';//String Directory CHMOD
$globals['ofc'] = 0777;//Octal File CHMOD
$globals['sfc'] = '0777';//String File CHMOD
$globals['ocfc'] = 0644;//Octal Config File CHMOD
$globals['scfc'] = '0644';//String Config File CHMOD
$globals['efc'] = 0755;//Octal Executable File CHMOD

// This is added here because the correct permissions should be loaded when in CLI mode
// Config file CHMOD
if(!empty($globals['chmod_conf_file']) && strlen($globals['chmod_conf_file']) > 0){
	$globals['ocfc'] = octdec($globals['chmod_conf_file']);//Octal
	$globals['scfc'] = $globals['chmod_conf_file'];//String
}

// Is there a manual overide for files which should be writable
if(!empty($globals['chmod_files']) && strlen($globals['chmod_files']) > 0){
	$globals['ofc'] = octdec($globals['chmod_files']);//Octal
	$globals['sfc'] = $globals['chmod_files'];//String
}

// Is there a manual overide for directories which should be writable
if(!empty($globals['chmod_dir']) && strlen($globals['chmod_dir']) > 0){
	$globals['odc'] = octdec($globals['chmod_dir']);//Octal
	$globals['sdc'] = $globals['chmod_dir'];//String
}

// Disable error reporting if not debug mode
if(empty($globals['debug_mode'])){
	error_reporting(0);
	if(function_exists('ini_set')){
		ini_set('display_errors', 'Off');
		ini_set('error_reporting', 'E_ALL & ~E_NOTICE & ~E_DEPRECATED');
	}
}



Zerion Mini Shell 1.0