mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-15 20:49:41 +01:00
enhancements
This commit is contained in:
@@ -21,7 +21,7 @@ require_once PATH . 'includes/common.php';
|
|||||||
$go_to = ig('cp') ? g('cp') : 'start';
|
$go_to = ig('cp') ? g('cp') : 'start';
|
||||||
$username = $usrcp->name();
|
$username = $usrcp->name();
|
||||||
$AJAX_ACP = defined('AJAX_ACP');
|
$AJAX_ACP = defined('AJAX_ACP');
|
||||||
$config['enable_captcha'] = 1;
|
$config['enable_captcha'] = ! defined('STOP_CAPTCHA');
|
||||||
|
|
||||||
|
|
||||||
#for security
|
#for security
|
||||||
|
|||||||
14
go.php
14
go.php
@@ -18,10 +18,10 @@ require_once 'includes/common.php';
|
|||||||
|
|
||||||
|
|
||||||
$current_go_case = g('go');
|
$current_go_case = g('go');
|
||||||
|
$show_style = true;
|
||||||
|
|
||||||
is_array($plugin_run_result = Plugins::getInstance()->run('begin_go_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
|
is_array($plugin_run_result = Plugins::getInstance()->run('begin_go_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
|
||||||
|
|
||||||
|
|
||||||
switch($current_go_case)
|
switch($current_go_case)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@@ -671,10 +671,10 @@ is_array($plugin_run_result = Plugins::getInstance()->run('end_go_page', get_def
|
|||||||
$stylee = empty($stylee) ? 'info' : $stylee;
|
$stylee = empty($stylee) ? 'info' : $stylee;
|
||||||
$titlee = empty($titlee) ? '' : $titlee;
|
$titlee = empty($titlee) ? '' : $titlee;
|
||||||
|
|
||||||
//header
|
//show style
|
||||||
Saaheader($titlee);
|
if($show_style)
|
||||||
//tpl
|
{
|
||||||
|
Saaheader($titlee);
|
||||||
echo $tpl->display($stylee);
|
echo $tpl->display($stylee);
|
||||||
//footer
|
Saafooter();
|
||||||
Saafooter();
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -364,6 +364,10 @@ if(empty($perpage) || intval($perpage) == 0)
|
|||||||
|
|
||||||
#captcha file
|
#captcha file
|
||||||
$captcha_file_path = $config['siteurl'] . 'ucp.php?go=captcha';
|
$captcha_file_path = $config['siteurl'] . 'ucp.php?go=captcha';
|
||||||
|
if(defined('STOP_CAPTCHA'))
|
||||||
|
{
|
||||||
|
$config['enable_captcha'] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
is_array($plugin_run_result = Plugins::getInstance()->run('end_common', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
|
is_array($plugin_run_result = Plugins::getInstance()->run('end_common', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
|
||||||
|
|
||||||
|
|||||||
16
index.php
16
index.php
@@ -185,6 +185,8 @@ if ($show_online)
|
|||||||
}#allow_online
|
}#allow_online
|
||||||
|
|
||||||
|
|
||||||
|
$show_style = true;
|
||||||
|
|
||||||
is_array($plugin_run_result = Plugins::getInstance()->run('end_index_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
|
is_array($plugin_run_result = Plugins::getInstance()->run('end_index_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
|
||||||
|
|
||||||
|
|
||||||
@@ -200,11 +202,11 @@ if(ip('ajax'))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//header
|
//show style
|
||||||
Saaheader();
|
if($show_style)
|
||||||
//index
|
{
|
||||||
echo $tpl->display(($config['filesnum'] > 0 ? "index_body" : "info"));
|
Saaheader();
|
||||||
//footer
|
echo $tpl->display(($config['filesnum'] > 0 ? "index_body" : "info"));
|
||||||
Saafooter();
|
Saafooter();
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
14
ucp.php
14
ucp.php
@@ -21,6 +21,7 @@ is_array($plugin_run_result = Plugins::getInstance()->run('begin_usrcp_page', ge
|
|||||||
|
|
||||||
|
|
||||||
$extra = '';
|
$extra = '';
|
||||||
|
$show_style = true;
|
||||||
|
|
||||||
switch (g('go'))
|
switch (g('go'))
|
||||||
{
|
{
|
||||||
@@ -924,9 +925,10 @@ is_array($plugin_run_result = Plugins::getInstance()->run('end_usrcp_page', get_
|
|||||||
$titlee = empty($titlee) ? $lang['USERS_SYSTEM'] : $titlee;
|
$titlee = empty($titlee) ? $lang['USERS_SYSTEM'] : $titlee;
|
||||||
$stylee = empty($stylee) ? 'info' : $stylee;
|
$stylee = empty($stylee) ? 'info' : $stylee;
|
||||||
|
|
||||||
//header
|
//show style
|
||||||
Saaheader($titlee, $extra);
|
if($show_style)
|
||||||
|
{
|
||||||
echo $tpl->display($stylee);
|
Saaheader($titlee, $extra);
|
||||||
//footer
|
echo $tpl->display($stylee);
|
||||||
Saafooter();
|
Saafooter();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user