projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Config added for surfbar
[mailer.git]
/
inc
/
modules
/
admin
/
what-config_stats.php
diff --git
a/inc/modules/admin/what-config_stats.php
b/inc/modules/admin/what-config_stats.php
index 155a72ccbb3224adf53b4ba48efef8a72b5ffbc0..a82febbef7fa861d0c020077bad23cda9738ed8b 100644
(file)
--- a/
inc/modules/admin/what-config_stats.php
+++ b/
inc/modules/admin/what-config_stats.php
@@
-32,21
+32,19
@@
************************************************************************/
// Some security stuff...
************************************************************************/
// Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
-{
+if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
+
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-if (isset($_POST['ok']))
-{
+// Was the form submitted?
+
if (isset($_POST['ok']))
{
// Save settings
ADMIN_SAVE_SETTINGS($_POST);
// Save settings
ADMIN_SAVE_SETTINGS($_POST);
-}
- else
-{
+} else {
// Guest stats
switch (strtolower($_CONFIG['guest_stats']))
{
// Guest stats
switch (strtolower($_CONFIG['guest_stats']))
{
@@
-75,5
+73,6
@@
if (isset($_POST['ok']))
// Load template
LOAD_TEMPLATE("admin_config_stats");
}
// Load template
LOAD_TEMPLATE("admin_config_stats");
}
+
//
?>
//
?>