enhancements

This commit is contained in:
Abdulrahman
2019-01-18 23:42:23 +03:00
parent edacb37c79
commit 1e09a96da4
5 changed files with 29 additions and 21 deletions

View File

@@ -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
View File

@@ -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();
}

View File

@@ -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

View File

@@ -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();
}

View File

@@ -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();
}