dbport(\s*?)=(\s*?)("|\')(.*?)("|\');/is', $file, $port, 4);
$notes = 'Please use the following details while Upgrading
Database Host: '.$__settings['softdbhost'].'
Database port: '.$port.'
Database User: '.$__settings['softdbuser'].'
Database Password: '.$__settings['softdbpass'].'
Database : '.$__settings['softdb'].'
After completing the script upgrade process please apply safe permissions to the config files:
'.$__settings['softpath'].'/symfony/config/databases.yml
'.$__settings['softpath'].'/lib/confs/Conf.php
Also delete the install and upgrade directories:
'.$__settings['softpath'].'/installer
'.$__settings['softpath'].'/upgrader';
}
//Check whether the Minimum Software configuration matches
function __requirements(){
global $__settings, $error, $software;
//If there are some shorfalls then pass it to $error and return false
return true;
}
//===========================
// Software Vendors Functions
//===========================
//Just Validate an email
function __email_address($email){
global $error;
if(!emailvalidation($email)){
$error[] = '{{err_wrongemail}}';
}
return $email;
}
//The Upgrade Files
function __pre_unzip(){
global $__settings, $error, $software, $globals, $notes;
srm($__settings['softpath'].'/symfony/cache/');
}
?>