coding style fixes

This commit is contained in:
Abdulrahman
2019-05-03 23:52:08 +03:00
parent 87c5631b40
commit f142da94f3
62 changed files with 12149 additions and 11750 deletions

View File

@@ -42,9 +42,9 @@ if (! function_exists('mysqli_connect'))
if(file_exists($_path . 'config.php'))
if (file_exists($_path . 'config.php'))
{
include_once ($_path . 'config.php');
include_once $_path . 'config.php';
}
include_once $_path . 'includes/functions.php';
@@ -58,9 +58,9 @@ include_once 'includes/functions_install.php';
/**
* print header
*/
if (!ip('lang'))
if (! ip('lang'))
{
echo gettpl('header.html');
echo gettpl('header.html');
}
@@ -72,53 +72,58 @@ switch (g('step', 'str'))
default:
case 'language':
if(ig('ln') && g('ln', 'str', '') !== '')
{
// header('Location: ./?step=official&lang=' . g('ln'));
echo '<meta http-equiv="refresh" content="0;url=./?step=what_is_kleeja&lang=' . g('ln') . '">';
exit;
}
if (ig('ln') && g('ln', 'str', '') !== '')
{
// header('Location: ./?step=official&lang=' . g('ln'));
echo '<meta http-equiv="refresh" content="0;url=./?step=what_is_kleeja&lang=' . g('ln') . '">';
echo gettpl('lang.html');
exit;
}
echo gettpl('lang.html');
break;
case 'what_is_kleeja':
echo gettpl('what_is_kleeja.html');
echo gettpl('what_is_kleeja.html');
break;
case 'official':
echo gettpl('official.html');
echo gettpl('official.html');
break;
case 'choose' :
$install_or_no = $php_ver = true;
$install_or_no = $php_ver = true;
//check version of PHP
if (! function_exists('version_compare')
//check version of PHP
if (! function_exists('version_compare')
|| version_compare(PHP_VERSION, MIN_PHP_VERSION, '<'))
{
$php_ver = false;
}
{
$php_ver = false;
}
if(file_exists($_path . 'config.php'))
{
include_once $_path . 'config.php';
if(!empty($dbuser) && !empty($dbname))
{
$d = inst_get_config('language');
if (file_exists($_path . 'config.php'))
{
include_once $_path . 'config.php';
if(!empty($d))
{
$install_or_no = false;
}
}
}
if (! empty($dbuser) && ! empty($dbname))
{
$d = inst_get_config('language');
if (! empty($d))
{
$install_or_no = false;
}
}
}
echo gettpl('choose.html');
echo gettpl('choose.html');
break;
}
@@ -127,5 +132,3 @@ break;
* print footer
*/
echo gettpl('footer.html');