************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-}
- elseif ((!EXT_IS_ACTIVE("register")))
-{
+} elseif ((!EXT_IS_ACTIVE("register"))) {
if (IS_ADMIN()) {
ADD_FATAL(sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "register"));
} else {
// Add description as navigation point
ADD_DESCR("guest", basename(__FILE__));
-OPEN_TABLE("100%", "guest_content_align", "");
global $_CONFIG, $DATA;
// Initialize variables
if (!IS_ADMIN())
{
// Do this check only when no admin is logged in
- foreach ($_POST['cat'] as $id=>$answer)
+ foreach ($_POST['cat'] as $id => $answer)
{
if ($answer == "Y") $cats++;
}
// Write catgories
if ((is_array($_POST['cat'])) && (count($_POST['cat']))) {
- foreach ($_POST['cat'] as $cat=>$joined) {
+ foreach ($_POST['cat'] as $cat => $joined) {
if ($joined == "Y") {
// Insert category entry
$result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_user_cats (userid, cat_id) VALUES (%s, %s)",
// Display registration form
LOAD_TEMPLATE("guest_register");
}
-CLOSE_TABLE();
+
//
?>