Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../var/softacul.../phpwcms
File: __upgrade.php
<?php
[0] Fix | Delete
[1] Fix | Delete
//////////////////////////////////////////////////////////////
[2] Fix | Delete
//===========================================================
[3] Fix | Delete
// upgrade.php(For individual softwares)
[4] Fix | Delete
//===========================================================
[5] Fix | Delete
// SOFTACULOUS
[6] Fix | Delete
// Version : 1.0
[7] Fix | Delete
// Inspired by the DESIRE to be the BEST OF ALL
[8] Fix | Delete
// ----------------------------------------------------------
[9] Fix | Delete
// Started by: Alons
[10] Fix | Delete
// Date: 10th Jan 2009
[11] Fix | Delete
// Time: 21:00 hrs
[12] Fix | Delete
// Site: http://www.softaculous.com/ (SOFTACULOUS)
[13] Fix | Delete
// ----------------------------------------------------------
[14] Fix | Delete
// Please Read the Terms of use at http://www.softaculous.com
[15] Fix | Delete
// ----------------------------------------------------------
[16] Fix | Delete
//===========================================================
[17] Fix | Delete
// (c)Softaculous Inc.
[18] Fix | Delete
//===========================================================
[19] Fix | Delete
//////////////////////////////////////////////////////////////
[20] Fix | Delete
[21] Fix | Delete
if(!defined('SOFTACULOUS')){
[22] Fix | Delete
[23] Fix | Delete
die('Hacking Attempt');
[24] Fix | Delete
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
/////////////////////////////////////////
[28] Fix | Delete
// All functions in this PAGE must begin
[29] Fix | Delete
// with TWO UNDERSCORE '__' to avoid
[30] Fix | Delete
// clashes with SOFTACULOUS Functions
[31] Fix | Delete
// e.g. __funcname()
[32] Fix | Delete
/////////////////////////////////////////
[33] Fix | Delete
[34] Fix | Delete
//////////////////////////////////////////
[35] Fix | Delete
// Note : The path of the upgrade package
[36] Fix | Delete
// is $software['path'].'/' . So to
[37] Fix | Delete
// access other files use
[38] Fix | Delete
// $software['path'].'/other_file.ext'
[39] Fix | Delete
//////////////////////////////////////////
[40] Fix | Delete
[41] Fix | Delete
// NOTE: $__settings will contain the installation information like PATH, URL. They are :
[42] Fix | Delete
// $__settings['ver'] - The version of the current installation
[43] Fix | Delete
// $__settings['itime'] - When the software was installed
[44] Fix | Delete
// $__settings['softpath'] - The current PATH
[45] Fix | Delete
// $__settings['softurl'] - The URL of the software
[46] Fix | Delete
// IF database was made by Softaclous
[47] Fix | Delete
// $__settings['softdb'] - The Database name
[48] Fix | Delete
// $__settings['softdbuser'] - Database User
[49] Fix | Delete
// $__settings['softdbhost'] - Database Host
[50] Fix | Delete
// $__settings['softdbpass'] - Database Password
[51] Fix | Delete
[52] Fix | Delete
//The Upgrade process
[53] Fix | Delete
function __upgrade($version_from){
[54] Fix | Delete
[55] Fix | Delete
global $__settings, $error, $software, $globals;
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
//Check whether the Minimum Software configuration matches
[59] Fix | Delete
function __requirements(){
[60] Fix | Delete
[61] Fix | Delete
global $__settings, $error, $software;
[62] Fix | Delete
[63] Fix | Delete
//If there are some shorfalls then pass it to $error and return false
[64] Fix | Delete
[65] Fix | Delete
return true;
[66] Fix | Delete
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
//===========================
[70] Fix | Delete
// Software Vendors Functions
[71] Fix | Delete
//===========================
[72] Fix | Delete
[73] Fix | Delete
//Just Validate an email
[74] Fix | Delete
function __email_address($email){
[75] Fix | Delete
[76] Fix | Delete
global $error;
[77] Fix | Delete
[78] Fix | Delete
if(!emailvalidation($email)){
[79] Fix | Delete
$error[] = '{{err_wrongemail}}';
[80] Fix | Delete
}
[81] Fix | Delete
return $email;
[82] Fix | Delete
}
[83] Fix | Delete
[84] Fix | Delete
?>
[85] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function