mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
fixes
This commit is contained in:
@@ -49,7 +49,7 @@ $config_values[] = ['cookie_secure', ($cookie_data['cookie_secure'] ? '1' : '0')
|
||||
$config_values[] = ['total_size', '10000000000', '<input type=\"text\" id=\"total_size\" name=\"total_size\" value=\"{con.total_size}\" size=\"20\" style=\"direction:ltr\" />', 17, 'upload', 0, 0];
|
||||
$config_values[] = ['foldername', 'uploads', '<input type=\"text\" id=\"foldername\" name=\"foldername\" value=\"{con.foldername}\" size=\"20\" style=\"direction:ltr\" />', 18, 'upload', 0, 0];
|
||||
$config_values[] = ['prefixname', '', '<input type=\"text\" id=\"prefixname\" name=\"prefixname\" value=\"{con.prefixname}\" size=\"20\" style=\"direction:ltr\" />', 19, 'upload', 0, 0];
|
||||
$config_values[] = ['decode', '1', '<select id=\"decode\" name=\"decode\">\r\n <option <IF NAME=\"con.decode==0\">selected=\"selected\"</IF> value=\"0\">{lang.NO_CHANGE}</option>\r\n <option <IF NAME=\"con.decode==2\">selected=\"selected\"</IF> value=\"2\">{lang.CHANGE_MD5}</option>\r\n <option <IF NAME=\"con.decode==1\">selected=\"selected\"</IF> value=\"1\">{lang.CHANGE_TIME}</option>\r\n <!-- another config decode options -->\r\n </select>', 20, 'upload', 0, 0];
|
||||
$config_values[] = ['decode', '1', '<select id=\"decode\" name=\"decode\">\r\n <option <IF NAME=\"con.decode==0\">selected=\"selected\"</IF> value=\"0\">{lang.NO_CHANGE}</option>\r\n <option <IF NAME=\"con.decode==2\">selected=\"selected\"</IF> value=\"2\">{lang.CHANGE_MD5}</option>\r\n <option <IF NAME=\"con.decode==1\">selected=\"selected\"</IF> value=\"1\">{lang.CHANGE_TIME}</option>\r\n <!-- another config decode options -->\r\n </select>', 20, 'upload', 0, 0];
|
||||
$config_values[] = ['id_form', $config_urls_type, '<select id=\"id_form\" name=\"id_form\">\r\n <option <IF NAME=\"con.id_form==id\">selected=\"selected\"</IF> value=\"id\">{lang.IDF}</option>\r\n <option <IF NAME=\"con.id_form==filename\">selected=\"selected\"</IF> value=\"filename\">{lang.IDFF}</option>\r\n<option <IF NAME=\"con.id_form==direct\">selected=\"selected\"</IF> value=\"direct\">{lang.IDFD}</option>\r\n </select>', 21, 'upload', 0, 0];
|
||||
$config_values[] = ['id_form_img', $config_urls_type, '<select id=\"id_form_img\" name=\"id_form_img\">\r\n <option <IF NAME=\"con.id_form_img==id\">selected=\"selected\"</IF> value=\"id\">{lang.IDF_IMG}</option>\r\n <option <IF NAME=\"con.id_form_img==filename\">selected=\"selected\"</IF> value=\"filename\">{lang.IDFF_IMG}</option>\r\n<option <IF NAME=\"con.id_form_img==direct\">selected=\"selected\"</IF> value=\"direct\">{lang.IDFD_IMG}</option>\r\n </select>', 21, 'upload', 0, 0];
|
||||
$config_values[] = ['filesnum', '3', '<input type=\"text\" id=\"filesnum\" name=\"filesnum\" value=\"{con.filesnum}\" size=\"6\" style=\"text-align:center\" />', 22, 'groups', 0, 0];
|
||||
|
||||
@@ -46,8 +46,8 @@ function getlang ($link = false)
|
||||
|
||||
if (ig('lang'))
|
||||
{
|
||||
$lang = preg_replace('/[^a-z0-9]/i', '', g('lang', 'str', 'en'));
|
||||
$ln = file_exists(PATH . 'lang/' . $lang . '/install.php') ? $lang : 'en';
|
||||
$lang = preg_replace('/[^a-z0-9]/i', '', g('lang', 'str', 'en'));
|
||||
$ln = file_exists(PATH . 'lang/' . $lang . '/install.php') ? $lang : 'en';
|
||||
}
|
||||
|
||||
return $link ? 'lang=' . $ln : $ln;
|
||||
@@ -117,11 +117,11 @@ function kleeja_eval($code)
|
||||
function do_config_export($srv, $usr, $pass, $nm, $prf)
|
||||
{
|
||||
$data = '<?php' . "\n\n" . '//fill these variables with your data' . "\n";
|
||||
$data .= '$dbserver = \'' . str_replace("'", "\'", $srv) . "'; //database server \n";
|
||||
$data .= '$dbuser = \'' . str_replace("'", "\'", $usr) . "' ; // database user \n";
|
||||
$data .= '$dbpass = \'' . str_replace("'", "\'", $pass) . "'; // database password \n";
|
||||
$data .= '$dbname = \'' . str_replace("'", "\'", $nm) . "'; // database name \n";
|
||||
$data .= '$dbprefix = \'' . str_replace("'", "\'", $prf) . "'; // if you use prefix for tables , fill it \n";
|
||||
$data .= '$dbserver = \'' . str_replace("'", "\'", $srv) . "'; //database server \n";
|
||||
$data .= '$dbuser = \'' . str_replace("'", "\'", $usr) . "' ; // database user \n";
|
||||
$data .= '$dbpass = \'' . str_replace("'", "\'", $pass) . "'; // database password \n";
|
||||
$data .= '$dbname = \'' . str_replace("'", "\'", $nm) . "'; // database name \n";
|
||||
$data .= '$dbprefix = \'' . str_replace("'", "\'", $prf) . "'; // if you use prefix for tables , fill it \n";
|
||||
|
||||
if (file_put_contents(PATH . 'config.php', $data, LOCK_EX) !== false)
|
||||
{
|
||||
@@ -176,8 +176,8 @@ function inst_get_config($name)
|
||||
return false;
|
||||
}
|
||||
|
||||
$sql = "SELECT value FROM `{$dbprefix}config` WHERE `name` = '" . $name . "'";
|
||||
$result = $SQL->query($sql);
|
||||
$sql = "SELECT value FROM `{$dbprefix}config` WHERE `name` = '" . $name . "'";
|
||||
$result = $SQL->query($sql);
|
||||
|
||||
if ($SQL->num_rows($result) == 0)
|
||||
{
|
||||
@@ -207,8 +207,8 @@ function get_cookies_settings()
|
||||
}
|
||||
|
||||
|
||||
$cookie_secure = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? true : false;
|
||||
$cookie_name = 'klj_' . strtolower(substr(str_replace('0', 'z', base_convert(md5(mt_rand()), 16, 35)), 0, 5));
|
||||
$cookie_secure = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? true : false;
|
||||
$cookie_name = 'klj_' . strtolower(substr(str_replace('0', 'z', base_convert(md5(mt_rand()), 16, 35)), 0, 5));
|
||||
|
||||
$name = (! empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : getenv('PHP_SELF');
|
||||
|
||||
@@ -243,10 +243,10 @@ function get_cookies_settings()
|
||||
}
|
||||
|
||||
return [
|
||||
'server_name' => $server_name,
|
||||
'cookie_secure' => $cookie_secure,
|
||||
'cookie_name' => $cookie_name,
|
||||
'cookie_domain' => $cookie_domain,
|
||||
'cookie_path' => str_replace('/install', '', $script_path),
|
||||
'server_name' => $server_name,
|
||||
'cookie_secure' => $cookie_secure,
|
||||
'cookie_name' => $cookie_name,
|
||||
'cookie_domain' => $cookie_domain,
|
||||
'cookie_path' => str_replace('/install', '', $script_path),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ break;
|
||||
|
||||
case 'choose' :
|
||||
|
||||
$install_or_no = $php_ver = true;
|
||||
$install_or_no = $php_ver = true;
|
||||
|
||||
//check version of PHP
|
||||
if (! function_exists('version_compare')
|
||||
|
||||
@@ -101,7 +101,7 @@ case 'f':
|
||||
$check_ok = true;
|
||||
$advices = $ziparchive_lib = false;
|
||||
|
||||
if(! class_exists( 'ZipArchive'))
|
||||
if (! class_exists('ZipArchive'))
|
||||
{
|
||||
$ziparchive_lib = true;
|
||||
}
|
||||
@@ -125,8 +125,8 @@ case 'c':
|
||||
}
|
||||
|
||||
|
||||
$no_config = ! file_exists(PATH . 'config.php') || ig('force') ? false : true;
|
||||
$writeable_path = is_writable(PATH) ? true : false;
|
||||
$no_config = ! file_exists(PATH . 'config.php') || ig('force') ? false : true;
|
||||
$writeable_path = is_writable(PATH) ? true : false;
|
||||
|
||||
echo gettpl('configs.html');
|
||||
|
||||
@@ -178,7 +178,7 @@ case 'data' :
|
||||
|
||||
//check data ...
|
||||
if (empty(p('sitename')) || empty(p('siteurl')) || empty(p('sitemail'))
|
||||
|| empty(p('username')) || empty(p('password')) || empty(p('password2')) || empty(p('email')) )
|
||||
|| empty(p('username')) || empty(p('password')) || empty(p('password2')) || empty(p('email')))
|
||||
{
|
||||
echo $lang['EMPTY_FIELDS'];
|
||||
echo $footer_inst;
|
||||
@@ -210,17 +210,17 @@ case 'data' :
|
||||
include_once PATH . 'includes/functions_alternative.php';
|
||||
$usrcp = new usrcp;
|
||||
|
||||
$user_salt = substr(kleeja_base64_encode(pack('H*', sha1(mt_rand()))), 0, 7);
|
||||
$user_pass = $usrcp->kleeja_hash_password(p('password') . $user_salt);
|
||||
$user_name = $SQL->escape(p('username'));
|
||||
$user_mail = $SQL->escape(p('email'));
|
||||
$config_sitename = $SQL->escape(p('sitename'));
|
||||
$config_siteurl = $SQL->escape(p('siteurl'));
|
||||
$config_sitemail = $SQL->escape(p('sitemail'));
|
||||
$config_time_zone = $SQL->escape(p('time_zone'));
|
||||
//$config_style = ip('style') ? $SQL->escape(p('style')) : '';
|
||||
$config_urls_type = in_array(p('urls_type'), ['id', 'filename', 'direct']) ? p('urls_type') : 'id';
|
||||
$clean_name = $usrcp->cleanusername($SQL->escape($user_name));
|
||||
$user_salt = substr(kleeja_base64_encode(pack('H*', sha1(mt_rand()))), 0, 7);
|
||||
$user_pass = $usrcp->kleeja_hash_password(p('password') . $user_salt);
|
||||
$user_name = $SQL->escape(p('username'));
|
||||
$user_mail = $SQL->escape(p('email'));
|
||||
$config_sitename = $SQL->escape(p('sitename'));
|
||||
$config_siteurl = $SQL->escape(p('siteurl'));
|
||||
$config_sitemail = $SQL->escape(p('sitemail'));
|
||||
$config_time_zone = $SQL->escape(p('time_zone'));
|
||||
//$config_style = ip('style') ? $SQL->escape(p('style')) : '';
|
||||
$config_urls_type = in_array(p('urls_type'), ['id', 'filename', 'direct']) ? p('urls_type') : 'id';
|
||||
$clean_name = $usrcp->cleanusername($SQL->escape($user_name));
|
||||
|
||||
/// ok .. we will get sqls now ..
|
||||
include 'includes/install_sqls.php';
|
||||
|
||||
@@ -1,82 +1,82 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner">
|
||||
<div class="clr"></div>
|
||||
<div class="clr"></div>
|
||||
|
||||
<h2><img src="style/images/k_info.png" class="img" alt=" " /> {{echo $lang['FUNCTIONS_CHECK']}} :</h2>
|
||||
<ul class="F_Check">
|
||||
{{if(function_exists('unlink')):}}
|
||||
<li class="YesCheck">
|
||||
<h3><img src="style/images/ok.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_EXISTS'], 'unlink')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_UNLINK']}} ]</p>
|
||||
</li>
|
||||
{{else: $GLOBALS['check_ok'] = false;}}
|
||||
<li class="NoCheck">
|
||||
<h3><img src="style/images/error.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_NOT_EXISTS'], 'unlink')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_UNLINK']}} ]</p>
|
||||
</li>
|
||||
{{endif;}}
|
||||
<h2><img src="style/images/k_info.png" class="img" alt=" " /> {{echo $lang['FUNCTIONS_CHECK']}} :</h2>
|
||||
<ul class="F_Check">
|
||||
{{if(function_exists('unlink')):}}
|
||||
<li class="YesCheck">
|
||||
<h3><img src="style/images/ok.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_EXISTS'], 'unlink')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_UNLINK']}} ]</p>
|
||||
</li>
|
||||
{{else: $GLOBALS['check_ok'] = false;}}
|
||||
<li class="NoCheck">
|
||||
<h3><img src="style/images/error.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_NOT_EXISTS'], 'unlink')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_UNLINK']}} ]</p>
|
||||
</li>
|
||||
{{endif;}}
|
||||
|
||||
{{if(function_exists('imagecreatetruecolor')):}}
|
||||
<li class="YesCheck">
|
||||
<h3><img src="style/images/ok.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_EXISTS'], 'imagecreatetruecolor')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_GD']}} ]</p>
|
||||
</li>
|
||||
{{else: $GLOBALS['check_ok'] = false;}}
|
||||
<li class="NoCheck">
|
||||
<h3><img src="style/images/error.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_NOT_EXISTS'], 'imagecreatetruecolor')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_GD']}} ]</p>
|
||||
</li>
|
||||
{{endif;}}
|
||||
{{if(function_exists('imagecreatetruecolor')):}}
|
||||
<li class="YesCheck">
|
||||
<h3><img src="style/images/ok.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_EXISTS'], 'imagecreatetruecolor')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_GD']}} ]</p>
|
||||
</li>
|
||||
{{else: $GLOBALS['check_ok'] = false;}}
|
||||
<li class="NoCheck">
|
||||
<h3><img src="style/images/error.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_NOT_EXISTS'], 'imagecreatetruecolor')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_GD']}} ]</p>
|
||||
</li>
|
||||
{{endif;}}
|
||||
|
||||
{{if(function_exists('fopen')):}}
|
||||
<li class="YesCheck">
|
||||
<h3><img src="style/images/ok.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_EXISTS'], 'fopen')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_FOPEN']}} ]</p>
|
||||
</li>
|
||||
{{else: $GLOBALS['check_ok'] = false;}}
|
||||
<li class="NoCheck">
|
||||
<h3><img src="style/images/error.png" alt="" class="img" /> {{echo sprintf($lang['FUNCTION_IS_NOT_EXISTS'], 'fopen')}}></h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_FOPEN']}} ]</p>
|
||||
</li>
|
||||
{{endif;}}
|
||||
{{if(function_exists('fopen')):}}
|
||||
<li class="YesCheck">
|
||||
<h3><img src="style/images/ok.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_EXISTS'], 'fopen')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_FOPEN']}} ]</p>
|
||||
</li>
|
||||
{{else: $GLOBALS['check_ok'] = false;}}
|
||||
<li class="NoCheck">
|
||||
<h3><img src="style/images/error.png" alt="" class="img" /> {{echo sprintf($lang['FUNCTION_IS_NOT_EXISTS'], 'fopen')}}></h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_FOPEN']}} ]</p>
|
||||
</li>
|
||||
{{endif;}}
|
||||
|
||||
{{if(function_exists('move_uploaded_file')):}}
|
||||
<li class="YesCheck">
|
||||
<h3><img src="style/images/ok.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_EXISTS'], 'move_uploaded_file')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_MUF']}} ]</p>
|
||||
</li>
|
||||
{{else: $GLOBALS['check_ok'] = false;}}
|
||||
<li class="NoCheck">
|
||||
<h3><img src="style/images/error.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_NOT_EXISTS'], 'move_uploaded_file')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_MUF']}} ]</p>
|
||||
</li>
|
||||
{{endif;}}
|
||||
</ul>
|
||||
{{if(function_exists('move_uploaded_file')):}}
|
||||
<li class="YesCheck">
|
||||
<h3><img src="style/images/ok.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_EXISTS'], 'move_uploaded_file')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_MUF']}} ]</p>
|
||||
</li>
|
||||
{{else: $GLOBALS['check_ok'] = false;}}
|
||||
<li class="NoCheck">
|
||||
<h3><img src="style/images/error.png" alt=" " class="img" /> {{echo sprintf($lang['FUNCTION_IS_NOT_EXISTS'], 'move_uploaded_file')}}</h3>
|
||||
<p>[ {{echo $lang['FUNCTION_DISC_MUF']}} ]</p>
|
||||
</li>
|
||||
{{endif;}}
|
||||
</ul>
|
||||
|
||||
<div class="hr"></div>
|
||||
<div class="hr"></div>
|
||||
|
||||
{{if($GLOBALS['advices']):}}
|
||||
<h2 style="font-size:100%;"><img src="style/images/k_info.png" class="img" alt=" " /> {{echo $lang['ADVICES_CHECK']}} :</h2>
|
||||
<ul class="F_Check">
|
||||
{{if($GLOBALS['ziparchive_lib']):}}
|
||||
<li class="NoCheck"><p style="text-indent:0;"><img src="style/images/surprised.png" alt=" " class="img" />{{echo $lang['ZIPARCHIVE_LIB']}}</p></li>
|
||||
{{endif;}}
|
||||
</ul>
|
||||
<div class="hr"></div>
|
||||
{{endif;}}
|
||||
{{if($GLOBALS['advices']):}}
|
||||
<h2 style="font-size:100%;"><img src="style/images/k_info.png" class="img" alt=" " /> {{echo $lang['ADVICES_CHECK']}} :</h2>
|
||||
<ul class="F_Check">
|
||||
{{if($GLOBALS['ziparchive_lib']):}}
|
||||
<li class="NoCheck"><p style="text-indent:0;"><img src="style/images/surprised.png" alt=" " class="img" />{{echo $lang['ZIPARCHIVE_LIB']}}</p></li>
|
||||
{{endif;}}
|
||||
</ul>
|
||||
<div class="hr"></div>
|
||||
{{endif;}}
|
||||
|
||||
<center>
|
||||
{{if($GLOBALS['check_ok']):}}
|
||||
<form method="post" action="{{echo './install.php?step=c&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./install.php?step=license&{{echo getlang(1)}}';return false;" name="previous" type="submit" id="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
{{else:}}
|
||||
<form method="post" action="{{echo './install.php?step=f&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./install.php?step=license&{{echo getlang(1)}}';return false;" name="previous" type="submit" id="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['RE_CHECK']}} »</span></button>
|
||||
</form>
|
||||
{{endif;}}
|
||||
</center>
|
||||
<center>
|
||||
{{if($GLOBALS['check_ok']):}}
|
||||
<form method="post" action="{{echo './install.php?step=c&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./install.php?step=license&{{echo getlang(1)}}';return false;" name="previous" type="submit" id="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
{{else:}}
|
||||
<form method="post" action="{{echo './install.php?step=f&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./install.php?step=license&{{echo getlang(1)}}';return false;" name="previous" type="submit" id="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['RE_CHECK']}} »</span></button>
|
||||
</form>
|
||||
{{endif;}}
|
||||
</center>
|
||||
|
||||
<div class="clr"></div>
|
||||
<div class="clr"></div>
|
||||
</div></div><div class="BoxBottomImg"></div></div>
|
||||
|
||||
@@ -1,60 +1,60 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner">
|
||||
<div class="clr"></div>
|
||||
|
||||
{{if(empty($GLOBALS['dbname']) || empty($GLOBALS['dbuser'])): $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />{{echo $lang['INST_CHANG_CONFIG']}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
{{if(empty($GLOBALS['dbname']) || empty($GLOBALS['dbuser'])): $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />{{echo $lang['INST_CHANG_CONFIG']}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
|
||||
|
||||
|
||||
{{if($GLOBALS['no_connection']): $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />{{echo $lang['INST_CONNCET_ERR']}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
{{if($GLOBALS['no_connection']): $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />{{echo $lang['INST_CONNCET_ERR']}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
|
||||
{{if($GLOBALS['mysql_ver']): $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />{{echo sprintf($lang['INST_MYSQL_LESSMIN'], MIN_MYSQL_VERSION, $GLOBALS['mysql_ver'])}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
{{if($GLOBALS['mysql_ver']): $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />{{echo sprintf($lang['INST_MYSQL_LESSMIN'], MIN_MYSQL_VERSION, $GLOBALS['mysql_ver'])}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
|
||||
{{if(!is_writable(PATH . 'cache')) : $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />[ cache ] : {{echo $lang['INST_NO_WRTABLE']}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
{{if(!is_writable(PATH . 'cache')) : $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />[ cache ] : {{echo $lang['INST_NO_WRTABLE']}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
|
||||
{{if(!is_writable(PATH . 'uploads')) : $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />[ uploads ] : {{echo $lang['INST_NO_WRTABLE']}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
{{if(!is_writable(PATH . 'uploads')) : $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />[ uploads ] : {{echo $lang['INST_NO_WRTABLE']}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
|
||||
{{if(!is_writable(PATH . 'uploads/thumbs')) : $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />[ uploads/thumbs ] : {{echo $lang['INST_NO_WRTABLE']}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
{{if(!is_writable(PATH . 'uploads/thumbs')) : $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />[ uploads/thumbs ] : {{echo $lang['INST_NO_WRTABLE']}}</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
|
||||
{{if(!$GLOBALS['submit_disabled']):}}
|
||||
<div class="clr"></div><br />
|
||||
<img src="style/images/good.png" alt="" />
|
||||
<div class="clr"></div><br />
|
||||
<h2 class="h2">[ {{echo $lang['INST_GOOD_GO']}} ]</h2>
|
||||
<div class="hr"></div>
|
||||
<form method="post" action="{{echo './install.php?step=data&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./install.php?step=c&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
{{else:}}
|
||||
<form method="post" action="{{echo './install.php?step=check&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./install.php?step=c&force=1&{{echo getlang(1)}}';return false;" name="previous" type="submit" id="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['RE_CHECK']}} »</span></button>
|
||||
</form>
|
||||
{{endif}}
|
||||
{{if(!$GLOBALS['submit_disabled']):}}
|
||||
<div class="clr"></div><br />
|
||||
<img src="style/images/good.png" alt="" />
|
||||
<div class="clr"></div><br />
|
||||
<h2 class="h2">[ {{echo $lang['INST_GOOD_GO']}} ]</h2>
|
||||
<div class="hr"></div>
|
||||
<form method="post" action="{{echo './install.php?step=data&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./install.php?step=c&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
{{else:}}
|
||||
<form method="post" action="{{echo './install.php?step=check&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./install.php?step=c&force=1&{{echo getlang(1)}}';return false;" name="previous" type="submit" id="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['RE_CHECK']}} »</span></button>
|
||||
</form>
|
||||
{{endif}}
|
||||
|
||||
<div class="clr"></div>
|
||||
</div></div><div class="BoxBottomImg"></div></div>
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner">
|
||||
<div class="clr"></div>
|
||||
|
||||
{{if(!$GLOBALS['php_ver']):}}
|
||||
<div class="Failure">
|
||||
<img src="style/images/official_no.png" class="img" alt="?" /><br /><br />
|
||||
<h2>{{echo sprintf($lang['INST_PHP_LESSMIN'], MIN_PHP_VERSION, PHP_VERSION)}}</h2>
|
||||
</div>
|
||||
{{else:}}
|
||||
{{if($GLOBALS['install_or_no']):}}
|
||||
<div class="InstallUpdate" onclick="window.location.href='./install.php?step=license&{{echo getlang(1)}}';">
|
||||
<img src="style/images/Installer.png" alt="Install Kleeja" /><br />
|
||||
<h2>{{echo $lang['INST_INSTALL_CLEAN_VER']}}</h2>
|
||||
</div>
|
||||
{{else:}}
|
||||
<div class="InstallUpdate" onclick="window.location.href='./update.php?{{echo getlang(1)}}';">
|
||||
<img src="style/images/update.png" alt="update Kleeja" /><br />
|
||||
<h2>{{echo $lang['INST_UPDATE_P_VER']}}</h2>
|
||||
</div>
|
||||
{{endif;}}
|
||||
{{endif;}}
|
||||
<div class="clr"></div>
|
||||
|
||||
{{if(!$GLOBALS['php_ver']):}}
|
||||
<div class="Failure">
|
||||
<img src="style/images/official_no.png" class="img" alt="?" /><br /><br />
|
||||
<h2>{{echo sprintf($lang['INST_PHP_LESSMIN'], MIN_PHP_VERSION, PHP_VERSION)}}</h2>
|
||||
</div>
|
||||
{{else:}}
|
||||
{{if($GLOBALS['install_or_no']):}}
|
||||
<div class="InstallUpdate" onclick="window.location.href='./install.php?step=license&{{echo getlang(1)}}';">
|
||||
<img src="style/images/Installer.png" alt="Install Kleeja" /><br />
|
||||
<h2>{{echo $lang['INST_INSTALL_CLEAN_VER']}}</h2>
|
||||
</div>
|
||||
{{else:}}
|
||||
<div class="InstallUpdate" onclick="window.location.href='./update.php?{{echo getlang(1)}}';">
|
||||
<img src="style/images/update.png" alt="update Kleeja" /><br />
|
||||
<h2>{{echo $lang['INST_UPDATE_P_VER']}}</h2>
|
||||
</div>
|
||||
{{endif;}}
|
||||
{{endif;}}
|
||||
|
||||
<div class="clr"></div>
|
||||
<div class="clr"></div>
|
||||
</div></div><div class="BoxBottomImg"></div></div>
|
||||
@@ -3,70 +3,70 @@
|
||||
|
||||
{{if(!$GLOBALS['no_config']):}}
|
||||
<form method="post" action="{{echo './install.php?step=c&' . getlang(1)}}" onsubmit="javascript:return formCheck(this, Array('db_server','db_user' ,'db_name'));">
|
||||
<h2><img src="style/images/klj_info.png" class="img" alt="!" />{{echo $lang['DB_INFO']}}</h2>
|
||||
<table class="TableConf" dir="{{echo $lang['DIR']}}">
|
||||
<tr>
|
||||
<td class="TdConf">{{echo $lang['DB_SERVER']}}</td>
|
||||
<td class="TdInput"><input name="db_server" type="text" value="localhost" class="InputConf" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="TdConf">{{echo $lang['DB_NAME']}}</td>
|
||||
<td class="TdInput"><input name="db_name" type="text" class="InputConf" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="TdConf">{{echo $lang['DB_USER']}}</td>
|
||||
<td class="TdInput"><input name="db_user" type="text" class="InputConf" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="TdConf">{{echo $lang['DB_PASSWORD']}}</td>
|
||||
<td class="TdInput"><input name="db_pass" type="text" class="InputConf" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="TdConf">{{echo $lang['DB_PREFIX']}}</td>
|
||||
<td class="TdInput"><input name="db_prefix" type="text" value="klj_" class="InputConf" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="clr"></div>
|
||||
<h2><img src="style/images/klj_info.png" class="img" alt="!" />{{echo $lang['DB_INFO']}}</h2>
|
||||
<table class="TableConf" dir="{{echo $lang['DIR']}}">
|
||||
<tr>
|
||||
<td class="TdConf">{{echo $lang['DB_SERVER']}}</td>
|
||||
<td class="TdInput"><input name="db_server" type="text" value="localhost" class="InputConf" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="TdConf">{{echo $lang['DB_NAME']}}</td>
|
||||
<td class="TdInput"><input name="db_name" type="text" class="InputConf" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="TdConf">{{echo $lang['DB_USER']}}</td>
|
||||
<td class="TdInput"><input name="db_user" type="text" class="InputConf" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="TdConf">{{echo $lang['DB_PASSWORD']}}</td>
|
||||
<td class="TdInput"><input name="db_pass" type="text" class="InputConf" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="TdConf">{{echo $lang['DB_PREFIX']}}</td>
|
||||
<td class="TdInput"><input name="db_prefix" type="text" value="klj_" class="InputConf" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="clr"></div>
|
||||
|
||||
{{if(!$GLOBALS['writeable_path']):}}
|
||||
<div class="notice">
|
||||
<p class="justify"><img src="style/images/inst_notes.png" class="img" alt=" " />{{echo $lang['DB_INFO_NW']}}</p>
|
||||
</div>
|
||||
{{endif;}}
|
||||
{{if(!$GLOBALS['writeable_path']):}}
|
||||
<div class="notice">
|
||||
<p class="justify"><img src="style/images/inst_notes.png" class="img" alt=" " />{{echo $lang['DB_INFO_NW']}}</p>
|
||||
</div>
|
||||
{{endif;}}
|
||||
|
||||
<div class="hr"></div>
|
||||
<center>
|
||||
<button onclick="window.location.href='./install.php?step=f&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="dbsubmit" type="submit" class="btn"><span>{{echo $GLOBALS['writeable_path'] ? $lang['INST_NEXT'] : $lang['INST_EXPORT']}} »</span></button>
|
||||
</center>
|
||||
<div class="hr"></div>
|
||||
<center>
|
||||
<button onclick="window.location.href='./install.php?step=f&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="dbsubmit" type="submit" class="btn"><span>{{echo $GLOBALS['writeable_path'] ? $lang['INST_NEXT'] : $lang['INST_EXPORT']}} »</span></button>
|
||||
</center>
|
||||
|
||||
</form>
|
||||
|
||||
{{if(!$GLOBALS['writeable_path']):}}
|
||||
<div class="clr"></div><br />
|
||||
<img src="style/images/up_c.png" alt="Upload Config" />
|
||||
<div class="clr"></div><br />
|
||||
<h2 class="h2">{{echo $lang['INST_SUBMIT_CONFIGOK']}}</h2>
|
||||
<div class="hr"></div>
|
||||
<form method="post" action="{{echo './install.php?step=c&' . getlang(1)}}">
|
||||
<center>
|
||||
<button onclick="window.location.href='./install.php?step=f&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button type="submit" name="agres" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</center>
|
||||
</form>
|
||||
{{endif;}}
|
||||
{{if(!$GLOBALS['writeable_path']):}}
|
||||
<div class="clr"></div><br />
|
||||
<img src="style/images/up_c.png" alt="Upload Config" />
|
||||
<div class="clr"></div><br />
|
||||
<h2 class="h2">{{echo $lang['INST_SUBMIT_CONFIGOK']}}</h2>
|
||||
<div class="hr"></div>
|
||||
<form method="post" action="{{echo './install.php?step=c&' . getlang(1)}}">
|
||||
<center>
|
||||
<button onclick="window.location.href='./install.php?step=f&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button type="submit" name="agres" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</center>
|
||||
</form>
|
||||
{{endif;}}
|
||||
|
||||
{{else:}}
|
||||
<div class="clr"></div><br />
|
||||
<img src="style/images/check_conf.png" alt=" " />
|
||||
<div class="clr"></div><br />
|
||||
<h2 class="h2">{{echo $lang['CONFIG_EXISTS']}}</h2>
|
||||
<div class="hr"></div>
|
||||
<form method="post" action="{{echo $_SERVER['PHP_SELF'] . '?step=check&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./install.php?step=f&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button type="submit" name="agres" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
{{endif;}}
|
||||
{{else:}}
|
||||
<div class="clr"></div><br />
|
||||
<img src="style/images/check_conf.png" alt=" " />
|
||||
<div class="clr"></div><br />
|
||||
<h2 class="h2">{{echo $lang['CONFIG_EXISTS']}}</h2>
|
||||
<div class="hr"></div>
|
||||
<form method="post" action="{{echo $_SERVER['PHP_SELF'] . '?step=check&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./install.php?step=f&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button type="submit" name="agres" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
{{endif;}}
|
||||
|
||||
<div class="clr"></div>
|
||||
</div></div><div class="BoxBottomImg"></div></div>
|
||||
|
||||
@@ -1,87 +1,87 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner">
|
||||
<div class="clr"></div>
|
||||
|
||||
<form method="post" action="{{echo './install.php?step=data&' . getlang(1)}}" onsubmit="javascript:return formCheck(this, Array('sitename','siteurl','sitemail' ,'username', 'password','email' ));">
|
||||
<h2><img src="style/images/s-home.png" alt="" class="img" />{{echo $lang['INST_SITE_INFO']}}</h2>
|
||||
<table class="DataTable" dir="{{echo $lang['DIR']}}">
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['SITENAME']}}</td>
|
||||
<td><input name="sitename" type="text" style="width:70%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['SITEURL']}}</td>
|
||||
<td><input name="siteurl" type="text" value="{{echo $GLOBALS['urlsite']}}" style="direction:ltr;width:70%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['SITEMAIL']}}</td>
|
||||
<td><input name="sitemail" id="sitemail" type="text" onchange="return w_email(this.name);" style="direction:ltr;width:40%" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<form method="post" action="{{echo './install.php?step=data&' . getlang(1)}}" onsubmit="javascript:return formCheck(this, Array('sitename','siteurl','sitemail' ,'username', 'password','email' ));">
|
||||
<h2><img src="style/images/s-home.png" alt="" class="img" />{{echo $lang['INST_SITE_INFO']}}</h2>
|
||||
<table class="DataTable" dir="{{echo $lang['DIR']}}">
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['SITENAME']}}</td>
|
||||
<td><input name="sitename" type="text" style="width:70%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['SITEURL']}}</td>
|
||||
<td><input name="siteurl" type="text" value="{{echo $GLOBALS['urlsite']}}" style="direction:ltr;width:70%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['SITEMAIL']}}</td>
|
||||
<td><input name="sitemail" id="sitemail" type="text" onchange="return w_email(this.name);" style="direction:ltr;width:40%" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="hr"></div>
|
||||
<div class="hr"></div>
|
||||
|
||||
<h2><img src="style/images/s-user.png" alt="" class="img" />{{echo $lang['INST_ADMIN_INFO']}}</h2>
|
||||
<table class="DataTable" dir="{{echo $lang['DIR']}}">
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['USERNAME']}}</td>
|
||||
<td><input name="username" type="text" style="width:40%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['PASSWORD']}}</td>
|
||||
<td>
|
||||
<input id="pass1" name="password" type="text" style="width:40%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['PASSWORD2']}}</td>
|
||||
<td><input id="pass2" name="password2" id="password2" type="text" style="width:40%" onkeyup="checkPass(); return false;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['EMAIL']}}</td>
|
||||
<td><input name="email" id="email" type="text" style="direction:ltr;width:40%" onchange="return w_email(this.name);" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2><img src="style/images/s-user.png" alt="" class="img" />{{echo $lang['INST_ADMIN_INFO']}}</h2>
|
||||
<table class="DataTable" dir="{{echo $lang['DIR']}}">
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['USERNAME']}}</td>
|
||||
<td><input name="username" type="text" style="width:40%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['PASSWORD']}}</td>
|
||||
<td>
|
||||
<input id="pass1" name="password" type="text" style="width:40%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['PASSWORD2']}}</td>
|
||||
<td><input id="pass2" name="password2" id="password2" type="text" style="width:40%" onkeyup="checkPass(); return false;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['EMAIL']}}</td>
|
||||
<td><input name="email" id="email" type="text" style="direction:ltr;width:40%" onchange="return w_email(this.name);" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="hr"></div>
|
||||
<div class="hr"></div>
|
||||
|
||||
<h2><img src="style/images/klj_info.png" alt="" class="img" />{{echo $lang['INST_OTHER_INFO']}}</h2>
|
||||
<table class="DataTable" dir="{{echo $lang['DIR']}}">
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['TIME_ZONE']}}</td>
|
||||
<td>
|
||||
<select name="time_zone" id="time_zone" style="text-align:left;direction:ltr">
|
||||
{{foreach(time_zones() as $z=>$t):}}
|
||||
<option value="{{echo $z}}" {{if($z=='Asia/Buraydah'):}}selected="selected"{{endif;}}>{{echo $z}} (GMT{{echo $t < 0 ? $t : '+' . $t}}</option>
|
||||
{{endforeach}}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['URLS_TYPES']}}</td>
|
||||
<td>
|
||||
<script type="text/javascript">
|
||||
var explains = new Array(3);
|
||||
explains["id"] = "{{echo $GLOBALS['urlsite']}}do.php?id=123";
|
||||
explains["filename"] = "{{echo $GLOBALS['urlsite']}}do.php?filename=12542219930.gif";
|
||||
explains["direct"] = "{{echo $GLOBALS['urlsite']}}uploads/12542219930.gif";
|
||||
</script>
|
||||
<select name="urls_type" onChange="document.getElementById('like_this').innerHTML=explains[this.options[this.selectedIndex].value]" style="width:30%">
|
||||
<option value="id">{{echo $lang['DEFAULT']}}</option>
|
||||
<option value="filename">{{echo $lang['FILENAME_URL']}}</option>
|
||||
<option value="direct">{{echo $lang['DIRECT_URL']}}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['LIKE_THIS']}}</td>
|
||||
<td style="direction:ltr;text-align:left" id="like_this">{{echo $GLOBALS['urlsite']}}do.php?id=123</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2><img src="style/images/klj_info.png" alt="" class="img" />{{echo $lang['INST_OTHER_INFO']}}</h2>
|
||||
<table class="DataTable" dir="{{echo $lang['DIR']}}">
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['TIME_ZONE']}}</td>
|
||||
<td>
|
||||
<select name="time_zone" id="time_zone" style="text-align:left;direction:ltr">
|
||||
{{foreach(time_zones() as $z=>$t):}}
|
||||
<option value="{{echo $z}}" {{if($z=='Asia/Buraydah'):}}selected="selected"{{endif;}}>{{echo $z}} (GMT{{echo $t < 0 ? $t : '+' . $t}}</option>
|
||||
{{endforeach}}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['URLS_TYPES']}}</td>
|
||||
<td>
|
||||
<script type="text/javascript">
|
||||
var explains = new Array(3);
|
||||
explains["id"] = "{{echo $GLOBALS['urlsite']}}do.php?id=123";
|
||||
explains["filename"] = "{{echo $GLOBALS['urlsite']}}do.php?filename=12542219930.gif";
|
||||
explains["direct"] = "{{echo $GLOBALS['urlsite']}}uploads/12542219930.gif";
|
||||
</script>
|
||||
<select name="urls_type" onChange="document.getElementById('like_this').innerHTML=explains[this.options[this.selectedIndex].value]" style="width:30%">
|
||||
<option value="id">{{echo $lang['DEFAULT']}}</option>
|
||||
<option value="filename">{{echo $lang['FILENAME_URL']}}</option>
|
||||
<option value="direct">{{echo $lang['DIRECT_URL']}}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdd">{{echo $lang['LIKE_THIS']}}</td>
|
||||
<td style="direction:ltr;text-align:left" id="like_this">{{echo $GLOBALS['urlsite']}}do.php?id=123</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="hr"></div>
|
||||
<button onclick="window.location.href='./install.php?step=check&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="datasubmit" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
<div class="hr"></div>
|
||||
<button onclick="window.location.href='./install.php?step=check&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="datasubmit" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div></div><div class="BoxBottomImg"></div></div>
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner">
|
||||
<div class="clr"></div>
|
||||
<img src="style/images/end.gif" alt="" />
|
||||
<h2 class="h2">{{echo $lang['INST_FINISH_SQL']}}</h2>
|
||||
<div class="notice">
|
||||
<h6><img src="style/images/info2.png" class="img" alt=" " /> {{echo $lang['INST_NOTES']}}</h6>
|
||||
<p><img src="style/images/inst_notes.png" class="img" alt=" " />{{echo $lang['INST_END']}}</p>
|
||||
<p><img src="style/images/inst_notes.png" class="img" alt=" " />{{echo $lang['INST_NOTE_D']}}</p>
|
||||
</div>
|
||||
<div class="notice TN"><p>{{echo $lang['INST_KLEEJADEVELOPERS']}}</p></div>
|
||||
<div class="hr"></div>
|
||||
<button type="button" class="btn" onclick="window.location.href='../index.php';"><span>{{echo $lang['INDEX']}}</span></button>
|
||||
<button type="button" class="btn" onclick="window.location.href='../admin/';"><span>{{echo $lang['ADMINCP']}}</span></button>
|
||||
<button type="button" class="btn" onclick="window.open('http://kleeja.com','_blank');return false;" href="http://www.kleeja.com"><span>kleeja.com</span></button>
|
||||
<div class="clr"></div>
|
||||
<img src="style/images/end.gif" alt="" />
|
||||
<h2 class="h2">{{echo $lang['INST_FINISH_SQL']}}</h2>
|
||||
<div class="notice">
|
||||
<h6><img src="style/images/info2.png" class="img" alt=" " /> {{echo $lang['INST_NOTES']}}</h6>
|
||||
<p><img src="style/images/inst_notes.png" class="img" alt=" " />{{echo $lang['INST_END']}}</p>
|
||||
<p><img src="style/images/inst_notes.png" class="img" alt=" " />{{echo $lang['INST_NOTE_D']}}</p>
|
||||
</div>
|
||||
<div class="notice TN"><p>{{echo $lang['INST_KLEEJADEVELOPERS']}}</p></div>
|
||||
<div class="hr"></div>
|
||||
<button type="button" class="btn" onclick="window.location.href='../index.php';"><span>{{echo $lang['INDEX']}}</span></button>
|
||||
<button type="button" class="btn" onclick="window.location.href='../admin/';"><span>{{echo $lang['ADMINCP']}}</span></button>
|
||||
<button type="button" class="btn" onclick="window.open('http://kleeja.com','_blank');return false;" href="http://www.kleeja.com"><span>kleeja.com</span></button>
|
||||
<div class="clr"></div>
|
||||
</div></div><div class="BoxBottomImg"></div></div>
|
||||
|
||||
@@ -5,18 +5,18 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$("#lang").msDropDown();
|
||||
$("#toggleElement").click(function() {
|
||||
$("#next").toggle(!$(this).attr('checked'));
|
||||
});
|
||||
$('input:checkbox:not([safari])').checkbox();
|
||||
$('#sitemail').keydown( function(e){
|
||||
if( $(this).val().length > 1) {
|
||||
$('#email').val($(this).val());
|
||||
}
|
||||
});
|
||||
$("#lang").msDropDown();
|
||||
$("#toggleElement").click(function() {
|
||||
$("#next").toggle(!$(this).attr('checked'));
|
||||
});
|
||||
$('input:checkbox:not([safari])').checkbox();
|
||||
$('#sitemail').keydown( function(e){
|
||||
if( $(this).val().length > 1) {
|
||||
$('#email').val($(this).val());
|
||||
}
|
||||
});
|
||||
});
|
||||
/** By JavaScript Kit (http://javascriptkit.com) **/
|
||||
/** By JavaScript Kit (http://javascriptkit.com) **/
|
||||
function w_email(l){
|
||||
var m = document.getElementById(l);
|
||||
if (m.value.indexOf("@") == - 1 || m.value.indexOf(".") == - 1 || m.value.length < 7 ) {
|
||||
@@ -25,93 +25,93 @@ function w_email(l){
|
||||
}
|
||||
}
|
||||
function checkrequired(which){
|
||||
var pass = true;
|
||||
if (document.images)
|
||||
{
|
||||
for (i=0;i<which.length;i++)
|
||||
{
|
||||
var tempobj=which.elements[i]
|
||||
if (tempobj.name.substring(0,8)=="required")
|
||||
{
|
||||
if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s" && tempobj.selectedIndex==-1))
|
||||
{
|
||||
pass = false;
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!pass)
|
||||
{
|
||||
alert("{{echo $lang['VALIDATING_FORM_WRONG']}}");
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
var pass = true;
|
||||
if (document.images)
|
||||
{
|
||||
for (i=0;i<which.length;i++)
|
||||
{
|
||||
var tempobj=which.elements[i]
|
||||
if (tempobj.name.substring(0,8)=="required")
|
||||
{
|
||||
if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s" && tempobj.selectedIndex==-1))
|
||||
{
|
||||
pass = false;
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!pass)
|
||||
{
|
||||
alert("{{echo $lang['VALIDATING_FORM_WRONG']}}");
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
/** http://www.dynamicdrive.com **/
|
||||
function formCheck(formobj, fieldRequired){
|
||||
|
||||
if( document.getElementById('pass1').value != document.getElementById('pass2').value)
|
||||
{
|
||||
alert("{{echo $lang['PASS_NEQ_PASS2']}}");
|
||||
return false;
|
||||
}
|
||||
// dialog message
|
||||
var alertMsg = "{{echo $lang['VALIDATING_FORM_WRONG']}}:\n";
|
||||
var l_Msg = alertMsg.length;
|
||||
//lang
|
||||
var lang = new Array(9);
|
||||
lang["db_server"] = "{{echo $lang['DB_SERVER']}}";
|
||||
lang["db_user"] = "{{echo $lang['DB_USER']}}";
|
||||
lang["db_name"] = "{{echo $lang['DB_NAME']}}";
|
||||
lang["sitename"] = "{{echo $lang['SITENAME']}}";
|
||||
lang["siteurl"] = "{{echo $lang['SITEURL']}}";
|
||||
lang["sitemail"] = "{{echo $lang['SITEMAIL']}}";
|
||||
lang["username"] = "{{echo $lang['USERNAME']}}";
|
||||
lang["password"] = "{{echo $lang['PASSWORD']}}";
|
||||
lang["password2"] = "{{echo $lang['PASSWORD2']}}";
|
||||
lang["email"] = "{{echo $lang['EMAIL']}}";
|
||||
|
||||
for (var i = 0; i < fieldRequired.length; i++)
|
||||
{
|
||||
var obj = formobj.elements[fieldRequired[i]];
|
||||
if (obj)
|
||||
{
|
||||
switch(obj.type)
|
||||
{
|
||||
case "text":
|
||||
case "textarea":
|
||||
if (obj.value == "" || obj.value == null)
|
||||
alertMsg += " - " + lang[fieldRequired[i]] + "\n";
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
if (obj.type == undefined)
|
||||
{
|
||||
var blnchecked = false;
|
||||
for (var j = 0; j < obj.length; j++)
|
||||
{
|
||||
if (obj[j].checked)
|
||||
blnchecked = true;
|
||||
}
|
||||
|
||||
if (!blnchecked)
|
||||
alertMsg += " - " + lang[fieldRequired[i]] + "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
if( document.getElementById('pass1').value != document.getElementById('pass2').value)
|
||||
{
|
||||
alert("{{echo $lang['PASS_NEQ_PASS2']}}");
|
||||
return false;
|
||||
}
|
||||
// dialog message
|
||||
var alertMsg = "{{echo $lang['VALIDATING_FORM_WRONG']}}:\n";
|
||||
var l_Msg = alertMsg.length;
|
||||
//lang
|
||||
var lang = new Array(9);
|
||||
lang["db_server"] = "{{echo $lang['DB_SERVER']}}";
|
||||
lang["db_user"] = "{{echo $lang['DB_USER']}}";
|
||||
lang["db_name"] = "{{echo $lang['DB_NAME']}}";
|
||||
lang["sitename"] = "{{echo $lang['SITENAME']}}";
|
||||
lang["siteurl"] = "{{echo $lang['SITEURL']}}";
|
||||
lang["sitemail"] = "{{echo $lang['SITEMAIL']}}";
|
||||
lang["username"] = "{{echo $lang['USERNAME']}}";
|
||||
lang["password"] = "{{echo $lang['PASSWORD']}}";
|
||||
lang["password2"] = "{{echo $lang['PASSWORD2']}}";
|
||||
lang["email"] = "{{echo $lang['EMAIL']}}";
|
||||
|
||||
for (var i = 0; i < fieldRequired.length; i++)
|
||||
{
|
||||
var obj = formobj.elements[fieldRequired[i]];
|
||||
if (obj)
|
||||
{
|
||||
switch(obj.type)
|
||||
{
|
||||
case "text":
|
||||
case "textarea":
|
||||
if (obj.value == "" || obj.value == null)
|
||||
alertMsg += " - " + lang[fieldRequired[i]] + "\n";
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
if (obj.type == undefined)
|
||||
{
|
||||
var blnchecked = false;
|
||||
for (var j = 0; j < obj.length; j++)
|
||||
{
|
||||
if (obj[j].checked)
|
||||
blnchecked = true;
|
||||
}
|
||||
|
||||
if (!blnchecked)
|
||||
alertMsg += " - " + lang[fieldRequired[i]] + "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (alertMsg.length == l_Msg)
|
||||
return true;
|
||||
else
|
||||
{
|
||||
alert(alertMsg);
|
||||
return false;
|
||||
}
|
||||
if (alertMsg.length == l_Msg)
|
||||
return true;
|
||||
else
|
||||
{
|
||||
alert(alertMsg);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -13,29 +13,29 @@ var PATH_SPACER = 'style/images/spacer.gif';
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="Header">
|
||||
<div class="header">
|
||||
<ul class="headerIcon">
|
||||
<li><a onclick="window.open(this.href,'_blank');return false;" href="http://www.kleeja.com"><img src="style/images/kleeja.png" title="kleeja.com" alt="" /></a></li>
|
||||
<li><a href="./"><img title="Start over" src="style/images/install_h.png" alt="" /></a></li>
|
||||
</ul>
|
||||
<div class="BoxLang">
|
||||
{{if(((ig('step') && g('step') != 'language') && (strpos('index.php', $_SERVER['PHP_SELF'])=== false && ig('step'))) OR (ig('step') && g('step') == 'license' || g('step') == 'action_file') ):}}
|
||||
<form action="?step={{echo g('step')}}&change_lang=1" method="post">
|
||||
<select name="lang" id="lang" class="Lang" onchange="submit()">
|
||||
{{if($dh = opendir(PATH . 'lang')):}}
|
||||
{{while (($file = readdir($dh)) !== false): if(strpos($file, '.') === false && $file != '..' && $file != '.'):}}
|
||||
{{$current_icon=file_exists('style/images/'.$file.'_16.png') ? 'style/images/'.$file.'_16.png' : (file_exists('../lang/'.$file.'/icon_16.png') ? '../lang/'.$file.'/icon_16.png' : 'style/images/zz_flag.png');}}
|
||||
<option value="{{echo $file}}" title="{{echo $current_icon}}" {{echo ig('lang') && $file==g('lang') || (!ig('lang') && $file=='en') ?'selected="selected"':''}}>{{echo $file}}</option>
|
||||
{{endif; endwhile;closedir($dh);endif;}}
|
||||
</select>
|
||||
<input type="hidden" name="step_is" value="{{echo g('step')}}" />
|
||||
</form>
|
||||
{{endif;}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="divline"></div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
<div class="wrapper">
|
||||
<div class="clr"></div><br />
|
||||
<div id="Header">
|
||||
<div class="header">
|
||||
<ul class="headerIcon">
|
||||
<li><a onclick="window.open(this.href,'_blank');return false;" href="http://www.kleeja.com"><img src="style/images/kleeja.png" title="kleeja.com" alt="" /></a></li>
|
||||
<li><a href="./"><img title="Start over" src="style/images/install_h.png" alt="" /></a></li>
|
||||
</ul>
|
||||
<div class="BoxLang">
|
||||
{{if(((ig('step') && g('step') != 'language') && (strpos('index.php', $_SERVER['PHP_SELF'])=== false && ig('step'))) OR (ig('step') && g('step') == 'license' || g('step') == 'action_file') ):}}
|
||||
<form action="?step={{echo g('step')}}&change_lang=1" method="post">
|
||||
<select name="lang" id="lang" class="Lang" onchange="submit()">
|
||||
{{if($dh = opendir(PATH . 'lang')):}}
|
||||
{{while (($file = readdir($dh)) !== false): if(strpos($file, '.') === false && $file != '..' && $file != '.'):}}
|
||||
{{$current_icon=file_exists('style/images/'.$file.'_16.png') ? 'style/images/'.$file.'_16.png' : (file_exists('../lang/'.$file.'/icon_16.png') ? '../lang/'.$file.'/icon_16.png' : 'style/images/zz_flag.png');}}
|
||||
<option value="{{echo $file}}" title="{{echo $current_icon}}" {{echo ig('lang') && $file==g('lang') || (!ig('lang') && $file=='en') ?'selected="selected"':''}}>{{echo $file}}</option>
|
||||
{{endif; endwhile;closedir($dh);endif;}}
|
||||
</select>
|
||||
<input type="hidden" name="step_is" value="{{echo g('step')}}" />
|
||||
</form>
|
||||
{{endif;}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="divline"></div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
<div class="wrapper">
|
||||
<div class="clr"></div><br />
|
||||
|
||||
@@ -1 +1 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /><title>Powered by Kleeja</title><style type="text/css">* {font-size: 100%;margin:0;padding: 0; color:#CECFCE;}body { font-family: Tahoma ,Arial, sans-serif;font-size: 100%;color: #69788E; margin: 10px 30px;background: #F7F7F7;}a:link, a:visited {text-decoration: none;color:#CECFCE;}a:active, a:hover {text-decoration: underline;color: #111;}h1 {font-family: "Trebuchet MS", Helvetica, sans-serif; font-size: 1.70em;font-weight: normal;color: #333333;margin-top: 0; margin-bottom: 10px;}.content_box {border: 1px dashed #CECFCE;background: #FFFFFF;padding: 10px;margin-right: auto;margin-left: auto;}</style> </head> <body title="كليجا"><br /><div class="content_box"><p><a target="_blank" href="http://www.kleeja.com" title="kleeja"><img border="0" src="http://kleeja.com/index.png"></a></p><br /><h1><span style="font-size:250%;color:#D80000;">403 - Access forbidden!</span></h1></div><br /><div class="content_box"><span style="font-size: 140%">Powered by Kleeja >>> the best uploader ...</span > >> <a target="_blank" href="http://www.kleeja.com/bugs/ar/">Bugs</a> | <a target="_blank" href="http://www.kleeja.com/plugins/">Plugins</a> | <a target="_blank" href="http://www.kleeja.com/styles/">Styles</a> | </div></body></html>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /><title>Powered by Kleeja</title><style type="text/css">* {font-size: 100%;margin:0;padding: 0; color:#CECFCE;}body { font-family: Tahoma ,Arial, sans-serif;font-size: 100%;color: #69788E; margin: 10px 30px;background: #F7F7F7;}a:link, a:visited {text-decoration: none;color:#CECFCE;}a:active, a:hover {text-decoration: underline;color: #111;}h1 {font-family: "Trebuchet MS", Helvetica, sans-serif; font-size: 1.70em;font-weight: normal;color: #333333;margin-top: 0; margin-bottom: 10px;}.content_box {border: 1px dashed #CECFCE;background: #FFFFFF;padding: 10px;margin-right: auto;margin-left: auto;}</style> </head> <body title="كليجا"><br /><div class="content_box"><p><a target="_blank" href="http://www.kleeja.com" title="kleeja"><img border="0" src="http://kleeja.com/index.png"></a></p><br /><h1><span style="font-size:250%;color:#D80000;">403 - Access forbidden!</span></h1></div><br /><div class="content_box"><span style="font-size: 140%">Powered by Kleeja >>> the best uploader ...</span > >> <a target="_blank" href="http://www.kleeja.com/bugs/ar/">Bugs</a> | <a target="_blank" href="http://www.kleeja.com/plugins/">Plugins</a> | <a target="_blank" href="http://www.kleeja.com/styles/">Styles</a> | </div></body></html>
|
||||
@@ -2,24 +2,24 @@
|
||||
|
||||
|
||||
<div class="language_choose">
|
||||
<ul id="LangChoose">
|
||||
{{if($dh = @opendir(PATH . 'lang')): while (($file = readdir($dh)) !== false): if(strpos($file, '.') === false && $file != '..' && $file != '.'):}}
|
||||
<li>
|
||||
<a href="{{echo './?step=language&ln=' . $file}}">
|
||||
{{if(file_exists('style/images/'.$file.'.png')):}}
|
||||
<img src="style/images/{{echo $file}}.png" alt="{{echo $file}}" />
|
||||
{{elseif(file_exists('../lang/'.$file.'/icon.png')):}}
|
||||
<img src="../lang/{{echo $file}}/icon.png" alt="{{echo $file}}" />
|
||||
{{else:}}
|
||||
<p style="width: 100px; height: 65px; border: 1px solid #ccc;text-align: center; vertical-align: middle;background-color: #2aabd2;font-size: 20px">
|
||||
{{echo $file}}
|
||||
</p>
|
||||
{{endif;}}
|
||||
</a>
|
||||
</li>
|
||||
{{endif;endwhile;@closedir($dh);endif;}}
|
||||
</ul>
|
||||
<ul id="LangChoose">
|
||||
{{if($dh = @opendir(PATH . 'lang')): while (($file = readdir($dh)) !== false): if(strpos($file, '.') === false && $file != '..' && $file != '.'):}}
|
||||
<li>
|
||||
<a href="{{echo './?step=language&ln=' . $file}}">
|
||||
{{if(file_exists('style/images/'.$file.'.png')):}}
|
||||
<img src="style/images/{{echo $file}}.png" alt="{{echo $file}}" />
|
||||
{{elseif(file_exists('../lang/'.$file.'/icon.png')):}}
|
||||
<img src="../lang/{{echo $file}}/icon.png" alt="{{echo $file}}" />
|
||||
{{else:}}
|
||||
<p style="width: 100px; height: 65px; border: 1px solid #ccc;text-align: center; vertical-align: middle;background-color: #2aabd2;font-size: 20px">
|
||||
{{echo $file}}
|
||||
</p>
|
||||
{{endif;}}
|
||||
</a>
|
||||
</li>
|
||||
{{endif;endwhile;@closedir($dh);endif;}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="clr"></div>
|
||||
<div class="clr"></div>
|
||||
</div></div><div class="BoxBottomImg"></div></div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner"><div class="clr"></div>
|
||||
<form method="post" action="{{echo './install.php?step=f&' . getlang(1)}}">
|
||||
<div class="licens3" name="license">
|
||||
<form method="post" action="{{echo './install.php?step=f&' . getlang(1)}}">
|
||||
<div class="licens3" name="license">
|
||||
Kleeja, a PHP uploader program<br />
|
||||
Copyright (C) 2007-<?php echo date('Y');?> <Kleeja Team><br />
|
||||
<br />
|
||||
@@ -17,11 +17,11 @@ Library General Public License for more details.<br />
|
||||
You should have received a copy of the GNU Library General Public<br />
|
||||
License along with this library; if not, write to the Free<br />
|
||||
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.<br />
|
||||
</div>
|
||||
<div class="hr"></div>
|
||||
<span style="color:green;" dir="{{echo $lang['DIR']}}">{{echo $lang['INST_AGR_LICENSE']}}</span>
|
||||
<br />
|
||||
<button onclick="window.location.href='./index.php?step=choose&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" id="agres" type="submit" class="btn"><span>{{echo $lang['YES'] . ', '.$lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="hr"></div>
|
||||
<span style="color:green;" dir="{{echo $lang['DIR']}}">{{echo $lang['INST_AGR_LICENSE']}}</span>
|
||||
<br />
|
||||
<button onclick="window.location.href='./index.php?step=choose&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" id="agres" type="submit" class="btn"><span>{{echo $lang['YES'] . ', '.$lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
<div class="clr"></div></div></div><div class="BoxBottomImg"></div></div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner"><div class="clr"></div>
|
||||
<form method="post" action="{{echo './?step=choose&' . getlang(1)}}">
|
||||
<h2><img src="style/images/stop.png" class="img" alt="" /> {{echo $lang['IS_IT_OFFICIAL']}} </h2>
|
||||
<p class="justify">{{echo $lang['IS_IT_OFFICIAL_DESC']}}</p>
|
||||
<form method="post" action="{{echo './?step=choose&' . getlang(1)}}">
|
||||
<h2><img src="style/images/stop.png" class="img" alt="" /> {{echo $lang['IS_IT_OFFICIAL']}} </h2>
|
||||
<p class="justify">{{echo $lang['IS_IT_OFFICIAL_DESC']}}</p>
|
||||
|
||||
|
||||
<div class="hr"></div>
|
||||
<button onclick="window.location.href='./?step=what_is_kleeja&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="next" id="next" type="submit" class="btn"><span>{{echo $lang['YES'] . ', '. $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
<div class="hr"></div>
|
||||
<button onclick="window.location.href='./?step=what_is_kleeja&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="next" id="next" type="submit" class="btn"><span>{{echo $lang['YES'] . ', '. $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
<div class="clr"></div></div></div><div class="BoxBottomImg"></div></div>
|
||||
|
||||
@@ -1,42 +1,42 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner">
|
||||
<div class="clr"></div>
|
||||
{{if (!$GLOBALS['err']):}}
|
||||
<div id="Scro11">
|
||||
<ul class="inside">
|
||||
{{foreach($GLOBALS['sqls_done'] as $sql):}}
|
||||
<li><img src="style/images/ok.png" class="img" alt=" " /> {{echo $sql}}</li>
|
||||
{{endforeach;}}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="hr"></div>
|
||||
<form method="post" action="{{echo './install.php?step=end&' . getlang(1)}}">
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
{{else:}}
|
||||
<div id="Scro11">
|
||||
<ul class="inside insideError">
|
||||
{{foreach($GLOBALS['sql_err'] as $sql):}}
|
||||
<li style="color:red"><img src="style/images/error.png" class="img" alt=" " /> {{echo $sql}}</li>
|
||||
{{endforeach;}}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="hr"></div>
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/info2.png" class="img" alt=" " />{{echo $lang['INST_FINISH_ERRSQL']}}</p>
|
||||
<textarea rows="4" style="width:98%;direction:ltr">{{echo $GLOBALS['errors']}}</textarea>
|
||||
</div>
|
||||
{{endif;}}
|
||||
{{if (!$GLOBALS['err']):}}
|
||||
<div id="Scro11">
|
||||
<ul class="inside">
|
||||
{{foreach($GLOBALS['sqls_done'] as $sql):}}
|
||||
<li><img src="style/images/ok.png" class="img" alt=" " /> {{echo $sql}}</li>
|
||||
{{endforeach;}}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="hr"></div>
|
||||
<form method="post" action="{{echo './install.php?step=end&' . getlang(1)}}">
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
{{else:}}
|
||||
<div id="Scro11">
|
||||
<ul class="inside insideError">
|
||||
{{foreach($GLOBALS['sql_err'] as $sql):}}
|
||||
<li style="color:red"><img src="style/images/error.png" class="img" alt=" " /> {{echo $sql}}</li>
|
||||
{{endforeach;}}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="hr"></div>
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/info2.png" class="img" alt=" " />{{echo $lang['INST_FINISH_ERRSQL']}}</p>
|
||||
<textarea rows="4" style="width:98%;direction:ltr">{{echo $GLOBALS['errors']}}</textarea>
|
||||
</div>
|
||||
{{endif;}}
|
||||
<div class="clr"></div></div></div><div class="BoxBottomImg"></div></div>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
jQuery(document).ready(function($){
|
||||
// fixed error in the browser Explore
|
||||
$('#Scro11').animate({scrollTop:$('#Scro11 > .inside').outerHeight() });
|
||||
var elem = $('#Scro11');
|
||||
var inside = $('#Scro11 > .inside');
|
||||
if ( Math.abs(inside.offset().top) + elem.height() + elem.offset().top >= inside.outerHeight() ) {
|
||||
// We're at the bottom!
|
||||
}
|
||||
var elem = $('#Scro11');
|
||||
var inside = $('#Scro11 > .inside');
|
||||
if ( Math.abs(inside.offset().top) + elem.height() + elem.offset().top >= inside.outerHeight() ) {
|
||||
// We're at the bottom!
|
||||
}
|
||||
});
|
||||
//-->
|
||||
</script>
|
||||
@@ -1,37 +1,37 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner"><div class="clr"></div>
|
||||
<div id="Scro11">
|
||||
<ul class="inside">
|
||||
{{foreach($GLOBALS['update_msgs_arr'] as $m):}}
|
||||
<li><img src="style/images/ok.png" class="img" alt="ok" /> {{echo $m}}</li>
|
||||
{{endforeach;}}
|
||||
{{if(is_array($GLOBALS['NOTES_CUP'])):foreach($GLOBALS['NOTES_CUP'] as $i=>$m):}}
|
||||
<li><img src="style/images/ok.png" class="img" alt="ok" />{{echo $i;}} - {{echo $m}} </li>
|
||||
{{endforeach;endif;}}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
<div id="Scro11">
|
||||
<ul class="inside">
|
||||
{{foreach($GLOBALS['update_msgs_arr'] as $m):}}
|
||||
<li><img src="style/images/ok.png" class="img" alt="ok" /> {{echo $m}}</li>
|
||||
{{endforeach;}}
|
||||
{{if(is_array($GLOBALS['NOTES_CUP'])):foreach($GLOBALS['NOTES_CUP'] as $i=>$m):}}
|
||||
<li><img src="style/images/ok.png" class="img" alt="ok" />{{echo $i;}} - {{echo $m}} </li>
|
||||
{{endforeach;endif;}}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
{{if($GLOBALS['complete_upate']):}}
|
||||
<div class="hr"></div>
|
||||
<div class="notice">
|
||||
<h6><img src="style/images/info2.png" class="img" alt="" /> {{echo $lang['INST_NOTES_UPDATE']}} :</h6>
|
||||
<p><img src="style/images/inst_notes.png" class="img" alt="" />{{echo $lang['INST_NOTE_RC6_TO_1.0.0']}}</p>
|
||||
</div>
|
||||
{{if(is_array($GLOBALS['NOTES_CUP'])):foreach($GLOBALS['NOTES_CUP'] as $i=>$m):}}
|
||||
<div id="Scro11">
|
||||
<ul class="inside">
|
||||
<li><img src="style/images/ok.png" class="img" alt="ok" />{{echo $i;}} - {{echo $m}} </li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="hr"></div>
|
||||
<div class="notice">
|
||||
<h6><img src="style/images/info2.png" class="img" alt="" /> {{echo $lang['INST_NOTES_UPDATE']}} :</h6>
|
||||
<p><img src="style/images/inst_notes.png" class="img" alt="" />{{echo $lang['INST_NOTE_RC6_TO_1.0.0']}}</p>
|
||||
</div>
|
||||
{{if(is_array($GLOBALS['NOTES_CUP'])):foreach($GLOBALS['NOTES_CUP'] as $i=>$m):}}
|
||||
<div id="Scro11">
|
||||
<ul class="inside">
|
||||
<li><img src="style/images/ok.png" class="img" alt="ok" />{{echo $i;}} - {{echo $m}} </li>
|
||||
</ul>
|
||||
</div>
|
||||
{{endforeach;endif;}}
|
||||
{{else:}}
|
||||
<div class="notice TN">
|
||||
<p>{{echo $lang['INST_UPDATE_IS_FINISH']}}</p>
|
||||
<p style="background:#EEE3C7;color:black !important">{{echo $lang['INST_KLEEJADEVELOPERS']}}</p>
|
||||
</div>
|
||||
<div class="hr"></div>
|
||||
<button type="button" class="btn" onclick="window.location.href='../index.php';"><span>{{echo $lang['INDEX']}}</span></button>
|
||||
<button type="button" class="btn" onclick="window.location.href='../admin/';"><span>{{echo $lang['ADMINCP']}}</span></button>
|
||||
<button type="button" class="btn" onclick="window.open(this.value,'_blank');return false;" value="http://www.kleeja.com"><span>kleeja.com</span></button>
|
||||
<div class="notice TN">
|
||||
<p>{{echo $lang['INST_UPDATE_IS_FINISH']}}</p>
|
||||
<p style="background:#EEE3C7;color:black !important">{{echo $lang['INST_KLEEJADEVELOPERS']}}</p>
|
||||
</div>
|
||||
<div class="hr"></div>
|
||||
<button type="button" class="btn" onclick="window.location.href='../index.php';"><span>{{echo $lang['INDEX']}}</span></button>
|
||||
<button type="button" class="btn" onclick="window.location.href='../admin/';"><span>{{echo $lang['ADMINCP']}}</span></button>
|
||||
<button type="button" class="btn" onclick="window.open(this.value,'_blank');return false;" value="http://www.kleeja.com"><span>kleeja.com</span></button>
|
||||
{{endif;}}
|
||||
<div class="clr"></div></div></div><div class="BoxBottomImg"></div></div>
|
||||
<script type="text/javascript">
|
||||
@@ -39,11 +39,11 @@
|
||||
jQuery(document).ready(function($){
|
||||
// fixed error in the browser Explore
|
||||
$('#Scro11').animate({scrollTop:$('#Scro11 > .inside').outerHeight() });
|
||||
var elem = $('#Scro11');
|
||||
var inside = $('#Scro11 > .inside');
|
||||
if ( Math.abs(inside.offset().top) + elem.height() + elem.offset().top >= inside.outerHeight() ) {
|
||||
// We're at the bottom!
|
||||
}
|
||||
var elem = $('#Scro11');
|
||||
var inside = $('#Scro11 > .inside');
|
||||
if ( Math.abs(inside.offset().top) + elem.height() + elem.offset().top >= inside.outerHeight() ) {
|
||||
// We're at the bottom!
|
||||
}
|
||||
});
|
||||
//-->
|
||||
</script>
|
||||
@@ -1,28 +1,28 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner">
|
||||
<div class="clr"></div>
|
||||
|
||||
<img src="style/images/update.png" alt="update" /><br />
|
||||
{{if (sizeof($GLOBALS['upfiles'])):}}
|
||||
<p style="text-align:center;">{{echo $lang['INST_CHOOSE_UPDATE_FILE']}}</p>
|
||||
<form action="{{echo './update.php?step=action_file&' . getlang(1)}}" method="post">
|
||||
<select class="SelectVersion" name="action_file_do" dir="ltr">
|
||||
{{foreach($GLOBALS['upfiles'] as $k=>$v):}}
|
||||
<option value="{{echo $v}}">{{echo $v}}</option>
|
||||
{{endforeach}}
|
||||
</select>
|
||||
<div class="hr"></div>
|
||||
<button onclick="window.location.href='./index.php?step=choose&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="submitlfile" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
{{else:}}
|
||||
<div align="center">
|
||||
<p style="text-align:center;color:green;font-size:20px;">
|
||||
{{echo $lang['INST_UPDATE_CUR_VER_IS_UP']}}
|
||||
<br />
|
||||
<div style="color:red; direction: ltr">[ {{echo array_search($GLOBALS['config']['db_version'], $GLOBALS['order_update_files'])}} :: {{echo $GLOBALS['config']['db_version']}} ]</div>
|
||||
</p>
|
||||
</div>
|
||||
{{endif;}}
|
||||
|
||||
<div class="clr"></div>
|
||||
<div class="clr"></div>
|
||||
|
||||
<img src="style/images/update.png" alt="update" /><br />
|
||||
{{if (sizeof($GLOBALS['upfiles'])):}}
|
||||
<p style="text-align:center;">{{echo $lang['INST_CHOOSE_UPDATE_FILE']}}</p>
|
||||
<form action="{{echo './update.php?step=action_file&' . getlang(1)}}" method="post">
|
||||
<select class="SelectVersion" name="action_file_do" dir="ltr">
|
||||
{{foreach($GLOBALS['upfiles'] as $k=>$v):}}
|
||||
<option value="{{echo $v}}">{{echo $v}}</option>
|
||||
{{endforeach}}
|
||||
</select>
|
||||
<div class="hr"></div>
|
||||
<button onclick="window.location.href='./index.php?step=choose&{{echo getlang(1)}}';return false;" name="previous" type="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="submitlfile" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
{{else:}}
|
||||
<div align="center">
|
||||
<p style="text-align:center;color:green;font-size:20px;">
|
||||
{{echo $lang['INST_UPDATE_CUR_VER_IS_UP']}}
|
||||
<br />
|
||||
<div style="color:red; direction: ltr">[ {{echo array_search($GLOBALS['config']['db_version'], $GLOBALS['order_update_files'])}} :: {{echo $GLOBALS['config']['db_version']}} ]</div>
|
||||
</p>
|
||||
</div>
|
||||
{{endif;}}
|
||||
|
||||
<div class="clr"></div>
|
||||
</div></div><div class="BoxBottomImg"></div></div>
|
||||
@@ -1,16 +1,16 @@
|
||||
<div class="BoxInner"><div class="BoxTopImg"></div><div class="BoxBody"><div class="inner">
|
||||
<div class="clr"></div>
|
||||
|
||||
<h2>{{echo $lang['INST_WHAT_IS_KLEEJA_T']}}</h2>
|
||||
<p class="justify">{{echo $lang['INST_WHAT_IS_KLEEJA']}}</p>
|
||||
<div class="clr"></div>
|
||||
<h2>{{echo $lang['INST_SPECIAL_KLEEJA']}}</h2>
|
||||
<p>{{echo $lang['INST_WHAT_IS_KLEEJA_ONE']}}</p>
|
||||
<div class="hr"></div>
|
||||
<form method="post" action="{{echo './?step=official&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./index.php?step=language&{{echo getlang(1)}}';return false;" name="previous" type="submit" id="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
|
||||
<h2>{{echo $lang['INST_WHAT_IS_KLEEJA_T']}}</h2>
|
||||
<p class="justify">{{echo $lang['INST_WHAT_IS_KLEEJA']}}</p>
|
||||
<div class="clr"></div>
|
||||
<h2>{{echo $lang['INST_SPECIAL_KLEEJA']}}</h2>
|
||||
<p>{{echo $lang['INST_WHAT_IS_KLEEJA_ONE']}}</p>
|
||||
<div class="hr"></div>
|
||||
<form method="post" action="{{echo './?step=official&' . getlang(1)}}">
|
||||
<button onclick="window.location.href='./index.php?step=language&{{echo getlang(1)}}';return false;" name="previous" type="submit" id="submit" class="btn"><span>« {{echo $lang['INST_PREVIOUS']}}</span></button>
|
||||
<button name="agres" type="submit" class="btn"><span>{{echo $lang['INST_NEXT']}} »</span></button>
|
||||
</form>
|
||||
|
||||
<div class="clr"></div>
|
||||
<div class="clr"></div>
|
||||
</div></div><div class="BoxBottomImg"></div></div>
|
||||
Reference in New Issue
Block a user