projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security line in all includes changed
[mailer.git]
/
inc
/
modules
/
guest
/
what-rallyes.php
diff --git
a/inc/modules/guest/what-rallyes.php
b/inc/modules/guest/what-rallyes.php
index aa1842c7fc45733bd8aa1f57cc7ccd3d90a3d8af..336ff02cdc51e3a855ae70c201ed4f8883f9618b 100644
(file)
--- a/
inc/modules/guest/what-rallyes.php
+++ b/
inc/modules/guest/what-rallyes.php
@@
-32,13
+32,10
@@
************************************************************************/
// Some security stuff...
************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
$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);
-}
- elseif ((!EXT_IS_ACTIVE("rallye")) && (!IS_ADMIN()))
-{
+} elseif ((!EXT_IS_ACTIVE("rallye")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "rallye");
return;
}
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "rallye");
return;
}
@@
-46,7
+43,7
@@
if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
// Add description as navigation point
ADD_DESCR("guest", basename(__FILE__));
// Add description as navigation point
ADD_DESCR("guest", basename(__FILE__));
-OUTPUT_HTML
("<DIV align=\"center\">");
+OUTPUT_HTML("<DIV align=\"center\">");
// Check for possible running rallyes
$ADMIN = " AND d.is_active='Y'";
// Check for possible running rallyes
$ADMIN = " AND d.is_active='Y'";
@@
-143,6
+140,6
@@
if (SQL_NUMROWS($result) == 1)
LOAD_TEMPLATE("guest_no_rallyes");
}
//
LOAD_TEMPLATE("guest_no_rallyes");
}
//
-OUTPUT_HTML
("</DIV>");
+OUTPUT_HTML("</DIV>");
//
?>
//
?>