Code:#
#-----[ OPEN ]------------------------------------------
#modules/AutoTheme/includes/php-nuke/atAPI.php
#-----[ function atBlockLoad() ]------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
elseif ($view == 3 && !atIsLoggedIn() || atIsAdminUser()) {
$displaythis = 1;
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
elseif ($view > 3 && in_groups($groups)) {
$displaythis = 1;
}
#-----[ function atGetBlocks() ]------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
$result = sql_query("SELECT bid, bkey, title, content, url, blockfile, view, bposition, weight, active FROM ".$prefix."_blocks $querylang ORDER BY weight ASC", $dbi);
while (list($bid, $bkey, $title, $content, $url, $blockfile, $view, $position, $weight, $active) = sql_fetch_row($result, $dbi)) {
$blocklist[$title] = compact("bid", "bkey", "title", "content", "url", "blockfile", "view", "position", "weight", "active");
$blocklist[$title]['weight'] = (int)$blocklist[$title]['weight'];
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
$result = sql_query("SELECT bid, bkey, title, content, url, blockfile, view, bposition, weight, active, groups FROM ".$prefix."_blocks $querylang ORDER BY weight ASC", $dbi);
while (list($bid, $bkey, $title, $content, $url, $blockfile, $view, $position, $weight, $active, $groups) = sql_fetch_row($result, $dbi)) {
$blocklist[$title] = compact("bid", "bkey", "title", "content", "url", "blockfile", "view", "position", "weight", "active", "groups");
$blocklist[$title]['weight'] = (int)$blocklist[$title]['weight'];
}
|