diff --git a/admin/index.php b/admin/index.php index b42f07e..7da88f5 100755 --- a/admin/index.php +++ b/admin/index.php @@ -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 diff --git a/go.php b/go.php index c488242..0eb37a1 100755 --- a/go.php +++ b/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 -Saaheader($titlee); -//tpl +//show style +if($show_style) +{ + Saaheader($titlee); echo $tpl->display($stylee); -//footer -Saafooter(); - + Saafooter(); +} diff --git a/includes/common.php b/includes/common.php index 283bdea..f0132f2 100755 --- a/includes/common.php +++ b/includes/common.php @@ -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 diff --git a/index.php b/index.php index eb09f44..ba2815b 100755 --- a/index.php +++ b/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 -Saaheader(); -//index -echo $tpl->display(($config['filesnum'] > 0 ? "index_body" : "info")); -//footer -Saafooter(); - +//show style +if($show_style) +{ + Saaheader(); + echo $tpl->display(($config['filesnum'] > 0 ? "index_body" : "info")); + Saafooter(); +} diff --git a/ucp.php b/ucp.php index 1595321..3f80022 100755 --- a/ucp.php +++ b/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 -Saaheader($titlee, $extra); - -echo $tpl->display($stylee); -//footer -Saafooter(); +//show style +if($show_style) +{ + Saaheader($titlee, $extra); + echo $tpl->display($stylee); + Saafooter(); +} \ No newline at end of file