}
elseif (!IS_LOGGED_IN())
{
- LOAD_URL(URL."/modules.php[13~?module=index");
+ LOAD_URL("modules.php[13~?module=index");
}
// Add description as navigation point
ADD_DESCR("member", basename(__FILE__));
$UID = $GLOBALS['userid'];
-$WHERE = " WHERE visible='Y'";
-if (IS_ADMIN()) $WHERE = "";
+$whereStatement = " WHERE visible='Y'";
+if (IS_ADMIN()) $whereStatement = "";
-$result = SQL_QUERY("SELECT id, cat FROM "._MYSQL_PREFIX."_cats".$WHERE." ORDER BY sort", __FILE__, __LINE__);
+$result = SQL_QUERY("SELECT id, cat FROM "._MYSQL_PREFIX."_cats".$whereStatement." ORDER BY sort", __FILE__, __LINE__);
$cats = SQL_NUMROWS($result);
if ($cats > 0)
{
if ($joined == 'N') $cnt++;
}
- if (($cats - $cnt) < $CONFIG['least_cats'])
+ if (($cats - $cnt) < $_CONFIG['least_cats'])
{
unset($_POST['ok']);
$LEAST = true;
if ($LEAST)
{
// Also here we have to secure it... :(
- LOAD_TEMPLATE("admin_settings_saved", true, CATS_LEAST.": ".$CONFIG['least_cats']);
+ LOAD_TEMPLATE("admin_settings_saved", true, CATS_LEAST.": ".$_CONFIG['least_cats']);
}
// Put some data into constants for the template
define('__ROWS', ($cats*2+4));