function cms_pagefooter() { // debug("cms_pagefooter", "start", "delayed"); $navbar = pslNew("NavBar"); $output = $navbar->getNavBar('navbarFooter'); $output = getFooter(); page_close(); return $output; }
function be_get_anondbdata() { global $sess, $auth, $perm, $CONFIG; //be_debug("thispage_id", $thispage_id); $USER_DATA = null; $sql = "SELECT * FROM {$CONFIG['TABLE_USERGROUPS']} WHERE group_id = 3"; //be_debug("sql", $sql); $db = pslNew('slashDB'); $db->query($sql); if ($db->next_record()) { $USER_DATA = $db->Record; // debug("anon group", "found"); // debug("USER_DATA", $USER_DATA); } elseif ($USER_DATA = add_backend_user($username)) { //be_debug('user','added'); } else { //be_debug("user", "not found"); } $USER_DATA['user_name'] = $USER_DATA['group_name']; $USER_DATA['user_id'] = 0; /* define('USER_ID', 0); define('USER_NAME', $USER_DATA['group_name']); $USER_DATA['user_name'] = $USER_DATA['group_name']; $USER_DATA['username'] = $USER_DATA['group_name']; define('USER_GROUP', $USER_DATA['group_name']); define('USER_GROUP_SET', '(' . $USER_DATA['group_id'] . ')'); define('USER_IS_ADMIN', 0); define('USER_CAN_SEND_ECARDS', (int)$USER_DATA['can_send_ecards']); define('USER_CAN_RATE_PICTURES', (int)$USER_DATA['can_rate_pictures']); define('USER_CAN_POST_COMMENTS', (int)$USER_DATA['can_post_comments']); define('USER_CAN_UPLOAD_PICTURES', (int)$USER_DATA['can_upload_pictures']); define('USER_CAN_CREATE_ALBUMS', 0); define('USER_UPLOAD_FORM', (int)$USER_DATA['upload_form_config']); define('CUSTOMIZE_UPLOAD_FORM', (int)$USER_DATA['custom_user_upload']); define('NUM_FILE_BOXES', (int)$USER_DATA['num_file_upload']); define('NUM_URI_BOXES', (int)$USER_DATA['num_URI_upload']); */ // //be_debug("be_get_anondbdata::USER_DATA",$USER_DATA); return $USER_DATA; }