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';
|
||||
$username = $usrcp->name();
|
||||
$AJAX_ACP = defined('AJAX_ACP');
|
||||
$config['enable_captcha'] = 1;
|
||||
$config['enable_captcha'] = ! defined('STOP_CAPTCHA');
|
||||
|
||||
|
||||
#for security
|
||||
|
||||
10
go.php
10
go.php
@@ -18,10 +18,10 @@ require_once 'includes/common.php';
|
||||
|
||||
|
||||
$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
|
||||
|
||||
|
||||
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;
|
||||
$titlee = empty($titlee) ? '' : $titlee;
|
||||
|
||||
//header
|
||||
//show style
|
||||
if($show_style)
|
||||
{
|
||||
Saaheader($titlee);
|
||||
//tpl
|
||||
echo $tpl->display($stylee);
|
||||
//footer
|
||||
Saafooter();
|
||||
|
||||
}
|
||||
|
||||
@@ -364,6 +364,10 @@ if(empty($perpage) || intval($perpage) == 0)
|
||||
|
||||
#captcha file
|
||||
$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
|
||||
|
||||
|
||||
10
index.php
10
index.php
@@ -185,6 +185,8 @@ if ($show_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
|
||||
|
||||
|
||||
@@ -200,11 +202,11 @@ if(ip('ajax'))
|
||||
}
|
||||
|
||||
|
||||
//header
|
||||
//show style
|
||||
if($show_style)
|
||||
{
|
||||
Saaheader();
|
||||
//index
|
||||
echo $tpl->display(($config['filesnum'] > 0 ? "index_body" : "info"));
|
||||
//footer
|
||||
Saafooter();
|
||||
|
||||
}
|
||||
|
||||
|
||||
8
ucp.php
8
ucp.php
@@ -21,6 +21,7 @@ is_array($plugin_run_result = Plugins::getInstance()->run('begin_usrcp_page', ge
|
||||
|
||||
|
||||
$extra = '';
|
||||
$show_style = true;
|
||||
|
||||
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;
|
||||
$stylee = empty($stylee) ? 'info' : $stylee;
|
||||
|
||||
//header
|
||||
//show style
|
||||
if($show_style)
|
||||
{
|
||||
Saaheader($titlee, $extra);
|
||||
|
||||
echo $tpl->display($stylee);
|
||||
//footer
|
||||
Saafooter();
|
||||
}
|
||||
Reference in New Issue
Block a user