mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
hello github! 😘
This commit is contained in:
147
install/includes/default_values.php
Executable file
147
install/includes/default_values.php
Executable file
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package install
|
||||
* @copyright (c) 2007 Kleeja.com
|
||||
* @license ./docs/license.txt
|
||||
*
|
||||
*/
|
||||
|
||||
// not for directly open
|
||||
if (!defined('IN_COMMON'))
|
||||
{
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Configuration values
|
||||
//
|
||||
|
||||
$config_values = array();
|
||||
|
||||
// do it like this :
|
||||
//$config_values = array('name', 'value', 'option', 'display_order', 'type', 'plg_id', 'dynamic');
|
||||
|
||||
// General settings
|
||||
$config_values[] = array('sitename', $config_sitename, '<input type=\"text\" id=\"sitename\" name=\"sitename\" value=\"{con.sitename}\" size=\"50\" />', 1, 'general', 0, 0);
|
||||
$config_values[] = array('siteurl', $config_siteurl, '<input type=\"text\" id=\"siteurl\" name=\"siteurl\" value=\"{con.siteurl}\" size=\"50\" style=\"direction:ltr\" />', 2, 'general', 0, 0);
|
||||
$config_values[] = array('sitemail', $config_sitemail, '<input type=\"text\" id=\"sitemail\" name=\"sitemail\" value=\"{con.sitemail}\" size=\"25\" style=\"direction:ltr\" />', 3, 'general', 0, 0);
|
||||
$config_values[] = array('sitemail2', $config_sitemail, '<input type=\"text\" id=\"sitemail2\" name=\"sitemail2\" value=\"{con.sitemail2}\" size=\"25\" style=\"direction:ltr\" />', '4', 'general', 0, 0);
|
||||
$config_values[] = array('del_f_day', '0', '<input type=\"text\" id=\"del_f_day\" name=\"del_f_day\" value=\"{con.del_f_day}\" size=\"6\" style=\"text-align:center\" />{lang.DELF_CAUTION}', 5, 'advanced', 0, 0);
|
||||
$config_values[] = array('language', getlang(), '<select name=\"language\" id=\"language\">\r\n {lngfiles}\r\n </select>', 6, 'groups', 0, 0);
|
||||
$config_values[] = array('time_zone', $config_time_zone, '<select name=\"time_zone\" id=\"time_zone\">\r\n {time_zones}\r\n </select>', 10, 'general', 0, 0);
|
||||
$config_values[] = array('siteclose', '0', '<label>{lang.YES}<input type=\"radio\" id=\"siteclose\" name=\"siteclose\" value=\"1\" <IF NAME=\"con.siteclose==1\"> checked=\"checked\"</IF> /></label><label>{lang.NO}<input type=\"radio\" id=\"siteclose\" name=\"siteclose\" value=\"0\" <IF NAME=\"con.siteclose==0\"> checked=\"checked\"</IF> /></label>', 7, 'general', 0, 0);
|
||||
$config_values[] = array('closemsg', 'sits is closed now', '<input type=\"text\" id=\"closemsg\" name=\"closemsg\" value=\"{con.closemsg}\" size=\"68\" />', 8, 'general', 0, 0);
|
||||
$config_values[] = array('user_system', '1', '<select id=\"user_system\" name=\"user_system\">{authtypes}</select>', 9, 'advanced', 0, 0);
|
||||
$config_values[] = array('register', '1', '<label>{lang.YES}<input type=\"radio\" id=\"register\" name=\"register\" value=\"1\" <IF NAME=\"con.register==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"register\" name=\"register\" value=\"0\" <IF NAME=\"con.register==0\"> checked=\"checked\"</IF> /></label>', 10, 'general', 0, 0);
|
||||
$config_values[] = array('enable_userfile', '1', '<label>{lang.YES}<input type=\"radio\" id=\"enable_userfile\" name=\"enable_userfile\" value=\"1\" <IF NAME=\"con.enable_userfile==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"enable_userfile\" name=\"enable_userfile\" value=\"0\" <IF NAME=\"con.enable_userfile==0\"> checked=\"checked\"</IF> /></label>', 11, 'groups', 0, 0);
|
||||
$config_values[] = array('mod_writer', '0', '<label>{lang.YES}<input type=\"radio\" id=\"mod_writer\" name=\"mod_writer\" value=\"1\" <IF NAME=\"con.mod_writer==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"mod_writer\" name=\"mod_writer\" value=\"0\" <IF NAME=\"con.mod_writer==0\"> checked=\"checked\"</IF> /></label>\r\n [ {lang.MOD_WRITER_EX} ]', 12, 'advanced', 0, 0);
|
||||
|
||||
// Cookies settings
|
||||
$cookie_data = get_cookies_settings();
|
||||
$config_values[] = array('cookie_name', $cookie_data['cookie_name'], '<input type=\"text\" id=\"cookie_name\" name=\"cookie_name\" value=\"{con.cookie_name}\" size=\"20\" style=\"direction:ltr\" />', '13', 'advanced', 0, 0);
|
||||
$config_values[] = array('cookie_path', $cookie_data['cookie_path'], '<input type=\"text\" id=\"cookie_path\" name=\"cookie_path\" value=\"{con.cookie_path}\" size=\"20\" style=\"direction:ltr\" />', '14', 'advanced', 0, 0);
|
||||
$config_values[] = array('cookie_domain', $cookie_data['cookie_domain'], '<input type=\"text\" id=\"cookie_domain\" name=\"cookie_domain\" value=\"{con.cookie_domain}\" size=\"20\" style=\"direction:ltr\" />', '15', 'advanced', 0, 0);
|
||||
$config_values[] = array('cookie_secure', ($cookie_data['cookie_secure'] ? '1' : '0'), '<label>{lang.YES}<input type=\"radio\" id=\"cookie_secure\" name=\"cookie_secure\" value=\"1\" <IF NAME=\"con.cookie_secure==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"cookie_secure\" name=\"cookie_secure\" value=\"0\" <IF NAME=\"con.cookie_secure==0\"> checked=\"checked\"</IF> /></label>', '16', 'advanced', 0, 0);
|
||||
|
||||
// Upload settings
|
||||
$config_values[] = array('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[] = array('foldername', 'uploads', '<input type=\"text\" id=\"foldername\" name=\"foldername\" value=\"{con.foldername}\" size=\"20\" style=\"direction:ltr\" />', 18, 'upload', 0, 0);
|
||||
$config_values[] = array('prefixname', '', '<input type=\"text\" id=\"prefixname\" name=\"prefixname\" value=\"{con.prefixname}\" size=\"20\" style=\"direction:ltr\" />', 19, 'upload', 0, 0);
|
||||
$config_values[] = array('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[] = array('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[] = array('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[] = array('filesnum', '3', '<input type=\"text\" id=\"filesnum\" name=\"filesnum\" value=\"{con.filesnum}\" size=\"6\" style=\"text-align:center\" />', 22, 'groups', 0, 0);
|
||||
$config_values[] = array('sec_down', '5', '<input type=\"text\" id=\"sec_down\" name=\"sec_down\" value=\"{con.sec_down}\" size=\"6\" style=\"text-align:center\" />', 23, 'groups', 0, 0);
|
||||
$config_values[] = array('del_url_file', '1', '<label>{lang.YES}<input type=\"radio\" id=\"del_url_file\" name=\"del_url_file\" value=\"1\" <IF NAME=\"con.del_url_file==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"del_url_file\" name=\"del_url_file\" value=\"0\" <IF NAME=\"con.del_url_file==0\"> checked=\"checked\"</IF> /></label>', 24, 'upload', 0, 0);
|
||||
$config_values[] = array('safe_code', '0', '<label>{lang.YES}<input type=\"radio\" id=\"safe_code\" name=\"safe_code\" value=\"1\" <IF NAME=\"con.safe_code==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"safe_code\" name=\"safe_code\" value=\"0\" <IF NAME=\"con.safe_code==0\"> checked=\"checked\"</IF> /></label>', 25, 'upload', 0, 0);
|
||||
$config_values[] = array('www_url', '0', '<label>{lang.YES}<input type=\"radio\" id=\"www_url\" name=\"www_url\" value=\"1\" <IF NAME=\"con.www_url==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"www_url\" name=\"www_url\" value=\"0\" <IF NAME=\"con.www_url==0\"> checked=\"checked\"</IF> /></label>', 26, 'upload', 0, 0);
|
||||
$config_values[] = array('thumbs_imgs', '1', '<input type=\"text\" id=\"thmb_dim_w\" name=\"thmb_dim_w\" value=\"{thmb_dim_w}\" size=\"2\" style=\"text-align:center\" /> * <input type=\"text\" id=\"thmb_dim_h\" name=\"thmb_dim_h\" value=\"{thmb_dim_h}\" size=\"2\" style=\"text-align:center\" /> ', 27, 'upload', 0, 0);
|
||||
$config_values[] = array('write_imgs', '0' , '<label>{lang.YES}<input type=\"radio\" id=\"write_imgs\" name=\"write_imgs\" value=\"1\" <IF NAME=\"con.write_imgs==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"write_imgs\" name=\"write_imgs\" value=\"0\" <IF NAME=\"con.write_imgs==0\"> checked=\"checked\"</IF> /></label>\r\n <br /><img src=\"{STAMP_IMG_URL}\" alt=\"Seal photo\" style=\"margin-top:4px;border:1px groove #FF865E;\" />\r\n ', 28, 'groups', 0, 0);
|
||||
$config_values[] = array('livexts', 'swf', '<input type=\"text\" id=\"livexts\" name=\"livexts\" value=\"{con.livexts}\" size=\"62\" style=\"direction:ltr\" />{lang.COMMA_X}', '29', 'upload', 0, 0);
|
||||
$config_values[] = array('usersectoupload', '10', '<input type=\"text\" id=\"usersectoupload\" name=\"usersectoupload\" value=\"{con.usersectoupload}\" size=\"10\" />', 44, 'groups', 0, 0);
|
||||
$config_values[] = array('filesnum_show', '1', '<label>{lang.YES}<input type=\"radio\" id=\"filesnum_show\" name=\"filesnum_show\" value=\"1\" <IF NAME=\"con.filesnum_show==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"filesnum_show\" name=\"filesnum_show\" value=\"0\" <IF NAME=\"con.filesnum_show==0\"> checked=\"checked\"</IF> /></label>', 22, 'upload', 0, 0);
|
||||
|
||||
//KLIVE
|
||||
//$config_values[] = array('imagefolder', 'uploads', '<input type=\"text\" id=\"imagefolder\" name=\"imagefolder\" value=\"{con.imagefolder}\" size=\"40\">', '10', 'KLIVE', '0', '0');
|
||||
//$config_values[] = array('imagefolderexts', '', '<input type=\"text\" id=\"imagefolderexts\" name=\"imagefolderexts\" value=\"{con.imagefolderexts}\" size=\"80\">', '20', 'KLIVE', '0', '0');
|
||||
//$config_values[] = array('imagefoldere', '1', '<label>{lang.YES}<input type=\"radio\" id=\"imagefoldere\" name=\"imagefoldere\" value=\"1\" <IF NAME=\"con.imagefoldere\"> checked=\"checked\"</IF>></label><label>{lang.NO}<input type=\"radio\" id=\"imagefoldere\" name=\"imagefoldere\" value=\"0\" <IF NAME=\"con.imagefoldere\"> <ELSE> checked=\"checked\"</IF>></label>', '30', 'KLIVE', '0', '0');
|
||||
|
||||
// Interface settings
|
||||
$config_values[] = array('welcome_msg', $lang['INST_MSGINS'], '<input type=\"text\" id=\"welcome_msg\" name=\"welcome_msg\" value=\"{con.welcome_msg}\" size=\"68\" />', 30, 'interface', 0, 0);
|
||||
$config_values[] = array('allow_stat_pg', '1', '<label>{lang.YES}<input type=\"radio\" id=\"allow_stat_pg\" name=\"allow_stat_pg\" value=\"1\" <IF NAME=\"con.allow_stat_pg==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"allow_stat_pg\" name=\"allow_stat_pg\" value=\"0\" <IF NAME=\"con.allow_stat_pg==0\"> checked=\"checked\"</IF> /></label>', 31, 'interface', 0, 0);
|
||||
$config_values[] = array('allow_online', '0', '<label>{lang.YES}<input type=\"radio\" id=\"allow_online\" name=\"allow_online\" value=\"1\" <IF NAME=\"con.allow_online==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"allow_online\" name=\"allow_online\" value=\"0\" <IF NAME=\"con.allow_online==0\"> checked=\"checked\"</IF> /></label>', 32, 'interface', 0, 0);
|
||||
$config_values[] = array('statfooter', '0' , '<label>{lang.YES}<input type=\"radio\" id=\"statfooter\" name=\"statfooter\" value=\"1\" <IF NAME=\"con.statfooter==1\"> checked=\"checked=\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"statfooter\" name=\"statfooter\" value=\"0\" <IF NAME=\"con.statfooter==0\"> checked=\"checked\"</IF> /></label>', 33, 'interface', 0, 0);
|
||||
//$config_values[] = array('gzip', '0', '<label>{lang.YES}<input type=\"radio\" id=\"gzip\" name=\"gzip\" value=\"1\" <IF NAME=\"con.gzip==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"gzip\" name=\"gzip\" value=\"0\" <IF NAME=\"con.gzip==0\"> checked=\"checked\"</IF> /></label>', 34, 'interface', 0, 0);
|
||||
$config_values[] = array('googleanalytics', '', '<input type=\"text\" id=\"googleanalytics\" name=\"googleanalytics\" value=\"{con.googleanalytics}\" size=\"10\" />', 35, 'interface', 0, 0);
|
||||
$config_values[] = array('enable_captcha', '1', '<label>{lang.YES}<input type=\"radio\" id=\"enable_captcha\" name=\"enable_captcha\" value=\"1\" <IF NAME=\"con.enable_captcha==1\"> checked=\"checked\"</IF> /></label>\r\n <label>{lang.NO}<input type=\"radio\" id=\"enable_captcha\" name=\"enable_captcha\" value=\"0\" <IF NAME=\"con.enable_captcha==0\"> checked=\"checked\"</IF> /></label>', 36, 'interface', 0, 0);
|
||||
|
||||
// System settings [ invisible configs ]
|
||||
$config_values[] = array('thmb_dims', '100*100', '', 0, 0, 0);
|
||||
$config_values[] = array('style', 'default', '', 0, '0', 0, 0);
|
||||
$config_values[] = array('new_version', '', '', 0, 0, 0);
|
||||
$config_values[] = array('db_version', LAST_DB_VERSION, '', 0, 0, 0);
|
||||
$config_values[] = array('last_online_time_update', time(), '', 0, 0, 1);
|
||||
$config_values[] = array('klj_clean_files_from', '0', '', 0, 0, 1);
|
||||
$config_values[] = array('style_depend_on', '', '', 0, 0, 0);
|
||||
$config_values[] = array('most_user_online_ever', '', '', 0, 0, 1);
|
||||
$config_values[] = array('expand_menu', '0', '', 0, 0, 1);
|
||||
$config_values[] = array('firstime', '0', '', 0, 0, 1);
|
||||
$config_values[] = array('ftp_info', '', '', 0, 0, 0);
|
||||
$config_values[] = array('queue', '', '', 0, 0, 1);
|
||||
$config_values[] = array('default_group', '3', '', 0, 0, 1);
|
||||
|
||||
//
|
||||
// Extensions
|
||||
//
|
||||
|
||||
// do it like this :
|
||||
//$ext_values[group_id] = array('ext'=>sizeInKB);
|
||||
$ext_values = array();
|
||||
|
||||
#admins
|
||||
$ext_values[1] = array(
|
||||
'gif' => 2097152,
|
||||
'png' => 2097152,
|
||||
'jpg' => 2097152,
|
||||
'jpeg' => 2097152,
|
||||
'bmp' => 2097152,
|
||||
'zip' => 2097152,
|
||||
'rar' => 2097152,
|
||||
);
|
||||
#guests
|
||||
$ext_values[2] = array(
|
||||
'gif' => 2097152,
|
||||
'png' => 2097152,
|
||||
'jpg' => 2097152,
|
||||
'jpeg' => 2097152,
|
||||
'bmp' => 2097152,
|
||||
'zip' => 2097152,
|
||||
'rar' => 2097152,
|
||||
);
|
||||
#users
|
||||
$ext_values[3] = array(
|
||||
'gif' => 2097152,
|
||||
'png' => 2097152,
|
||||
'jpg' => 2097152,
|
||||
'jpeg' => 2097152,
|
||||
'bmp' => 2097152,
|
||||
'zip' => 2097152,
|
||||
'rar' => 2097152,
|
||||
);
|
||||
|
||||
|
||||
//
|
||||
// ACLs
|
||||
//
|
||||
|
||||
$acls_values = array();
|
||||
|
||||
//$acls_values['name of acl'] = array(admins, guests, users);
|
||||
$acls_values['enter_acp'] = array(1, 0, 0);
|
||||
$acls_values['access_fileuser'] = array(1, 0, 1);
|
||||
$acls_values['access_fileusers'] = array(1, 1, 1);
|
||||
$acls_values['access_stats'] = array(1, 1, 1);
|
||||
$acls_values['access_call'] = array(1, 1, 1);
|
||||
$acls_values['access_report'] = array(0, 0, 0);
|
||||
242
install/includes/functions_install.php
Executable file
242
install/includes/functions_install.php
Executable file
@@ -0,0 +1,242 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package install
|
||||
* @copyright (c) 2007 Kleeja.com
|
||||
* @license ./docs/license.txt
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Requirements of Kleeja
|
||||
*/
|
||||
define('MIN_PHP_VERSION', '7.0');
|
||||
define('MIN_MYSQL_VERSION', '4.2.2');
|
||||
//version of latest changes at db
|
||||
define ('LAST_DB_VERSION' , '9');
|
||||
//set no errors
|
||||
define('MYSQL_NO_ERRORS', true);
|
||||
|
||||
|
||||
// Detect choosing another lang while installing
|
||||
if(ig('change_lang'))
|
||||
{
|
||||
if (ip('lang'))
|
||||
{
|
||||
header('Location: ' . $_SERVER['PHP_SELF'] . '?step=' . p('step_is') . '&lang=' . p('lang'));
|
||||
}
|
||||
}
|
||||
|
||||
// Including current language
|
||||
$lang = require $_path . 'lang/' . getlang() . '/common.php';
|
||||
$lang = array_merge($lang, require $_path . 'lang/' . getlang() . '/install.php');
|
||||
|
||||
|
||||
$IN_DEV = false;
|
||||
// Exceptions for development
|
||||
if(file_exists($_path . '.svn/entries') || file_exists('dev.txt'))
|
||||
{
|
||||
define('DEV_STAGE', true);
|
||||
$IN_DEV = true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return current language of installing wizard
|
||||
* @param bool $link
|
||||
* @return mixed|string
|
||||
*/
|
||||
function getlang ($link = false)
|
||||
{
|
||||
global $_path;
|
||||
|
||||
if (ig('lang'))
|
||||
{
|
||||
$lang = preg_replace('/[^a-z0-9]/i', '', g('lang', 'str', 'en'));
|
||||
|
||||
$ln = file_exists($_path . 'lang/' . $lang . '/install.php') ? $lang : 'en';
|
||||
}
|
||||
else
|
||||
{
|
||||
$ln = 'en';
|
||||
}
|
||||
|
||||
return $link ? 'lang=' . $ln : $ln;
|
||||
}
|
||||
|
||||
function getjquerylink()
|
||||
{
|
||||
global $_path;
|
||||
|
||||
if(file_exists($_path . 'admin/Masmak/js/jquery.min.js'))
|
||||
{
|
||||
return $_path . 'admin/Masmak/js/jquery.min.js';
|
||||
}
|
||||
else
|
||||
{
|
||||
return 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Parsing installing templates
|
||||
*/
|
||||
function gettpl($tplname)
|
||||
{
|
||||
global $lang, $_path;
|
||||
|
||||
$tpl = preg_replace('/{{([^}]+)}}/', '<?php \\1 ?>', file_get_contents('style/' . $tplname));
|
||||
ob_start();
|
||||
eval('?> ' . $tpl . '<?php ');
|
||||
$stpl = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
return $stpl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Export config
|
||||
*/
|
||||
function do_config_export($srv, $usr, $pass, $nm, $prf, $fpath = '')
|
||||
{
|
||||
global $_path;
|
||||
|
||||
if(!in_array($type, array('mysql', 'mysqli')))
|
||||
{
|
||||
$type = 'mysql';
|
||||
}
|
||||
|
||||
$data = '<?php' . "\n\n" . '//fill these variables with your data' . "\n";
|
||||
//$data .= '$db_type = \'' . $type . "'; //mysqli or mysql \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 .= '$adminpath = \'admin.php\';// if you renamed your acp file , please fill the new name here \n';
|
||||
//$data .= "\n\n\n";
|
||||
//$data .= "//for integration with script must change user systen from admin cp \n";
|
||||
//$data .= '$script_path = \'' . str_replace("'", "\'", $fpath) . "'; // path of script (./forums) \n";
|
||||
//$data .= "\n\n";
|
||||
//$data .= '?'.'>';
|
||||
|
||||
$written = false;
|
||||
if (is_writable($_path))
|
||||
{
|
||||
$fh = @fopen($_path . 'config.php', 'wb');
|
||||
if ($fh)
|
||||
{
|
||||
fwrite($fh, $data);
|
||||
fclose($fh);
|
||||
|
||||
$written = true;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$written)
|
||||
{
|
||||
header('Content-Type: text/x-delimtext; name="config.php"');
|
||||
header('Content-disposition: attachment; filename=config.php');
|
||||
echo $data;
|
||||
exit;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Usefull to caluculte time of execution
|
||||
*/
|
||||
function get_microtime()
|
||||
{
|
||||
list($usec, $sec) = explode(' ', microtime());
|
||||
return ((float) $usec + (float) $sec);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get config value from database directly, if not return false.
|
||||
*/
|
||||
function inst_get_config($name)
|
||||
{
|
||||
global $SQL, $dbprefix;
|
||||
|
||||
if(!$SQL)
|
||||
{
|
||||
global $dbserver, $dbuser, $dbpass, $dbname;
|
||||
if(!isset($dbserver))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$SQL = new KleejaDatabase($dbserver, $dbuser, $dbpass, $dbname);
|
||||
}
|
||||
|
||||
if(!$SQL)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$sql = "SELECT value FROM `{$dbprefix}config` WHERE `name` = '" . $name . "'";
|
||||
$result = $SQL->query($sql);
|
||||
if($SQL->num_rows($result) == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$current_ver = $SQL->fetch_array($result);
|
||||
return $current_ver['value'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* trying to detect cookies settings
|
||||
*/
|
||||
function get_cookies_settings()
|
||||
{
|
||||
$server_port = !empty($_SERVER['SERVER_PORT']) ? (int) $_SERVER['SERVER_PORT'] : (int) @getenv('SERVER_PORT');
|
||||
$server_name = $server_name = (!empty($_SERVER['HTTP_HOST'])) ? strtolower($_SERVER['HTTP_HOST']) : ((!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : @getenv('SERVER_NAME'));
|
||||
|
||||
// HTTP HOST can carry a port number...
|
||||
if (strpos($server_name, ':') !== false)
|
||||
$server_name = substr($server_name, 0, strpos($server_name, ':'));
|
||||
|
||||
|
||||
$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');
|
||||
if (!$name)
|
||||
$name = (!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : @getenv('REQUEST_URI');
|
||||
|
||||
$script_path = trim(dirname(str_replace(array('\\', '//'), '/', $name)));
|
||||
|
||||
|
||||
if ($script_path !== '/')
|
||||
{
|
||||
if (substr($script_path, -1) == '/')
|
||||
$script_path = substr($script_path, 0, -1);
|
||||
|
||||
$script_path = str_replace(array('../', './'), '', $script_path);
|
||||
if ($script_path[0] != '/')
|
||||
$script_path = '/' . $script_path;
|
||||
}
|
||||
|
||||
$cookie_domain = $server_name;
|
||||
if (strpos($cookie_domain, 'www.') === 0)
|
||||
{
|
||||
$cookie_domain = str_replace('www.', '.', $cookie_domain);
|
||||
}
|
||||
|
||||
return array(
|
||||
'server_name' => $server_name,
|
||||
'cookie_secure' => $cookie_secure,
|
||||
'cookie_name' => $cookie_name,
|
||||
'cookie_domain' => $cookie_domain,
|
||||
'cookie_path' => str_replace('/install', '', $script_path),
|
||||
);
|
||||
|
||||
}
|
||||
58
install/includes/index.html
Executable file
58
install/includes/index.html
Executable file
@@ -0,0 +1,58 @@
|
||||
<!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"></a>
|
||||
</p>
|
||||
<br/>
|
||||
<h1><span style="font-size:250%;color:#D80000;">403 - Access forbidden!</span></h1></div>
|
||||
<br/>
|
||||
<div class="content_box"style="font-size: 140%">Powered by Kleeja</div>
|
||||
</body>
|
||||
</html>
|
||||
247
install/includes/install_sqls.php
Executable file
247
install/includes/install_sqls.php
Executable file
@@ -0,0 +1,247 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package install
|
||||
* @copyright (c) 2007 Kleeja.com
|
||||
* @license ./docs/license.txt
|
||||
*
|
||||
*/
|
||||
|
||||
// not for directly open
|
||||
if (!defined('IN_COMMON'))
|
||||
{
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
if(empty($install_sqls) || !is_array($install_sqls))
|
||||
{
|
||||
$install_sqls = array();
|
||||
}
|
||||
|
||||
$install_sqls['ALTER_DATABASE_UTF'] = "
|
||||
ALTER DATABASE `{$dbname}` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin
|
||||
";
|
||||
|
||||
|
||||
$install_sqls['call'] = "
|
||||
CREATE TABLE `{$dbprefix}call` (
|
||||
`id` int(10) NOT NULL auto_increment,
|
||||
`name` varchar(200) collate utf8_bin NOT NULL,
|
||||
`text` varchar(350) collate utf8_bin NOT NULL,
|
||||
`mail` varchar(350) collate utf8_bin NOT NULL,
|
||||
`time` int(11) NOT NULL,
|
||||
`ip` varchar(40) collate utf8_bin NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
";
|
||||
|
||||
$install_sqls['reports'] = "
|
||||
CREATE TABLE `{$dbprefix}reports` (
|
||||
`id` int(10) NOT NULL auto_increment,
|
||||
`name` varchar(350) collate utf8_bin NOT NULL,
|
||||
`mail` varchar(350) collate utf8_bin NOT NULL,
|
||||
`url` varchar(250) collate utf8_bin NOT NULL,
|
||||
`text` varchar(400) collate utf8_bin NOT NULL,
|
||||
`time` int(11) NOT NULL,
|
||||
`ip` varchar(40) collate utf8_bin NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
";
|
||||
|
||||
|
||||
$install_sqls['stats'] = "
|
||||
CREATE TABLE `{$dbprefix}stats` (
|
||||
`files` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`imgs` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`users` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`sizes` bigint(20) NOT NULL DEFAULT '0',
|
||||
`last_file` varchar(350) collate utf8_bin NOT NULL,
|
||||
`last_f_del` int(10) NOT NULL,
|
||||
`today` int(4) NOT NULL,
|
||||
`counter_today` int(12) NOT NULL,
|
||||
`counter_all` int(12) NOT NULL,
|
||||
`counter_yesterday` int(12) NOT NULL,
|
||||
`ban` text collate utf8_bin NOT NULL,
|
||||
`last_google` int(11) unsigned NOT NULL,
|
||||
`google_num` int(11) unsigned NOT NULL,
|
||||
`last_bing` int(11) unsigned NOT NULL,
|
||||
`bing_num` int(11) unsigned NOT NULL,
|
||||
`rules` text collate utf8_bin NOT NULL,
|
||||
`ex_header` text collate utf8_bin NOT NULL,
|
||||
`ex_footer` text collate utf8_bin NOT NULL,
|
||||
`lastuser` varchar(300) collate utf8_bin NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
";
|
||||
|
||||
|
||||
$install_sqls['users'] = "
|
||||
CREATE TABLE `{$dbprefix}users` (
|
||||
`id` int(10) NOT NULL auto_increment,
|
||||
`name` varchar(300) collate utf8_bin NOT NULL,
|
||||
`group_id` int(11) unsigned NOT NULL DEFAULT '3',
|
||||
`password` varchar(200) collate utf8_bin NOT NULL,
|
||||
`password_salt` varchar(250) collate utf8_bin NOT NULL,
|
||||
`mail` varchar(350) collate utf8_bin NOT NULL,
|
||||
`founder` tinyint(1) NOT NULL default '0',
|
||||
`session_id` char(32) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||||
`clean_name` varchar(300) collate utf8_bin NOT NULL,
|
||||
`last_visit` INT(11) NOT NULL DEFAULT '0',
|
||||
`register_time` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`show_my_filecp` tinyint(1) unsigned NOT NULL default '1',
|
||||
`new_password` varchar(200) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||||
`hash_key` varchar(200) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `clean_name` (`clean_name`(300)),
|
||||
KEY `group_id` (`group_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
";
|
||||
|
||||
$install_sqls['files'] = "
|
||||
CREATE TABLE `{$dbprefix}files` (
|
||||
`id` int(11) unsigned NOT NULL auto_increment,
|
||||
`last_down` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`name` varchar(300) collate utf8_bin NOT NULL,
|
||||
`real_filename` VARCHAR( 350 ) collate utf8_bin NOT NULL,
|
||||
`size` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||
`uploads` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`time` int(11) unsigned NOT NULL,
|
||||
`type` varchar(20) collate utf8_bin NOT NULL,
|
||||
`folder` varchar(100) collate utf8_bin NOT NULL,
|
||||
`report` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`user` int(11) NOT NULL default '-1',
|
||||
`code_del` varchar(150) collate utf8_bin NOT NULL,
|
||||
`user_ip` VARCHAR( 250 ) NOT NULL,
|
||||
`id_form` VARCHAR( 100 ) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `name` (`name`(300)),
|
||||
KEY `user` (`user`),
|
||||
KEY `code_del` (`code_del`(150)),
|
||||
KEY `time` (`time`),
|
||||
KEY `last_down` (`last_down`),
|
||||
KEY `type` (`type`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
";
|
||||
|
||||
|
||||
|
||||
$install_sqls['config'] = "
|
||||
CREATE TABLE `{$dbprefix}config` (
|
||||
`name` varchar(255) collate utf8_bin NOT NULL,
|
||||
`value` varchar(255) collate utf8_bin NOT NULL,
|
||||
`option` mediumtext collate utf8_bin NOT NULL,
|
||||
`display_order` int(10) NOT NULL DEFAULT '1',
|
||||
`type` varchar(20) NULL DEFAULT 'other',
|
||||
`plg_id` int(11) NOT NULL DEFAULT '0',
|
||||
`dynamic` tinyint(1) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`name`),
|
||||
KEY `type` (`type`),
|
||||
KEY `plg_id` (`plg_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
";
|
||||
|
||||
|
||||
|
||||
// $install_sqls['hooks'] = "
|
||||
// CREATE TABLE `{$dbprefix}hooks` (
|
||||
// `hook_id` int(11) unsigned NOT NULL auto_increment,
|
||||
// `plg_id` int(11) unsigned NOT NULL,
|
||||
// `hook_name` varchar(255) collate utf8_bin NOT NULL,
|
||||
// `hook_content` mediumtext collate utf8_bin NOT NULL,
|
||||
// PRIMARY KEY (`hook_id`),
|
||||
// KEY `plg_id` (`plg_id`)
|
||||
// ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
// ";
|
||||
|
||||
|
||||
$install_sqls['plugins'] = "
|
||||
CREATE TABLE `{$dbprefix}plugins` (
|
||||
`plg_id` int(11) unsigned NOT NULL auto_increment,
|
||||
`plg_name` varchar(255) collate utf8_bin NOT NULL,
|
||||
`plg_ver` varchar(255) collate utf8_bin NOT NULL,
|
||||
`plg_author` varchar(255) collate utf8_bin NOT NULL,
|
||||
`plg_dsc` mediumtext COLLATE utf8_bin NOT NULL,
|
||||
`plg_icon` blob NOT NULL,
|
||||
`plg_uninstall` mediumtext COLLATE utf8_bin NOT NULL,
|
||||
`plg_disabled` tinyint(1) unsigned NOT NULL default '0',
|
||||
`plg_instructions` mediumtext COLLATE utf8_bin NOT NULL,
|
||||
`plg_store` longtext COLLATE utf8_bin NOT NULL,
|
||||
`plg_files` text COLLATE utf8_bin NOT NULL,
|
||||
PRIMARY KEY (`plg_id`),
|
||||
KEY `plg_name` (`plg_name`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin ;
|
||||
";
|
||||
|
||||
$install_sqls['lang'] = "
|
||||
CREATE TABLE `{$dbprefix}lang` (
|
||||
`word` varchar(255) collate utf8_bin NOT NULL,
|
||||
`trans` varchar(255) collate utf8_bin NOT NULL,
|
||||
`lang_id` varchar(100) COLLATE utf8_bin NOT NULL,
|
||||
`plg_id` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
KEY `lang_id` (`lang_id`),
|
||||
KEY `plg_id` (`plg_id`),
|
||||
KEY `word` (`word`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
";
|
||||
|
||||
$install_sqls['groups'] = "
|
||||
CREATE TABLE `{$dbprefix}groups` (
|
||||
`group_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`group_name` varchar(255) COLLATE utf8_bin NOT NULL,
|
||||
`group_is_default` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
`group_is_essential` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`group_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
";
|
||||
|
||||
$install_sqls['groups_data'] = "
|
||||
CREATE TABLE `{$dbprefix}groups_data` (
|
||||
`group_id` int(11) unsigned NOT NULL,
|
||||
`name` varchar(255) COLLATE utf8_bin NOT NULL,
|
||||
`value` varchar(255) COLLATE utf8_bin NOT NULL,
|
||||
KEY `group_id` (`group_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
";
|
||||
|
||||
$install_sqls['groups_acl'] = "
|
||||
CREATE TABLE `{$dbprefix}groups_acl` (
|
||||
`acl_name` varchar(255) COLLATE utf8_bin NOT NULL,
|
||||
`group_id` int(11) unsigned NOT NULL,
|
||||
`acl_can` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
KEY `group_id` (`group_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
";
|
||||
|
||||
$install_sqls['groups_exts'] = "
|
||||
CREATE TABLE `{$dbprefix}groups_exts` (
|
||||
`ext_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`ext` varchar(20) COLLATE utf8_bin NOT NULL,
|
||||
`group_id` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`size` bigint(11) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`ext_id`),
|
||||
KEY `group_id` (`group_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1;
|
||||
";
|
||||
|
||||
$install_sqls['filters'] = "
|
||||
CREATE TABLE `{$dbprefix}filters` (
|
||||
`filter_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`filter_uid` varchar(30) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||||
`filter_type` varchar(20) COLLATE utf8_bin NOT NULL,
|
||||
`filter_value` varchar(255) COLLATE utf8_bin NOT NULL,
|
||||
`filter_time` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`filter_user` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`filter_status` varchar(50) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`filter_id`),
|
||||
KEY `filter_user` (`filter_user`),
|
||||
KEY `filter_uid` (`filter_uid`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
|
||||
";
|
||||
|
||||
$install_sqls['stats_insert'] = "INSERT INTO `{$dbprefix}stats` VALUES (0,0,1,0,0," . time() . ",0,0,0,0,'',0,0,0,0,'','','','')";
|
||||
$install_sqls['users_insert'] = "INSERT INTO `{$dbprefix}users` (`id`,`name`,`group_id`,`password`,`password_salt`,`mail`,`founder`,`clean_name`) VALUES (1,'" . $user_name . "', 1, '" . $user_pass . "','" . $user_salt . "', '" . $user_mail . "', 1,'" . $clean_name . "')";
|
||||
$install_sqls['TeamMsg_insert'] = "INSERT INTO `{$dbprefix}call` (`name`,`text`,`mail`,`time`,`ip`) VALUES ('" . $SQL->escape($lang['KLEEJA_TEAM_MSG_NAME']) . "', '" . $SQL->escape($lang['KLEEJA_TEAM_MSG_TEXT']) . "','info@kleeja.com', " . time() . ", '127.0.0.1')";
|
||||
$install_sqls['groups_insert'] = "INSERT INTO `{$dbprefix}groups` (`group_id`, `group_name`, `group_is_default`, `group_is_essential`) VALUES
|
||||
(1, '{lang.ADMINS}', 0, 1),
|
||||
(2, '{lang.GUESTS}', 0, 1),
|
||||
(3, '{lang.USERS}', 1, 1);";
|
||||
32
install/includes/update_files/1.7_to_2.0.php
Normal file
32
install/includes/update_files/1.7_to_2.0.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
//
|
||||
// Kleeja database version : 9
|
||||
//
|
||||
|
||||
|
||||
|
||||
$update_sqls = array
|
||||
(
|
||||
'files_size_big' => "ALTER TABLE `{$dbprefix}files` CHANGE `size` `size` BIGINT(20) NOT NULL DEFAULT '0';",
|
||||
'group_size_big' => "ALTER TABLE `{$dbprefix}groups_exts` CHANGE `size` `size` BIGINT(20) NOT NULL DEFAULT '0';",
|
||||
'files_index_type' => "ALTER TABLE `{$dbprefix}files` ADD INDEX `type` (`type`);",
|
||||
'id_form_img' => 'INSERT INTO `'.$dbprefix.'config` (`name`, `value`, `option`, `display_order`, `type`, `plg_id`, `dynamic`) VALUES (\'id_form_img\', X\'6964\', \'<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>\n\', \'21\', X\'75706C6F6164\', \'0\', \'0\');',
|
||||
);
|
||||
|
||||
|
||||
//$update_functions = array
|
||||
//(
|
||||
// function () {
|
||||
//
|
||||
// },
|
||||
// function () {
|
||||
//
|
||||
// },
|
||||
//);
|
||||
|
||||
|
||||
//$update_notes = array
|
||||
//(
|
||||
// 'note .......',
|
||||
// 'note 2 .......',
|
||||
//);
|
||||
1
install/includes/update_files/index.html
Executable file
1
install/includes/update_files/index.html
Executable file
@@ -0,0 +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>
|
||||
Reference in New Issue
Block a user