function forum_subcats($forum_id) { global $settings, $locale, $userdata, $lastvisited; $a_result = dbquery("SELECT * FROM " . DB_FORUMS . " f LEFT JOIN " . DB_USERS . " u on f.forum_lastuser=u.user_id WHERE " . groupaccess('f.forum_access') . " AND forum_parent='" . $_GET['forum_id'] . "' ORDER BY forum_order"); if (dbrows($a_result) != 0) { echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border forum_idx_table'>\n<tr>\n"; echo "<td colspan='2' class='tbl2'>" . $locale['401'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['402'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['403'] . "</td>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['404'] . "</td>\n"; echo "</tr>\n"; while ($a_data = dbarray($a_result)) { echo "<tr>\n"; $moderators = ""; if ($a_data['forum_moderators']) { $mod_groups = explode(".", $a_data['forum_moderators']); foreach ($mod_groups as $mod_group) { if ($moderators) { $moderators .= ", "; } $moderators .= $mod_group < 101 ? "<a href='" . BASEDIR . "profile.php?group_id=" . $mod_group . "'>" . getgroupname($mod_group) . "</a>" : getgroupname($mod_group); } } if ($a_data['forum_lastpost'] > $lastvisited) { $forum_match = "\\|" . $a_data['forum_lastpost'] . "\\|" . $a_data['forum_id']; if (iMEMBER && ($a_data['forum_lastuser'] == $userdata['user_id'] || preg_match("({$forum_match}\\.|{$forum_match}\$)", $userdata['user_threads']))) { $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />"; } else { $fim = "<img src='" . get_image("foldernew") . "' alt='" . $locale['560'] . "' />"; } } else { $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />"; } echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>{$fim}</td>\n"; echo "<td class='tbl1 forum_name'><!--forum_name--><a href='viewforum.php?forum_id=" . $a_data['forum_id'] . "'>" . $a_data['forum_name'] . "</a><br />\n"; if ($a_data['forum_description'] || $moderators) { echo "<span class='small'>" . $a_data['forum_description'] . ($a_data['forum_description'] && $moderators ? "<br />\n" : ""); echo ($moderators ? "<strong>" . $locale['411'] . "</strong>" . $moderators . "</span>\n" : "</span>\n") . "\n"; } echo "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $a_data['forum_threadcount'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>" . $a_data['forum_postcount'] . "</td>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'>"; if ($a_data['forum_lastpost'] == 0) { echo $locale['405'] . "</td>\n</tr>\n"; } else { echo showdate("forumdate", $a_data['forum_lastpost']) . "<br />\n"; echo "<span class='small'>" . $locale['406'] . profile_link($a_data['forum_lastuser'], $a_data['user_name'], $a_data['user_status']) . "</span></td>\n"; echo "</tr>\n"; } } echo "</table>"; } }
function profile() { global $logged; $id = intval(htmlspecialchars($_GET['profile;id'])); $sql = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "' LIMIT 1;"); if (mysql_num_rows($sql) <= 0) { pageerror("Profile Error", "Doesn't exists.", "Sorry, but it looks like this user wasn't created or was deleted."); } $information = mysql_fetch_array($sql); $Temp = new Template(); $Temp->dir = $logged['dskin']; $Temp->file = "profile.tpl"; $Temp->tp(); $Temp->tr(array('USERNAME' => $information['username'], 'POSTS' => $information['post'], 'GROUP' => getgroupname($information['level']), 'JOINED' => empty($information['joined']) ? 'unknown' : date("m-d-y", $information['joined']), 'AVY' => '', 'MSN' => empty($information['msn']) ? 'unknown' : $information['msn'], 'GTALK' => 'unknown', 'EMAIL' => 'unknown')); echo $Temp->html; }
function articles_admin_subcats($id) { global $aidlink, $locale, $i, $data; $sublist = ""; $result2 = dbquery("SELECT article_cat_id, article_cat_name, article_cat_description, article_cat_access FROM " . DB_ARTICLE_CATS . " WHERE article_cat_parent='" . (int) $id . "' ORDER BY article_cat_name"); while ($data2 = dbarray($result2)) { $cell_color = $i % 2 == 0 ? "tbl1" : "tbl2"; $sublist .= "<tr>\n"; $sublist .= "<td class='{$cell_color}'><strong>-" . $data2['article_cat_name'] . "</strong><br />\n"; $sublist .= "<span class='small'>" . trimlink($data2['article_cat_description'], 45) . "</span></td>\n"; $sublist .= "<td align='center' width='1%' class='{$cell_color}' style='white-space:nowrap'>" . getgroupname($data2['article_cat_access']) . "</td>\n"; $sublist .= "<td align='center' width='1%' class='{$cell_color}' style='white-space:nowrap'><a href='" . FUSION_SELF . $aidlink . "&action=edit&cat_id=" . $data2['article_cat_id'] . "'>" . $locale['443'] . "</a> -\n"; $sublist .= "<a href='" . FUSION_SELF . $aidlink . "&action=delete&cat_id=" . $data2['article_cat_id'] . "' onclick=\"return confirm('" . $locale['450'] . "');\">" . $locale['444'] . "</a></td>\n"; $sublist .= "</tr>\n"; } return $sublist; }
function subcats($forum_id) { global $settings, $locale, $userdata, $lastvisited, $cache_subcats; $access = ''; // Pimped: access $aresult = dbquery("SELECT forum_access FROM " . DB_FORUMS . " WHERE forum_parent='" . (int) $_GET['forum_id'] . "' ORDER BY forum_order ASC"); while ($adata = dbarray($aresult)) { if ($access != '') { $access .= "|"; } $access .= $adata['forum_access']; } $a_result = dbquery("SELECT f.forum_id, f.forum_name, f.forum_description, f.forum_moderators, f.forum_lastpost, f.forum_image, f.forum_postcount, f.forum_threadcount, f.forum_lastuser, u.user_name, u.user_status FROM " . DB_FORUMS . " f LEFT JOIN " . DB_USERS . " u on f.forum_lastuser=u.user_id WHERE " . groupaccess('f.forum_access', $access) . " AND forum_parent='" . (int) $_GET['forum_id'] . "' ORDER BY forum_order"); if (dbrows($a_result) != 0) { echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border forum_idx_table'>\n<tr>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'> </td>\n"; echo "<td class='tbl2' " . ($settings['forum_cat_icons'] == "1" ? "colspan='2' " : "") . ">" . $locale['413'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['402'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['403'] . "</td>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['404'] . "</td>\n"; echo "</tr>\n"; while ($a_data = dbarray($a_result)) { $cache_subcats[] = $a_data['forum_id']; // Pimped echo "<tr>\n"; $moderators = ''; if ($a_data['forum_moderators']) { $mod_groups = explode(".", $a_data['forum_moderators']); foreach ($mod_groups as $mod_group) { if ($moderators) { $moderators .= ", "; } $moderators .= $mod_group < nMEMBER ? group_link($mod_group, getgroupname($mod_group)) : getgroupname($mod_group); // Pimped: group_link() } } if ($a_data['forum_lastpost'] > $lastvisited) { $forum_match = "\\|" . $a_data['forum_lastpost'] . "\\|" . $a_data['forum_id']; if (iMEMBER && preg_match("({$forum_match}\\.|{$forum_match}\$)", $userdata['user_threads'])) { $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />"; } else { $fim = "<img src='" . get_image("foldernew") . "' alt='" . $locale['560'] . "' />"; } } else { $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />"; } echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>{$fim}</td>\n"; if ($settings['forum_cat_icons'] == "1") { echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>"; if ($a_data['forum_image'] != '' && file_exists(IMAGES_FC . $a_data['forum_image'])) { echo "<img src='" . IMAGES_FC . $a_data['forum_image'] . "' border='0' alt='' title='" . $a_data['forum_name'] . "' />"; } else { echo "<img src='" . IMAGES_FC . "default.png' border='0' alt='' title='" . $a_data['forum_name'] . "' />"; } echo "</td>"; } echo "<td class='tbl1 forum_name'><!--forum_name--><a href='" . make_url(FORUM . "viewforum.php?forum_id=" . $a_data['forum_id'], BASEDIR . "forum-" . $a_data['forum_id'] . "-", $a_data['forum_name'], ".html") . "'>" . $a_data['forum_name'] . "</a><br />\n"; // Pimped: make_url if ($a_data['forum_description'] || $moderators) { echo "<span class='small'>" . $a_data['forum_description'] . ($a_data['forum_description'] && $moderators ? "<br />\n" : ""); echo ($moderators ? "<strong>" . $locale['411'] . "</strong>" . $moderators . "</span>\n" : "</span>\n") . "<br />\n"; } whoishere_show("index", $a_data['forum_id']); // Pimped: Who is here echo "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $a_data['forum_threadcount'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>" . $a_data['forum_postcount'] . "</td>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'>"; if ($a_data['forum_lastpost'] == 0) { echo $locale['405'] . "</td>\n</tr>\n"; } else { // Pimped -> $thread_data = dbarray(dbquery("SELECT t.thread_id, t.thread_subject, t.thread_lastpostid FROM " . DB_THREADS . " t\r\n\t\t\t\tleft join " . DB_POSTS . " p on p.post_id=t.thread_lastpostid\r\n\t\t\t\tWHERE t.thread_lastpost='" . $a_data['forum_lastpost'] . "'")); echo "<a href='" . make_url(FORUM . "viewthread.php?thread_id=" . $thread_data['thread_id'], BASEDIR . "forum-thread-" . $thread_data['thread_id'] . "-", $thread_data['thread_subject'], ".html") . "#post_" . $thread_data['thread_lastpostid'] . "' title='" . $thread_data['thread_subject'] . "'>" . trimlink($thread_data['thread_subject'], 35) . "</a><br />"; // Pimped: make_url echo showdate("forumdate", $a_data['forum_lastpost']) . "<br />\n"; echo "<span class='small'>" . $locale['406'] . profile_link($a_data['forum_lastuser'], $a_data['user_name'], $a_data['user_status']) . "</span></td>\n"; echo "</tr>\n"; // Pimped Sub Cats <-- } } echo "</table>"; echo "<div style='margin:5px'></div>"; } }
} elseif ($data['action'] == "admin_wl_edited") { echo "Weblink edited: " . $data['subject'] . ""; } elseif ($data['action'] == "admin_wl_deleted") { echo "Weblink deleted: " . $data['subject'] . ""; } elseif ($data['action'] == "admin_wel_panel_edited") { echo "Welcome Panel updated"; } elseif ($data['action'] == "admin_del_log") { echo $locale['130'] . " (" . $locale[$data['subject']] . ")"; } elseif ($data['action'] == "admin_adminrights_added") { echo $locale['131'] . " " . getusername($data['subject']); } elseif ($data['action'] == "admin_adminrights_removed") { echo $locale['132'] . " " . getusername($data['subject']); } elseif ($data['action'] == "admin_adminrights_changed") { echo $locale['133'] . " " . getusername($data['subject']); } elseif ($data['action'] == "admin_groupadminrights_changed") { echo "Groupadminrights changed: " . getgroupname($data['subject']); } elseif ($data['action'] == "admin_blacklist_added") { echo $locale['134']; } elseif ($data['action'] == "admin_blacklist_removed") { echo $locale['135']; } elseif ($data['action'] == "admin_blacklist_changed") { echo $locale['136']; } elseif ($data['action'] == "admin_moderator_added") { echo "Moderator added:" . " " . getusername($data['subject']); } elseif ($data['action'] == "admin_moderator_removed") { echo "Moderator removed:" . " " . getusername($data['subject']); } elseif ($data['action'] == "admin_forumrank_added") { echo $locale['137']; } elseif ($data['action'] == "admin_forumrank_removed") { echo $locale['138']; } elseif ($data['action'] == "admin_forumrank_changed") {
closetable(); opentable($locale['402']); echo "<table width='400' cellspacing='1' cellpadding='0' class='tbl-border center'>\n"; $result = dbquery("SELECT download_cat_id, download_cat_name, download_cat_description, download_cat_access FROM " . DB_DOWNLOAD_CATS . " ORDER BY download_cat_name"); if (dbrows($result) != 0) { $i = 0; echo "<tr>\n"; echo "<td class='tbl2'>" . $locale['440'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['441'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['442'] . "</td>\n"; echo "</tr>\n"; while ($data = dbarray($result)) { $cell_color = $i % 2 == 0 ? "tbl1" : "tbl2"; echo "<tr>\n"; echo "<td class='" . $cell_color . "'>" . $data['download_cat_name'] . "\n"; if ($data['download_cat_description']) { echo "<br /><span class='small'>" . trimlink($data['download_cat_description'], 45) . "</span>"; } echo "</td>\n<td align='center' width='1%' class='{$cell_color}' style='white-space:nowrap'>" . getgroupname($data['download_cat_access']) . "</td>\n"; echo "<td align='center' width='1%' class='{$cell_color}' style='white-space:nowrap'><a href='" . FUSION_SELF . $aidlink . "&action=edit&cat_id=" . $data['download_cat_id'] . "'>" . $locale['443'] . "</a> -\n"; echo "<a href='" . FUSION_SELF . $aidlink . "&action=delete&cat_id=" . $data['download_cat_id'] . "' onclick=\"return confirm('" . $locale['450'] . "');\">" . $locale['444'] . "</a></td>\n"; echo "</tr>\n"; $i++; } echo "</table>\n"; } else { echo "<tr><td align='center' class='tbl1'>" . $locale['445'] . "</td></tr>\n</table>\n"; } closetable(); } require_once THEMES . "templates/footer.php";
opentable($locale['addondb401']); $q_addon_cats = dbquery("SELECT tc.*, COUNT(tm.addon_id) AS addon_count\r\n\tFROM " . DB_ADDON_CATS . " tc LEFT JOIN " . DB_ADDONS . " tm USING(addon_cat_id)\r\n\tGROUP BY addon_cat_id ORDER BY addon_cat_type,addon_cat_order"); $rows = dbrows($q_addon_cats); if ($rows != 0) { echo "<table width='100%' align='center' cellpadding='0' cellspacing='1' class='tbl-border'>\r\n\t<tr>\r\n\t<td class='forum-caption'>" . $locale['addondb402'] . " - " . $locale['addondb441'] . "</td>\r\n\t<td class='forum-caption'>Type</td>\r\n\t<td class='forum-caption'>" . $locale['addondb405'] . "</td>\r\n\t<td class='forum-caption' align='center'>" . $locale['addondb433'] . "</td>\r\n\t<td class='forum-caption' align='center' colspan='2'>" . $locale['addondb432'] . "</td>\r\n\t<td class='forum-caption' align='right'>" . $locale['addondb420'] . "</td>\r\n\t</tr>"; $r = 0; $up_down = ""; while ($d_addon_cats = dbarray($q_addon_cats)) { if ($rows != 1) { $addon_cat_id = $d_addon_cats['addon_cat_id']; $up = $d_addon_cats['addon_cat_order'] - 1; $down = $d_addon_cats['addon_cat_order'] + 1; if ($d_addon_cats['addon_cat_order'] == 1) { $up_down = "<a href='" . FUSION_SELF . $aidlink . "&action=move_down&order=" . $down . "&addon_cat_id=" . $addon_cat_id . "' title='" . $locale['addondb703'] . "'><img src='" . ADDON_IMG . "down.png' border='0' /></a>"; } elseif ($d_addon_cats['addon_cat_order'] < $rows) { $up_down = "<a href='" . FUSION_SELF . $aidlink . "&action=move_up&order=" . $up . "&addon_cat_id=" . $addon_cat_id . "' title='" . $locale['addondb702'] . "'><img src='" . ADDON_IMG . "up.png' border='0' /></a> "; $up_down .= "<a href='" . FUSION_SELF . $aidlink . "&action=move_down&order=" . $down . "&addon_cat_id=" . $addon_cat_id . "' title='" . $locale['addondb703'] . "'><img src='" . ADDON_IMG . "down.png' border='0' /></a>"; } else { $up_down = "<a href='" . FUSION_SELF . $aidlink . "&action=move_up&order=" . $up . "&addon_cat_id=" . $addon_cat_id . "' title='" . $locale['addondb702'] . "'><img src='" . ADDON_IMG . "up.png' border='0' /></a>"; } } $cls = $r++ % 2 == 0 ? "tbl1" : "tbl2"; echo " <tr>\r\n\t\t<td class='" . $cls . "'><a href='" . FUSION_SELF . $aidlink . "&action=edit&addon_cat_id=" . $d_addon_cats['addon_cat_id'] . "' title='" . $locale['addondb700'] . "'>" . $d_addon_cats['addon_cat_name'] . "</a></td>\r\n\t\t<td class='" . $cls . "'><span class='small'>" . get_addon_type($d_addon_cats['addon_cat_type']) . "</span></td>\r\n\t\t<td class='" . $cls . "'><span class='small'>" . getgroupname($d_addon_cats['addon_cat_access']) . "</span></td>\r\n\t\t<td class='" . $cls . "' align='center'><span class='small'>" . $d_addon_cats['addon_count'] . "</span></td>\r\n\t\t<td class='" . $cls . "' align='center'><span class='small'>" . $d_addon_cats['addon_cat_order'] . "</span></td>\r\n\t\t<td class='" . $cls . "' align='center'>" . $up_down . "</td>\r\n\t\t<td class='" . $cls . "' align='right'><span class='small'>" . ($d_addon_cats['addon_count'] == 0 ? "<a href='" . FUSION_SELF . $aidlink . "&action=delete&addon_cat_id=" . $d_addon_cats['addon_cat_id'] . "' onClick=\"return confirmDeleteAddonCat('" . $d_addon_cats['addon_cat_name'] . "')\" title='" . $locale['addondb701'] . "'>" . $locale['addondb422'] . "</a>" : "-") . "</span></td>\r\n\t\t</tr>\n"; } echo "</table>"; echo "<script language='JavaScript'>\r\n\tfunction confirmDeleteAddonCat(addon_cat_name) {\r\n\t\treturn confirm('" . $locale['addondb439'] . "\\''+addon_cat_name+'\\'');\r\n\t}\r\n\t</script>\n"; } else { echo "<center><br />" . $locale['addondb434'] . "<br /><br /></center>\n"; } closetable(); require_once THEMES . "templates/footer.php";
echo "<td class='tbl2'><strong>" . $locale['430'] . "</strong></td>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['431'] . "</strong></td>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['432'] . "</strong></td>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['433'] . "</strong></td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['434'] . "</strong></td>\n"; echo "</tr>\n"; $i = 0; while ($data = dbarray($result)) { $row_color = $i % 2 == 0 ? "tbl1" : "tbl2"; echo "<tr>\n"; echo "<td align='center' width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . ($i + 1) . "</td>\n"; echo "<td class='" . $row_color . "'>" . $data['rank_title'] . "</td>\n"; echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>"; if ($data['rank_group'] != "0") { // Pimped echo "Group: " . getgroupname($data['rank_group']); } elseif ($data['rank_apply'] == nMEMBER) { echo $locale['424']; } elseif ($data['rank_apply'] == nADMIN) { echo $locale['426']; } elseif ($data['rank_apply'] == nSUPERADMIN) { echo $locale['427']; } elseif ($data['rank_apply'] == nMODERATOR) { echo $locale['425']; } echo "</td>\n"; echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'><img src='" . IMAGES . "ranks/" . $data['rank_image'] . "' alt='' style='border:0;' /></td>\n"; echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . $data['rank_posts'] . "</td>\n"; echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'><a href='" . FUSION_SELF . $aidlink . "&rank_id=" . $data['rank_id'] . "'>" . $locale['435'] . "</a> ::\n"; echo "<a href='" . FUSION_SELF . $aidlink . "&delete=" . $data['rank_id'] . "'>" . $locale['436'] . "</a></td>\n"; echo "</tr>\n";
} if (!checkgroup($data['access']) && $prp->settings['hide_cats']) { continue; } $cnt_cats = prp_count_cats($id); $cnt_downs = prp_count_dl($all_cats, $id); $cats[$id] = array("name" => $data['name'], "cnt_downs" => $cnt_downs, "cnt_cats" => $cnt_cats, "desc" => parseubb($data['desc'])); } } prp_render_cats($catid, $review->id, $path, $cats); unset($path, $cats); if (!is_null($access_group)) { if ($prp->settings['hide_cats']) { fallback("error.php?type=access"); } show_info('<img src="icons/lock.png" alt="' . $locale['prp_locked'] . '" /> ' . str_replace('%s', getgroupname($access_group), $locale['PRP215'])); } } /*************************************************************************** * DOWNLOADS * ***************************************************************************/ if (is_null($access_group) && !$review->id && (!isset($catid) || $catid != 0)) { $rowstart = 0; if (isset($_GET['rowstart']) && isNum($_GET['rowstart'])) { $rowstart = $_GET['rowstart']; } $downs = array(); if (isset($catid)) { $get = array('type' => 'cat', 'data' => $catid); } else { $get = array('type' => 'none');
$result = dbquery("SELECT rank_id, rank_title, rank_image, rank_posts, rank_type, rank_apply FROM " . DB_FORUM_RANKS . " " . (multilang_table("FR") ? "WHERE rank_language='" . LANGUAGE . "'" : "") . " ORDER BY rank_type DESC, rank_apply DESC, rank_posts"); if (dbrows($result)) { echo "<table cellpadding='0' cellspacing='1' class='table table-responsive tbl-border center'>\n<thead>\n<tr>\n"; echo "<th class='tbl2'><strong>" . $locale['430'] . "</strong></th>\n"; echo "<th width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['431'] . "</strong></th>\n"; echo "<th width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['432'] . "</strong></th>\n"; echo "<th width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['438'] . "</strong></th>\n"; echo "<th align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['434'] . "</strong></th>\n"; echo "</tr>\n"; echo "</thead>\n<tbody>\n"; $i = 0; while ($data = dbarray($result)) { $row_color = $i % 2 == 0 ? "tbl1" : "tbl2"; echo "<tr>\n"; echo "<td class='" . $row_color . "'>" . $data['rank_title'] . "</td>\n"; echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . ($data['rank_apply'] == 104 ? $locale['425'] : getgroupname($data['rank_apply'])) . "</td>\n"; echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'><img src='" . RANKS . $data['rank_image'] . "' alt='' style='border:0;' /></td>\n"; echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>"; if ($data['rank_type'] == 0) { echo $data['rank_posts']; } elseif ($data['rank_type'] == 1) { echo $locale['429b']; } else { echo $locale['429a']; } echo "</td>\n<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>"; echo "<a href='" . FUSION_SELF . $aidlink . "&rank_id=" . $data['rank_id'] . "&section=fr'>" . $locale['435'] . "</a> -\n"; echo "<a href='" . FUSION_SELF . $aidlink . "&delete=" . $data['rank_id'] . "&section=fr'>" . $locale['436'] . "</a></td>\n</tr>\n"; $i++; } echo "</tbody>\n</table>";
} elseif (file_exists(PHOTOS . "nophoto.jpg")) { echo "<img src='" . PHOTOS . "nophoto.jpg' alt='' title='" . $locale['460'] . "' style='border:0px' />"; } else { echo $locale['461']; } $sub = dbcount("(album_id)", DB_PHOTO_ALBUMS, "album_parent='" . $data['album_id'] . "'"); // Pimped: Subcategories echo "</a><br /><br />\n<span class='small'>" . $up; echo "<a href='" . FUSION_SELF . $aidlink . "&action=edit&album_id=" . $data['album_id'] . "'>" . $locale['468'] . "</a> ·\n"; echo "<a href='" . FUSION_SELF . $aidlink . "&action=delete&album_id=" . $data['album_id'] . "' onclick=\"return PhotosWarning('" . dbcount("(album_id)", DB_PHOTOS, "album_id='" . $data['album_id'] . "'") . "');\">" . $locale['469'] . "</a> " . $down; echo "<br /><br />\n"; echo $locale['447'] . $sub . "<br />"; // Pimped: Subcategories echo $locale['462'] . showdate("shortdate", $data['album_datestamp']) . "<br />\n"; echo $locale['463'] . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "<br />\n"; echo $locale['464'] . getgroupname($data['album_access']) . "<br />\n"; echo $locale['465'] . dbcount("(photo_id)", DB_PHOTOS, "album_id='" . $data['album_id'] . "'") . "</span><br />\n"; echo "</td>\n"; $counter++; $k++; } echo "</tr>\n<tr>\n<td align='center' colspan='" . $settings['thumbs_per_row'] . "' class='tbl2'><a href='" . FUSION_SELF . $aidlink . "&action=refresh'>" . $locale['470'] . "</a></td>\n</tr>\n</table>\n"; if ($rows > $settings['thumbs_per_page']) { echo "<div align='center' style='margin-top:5px;'>\n" . pagination(true, $_GET['rowstart'], $settings['thumbs_per_page'], $rows, 3, FUSION_SELF . $aidlink . "&") . "\n</div>\n"; } } else { echo "<div style='text-align:center'>" . $locale['471'] . "</div>\n"; } echo "<script type='text/javascript'>\n" . "function PhotosWarning(value) {\n"; echo "return confirm ('" . $locale['500'] . "');\n}\n</script>"; closetable();
private function renderUserGroups() { global $locale; $this->html .= "<div style='margin:5px'></div>\n"; $this->html .= "<table cellpadding='0' cellspacing='1' width='400' class='profile tbl-border center '>\n<tr>\n"; $this->html .= "<td class='tbl2'><strong>" . $locale['u057'] . "</strong></td>\n"; $this->html .= "</tr>\n<tr>\n"; $this->html .= "<td class='tbl1'>\n"; $user_groups = strpos($this->userData['user_groups'], ".") == 0 ? substr($this->userData['user_groups'], 1) : $this->userData['user_groups']; $user_groups = explode(".", $user_groups); for ($i = 0; $i < count($user_groups); $i++) { $this->html .= "<div style='float:left'><a href='" . FUSION_SELF . "?group_id=" . $user_groups[$i] . "'>" . getgroupname($user_groups[$i]) . "</a></div>\n"; $this->html .= "<div style='float:right'>" . getgroupname($user_groups[$i], true) . "</div>\n"; $this->html .= "<div style='float:none;clear:both'></div>\n"; } $this->html .= "</td>\n</tr>\n</table>\n"; }
// $order_cols = "<td class='$tbl'>".str_repeat(" ", $data['level']*5) // .$data['order'].":".$data['level']."</td>"; $order_cols = ""; for ($i = 0; $i < $data['level']; ++$i) { $order_cols .= "<td></td>"; } $order_cols .= "<td>" . $data['order'] . "</td>"; for ($i = $data['level'] + 1; $i < $maxlevel; ++$i) { $order_cols .= "<td></td>"; } echo ' <tr class="tbl' . (1 + ++$count % 2) . '"> <td>' . $edit_icon . '</td> <td>' . str_repeat(' ', $data['level'] * 5) . $data['name'] . '</td> ' . $order_cols . ' <td style="white-space:nowrap;">' . getgroupname($data['access']) . '</td> <td style="white-space:nowrap;">' . getgroupname($data['upload_access']) . '</td> <td style="white-space:nowrap;">' . getgroupname($data['review_access']) . '</td> <td align="center">' . $locale['PRP823'][$sorting[0]] . '<br />' . '<span class="small2">' . $locale['PRP824'][$sorting[1]] . '</span></td> <td width="16">' . $view_icon . '</td> <td align="center">' . $dl_count . '</td> <td>' . $del_icon . '</td> </tr>'; } if (count($cats_for_table)) { echo ' </tbody> </table>'; } closetable(); require_once '../include/die.php';
/** * The container for each grid positions * @param $side * @return string */ private function panel_reactor($side) { global $locale, $aidlink; $grid_opts = self::get_panel_grid(); $type = $grid_opts[$side]; $k = 0; $count = dbcount("('panel_id')", DB_PANELS, "panel_side='" . $side . "'"); $title = $type . " <span id='side-" . $side . "' class='badge num pull-right'>" . $count . "</span>"; $html = ''; $html .= "<div class='panel panel-default' style='border-style: dashed'>\n<div class='panel-body clearfix'>\n"; $html .= "<i class='fa fa-desktop m-r-10'></i> {$title} "; $html .= "</div>\n"; $html .= "<ul id='panel-side" . $side . "' data-side='" . $side . "' style='list-style: none;' class='panels-list connected list-group p-10'>\n"; if (isset($this->panel_data[$side])) { foreach ($this->panel_data[$side] as $data) { $row_color = $k % 2 == 0 ? "tbl1" : "tbl2"; $type = $data['panel_type'] == "file" ? $locale['423'] : $locale['424']; $html .= "<li id='listItem_" . $data['panel_id'] . "' style='border:1px solid #ddd;' class='pointer list-group-item " . $row_color . ($data['panel_status'] == 0 ? " pdisabled" : '') . "'>\n"; $html .= "<div class='handle'>\n"; $html .= "<i class='pull-right display-inline-block m-t-5 m-r-10 fa fa-arrows-alt' title='move'></i>\n"; $html .= "<div class='overflow-hide'>\n"; $html .= "<a class='dropdown-toggle' data-toggle='dropdown'>\n"; $html .= "<strong>" . $data['panel_name'] . "</strong> <span class='caret'></span>\n\n"; $html .= "</a>\n"; $html .= "<ul class='dropdown-menu' role='panel-options'>\n"; $html .= "<li style='padding:3px 20px;'>\n<i class='fa fa-bullseye m-r-10 m-t-5'></i> " . getgroupname($data['panel_access']) . "</li>\n"; $html .= "<li style='padding:3px 20px;'>\n<i class='fa fa-file-o m-r-10 m-t-5'></i> " . $type . "</li>\n"; $html .= "<li style='padding:3px 20px;'>\n<i class='fa fa-arrows-v m-r-10'></i> " . $data['panel_order'] . "</li>\n"; $html .= "<li class='divider'></li>\n"; $html .= "<li>\n<a href='" . FUSION_SELF . $aidlink . "&section=panelform&action=edit&panel_id=" . $data['panel_id'] . "'><i class='fa fa-pencil m-r-10 m-t-5'></i>" . $locale['434'] . "</a>\n</li>\n"; if ($data['panel_status'] == 0) { $html .= "<li>\n<a href='" . FUSION_SELF . $aidlink . "&action=setstatus&panel_status=1&panel_id=" . $data['panel_id'] . "'><i class='fa fa-check m-r-10 m-t-5'></i>" . $locale['435'] . "</a>\n</li>\n"; } else { $html .= "<li>\n<a href='" . FUSION_SELF . $aidlink . "&action=setstatus&panel_status=0&panel_id=" . $data['panel_id'] . "'><i class='fa fa-close m-r-10 m-t-5'></i>" . $locale['436'] . "</a>\n</li>\n"; } $html .= "<li>\n<a href='" . FUSION_SELF . $aidlink . "&action=delete&panel_id=" . $data['panel_id'] . "' onclick=\"return confirm('" . $locale['440'] . "');\"><i class='fa fa-trash m-r-10 m-t-5'></i>" . $locale['437'] . "</a>\n</li>\n"; $html .= "</ul>\n"; $html .= "</div>\n"; $html .= "</div>\n"; $html .= "</li>\n"; $k++; } } $html .= "</ul>\n"; $html .= "</div>\n"; return $html; }
/** * Displays News Listing */ function display_news_listing() { $aidlink = fusion_get_aidlink(); $locale = fusion_get_locale(); // Run functions $allowed_actions = array_flip(array("publish", "unpublish", "sticky", "unsticky", "delete")); if (isset($_POST['table_action']) && isset($allowed_actions[$_POST['table_action']])) { $input = isset($_POST['news_id']) ? explode(",", form_sanitizer($_POST['news_id'], "", "news_id")) : ""; if (!empty($input)) { foreach ($input as $news_id) { // check input table if (dbcount("('news_id')", DB_NEWS, "news_id='" . intval($news_id) . "'") && defender::safe()) { switch ($_POST['table_action']) { case "publish": dbquery("UPDATE " . DB_NEWS . " SET news_draft='0' WHERE news_id='" . intval($news_id) . "'"); break; case "unpublish": dbquery("UPDATE " . DB_NEWS . " SET news_draft='1' WHERE news_id='" . intval($news_id) . "'"); break; case "sticky": dbquery("UPDATE " . DB_NEWS . " SET news_sticky='1' WHERE news_id='" . intval($news_id) . "'"); break; case "unsticky": dbquery("UPDATE " . DB_NEWS . " SET news_sticky='0' WHERE news_id='" . intval($news_id) . "'"); break; case "delete": $result = dbquery("SELECT news_image, news_image_t1, news_image_t2 FROM " . DB_NEWS . " WHERE news_id='" . intval($news_id) . "'"); if (dbrows($result) > 0) { $photo = dbarray($result); if (!empty($photo['news_image']) && file_exists(IMAGES_N . $photo['news_image'])) { unlink(IMAGES_N . $photo['news_image']); } if (!empty($photo['news_image_t1']) && file_exists(IMAGES_N_T . $photo['news_image_t1'])) { unlink(IMAGES_N_T . $photo['news_image_t1']); } if (!empty($photo['news_image_t2']) && file_exists(IMAGES_N_T . $photo['news_image_t2'])) { unlink(IMAGES_N_T . $photo['news_image_t2']); } if (!empty($photo['news_image_t2']) && file_exists(IMAGES_N . $photo['news_image_t2'])) { unlink(IMAGES_N . $photo['news_image_t2']); } } dbquery("DELETE FROM " . DB_NEWS . " WHERE news_id='" . intval($news_id) . "'"); break; default: addNotice("warning", "News ID {$news_id} is not valid and update aborted"); redirect(FUSION_REQUEST); } } } addNotice("success", "News listing has been updated"); redirect(FUSION_REQUEST); } addNotice("warning", "No news item selected. Please check a news item and try again"); redirect(FUSION_REQUEST); } if (isset($_POST['news_clear'])) { redirect(FUSION_SELF . $aidlink); } // Switch to post $sql_condition = ""; $search_string = array(); if (isset($_POST['p-submit-news_text'])) { $search_string['news_subject'] = array("input" => form_sanitizer($_POST['news_text'], "", "news_text"), "operator" => "LIKE"); } if (!empty($_POST['news_status']) && isnum($_POST['news_status'])) { switch ($_POST['news_status']) { case 1: // is a draft $search_string['news_draft'] = array("input" => 1, "operator" => "="); break; case 2: // is a sticky $search_string['news_sticky'] = array("input" => 1, "operator" => "="); break; } } if (!empty($_POST['news_visibility'])) { $search_string['news_visibility'] = array("input" => form_sanitizer($_POST['news_visibility'], "", "news_visibility"), "operator" => "="); } if (!empty($_POST['news_category'])) { $search_string['news_cat_id'] = array("input" => form_sanitizer($_POST['news_category'], "", "news_category"), "operator" => "="); } if (!empty($_POST['news_language'])) { $search_string['news_language'] = array("input" => form_sanitizer($_POST['news_language'], "", "news_language"), "operator" => "="); } if (!empty($_POST['news_author'])) { $search_string['news_name'] = array("input" => form_sanitizer($_POST['news_author'], "", "news_author"), "operator" => "="); } if (!empty($search_string)) { foreach ($search_string as $key => $values) { $sql_condition .= " AND `{$key}` " . $values['operator'] . ($values['operator'] == "LIKE" ? "'%" : "'") . $values['input'] . ($values['operator'] == "LIKE" ? "%'" : "'"); } } $result2 = dbquery("\n\tSELECT n.*, nc.*, IF(nc.news_cat_name !='', nc.news_cat_name, 'Uncategorized') 'news_cat_name',\n\tcount('c.comment_id') 'comments_count',\n\tcount('r.rating_id') 'ratings_count',\n\tu.user_id, u.user_name, u.user_status, u.user_avatar\n\tFROM " . DB_NEWS . " n\n\tLEFT JOIN " . DB_NEWS_CATS . " nc on nc.news_cat_id=n.news_cat\n\tLEFT JOIN " . DB_COMMENTS . " c on c.comment_item_id= n.news_id AND c.comment_type='N'\n\tLEFT JOIN " . DB_RATINGS . " r on r.rating_item_id= n.news_id AND r.rating_type='N'\n\tINNER JOIN " . DB_USERS . " u on u.user_id= n.news_name\n\tWHERE " . (multilang_table("NS") ? "news_language='" . LANGUAGE . "'" : "") . "\n\t{$sql_condition}\n\tGROUP BY n.news_id\n\tORDER BY news_draft DESC, news_sticky DESC, news_datestamp DESC\n\t"); ?> <div class="m-t-15"> <?php echo openform("news_filter", "post", FUSION_REQUEST); echo "<div class='clearfix'>\n"; echo "<div class='pull-right'>\n"; echo "<a class='btn btn-success btn-sm m-r-10' href='" . clean_request("ref=news_form", array("ref"), FALSE) . "'>Add New</a>"; echo "<a class='btn btn-default btn-sm m-r-10' onclick=\"run_admin('publish');\"><i class='fa fa-check fa-fw'></i> " . $locale['publish'] . "</a>"; echo "<a class='btn btn-default btn-sm m-r-10' onclick=\"run_admin('unpublish');\"><i class='fa fa-ban fa-fw'></i> " . $locale['unpublish'] . "</a>"; echo "<a class='btn btn-default btn-sm m-r-10' onclick=\"run_admin('sticky');\"><i class='fa fa-sticky-note fa-fw'></i> " . $locale['sticky'] . "</a>"; echo "<a class='btn btn-default btn-sm m-r-10' onclick=\"run_admin('unsticky');\"><i class='fa fa-sticky-note-o fa-fw'></i> " . $locale['unsticky'] . "</a>"; echo "<a class='btn btn-default btn-sm m-r-10' onclick=\"run_admin('delete');\"><i class='fa fa-trash-o fa-fw'></i> " . $locale['delete'] . "</a>"; echo "</div>\n"; ?> <script> function run_admin(action) { $('#table_action').val(action); $('#news_table').submit(); } </script> <?php $filter_values = array("news_text" => !empty($_POST['news_text']) ? form_sanitizer($_POST['news_text'], "", "news_text") : "", "news_status" => !empty($_POST['news_status']) ? form_sanitizer($_POST['news_status'], "", "news_status") : "", "news_category" => !empty($_POST['news_category']) ? form_sanitizer($_POST['news_category'], "", "news_category") : "", "news_visibility" => !empty($_POST['news_visibility']) ? form_sanitizer($_POST['news_visibility'], "", "news_visibility") : "", "news_language" => !empty($_POST['news_language']) ? form_sanitizer($_POST['news_language'], "", "news_language") : "", "news_author" => !empty($_POST['news_author']) ? form_sanitizer($_POST['news_author'], "", "news_author") : ""); $filter_empty = TRUE; foreach ($filter_values as $val) { if ($val) { $filter_empty = FALSE; } } echo "<div class='display-inline-block pull-left m-r-10' style='width:300px;'>\n"; echo form_text("news_text", "", $filter_values['news_text'], array("placeholder" => "News Subject", "append_button" => TRUE, "append_value" => "<i class='fa fa-search'></i>", "append_form_value" => "search_news", "width" => "250px")); echo "</div>\n"; echo "<div class='display-inline-block'>"; echo "<a class='btn btn-sm " . ($filter_empty == FALSE ? "btn-info" : " btn-default'") . "' id='toggle_options' href='#'>Search Options\n <span id='filter_caret' class='fa " . ($filter_empty == FALSE ? "fa-caret-up" : "fa-caret-down") . "'></span></a>\n"; echo form_button("news_clear", "Clear", "clear"); echo "</div>\n"; echo "</div>\n"; add_to_jquery("\n \$('#toggle_options').bind('click', function(e) {\n \$('#news_filter_options').slideToggle();\n var caret_status = \$('#filter_caret').hasClass('fa-caret-down');\n if (caret_status == 1) {\n \$('#filter_caret').removeClass('fa-caret-down').addClass('fa-caret-up');\n \$(this).removeClass('btn-default').addClass('btn-info');\n } else {\n \$('#filter_caret').removeClass('fa-caret-up').addClass('fa-caret-down');\n \$(this).removeClass('btn-info').addClass('btn-default');\n }\n });\n\n // Select change\n \$('#news_status, #news_visibility, #news_category, #news_language, #news_author').bind('change', function(e){\n \$(this).closest('form').submit();\n });\n "); unset($filter_values['news_text']); echo "<div id='news_filter_options'" . ($filter_empty == FALSE ? "" : " style='display:none;'") . ">\n"; echo "<div class='display-inline-block'>\n"; echo form_select("news_status", "", $filter_values['news_status'], array("allowclear" => TRUE, "placeholder" => "- Select Status -", "options" => array(0 => "All Status", 1 => "Draft", 2 => "Sticky"))); echo "</div>\n"; echo "<div class='display-inline-block'>\n"; echo form_select("news_visibility", "", $filter_values['news_visibility'], array("allowclear" => TRUE, "placeholder" => "- Select Access -", "options" => fusion_get_groups())); echo "</div>\n"; echo "<div class='display-inline-block'>\n"; $news_cats_opts = array(0 => "All Categories"); $result = dbquery("SELECT * FROM " . DB_NEWS_CATS . " ORDER BY news_cat_name ASC"); if (dbrows($result) > 0) { while ($data = dbarray($result)) { $news_cats_opts[$data['news_cat_id']] = $data['news_cat_name']; } } echo form_select("news_category", "", $filter_values['news_category'], array("allowclear" => TRUE, "placeholder" => "- Select Category -", "options" => $news_cats_opts)); echo "</div>\n"; echo "<div class='display-inline-block'>\n"; $language_opts = array(0 => "All Language"); $language_opts += fusion_get_enabled_languages(); echo form_select("news_language", "", $filter_values['news_language'], array("allowclear" => TRUE, "placeholder" => "- Select Language -", "options" => $language_opts)); echo "</div>\n"; echo "<div class='display-inline-block'>\n"; $author_opts = array(0 => "All Author"); $result = dbquery("SELECT n.news_name, u.user_id, u.user_name, u.user_status\n FROM " . DB_NEWS . " n\n LEFT JOIN " . DB_USERS . " u on n.news_name = u.user_id\n GROUP BY u.user_id\n ORDER BY user_name ASC"); if (dbrows($result) > 0) { while ($data = dbarray($result)) { $author_opts[$data['user_id']] = $data['user_name']; } } echo form_select("news_author", "", $filter_values['news_author'], array("allowclear" => TRUE, "placeholder" => "- Select Author -", "options" => $author_opts)); echo "</div>\n"; echo "</div>\n"; echo closeform(); ?> </div> <?php echo openform("news_table", "post", FUSION_REQUEST); ?> <?php echo form_hidden("table_action", "", ""); ?> <table class="table table-responsive table-striped"> <thead> <tr> <td></td> <td class="strong col-xs-4">News Subject</td> <td class="strong">News Category</td> <td class="strong">Access</td> <td class="strong">Sticky</td> <td class="strong">Draft</td> <td class="strong">Comments</td> <td class="strong">Ratings</td> <td class="strong">News Author</td> <td class="strong">Actions</td> <td class="strong">ID</td> </tr> </thead> <tbody> <?php if (dbrows($result2) > 0) { while ($data = dbarray($result2)) { ?> <?php $edit_link = FUSION_SELF . $aidlink . "&action=edit&ref=news_form&news_id=" . $data['news_id']; $cat_edit_link = FUSION_SELF . $aidlink . "&action=edit&ref=news_category&cat_id=" . $data['news_cat_id']; $image_thumb = get_news_image_path($data['news_image'], $data['news_image_t1'], $data['news_image_t2']); if (!$image_thumb) { $image_thumb = IMAGES . "imagenotfound70.jpg"; } ?> <tr> <td><?php echo form_checkbox("news_id[]", "", "", array("value" => $data['news_id'], "class" => 'm-0')); ?> </td> <td> <a class="text-dark" href="<?php echo $edit_link; ?> "> <?php echo $data['news_subject']; ?> </a> </td> <td> <a class="text-dark" href="<?php echo $cat_edit_link; ?> "> <?php echo $data['news_cat_name']; ?> </a> </td> <td> <?php echo getgroupname($data['news_visibility']); ?> </td> <td> <span class="badge"><?php echo $data['news_sticky'] ? $locale['yes'] : $locale['no']; ?> </span> </td> <td> <span class="badge"><?php echo $data['news_draft'] ? $locale['yes'] : $locale['no']; ?> </span> </td> <td><?php echo $data['comments_count']; ?> </td> <td><?php echo $data['ratings_count']; ?> </td> <td> <div class="pull-left"><?php echo display_avatar($data, "20px", "", FALSE, "img-rounded"); ?> </div> <div class="overflow-hide"><?php echo profile_link($data['user_id'], $data['user_name'], $data['user_status']); ?> </div> </td> <td> <div class="btn-group"> <a class="btn btn-xs btn-default" href="<?php echo $edit_link; ?> "> <?php echo $locale['edit']; ?> </a> <a class="btn btn-xs btn-default" href="<?php echo FUSION_SELF . $aidlink . "&action=delete&news_id=" . $data['news_id']; ?> " onclick="return confirm('<?php echo $locale['news_0251']; ?> ')"> <?php echo $locale['delete']; ?> </a> </div> </td> <td><?php echo $data['news_id']; ?> </td> </tr> <?php } } else { ?> <tr> <td colspan="10" class="text-center strong"><?php echo $locale['news_0254']; ?> </td> </tr> <?php } ?> </tbody> </table> <?php closeform(); }
/** * Parse Forum Group Moderators Links * @param $forum_mods * @return string */ public static function parse_forum_mods($forum_mods) { $moderators = ''; if ($forum_mods) { $_mgroup = explode('.', $forum_mods); if (!empty($_mgroup)) { foreach ($_mgroup as $mod_group) { if ($moderators) { $moderators .= ", "; } $moderators .= $mod_group < -USER_LEVEL_MEMBER ? "<a href='" . BASEDIR . "profile.php?group_id=" . $mod_group . "'>" . getgroupname($mod_group) . "</a>" : getgroupname($mod_group); } } } return (string) $moderators; }
function photo_subcats($id) { global $aidlink, $settings, $locale; $rows = dbcount("(album_id)", DB_PHOTO_ALBUMS, "album_parent='" . (int) $id . "'"); $sublist = ""; if ($rows > 0) { include LOCALE . LOCALESET . "admin/photoalbums.php"; opentable($locale['404']); if (!isset($_GET['rowstart']) || isset($_GET['rowstart']) && !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; } $result = dbquery("SELECT ta.album_id, ta.album_title, ta.album_thumb, ta.album_order, ta.album_datestamp, ta.album_parent, ta.album_access,\r\n\t\t\ttu.user_id, tu.user_name, tu.user_status FROM " . DB_PHOTO_ALBUMS . " ta\r\n\t\t\tLEFT JOIN " . DB_USERS . " tu ON ta.album_user=tu.user_id\r\n\t\t\tWHERE album_parent='" . $_GET['album_id'] . "'\r\n\t\t\tORDER BY album_order LIMIT " . $_GET['rowstart'] . "," . $settings['thumbs_per_page']); $counter = 0; $k = $_GET['rowstart'] == 0 ? 1 : $_GET['rowstart'] + 1; echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n"; if ($rows > $settings['thumbs_per_page']) { echo "<div align='center' styl='margin-top:5px;'>\n" . makepagenav(true, $_GET['rowstart'], $settings['thumbs_per_page'], $rows, 3, FUSION_SELF . $aidlink . "&") . "\n</div>\n"; } // Pimped while ($data = dbarray($result)) { $up = ""; $down = ""; $parent = $data['album_parent'] == 0 ? "" : "&parent=" . $data['album_parent']; if ($rows != 1) { $order = $data['album_order'] - 1; $order = $data['album_order'] + 1; if ($k == 1) { $down = " ·\n<a href='" . FUSION_SELF . $aidlink . "&page=" . $_GET['rowstart'] . "&action=down&order={$order}&album_id=" . $data['album_id'] . "{$parent}><img src='" . get_image("right") . "' alt='" . $locale['467'] . "' title='" . $locale['468'] . "' style='border:0px;vertical-align:middle' /></a>\n"; } elseif ($k < $rows) { $up = "<a href='" . FUSION_SELF . $aidlink . "&page=" . $_GET['rowstart'] . "&action=up&order={$order}&album_id=" . $data['album_id'] . "{$parent}'><img src='" . get_image("left") . "' alt='" . $locale['467'] . "' title='" . $locale['466'] . "' style='border:0px;vertical-align:middle' /></a> ·\n"; $down = " ·\n<a href='" . FUSION_SELF . $aidlink . "&page=" . $_GET['rowstart'] . "&action=down&order={$order}&album_id=" . $data['album_id'] . "{$parent}><img src='" . get_image("right") . "' alt='" . $locale['467'] . "' title='" . $locale['468'] . "' style='border:0px;vertical-align:middle' /></a>\n"; } else { $up = "<a href='" . FUSION_SELF . $aidlink . "&page=" . $_GET['rowstart'] . "&action=up&order={$order}&album_id=" . $data['album_id'] . "{$parent}'><img src='" . get_image("left") . "' alt='" . $locale['467'] . "' title='" . $locale['466'] . "' style='border:0px;vertical-align:middle' /></a> ·\n"; } } if ($counter != 0 && $counter % $settings['thumbs_per_row'] == 0) { echo "</tr>\n<tr>\n"; } echo "<td align='center' valign='top' class='tbl'>\n"; echo "<strong>" . $data['album_title'] . "</strong><br /><br />\n<a href='photos.php" . $aidlink . "&album_id=" . $data['album_id'] . "'>"; if ($data['album_thumb'] && file_exists(PHOTOS . $data['album_thumb'])) { echo "<img src='" . PHOTOS . rawurlencode($data['album_thumb']) . "' alt='" . $locale['460'] . "' style='border:0px' />"; } else { echo $locale['461']; } echo "</a><br /><br />\n<span class='small'>" . $up; echo "<a href='photoalbums.php" . $aidlink . "&action=edit&album_id=" . $data['album_id'] . "{$parent}'>" . $locale['468'] . "</a> ·\n"; echo "<a href='photoalbums.php" . $aidlink . "&action=delete&album_id=" . $data['album_id'] . "{$parent}' onclick=\"return PhotosWarning\">" . $locale['469'] . "</a> " . $down; echo "<br /><br />\n" . $locale['462'] . showdate("shortdate", $data['album_datestamp']) . "<br />\n"; echo $locale['463'] . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "<br />\n"; echo $locale['464'] . getgroupname($data['album_access']) . "<br />\n"; echo $locale['465'] . dbcount("(photo_id)", DB_PHOTOS, "album_id='" . $data['album_id'] . "'") . "</span><br />\n"; echo "</td>\n"; $counter++; $k++; } echo "</tr>\n<tr>\n<td align='center' colspan='" . $settings['thumbs_per_row'] . "' class='tbl2'><a href='photoalbums.php" . $aidlink . "&action=refresh'>" . $locale['470'] . "</a></td>\n</tr>\n</table>\n"; if ($rows > $settings['thumbs_per_page']) { echo "<div align='center' style='margin-top:5px;'>\n" . makepagenav(true, $_GET['rowstart'], $settings['thumbs_per_page'], $rows, 3, FUSION_SELF . $aidlink . "&") . "\n</div>\n"; } closetable(); } //echo "<script type='text/javascript'>\n"."function PhotosWarning(value) {\n"; //echo "return confirm ('".$locale['500']."');\n}\n</script>"; return $sublist; }
function subcats($id) { global $aidlink, $locale, $data; $sublist = ""; $result2 = dbquery("SELECT download_cat_id, download_cat_name, download_cat_description, download_cat_access\r\n\tFROM " . DB_DOWNLOAD_CATS . " WHERE download_cat_parent='" . $id . "' ORDER BY download_cat_name"); while ($data2 = dbarray($result2)) { $sublist .= "<tr>\n"; $sublist .= "<td class='tbl1'>--" . $data2['download_cat_name']; if ($data2['download_cat_description']) { $sublist .= "<br />\n<span class='small'>" . trimlink($data2['download_cat_description'], 45) . "</span>\n"; } $sublist .= "</td>\n"; $sublist .= "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>" . getgroupname($data2['download_cat_access']) . "</td>\n"; $sublist .= "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'><a href='" . FUSION_SELF . $aidlink . "&action=edit&cat_id=" . $data2['download_cat_id'] . "'>" . $locale['443'] . "</a> -\n"; $sublist .= "<a href='" . FUSION_SELF . $aidlink . "&action=delete&cat_id=" . $data2['download_cat_id'] . "' onclick=\"return confirm('" . $locale['450'] . "');\">" . $locale['444'] . "</a></td>\n"; $sublist .= "</tr>\n"; } return $sublist; }
function debonair_banner_widget() { global $locale; $acceptedMode = array("edit", "new", "del"); echo "<a class='btn btn-default m-t-10 m-b-20' href='" . clean_request("slides=new", array(), false) . "'>" . $locale['debonair_0203'] . "</a>\n"; echo "<div class='alert alert-info'>" . $locale['debonair_0700'] . "</div>\n"; if (isset($_GET['slides']) && in_array($_GET['slides'], $acceptedMode)) { $_GET['id'] = isset($_GET['id']) && isnum($_GET['id']) ? $_GET['id'] : 0; $data = array(); $db_keys = fieldgenerator(DB_DEBONAIR); foreach ($db_keys as $keys) { $value = ""; if ($keys == "banner_id") { $value = 0; } if ($keys == "banner_language") { $value = LANGUAGE; } if ($keys == "banner_visibility") { $value = iGUEST; } if ($keys == "banner_datestamp") { $value = time(); } if ($keys == "banner_order") { $value = dbcount("(banner_id)", DB_DEBONAIR, "banner_language='" . LANGUAGE . "'") + 1; } $data[$keys] = $value; } if ($_GET['slides'] == "edit" || $_GET['slides'] == "del") { $data = dbarray(dbquery("select * from " . DB_DEBONAIR . " WHERE banner_id='" . intval($_GET['id']) . "'")); if ($_GET['slides'] == "del" && !empty($data)) { // process deletion if ($data['banner_image']) { unlink(THEME . "upload/" . $data['banner_image']); unlink(THEME . "upload/" . $data['banner_thumb']); } dbquery_insert(DB_DEBONAIR, $data, "delete"); addNotice("success", $locale['debonair_0217']); redirect(clean_request("", array("slides"), false)); } } if (isset($_POST['save_slide'])) { $data = array("banner_id" => form_sanitizer($_POST['banner_id'], 0, "banner_id"), "banner_subject" => form_sanitizer($_POST['banner_subject'], "", "banner_subject"), "banner_description" => form_sanitizer($_POST['banner_description'], "", "banner_description"), "banner_link" => form_sanitizer($_POST['banner_link'], "", "banner_link"), "banner_language" => form_sanitizer($_POST['banner_language'], LANGUAGE, "banner_language"), "banner_visibility" => form_sanitizer($_POST['banner_visibility'], iGUEST, "banner_visibility"), "banner_datestamp" => time()); if (defender::safe()) { $upload = form_sanitizer($_FILES['banner_image'], "", "banner_image"); if (isset($upload['error']) && !$upload['error']) { $data['banner_image'] = $upload['image_name']; $data['banner_thumb'] = $upload['thumb1']; } if ($data['banner_id'] > 0 && dbcount("(banner_id)", DB_DEBONAIR, "banner_id='" . $data['banner_id'] . "'")) { // get old data. do ordering $old_data = dbquery("select banner_image, banner_thumb, banner_order from " . DB_DEBONAIR . " where banner_id='" . $data['banner_id'] . "'"); if ($old_data['banner_image']) { unlink(THEME . "upload/" . $old_data['banner_image']); unlink(THEME . "upload/" . $old_data['banner_thumb']); } dbquery_insert(DB_DEBONAIR, $data, "update"); } else { dbquery_insert(DB_DEBONAIR, $data, "save"); } addNotice("success", $locale['debonair_0212']); redirect(clean_request("", array("slides"), false)); } } echo "<h3>" . $locale['debonair_0203'] . "</h3>\n"; echo openform("debonair_banner", "post", FUSION_REQUEST, array("enctype" => true)); echo "<div class='row'>\n"; echo "<div class='col-xs-12 col-sm-8'>\n"; openside(""); echo form_hidden("banner_id", "", $data['banner_id']); echo form_text("banner_subject", $locale['debonair_0205'], $data['banner_subject'], array("required" => true, "inline" => true, "placeholder" => $locale['debonair_0206'])); echo form_textarea("banner_description", $locale['debonair_0207'], $data['banner_subject'], array("required" => true, "inline" => true, "placeholder" => $locale['debonair_0208'], "bbcode" => true)); echo form_text("banner_link", $locale['debonair_0209'], $data['banner_subject'], array("required" => true, "inline" => true, "placeholder" => "ie. news.php?readmore=1")); closeside(); openside(""); echo form_fileinput("banner_image", $locale['debonair_0210'], $data['banner_image'] ? THEME . "upload/" . $data['banner_image'] : "", array("upload_path" => THEME . "upload/", "inline" => true, "placeholder" => $locale['debonair_0210'], "template" => "modern")); closeside(); echo "</div>\n<div class='col-xs-12 col-sm-4'>\n"; openside(""); echo form_select("banner_language", $locale['debonair_0214'], $data['banner_language'], array("options" => fusion_get_enabled_languages(), "inline" => true, "placeholder" => $locale['debonair_0206'])); echo form_select("banner_visibility", $locale['debonair_0215'], $data['banner_visibility'], array("options" => fusion_get_groups(), "inline" => true, "placeholder" => $locale['debonair_0206'])); closeside(); echo form_button("save_slide", $locale['save_changes'], "save_slide", array("class" => "btn-primary")); echo "<a class='btn btn-default m-l-10' href='" . clean_request("", array("slides"), false) . "'>" . $locale['cancel'] . "</a>\n"; echo "</div>\n</div>\n"; echo closeform(); } else { if (isset($_GET['move']) && isset($_GET['id']) && isnum($_GET['id'])) { $data = dbarray(dbquery("select banner_id, banner_order FROM " . DB_DEBONAIR . " where banner_id='" . intval($_GET['id']) . "' AND banner_language='" . LANGUAGE . "'")); if ($_GET['move'] == "md") { dbquery("UPDATE " . DB_DEBONAIR . " SET banner_order=banner_order-1 WHERE banner_order= '" . ($data['banner_order'] + 1) . "' AND banner_language='" . LANGUAGE . "'"); dbquery("UPDATE " . DB_DEBONAIR . " SET banner_order=banner_order+1 WHERE banner_id='" . $data['banner_id'] . "' AND banner_language='" . LANGUAGE . "'"); } if ($_GET['move'] == "mup") { dbquery("UPDATE " . DB_DEBONAIR . " SET banner_order=banner_order+1 WHERE banner_order= '" . ($data['banner_order'] - 1) . "' AND banner_language='" . LANGUAGE . "'"); dbquery("UPDATE " . DB_DEBONAIR . " SET banner_order=banner_order-1 WHERE banner_id='" . $data['banner_id'] . "' AND banner_language='" . LANGUAGE . "'"); } addNotice("success", $locale['debonair_0220']); redirect(clean_request("", array("move", "id"), false)); } $result = dbquery("SELECT * FROM " . DB_DEBONAIR . " WHERE banner_language='" . LANGUAGE . "' order by banner_order ASC"); if (dbrows($result) > 0) { echo "<table class='table table-striped'>\n"; echo "<tr>\n\n\t\t<th>" . $locale['debonair_0205'] . "</th>\n\t\t<th>" . $locale['debonair_0210'] . "</th>\n\t\t<th>" . $locale['debonair_0214'] . "</th>\n<th>" . $locale['debonair_0215'] . "</th>\n\t\t<th>" . $locale['debonair_0211'] . "</th>\n\t\t<th>" . $locale['debonair_0216'] . "</th></tr>"; while ($data = dbarray($result)) { echo "\n\t\t\t<tr>\n\n\t\t\t<td><a href='" . clean_request("slides=edit&id=" . $data['banner_id'], array(), false) . "'>" . $data['banner_subject'] . "</a></td>\n\n\t\t\t<td>" . ($data['banner_image'] ? $locale['yes'] : $locale['no']) . "</td>\n\n\t\t\t<td>" . $data['banner_language'] . "</td>\n\n\t\t\t<td>" . getgroupname($data['banner_visibility']) . "</td>\n"; echo "<td>\n"; if ($data['banner_order'] == 1) { echo "<a href='" . clean_request("move=md&id=" . $data['banner_id'], array(), false) . "'>" . $locale['debonair_0219'] . "</a>"; } elseif ($data['banner_order'] == dbrows($result)) { echo "<a href='" . clean_request("move=mup&id=" . $data['banner_id'], array(), false) . "'>" . $locale['debonair_0218'] . "</a>"; } else { echo "<a href='" . clean_request("move=mup&id=" . $data['banner_id'], array(), false) . "'>" . $locale['debonair_0218'] . "</a> - "; echo "<a href='" . clean_request("move=md&id=" . $data['banner_id'], array(), false) . "'>" . $locale['debonair_0219'] . "</a>"; } echo "</td>\n\n\t\t\t<td>\n\t\t\t<a href='" . clean_request("slides=edit&id=" . $data['banner_id'], array(), false) . "'>" . $locale['edit'] . "</a>\n\t\t\t- <a href='" . clean_request("slides=del&id=" . $data['banner_id'], array(), false) . "'>" . $locale['delete'] . "</a>\n\t\t\t</td>\n\t\t\t</tr>\n\n\t\t\t"; } echo "</table>\n"; } else { echo "<div class='well text-center'>" . $locale['debonair_0213'] . "</div>\n"; } } }
} else { if ($data['link_name'] == "---" && $data['link_url'] == "---") { echo "<hr />\n"; } else { if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) { echo "<a href='" . $data['link_url'] . "'>" . $data['link_name'] . "</a>\n"; } else { echo "<a href='" . BASEDIR . $data['link_url'] . "'>" . $data['link_name'] . "</a>\n"; } } } if ($data['link_position'] == 3) { echo "</i>"; } echo "</td>\n"; echo "<td align='center' width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . getgroupname($data['link_visibility']) . "</td>\n"; echo "<td align='center' width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . $data['link_order'] . "</td>\n"; echo "<td align='center' width='1%' class='" . $row_color . "' style='white-space:nowrap'>\n"; if (dbrows($result) != 1) { $up = $data['link_order'] - 1; $down = $data['link_order'] + 1; if ($k == 1) { echo "<a href='" . FUSION_SELF . $aidlink . "&action=movedown&order={$down}&link_id=" . $data['link_id'] . "'><img src='" . get_image("down") . "' alt='" . $locale['451'] . "' title='" . $locale['453'] . "' style='border:0px;' /></a>\n"; } elseif ($k < dbrows($result)) { echo "<a href='" . FUSION_SELF . $aidlink . "&action=moveup&order={$up}&link_id=" . $data['link_id'] . "'><img src='" . get_image("up") . "' alt='" . $locale['450'] . "' title='" . $locale['452'] . "' style='border:0px;' /></a>\n"; echo "<a href='" . FUSION_SELF . $aidlink . "&action=movedown&order={$down}&link_id=" . $data['link_id'] . "'><img src='" . get_image("down") . "' alt='" . $locale['451'] . "' title='" . $locale['453'] . "' style='border:0px;' /></a>\n"; } else { echo "<a href='" . FUSION_SELF . $aidlink . "&action=moveup&order={$up}&link_id=" . $data['link_id'] . "'><img src='" . get_image("up") . "' alt='" . $locale['450'] . "' title='" . $locale['452'] . "' style='border:0px;' /></a>\n"; } } $k++;
//echo "<div style='float:right; width:10%;'><strong>".$locale['402']."</strong></div>\n"; echo "<div style='clear:both;'></div>\n</div>\n"; echo "<ul id='panel-side" . $i . "' data-side='" . $i . "' style='list-style: none;' class='panels-list connected'>\n"; foreach ($panels[$i] as $data) { $row_color = $k % 2 == 0 ? "tbl1" : "tbl2"; $type = $data['panel_type'] == "file" ? $locale['423'] : $locale['424']; echo "<li id='listItem_" . $data['panel_id'] . "' class='" . $row_color . ($data['panel_status'] == 0 ? " pdisabled" : "") . "'>\n"; echo "<div style='float:left; width:30px;'><img src='" . IMAGES . "arrow.png' alt='move' class='handle' /></div>\n"; echo "<div style='float:left;'>" . $data['panel_name'] . "</div>\n"; echo "<div style='float:right; width:230px;'>"; echo "[<a href='panel_editor.php" . $aidlink . "&action=edit&panel_id=" . $data['panel_id'] . "&panel_side=" . $i . "'>" . $locale['434'] . "</a>]\n"; if ($data['panel_status'] == 0) { echo "[<a href='" . FUSION_SELF . $aidlink . "&action=setstatus&status=1&panel_id=" . $data['panel_id'] . "'>" . $locale['435'] . "</a>]\n"; } else { echo "[<a href='" . FUSION_SELF . $aidlink . "&action=setstatus&status=0&panel_id=" . $data['panel_id'] . "'>" . $locale['436'] . "</a>]\n"; } echo "[<a href='" . FUSION_SELF . $aidlink . "&action=delete&panel_id=" . $data['panel_id'] . "&panel_side=" . $data['panel_side'] . "' onclick=\"return confirm('" . $locale['440'] . "');\">" . $locale['437'] . "</a>]\n"; echo "</div>\n"; echo "<div style='float:right; width:150px;'>" . getgroupname($data['panel_access']) . "</div>\n"; echo "<div style='float:right; width:10%;'>" . $type . "</div>\n"; //echo "<div class='num' style='float:right; width:10%;'>".$data['panel_order']."</div>\n"; //echo "<div class='pside' style='float:right; width:10%;'>".$side[$i]."</div>\n"; echo "<div style='clear:both;'></div>\n"; echo "</li>\n"; $k++; } echo "</ul>\n</div>\n"; echo "<div style='margin:5px;'></div>\n"; } closetable(); require_once THEMES . "templates/footer.php";
if ($activated != "Y") { $editquestion .= "<select id='question_type' style='margin-bottom:5px' name='type' " . ">\n" . getqtypelist($eqrow['type'], 'group') . "</select>\n"; } else { $qtypelist = getqtypelist('', 'array'); $editquestion .= "{$qtypelist[$eqrow['type']]['description']} - " . $clang->gT("Cannot be changed (survey is active)") . "\n" . "<input type='hidden' name='type' id='question_type' value='{$eqrow['type']}' />\n"; } $editquestion .= "\t</li>\n"; if (!$adding) { $qattributes = questionAttributes(); } else { $qattributes = array(); } if ($activated != "Y") { $editquestion .= "\t<li>\n" . "\t<label for='gid'>" . $clang->gT("Question group:") . "</label>\n" . "<select name='gid' id='gid'>\n" . getgrouplist3($eqrow['gid']) . "\t\t</select></li>\n"; } else { $editquestion .= "\t<li>\n" . "\t<label>" . $clang->gT("Question group:") . "</label>\n" . getgroupname($eqrow['gid']) . " - " . $clang->gT("Cannot be changed (survey is active)") . "\n" . "\t<input type='hidden' name='gid' value='{$eqrow['gid']}' />" . "</li>\n"; } $editquestion .= "\t<li id='OtherSelection'>\n" . "<label>" . $clang->gT("Option 'Other':") . "</label>\n"; if ($activated != "Y") { $editquestion .= "<label for='OY'>" . $clang->gT("Yes") . "</label><input id='OY' type='radio' class='radiobtn' name='other' value='Y'"; if ($eqrow['other'] == "Y") { $editquestion .= " checked"; } $editquestion .= " /> \n" . "\t<label for='ON'>" . $clang->gT("No") . "</label><input id='ON' type='radio' class='radiobtn' name='other' value='N'"; if ($eqrow['other'] == "N" || $eqrow['other'] == "") { $editquestion .= " checked='checked'"; } $editquestion .= " />\n"; } else { $editquestion .= " [{$eqrow['other']}] - " . $clang->gT("Cannot be changed (survey is active)") . "\n" . "\t<input type='hidden' name='other' value=\"{$eqrow['other']}\" />\n"; }
++$i; ?> <tr target="sid_role" rel="<?php echo $vo['id']; ?> "> <td><?php echo $vo['id']; ?> </td> <td><?php echo $vo['name']; ?> </td> <td><?php echo getgroupname($vo['pid']); ?> </td> <td><?php echo getstatus($vo['status']); ?> </td> <td><?php echo $vo['remark']; ?> </td> <td><?php echo showstatus($vo['status'], $vo['id']); ?> <a href="__URL__/app/groupId/<?php echo $vo['id'];
public function get_profile_output() { $this->method = "display"; global $locale, $userdata, $aidlink; $section_links = $this->renderPageLink(); $this->info['section'] = $section_links; $_GET['section'] = isset($_GET['section']) && isset($section_links[$_GET['section']]) ? $_GET['section'] : 1; if (!empty($this->userData['user_avatar']) && file_exists(IMAGES . "avatars/" . $this->userData['user_avatar'])) { $this->userData['user_avatar'] = IMAGES . "avatars/" . $this->userData['user_avatar']; } else { $this->userData['user_avatar'] = IMAGES . "avatars/noavatar150.png"; } $this->info['core_field']['profile_user_avatar'] = array('title' => $locale['u186'], 'value' => $this->userData['user_avatar'], 'status' => $this->userData['user_status']); // user name $this->info['core_field']['profile_user_name'] = array('title' => $locale['u068'], 'value' => $this->userData['user_name']); // user level $this->info['core_field']['profile_user_level'] = array('title' => $locale['u063'], 'value' => getgroupname($this->userData['user_level'])); // user email if (iADMIN || $this->userData['user_hide_email'] == 0) { $this->info['core_field']['profile_user_email'] = array('title' => $locale['u064'], 'value' => hide_email($this->userData['user_email'], fusion_get_locale("UM061a", LOCALE . LOCALESET . "global.php"))); } // user joined $this->info['core_field']['profile_user_joined'] = array('title' => $locale['u066'], 'value' => showdate("longdate", $this->userData['user_joined'])); // user last visit $lastVisit = $this->userData['user_lastvisit'] ? showdate("longdate", $this->userData['user_lastvisit']) : $locale['u042']; $this->info['core_field']['profile_user_visit'] = array('title' => $locale['u067'], 'value' => $lastVisit); // user status if (iADMIN && $this->userData['user_status'] > 0) { $this->info['core_field']['profile_user_status'] = array('title' => $locale['u055'], 'value' => getuserstatus($this->userData['user_status'])); $this->info['core_field']['profile_user_reason'] = array('title' => $locale['u056'], 'value' => $this->userData['suspend_reason']); } // IP $this->info['core_field']['profile_user_ip'] = array(); if (iADMIN && checkrights("M")) { $this->info['core_field']['profile_user_ip'] = array('title' => $locale['u049'], 'value' => $this->userData['user_ip']); } // Groups - need translating. $this->info['core_field']['profile_user_group']['title'] = $locale['u057']; $user_groups = strpos($this->userData['user_groups'], ".") == 0 ? substr($this->userData['user_groups'], 1) : $this->userData['user_groups']; $user_groups = explode(".", $user_groups); $grp_html = ''; $user_groups = array_filter($user_groups); if (!empty($user_groups)) { for ($i = 0; $i < count($user_groups); $i++) { $grp_html .= "<span class='user_group'><a href='" . FUSION_SELF . "?group_id=" . $user_groups[$i] . "'>" . getgroupname($user_groups[$i]) . "</a></span>"; } $this->info['core_field']['profile_user_group']['value'] = $grp_html; } else { $this->info['core_field']['profile_user_group']['value'] = $locale['user_na']; } $this->get_userFields(); if (iMEMBER && $userdata['user_id'] != $this->userData['user_id']) { $this->info['buttons'][] = array('link' => BASEDIR . "messages.php?folder=inbox&msg_send=" . $this->userData['user_id'], 'name' => $locale['u043']); if (checkrights("M") && $userdata['user_level'] <= USER_LEVEL_ADMIN && $this->userData['user_id'] != "1") { $this->info['buttons'][] = array('link' => ADMIN . "members.php" . $aidlink . "&step=log&user_id=" . $this->userData['user_id'], 'name' => $locale['u054']); $this->info['admin'] = self::renderAdminOptions(); } } return $this->info; }
if ($data['forum_cat_name'] != $current_cat) { $current_cat = $data['forum_cat_name']; echo "<tr>\n<td colspan='2' class='forum-caption forum_cat_name'><!--forum_cat_name-->" . $data['forum_cat_name'] . "</td>\n"; echo "<td align='center' width='1%' class='forum-caption' style='white-space:nowrap'>" . $locale['402'] . "</td>\n"; echo "<td align='center' width='1%' class='forum-caption' style='white-space:nowrap'>" . $locale['403'] . "</td>\n"; echo "<td width='1%' class='forum-caption' style='white-space:nowrap'>" . $locale['404'] . "</td>\n"; echo "</tr>\n"; } $moderators = ""; if ($data['forum_moderators']) { $mod_groups = explode(".", $data['forum_moderators']); foreach ($mod_groups as $mod_group) { if ($moderators) { $moderators .= ", "; } $moderators .= $mod_group < 101 ? "<a href='" . BASEDIR . "profile.php?group_id=" . $mod_group . "'>" . getgroupname($mod_group) . "</a>" : getgroupname($mod_group); } } $forum_match = "\\|" . $data['forum_lastpost'] . "\\|" . $data['forum_id']; if ($data['forum_lastpost'] > $lastvisited) { if (iMEMBER && ($data['forum_lastuser'] == $userdata['user_id'] || preg_match("({$forum_match}\\.|{$forum_match}\$)", $userdata['user_threads']))) { $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />"; } else { $fim = "<img src='" . get_image("foldernew") . "' alt='" . $locale['560'] . "' />"; } } else { $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />"; } echo "<tr>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>{$fim}</td>\n"; echo "<td class='tbl1 forum_name'><!--forum_name--><a href='viewforum.php?forum_id=" . $data['forum_id'] . "'>" . $data['forum_name'] . "</a><br />\n";
public static function listPage() { global $locale, $aidlink; $data = array(); // now load new page $result = dbquery("SELECT page_id, page_link_cat, page_title, page_access, page_allow_comments, page_allow_ratings, page_language FROM " . DB_CUSTOM_PAGES . " ORDER BY page_id ASC"); if (dbrows($result) > 0) { while ($cdata = dbarray($result)) { $data[$cdata['page_id']] = $cdata; } } $choice = array('0' => $locale['no'], '1' => $locale['yes']); add_to_jquery("\n\t\t\$('.actionbar').hide();\n\t\t\$('tr').hover(\n\t\t\tfunction(e) { \$('#coupon-'+ \$(this).data('id') +'-actions').show(); },\n\t\t\tfunction(e) { \$('#coupon-'+ \$(this).data('id') +'-actions').hide(); }\n\t\t);\n\t\t\$('.qform').hide();\n\t\t"); echo "<div class='m-t-20'>\n"; echo "<table class='table table-responsive table-striped table-hover'>\n"; echo "<tr>\n"; echo "<th>" . $locale['cp_100'] . "</th>\n"; echo "<th>" . $locale['cp_101'] . "</th>\n"; echo "<th>" . $locale['cp_102'] . "</th>\n"; echo "<th>" . $locale['cp_103'] . "</th>\n"; echo "<th>" . $locale['cp_104'] . "</th>\n"; echo "<th>" . $locale['cp_105'] . "</th>\n"; echo "<th>" . $locale['cp_106'] . "</th>\n"; echo "</tr>\n"; if (!empty($data)) { echo "<tbody id='custompage-links' class='connected'>\n"; foreach ($data as $id => $pageData) { $displayLanguage = ""; $pageLang = explode(".", $pageData['page_language']); foreach ($pageLang as $languages) { $displayLanguage .= "<span class='badge'>" . translate_lang_names($languages) . "</span>\n"; } echo "<tr id='listItem_" . $pageData['page_id'] . "' data-id='" . $pageData['page_id'] . "' class='list-result pointer'>\n"; echo "<td>" . $pageData['page_id'] . "</td>\n"; echo "<td class='col-sm-4'>" . $pageData['page_title'] . "\n"; echo "<div class='actionbar text-smaller' id='coupon-" . $pageData['page_id'] . "-actions'>\n\t\t\t\t<a target='_new' href='" . BASEDIR . "viewpage.php?page_id=" . $pageData['page_id'] . "'>" . $locale['view'] . "</a> |\n\t\t\t\t<a href='" . FUSION_SELF . $aidlink . "&section=cp2&action=edit&cpid=" . $pageData['page_id'] . "'>" . $locale['edit'] . "</a> |\n\t\t\t\t<a class='delete' href='" . FUSION_SELF . $aidlink . "&action=delete&cpid=" . $pageData['page_id'] . "' onclick=\"return confirm('" . $locale['450'] . "');\">" . $locale['delete'] . "</a>\n\t\t\t\t</div>\n"; echo "</td>\n"; echo "<td>" . getgroupname($pageData['page_access']) . "</td>\n"; echo "<td>" . $displayLanguage . "</td>\n"; echo "<td>" . $choice[$pageData['page_allow_comments']] . "</td>\n"; echo "<td>" . $choice[$pageData['page_allow_ratings']] . "</td>\n"; echo "<td>" . ($pageData['page_link_cat'] ? $choice[1] : $choice[0]) . "</td>\n"; echo "</tr>\n"; } echo "</tbody>\n"; } echo "</table>\n"; echo "</div>\n"; }
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='tbl2'><strong>" . $locale['401'] . "</strong></td>\n"; echo "<td class='tbl2'><strong>" . $locale['405'] . "</strong></td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['402'] . "</strong></td>\n"; echo "</tr>\n"; $result = dbquery("SELECT user_id, user_name, user_status, user_level, user_groups FROM " . DB_USERS . " WHERE user_status='0'" . $orderby . " ORDER BY user_level DESC, user_name LIMIT " . $_GET['rowstart'] . ",20"); while ($data = dbarray($result)) { $cell_color = $i % 2 == 0 ? "tbl1" : "tbl2"; $i++; echo "<tr>\n<td class='{$cell_color}'>\n" . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "</td>\n"; $groups = ""; $user_groups = explode(".", $data['user_groups']); $j = 0; foreach ($user_groups as $key => $value) { if ($value) { $groups .= "<a href='profile.php?group_id=" . $value . "'>" . getgroupname($value) . "</a>" . ($j < count($user_groups) - 1 ? ", " : ""); } $j++; } echo "<td class='{$cell_color}'>\n" . ($groups ? $groups : ($data['user_level'] == 103 ? $locale['407'] : $locale['406'])) . "</td>\n"; echo "<td align='center' width='1%' class='{$cell_color}' style='white-space:nowrap'>" . getuserlevel($data['user_level']) . "</td>\n</tr>"; } echo "</table>\n"; } else { echo "<div style='text-align:center'><br />\n" . $locale['403'] . $_GET['sortby'] . "<br /><br />\n</div>\n"; } $search = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); echo "<hr />\n<table cellpadding='0' cellspacing='1' class='tbl-border center'>\n<tr>\n"; echo "<td rowspan='2' class='tbl2'><a href='" . FUSION_SELF . "?sortby=all'>" . $locale['404'] . "</a></td>"; for ($i = 0; $i < 36 != ""; $i++) { echo "<td align='center' class='tbl1'><div class='small'><a href='" . FUSION_SELF . "?sortby=" . $search[$i] . "'>" . $search[$i] . "</a></div></td>";
/** * Ranks Listing * @return string */ protected function displayRankList() { $rank_list_query = "\n SELECT * FROM " . DB_FORUM_RANKS . "\n " . (multilang_table("FR") ? "WHERE rank_language='" . LANGUAGE . "'" : "") . "\n ORDER BY rank_type DESC, rank_apply DESC, rank_posts\n "; $result = dbquery($rank_list_query); if (dbrows($result) > 0) { $html = "<table class='table table-responsive table-striped table-hover center m-t-20'>\n<thead>\n<tr>\n" . "<th class='col-xs-4'>" . self::$locale['430'] . "</th>\n" . "<th>" . self::$locale['431'] . "</th>\n" . "<th>" . self::$locale['432'] . "</th>\n" . "<th>" . self::$locale['438'] . "</th>\n" . "<th class='text-center'>" . self::$locale['434'] . "</th>\n" . "</tr>\n" . "</thead>\n<tbody>\n"; $i = 0; while ($data = dbarray($result)) { $html .= "<tr>\n" . "<td '>" . $data['rank_title'] . "</td>\n" . "<td>" . ($data['rank_apply'] == 104 ? self::$locale['425'] : getgroupname($data['rank_apply'])) . "</td>\n" . "<td class='col-xs-2'>" . ForumServer::show_forum_rank($data['rank_posts'], $data['rank_apply'], $data['rank_apply']) . "</td>\n" . "<td>"; if ($data['rank_type'] == 0) { $html .= $data['rank_posts']; } elseif ($data['rank_type'] == 1) { $html .= self::$locale['429b']; } else { $html .= self::$locale['429a']; } $html .= "</td>\n<td width='1%' style='white-space:nowrap'>" . "<a href='" . clean_request("rank_id=" . $data['rank_id'] . "§ion=fr&ref=rank_form", array("rank_id", "ref"), false) . "'>" . self::$locale['435'] . "</a> -\n" . "<a href='" . clean_request("delete=" . $data['rank_id'] . "§ion=fr&ref=rank_form", array("rank_id", "ref"), false) . "'>" . self::$locale['436'] . "</a></td>\n</tr>\n"; $i++; } $html .= "</tbody>\n</table>"; } else { $html = "<div class='well text-center'>" . self::$locale['437'] . "</div>\n"; } return $html; }
function renderSubforums($forum) { global $locale, $userdata, $db_prefix, $lastvisited, $fb4; $forum_list = ""; $current_cat = ""; $result = dbquery("SELECT f.*, f2.forum_name AS forum_cat_name, u.user_id, u.user_name\n\t\tFROM " . DB_FORUMS . " f\n\t\tLEFT JOIN " . DB_FORUMS . " f2 ON f.forum_cat = f2.forum_id\n\t\tLEFT JOIN " . DB_USERS . " u ON f.forum_lastuser = u.user_id\n\t\tLEFT JOIN " . DB_PREFIX . "fb_forums f3 on f3.forum_id=f.forum_id\n\t\tWHERE " . groupaccess('f.forum_access') . " AND f3.forum_parent='" . $forum . "' GROUP BY forum_id ORDER BY f2.forum_order ASC, f.forum_order ASC"); if (dbrows($result) != 0) { $state = "off"; $boxname = "subforums"; echo "<!--pre_forum_idx--><table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n"; if ($fb4['forum_icons']) { echo "<tr>\n<td colspan='6' class='forum-caption' style='padding:7px;'><div style='float:right'>" . panelbutton($state, $boxname) . "</div>\n\n\t\t\t<!--forum_cat_name_cell-->" . $locale['fb553'] . "</td>\n</tr>"; echo "</table>" . panelstate($state, $boxname) . "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n"; echo "<tr>\n<td colspan='3' class='tbl2' width='65%'>" . $locale['401'] . "</td>\n"; } else { echo "<tr>\n<td colspan='6' class='forum-caption' style='padding:7px;'><div style='float:right'>" . panelbutton($state, $boxname) . "</div>\n\n\t\t\t<!--forum_cat_name_cell-->" . $locale['fb553'] . "</td>\n</tr>"; echo "</table>" . panelstate($state, $boxname) . "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n"; echo "<tr>\n<td colspan='2' class='tbl2' width='65%'>" . $locale['401'] . "</td>\n"; } echo "<td class='tbl2' width='35%' style='white-space:nowrap'>" . $locale['404'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['402'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['403'] . "</td>\n"; echo "</tr>\n"; while ($data = dbarray($result)) { $moderators = ""; if ($data['forum_moderators']) { $mod_groups = explode(".", $data['forum_moderators']); foreach ($mod_groups as $mod_group) { if ($moderators) { $moderators .= ", "; } $moderators .= $mod_group < 101 ? "<a href='" . BASEDIR . "profile.php?group_id=" . $mod_group . "'>" . getgroupname($mod_group) . "</a>" : getgroupname($mod_group); } } $forum_match = "\\|" . $data['forum_lastpost'] . "\\|" . $data['forum_id']; if ($data['forum_lastpost'] > $lastvisited) { if (iMEMBER && preg_match("({$forum_match}\\.|{$forum_match}\$)", $userdata['user_threads'])) { $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />"; } else { $fim = "<img src='" . get_image("foldernew") . "' alt='" . $locale['560'] . "' />"; } } else { $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />"; } echo "<tr>\n"; echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap' style='padding:7px;'>{$fim}</td>\n"; $iconQuery = dbquery("select * from " . $db_prefix . "fb_forums where forum_id='" . $data['forum_id'] . "'"); if (dbrows($iconQuery)) { $iconData = dbarray($iconQuery); $ficon = $iconData['forum_icon'] !== "" ? $iconData['forum_icon'] : "folder.png"; } else { $ficon = "folder.png"; } if ($fb4['forum_icons']) { $ficon = "<img src='" . INFUSIONS . "fusionboard4/images/forum_icons/{$ficon}' alt='' />"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap; padding:7px;'>{$ficon}</td>\n"; } echo "<td class='tbl1' style='padding:5px;width:65%;'><a href='viewforum.php?forum_id=" . $data['forum_id'] . "' style='font-size:12px; text-decoration:underline; font-weight:bold;'>\n\t\t\t<!--forum_name_cell-->" . $data['forum_name'] . "</a><br />\n"; if ($data['forum_description'] || $moderators) { echo "<span class='small'>" . $data['forum_description'] . ($data['forum_description'] && $moderators ? "<br />\n" : ""); echo ($moderators ? "<strong>" . $locale['411'] . "</strong>" . $moderators . "</span>\n" : "</span>\n") . "\n"; } $c_res = dbquery("select * from " . DB_PREFIX . "forums f\n\t\t\tleft join " . DB_PREFIX . "fb_forums f2 on f2.forum_id=f.forum_id\n\t\t\twhere " . groupaccess("f.forum_access") . " AND f2.forum_parent='" . $data['forum_id'] . "'"); if (dbrows($c_res)) { if ($fb4['subforum_view']) { echo "<br /><span class='small'><strong>" . $locale['fb552'] . "</strong> "; $i = dbrows($c_res); while ($c_data = dbarray($c_res)) { $i--; echo "<a href='" . FORUM . "viewforum.php?forum_id=" . $c_data['forum_id'] . "'>" . $c_data['forum_name'] . "</a>"; if ($i > 0) { echo ", "; } } echo "</span>"; } else { $counter = 0; $rows = 3; $sfimage1 = file_exists(THEME . "images/folder_open.png") ? THEME . "images/folder_open.png" : INFUSIONS . "fusionboard4/images/folder_open.png"; $sfimage2 = file_exists(THEME . "images/subforum.png") ? THEME . "images/subforum.png" : INFUSIONS . "fusionboard4/images/subforum.png"; echo "<br /><img src='{$sfimage1}' alt='' style='vertical-align:middle;'> <span class='small' style='font-weight:bold;'>" . $locale['fb552'] . "</span><br />"; echo "<table cellspacing='0' cellpadding='0' border='0' width='100%' style='padding-left:10px;'><tr>\n\t\t\t\t\t<td width='50%' class='small' style='padding-left:3px; padding-right:3px; vertical-align:top;'>"; while ($c_data = dbarray($c_res)) { if ($counter != 0 && $counter % $rows == 0) { echo "</td><td width='50%' class='small' style='padding-left:3px; padding-right:3px; vertical-align:top;'>\n"; } $subforum = is_file(THEME . "images/subforum.png") ? THEME . "images/subforum.png" : INFUSIONS . "fusionboard4/images/subforum.png"; echo "<img src='{$sfimage2}' alt='' style='vertical-align:middle;'> \n\t\t\t\t\t\t<a href='" . FORUM . "viewforum.php?forum_id=" . $c_data['forum_id'] . "' class='small'>" . $c_data['forum_name'] . "</a><br />"; $counter++; } echo "</td></tr></table>"; } } echo "</td>\n"; echo "<td class='tbl2' style='white-space:nowrap; padding:5px;width:35%;'>"; $children = array(); $child_res = dbquery("select * from " . $db_prefix . "fb_forums f\n\t\t\tleft join " . $db_prefix . "forums f2 on f2.forum_id=f.forum_id\n\t\t\twhere " . groupaccess("f2.forum_access") . " and f.forum_parent='" . $data['forum_id'] . "'"); if (dbrows($child_res)) { while ($child_data = dbarray($child_res)) { array_push($children, $child_data['forum_id']); findChildren($child_data['forum_id']); } } if (count($children)) { $where = ""; $counter = count($children); foreach ($children as $child) { $where .= "t.forum_id='{$child}' " . ($counter > 1 ? "OR " : ""); $counter--; } $childrenForums = dbquery("select * from " . $db_prefix . "threads t\n\t\t\t\tleft join " . $db_prefix . "users u on u.user_id=t.thread_lastuser\n\t\t\t\tleft join " . $db_prefix . "posts p on p.post_id=t.thread_lastpostid\n\t\t\t\twhere ({$where} OR t.forum_id='" . $data['forum_id'] . "') \n\t\t\t\torder by t.thread_lastpost desc limit 1"); if (!dbrows($childrenForums)) { echo $locale['405'] . "</td>\n"; } else { $childrenData = dbarray($childrenForums); echo "<b><a href='viewthread.php?thread_id=" . $childrenData['thread_id'] . "' style='text-decoration:underline;'>" . trimlink($childrenData['thread_subject'], 30) . "</a></b><br />"; echo "" . $locale['406'] . "<a href='" . BASEDIR . "profile.php?lookup=" . $childrenData['thread_lastuser'] . "'>" . showLabel($childrenData['user_id'], false, "index") . "</a><br />\n\t\t\t\t\t<div align='right'>" . timePassed($childrenData['thread_lastpost'], false) . "\n\t\t\t\t\t<a href='" . FORUM . "viewthread.php?thread_id=" . $childrenData['thread_id'] . "&pid=" . $childrenData['thread_lastpostid'] . "#post_" . $childrenData['thread_lastpostid'] . "' title='Go To Last Post'><b>»</b></a></div></td>\n"; } } else { if ($data['forum_lastpost'] == 0) { echo $locale['405'] . "</td>\n"; } else { $threadData = dbarray(dbquery("select * from " . $db_prefix . "threads t\n\t\t\t\t\tleft join " . $db_prefix . "posts p on p.post_id=t.thread_lastpostid\n\t\t\t\t\twhere t.thread_lastpost='" . $data['forum_lastpost'] . "'")); echo "<b><a href='viewthread.php?thread_id=" . $threadData['thread_id'] . "' style='text-decoration:underline;'>" . trimlink($threadData['thread_subject'], 30) . "</a></b><br />"; echo "" . $locale['406'] . "<a href='" . BASEDIR . "profile.php?lookup=" . $data['forum_lastuser'] . "' style='text-decoration:underline;'>" . showLabel($data['forum_lastuser'], false, "index") . "</a><br />\n\t\t\t\t\t<div align='right'>" . timePassed($data['forum_lastpost'], false) . "\n\t\t\t\t\t<a href='" . FORUM . "viewthread.php?thread_id=" . $threadData['thread_id'] . "&pid=" . $threadData['thread_lastpostid'] . "#post_" . $threadData['thread_lastpostid'] . "' title='Go To Last Post'><b>»</b></a></div></td>\n"; } } echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>" . $data['forum_threadcount'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $data['forum_postcount'] . "</td>\n"; echo "</tr>\n"; } echo "</table></div>"; } }
echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n"; echo "<td colspan='2' class='tbl2'><strong>" . $locale['u048'] . "</strong></td>\n"; echo "</tr>\n<tr>\n"; echo "<td width='1%' class='tbl1' style='white-space:nowrap'>" . $locale['u049'] . "</td>\n"; echo "<td align='right' class='tbl1'>" . $user_data['user_ip'] . "</td>\n"; echo "</tr>\n</table>\n"; } if ($user_data['user_groups']) { echo "<div style='margin:5px'></div>\n"; echo "<table cellpadding='0' cellspacing='1' width='400' class='center tbl-border'>\n<tr>\n"; echo "<td class='tbl2'><strong>" . $locale['401'] . "</strong></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl1'>\n"; $user_groups = strpos($user_data['user_groups'], ".") == 0 ? explode(".", substr($user_data['user_groups'], 1)) : explode(".", $user_data['user_groups']); for ($i = 0; $i < count($user_groups); $i++) { echo "<div style='float:left'>" . group_link($user_groups[$i], getgroupname($user_groups[$i])) . "</div><div style='float:right'>" . getgroupname($user_groups[$i], true) . "</div><div style='float:none;clear:both'></div>\n"; // Pimped: url-rewrite } echo "</td>\n</tr>\n</table>\n"; } if (iADMIN && checkrights("M") && $user_data['user_id'] != $userdata['user_id']) { $user_groups_opts = ""; if (iSUPERADMIN || $user_data['user_level'] < nADMIN) { echo "<div style='margin:5px'></div>\n"; echo "<form name='admin_form' method='post' action='" . FUSION_SELF . "?lookup=" . $user_data['user_id'] . "'>\n"; echo "<table cellpadding='0' cellspacing='0' width='400' class='center tbl-border'>\n<tr>\n"; echo "<td class='tbl2' colspan='2'><strong>" . $locale['402'] . "</strong></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl1'><!--profile_admin_options-->\n"; echo "<a href='" . ADMIN . "members.php" . $aidlink . "&step=edit&user_id=" . $user_data['user_id'] . "'>" . $locale['410'] . "</a> ::\n"; echo "<a href='" . ADMIN . "members.php" . $aidlink . "&action=1&user_id=" . $user_data['user_id'] . "'>" . $locale['411'] . "</a> ::\n";