= '0775') {
$response = true;
} else {
$response = false;
}
return $response;
}
function tableRow($name, $details, $status){
if ($status=='1') {
$pr = '
';
}else{
$pr = '
';
}
echo "
| $name | $details | $pr |
";
}
function getWebURL(){
$base_url = (isset($_SERVER['HTTPS']) &&
$_SERVER['HTTPS']!='off') ? 'https://' : 'http://';
$tmpURL = dirname(__FILE__);
$tmpURL = str_replace(chr(92),'/',$tmpURL);
$tmpURL = str_replace($_SERVER['DOCUMENT_ROOT'],'',$tmpURL);
$tmpURL = ltrim($tmpURL,'/');
$tmpURL = rtrim($tmpURL, '/');
$tmpURL = str_replace('install','',$tmpURL);
$base_url .= $_SERVER['HTTP_HOST'].'/'.$tmpURL;
if (substr("$base_url", -1=="/")) {
$base_url = substr("$base_url", 0, -1);
}
return $base_url;
}
function getStatus($arr){
return true;
}
function replaceData($val,$arr){
foreach ($arr as $key => $value) {
$val = str_replace('{{'.$key.'}}', $value, $val);
}
return $val;
}
function setDataValue($val,$loc){
$file = fopen($loc, 'w');
fwrite($file, $val);
fclose($file);
}
function sysInstall($sr,$pt){
return true;
}
function importDatabase($pt){
return true;
}
function setAdminEmail($pt){
return true;
}
//------------->> Extension & Permission
$requiredServerExtensions = [
'BCMath', 'Ctype', 'Fileinfo', 'JSON', 'Mbstring', 'OpenSSL', 'PDO','pdo_mysql', 'Tokenizer', 'XML', 'cURL', 'GD','gmp'
];
$folderPermissions = [
'../core/bootstrap/cache/', '../core/storage/', '../core/storage/app/', '../core/storage/framework/', '../core/storage/logs/'
];
//------------->> Extension & Permission
if (isset($_GET['action'])) {
$action = $_GET['action'];
}else {
$action = "";
}
if ($action=='complete') {
?>
Complete Installation
prepare($query);
$stmt->execute();
}
if(setAdminEmail($alldata)){
$db = new PDO("mysql:host=$db_host;dbname=$db_name", $db_user, $db_pass);
$sql = "UPDATE admins SET email='".$email."' WHERE username='admin'";
$stmt = $db->prepare($sql);
$stmt->execute();
echo '
Email address of admin has been set successfully!
';
echo '
Please delete the "install" folder from the server.
Please change the admin password as soon as possible.
';
echo '
';
}
}}
?>
File Permissions
Next Step
';
}else{
echo '
ReCheck ';
}
?>
Server Requirments
=');
if ($phpversion==true) {
$error = $error+0;
tableRow("PHP", "Required PHP version 7.3 or higher",1);
}else{
$error = $error+1;
tableRow("PHP", "Required PHP version 7.3 or higher",0);
}
foreach ($requiredServerExtensions as $key) {
$extension = isExtensionAvailable($key);
if ($extension==true) {
tableRow($key, "Required ".strtoupper($key)." PHP Extension",1);
}else{
$error += 1;
tableRow($key, "Required ".strtoupper($key)." PHP Extension",0);
}
}
?>
Next Step
';
}else{
echo '
ReCheck ';
}
?>
Terms of Use
License to be used on one(1) domain(website) only!
The Regular license is for one website or domain only. If you want to use it on multiple websites or domains you have to purchase more licenses (1 website = 1 license). The Regular License grants you an ongoing, non-exclusive, worldwide license to make use of the item.
You Can:
- Use on one(1) domain only.
- Modify or edit as you want.
- Translate to your choice of language(s).
If any issue or error occurred for your modification on our code/database, we will not be responsible for that.
You Cannot:
- Resell, distribute, give away, or trade by any means to any third party or individual.
- Include this product into other products sold on any market or affiliate websites.
- Use on more than one(1) domain.