function themeheader() { global $slogan, $sitename, $banners, $mainindex, $adminindex, $cpgtpl, $db, $prefix, $site_logo, $MAIN_CFG, $CPG_SESS, $Blocks; if ($MAIN_CFG['global']['admingraphic'] & 4) { include 'includes/cssmainmenu.php'; } $imgr = $imgl = ''; // left blocks ? if ($Blocks->l && $Blocks->showblocks & 1) { $img = $Blocks->hideblock('600') ? 'plus.gif' : 'minus.gif'; $imgl = '<img alt="' . _TOGGLE . '" title="' . _TOGGLE . '" id="pic600" src="themes/' . $CPG_SESS['theme'] . '/images/' . $img . '" onclick="blockswitch(\'600\');" style="cursor:pointer; float:left; padding-top:3px;" />'; } // right blocks ? if ($Blocks->r && $Blocks->showblocks & 2) { $img = $Blocks->hideblock('601') ? 'plus.gif' : 'minus.gif'; $imgr = '<img alt="' . _TOGGLE . '" title="' . _TOGGLE . '" id="pic601" src="themes/' . $CPG_SESS['theme'] . '/images/' . $img . '" onclick="blockswitch(\'601\');" style="cursor:pointer; float:right; padding-top:3px;" />'; } $result = $db->sql_uquery("SELECT topicid, topictext FROM " . $prefix . "_topics ORDER BY topictext"); while ($row = $db->sql_fetchrow($result, SQL_NUM)) { $toplist[$row[0]] = $row[1]; } $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $css_ie = ereg('MSIE 7.0', $user_agent) ? 'ie7' : (ereg('MSIE ([0-6].[0-9]{1,2})', $user_agent) ? 'ie6' : (isset($_SESSION['SECURITY']['UA']) && $_SESSION['SECURITY']['UA'] == 'Safari' ? 'safari' : (isset($_SESSION['SECURITY']['UA']) && $_SESSION['SECURITY']['UA'] == 'Opera' ? 'opera' : ''))); $cpgtpl->assign_vars(array('CSS_IE' => $css_ie ? '<link rel="stylesheet" type="text/css" href="themes/' . $CPG_SESS['theme'] . '/style/' . $css_ie . '.css" />' : '', 'PUBLIC_HEADER' => !defined('ADMIN_PAGES'), 'B_L_VISIBLE' => $Blocks->hideblock('600') ? 'style="display: none"' : '', 'BLOG_ENABLED' => is_active('Blogs'), 'G_LEFTIMAGE' => $imgl, 'G_RIGHTIMAGE' => $imgr, 'S_TOGGLE' => _TOGGLE, 'S_SEARCH' => _SEARCH, 'S_IS_ADMIN' => is_admin(), 'S_CAN_ADMIN' => can_admin(), 'S_IS_USER' => is_user(), 'S_LOGO' => $site_logo, 'S_SITENAME' => $sitename, 'S_WELCOME' => _WELCOMETO, 'S_HOME' => _HOME, 'S_BLOG' => _BlogsLANG, 'S_DOWNLOADS' => _DownloadsLANG, 'S_GALLERY' => _coppermineLANG, 'S_FORUMS' => _ForumsLANG, 'S_MY_ACCOUNT' => _Your_AccountLANG, 'S_NEWS' => _NewsLANG, 'S_ADMIN' => _ADMINISTRATION, 'S_BANNER' => $banners ? viewbanner() : '', 'U_MAININDEX' => $mainindex, 'U_NEWS' => getlink('News'), 'U_SEARCH' => getlink('Search'), 'U_DOWNLOADS' => getlink('Downloads'), 'U_FORUMS' => getlink('Forums'), 'U_GALLERY' => getlink('coppermine'), 'U_BLOG' => getlink('Blogs'), 'U_MY_ACCOUNT' => getlink('Your_Account'), 'U_ADMININDEX' => $adminindex, 'S_MAIN_MENU' => isset($mmcontent) ? $mmcontent : false)); $Blocks->display('l'); }
/** @test */ public function is_active_calls_is_active_method() { $activeMock = Mockery::mock(Active::class); $activeMock->shouldReceive('isActive')->once()->with(['foo'])->andReturn('bar'); App::shouldReceive('make')->once()->with('active')->andReturn($activeMock); $result = is_active('foo'); $this->assertEquals('bar', $result); }
function get_config_func() { global $mobiquo_config, $config; $config_list = array('is_open' => new xmlrpcval($mobiquo_config['is_open'] && is_active('Forums') ? true : false, 'boolean'), 'guest_okay' => new xmlrpcval($mobiquo_config['guest_okay'] ? true : false, 'boolean')); foreach ($mobiquo_config as $key => $value) { if (!in_array($key, array('is_open', 'guest_okay', 'php_extension', 'keep_log', 'shorten_quote', 'hide_forum_id', 'check_dnsbl'))) { $config_list[$key] = new xmlrpcval($value, 'string'); } } $response = new xmlrpcval($config_list, 'struct'); return new xmlrpcresp($response); }
function adminblock($bid, $title, &$data) { if (is_admin()) { $waitlist = $content = $imgcontent = ''; if (empty($data)) { $data = ''; } global $prefix, $db, $MAIN_CFG, $waitlist; if (!defined('ADMIN_PAGES') && $MAIN_CFG['global']['admingraphic'] & 1) { global $CLASS; require_once CORE_PATH . 'classes/cpg_adminmenu.php'; $imgcontent = $CLASS['adminmenu']->display('all', 'blockgfx') . '<hr />'; } if (!empty($data)) { $data = $imgcontent . $data . '<hr />'; } $imgcontent = ''; // $title = _WAITINGCONT; // Contributed by sengsara if (!Cache::array_load('waitlist')) { if ($waitdir = dir('admin/wait')) { while ($waitfile = $waitdir->read()) { if (preg_match('/^wait_(.*?)\\.php$/', $waitfile, $match)) { $waitlist[$match[1]] = "admin/wait/{$waitfile}"; } } $waitdir->close(); } // Dragonfly system $waitdir = dir('modules'); while ($module = $waitdir->read()) { if (!is_active($module)) { continue; } if (false === strpos($module, '.') && $module != 'CVS' && file_exists("modules/{$module}/admin/adwait.inc")) { $waitlist[$module] = "modules/{$module}/admin/adwait.inc"; } } $waitdir->close(); Cache::array_save('waitlist'); } ksort($waitlist); foreach ($waitlist as $module => $file) { require $file; } $block = array('bid' => $bid, 'view' => 2, 'title' => $title, 'content' => $data . $content); return $block; } return false; }
function nav($main_up = 0) { global $module_name, $articlecomm; $handle = opendir('themes'); while ($file = readdir($handle)) { if (!ereg("[.]", $file)) { $thmcount++; } } closedir($handle); echo "<table border=\"0\" width=\"100%\" align=\"center\"><tr><td width=\"10%\">"; $menuimg = menuimg("info.gif"); echo "<font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=edituser\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CHANGEYOURINFO . "\" title=\"" . _CHANGEYOURINFO . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=edituser\">" . _CHANGEYOURINFO . "</a>" . "</center></font></td>"; $menuimg = menuimg("home.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=edithome\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CHANGEHOME . "\" title=\"" . _CHANGEHOME . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=edithome\">" . _CHANGEHOME . "</a>" . "</center></form></font></td>"; if ($articlecomm == 1) { $menuimg = menuimg("comments.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=editcomm\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CONFIGCOMMENTS . "\" title=\"" . _CONFIGCOMMENTS . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=editcomm\">" . _CONFIGCOMMENTS . "</a>" . "</center></form></font></td>"; } if (is_active("WebMail")) { $menuimg = menuimg("mail.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=WebMail\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _WEBMAIL . "\" title=\"" . _WEBMAIL . "\"></a><br>" . "<a href=\"modules.php?name=WebMail\">" . _WEBMAIL . "</a>" . "</center></form></font></td>"; } if (is_active("Private_Messages")) { $menuimg = menuimg("messages.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Private_Messages\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _PRIVATEMESSAGES . "\" title=\"" . _PRIVATEMESSAGES . "\"></a><br>" . "<a href=\"modules.php?name=Private_Messages\">" . _MESSAGES . "</a>" . "</center></form></font></td>"; } if (is_active("Journal")) { $menuimg = menuimg("journal.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Journal&file=edit\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _JOURNAL . "\" title=\"" . _JOURNAL . "\"></a><br>" . "<a href=\"modules.php?name=Journal&file=edit\">" . _JOURNAL . "</a>" . "</center></form></font></td>"; } //FIX:DOMSNITT //if ($thmcount > 1) { if ($thmcount > 1000) { //END-OF-FIX $menuimg = menuimg("themes.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _SELECTTHETHEME . "\" title=\"" . _SELECTTHETHEME . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=chgtheme\">" . _SELECTTHETHEME . "</a>" . "</center></form></font></td>"; } $menuimg = menuimg("exit.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=logout\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _LOGOUTEXIT . "\" title=\"" . _LOGOUTEXIT . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=logout\">" . _LOGOUTEXIT . "</a>" . "</center></form></font>"; echo "</td></tr></table>"; if ($main_up != 1) { echo "<br><center>[ <a href=\"modules.php?name=Your_Account\">" . _RETURNACCOUNT . "</a> ]</center>\n"; } }
function drawItem($item) { global $path, $session; $out = ""; if (isset($item['session'])) { if (isset($session[$item['session']]) && $session[$item['session']] == 1 || $item['session'] == 'all') { $i = 0; $subactive = false; if (isset($item['dropdown']) && count($item['dropdown']) > 0) { usort($item['dropdown'], "menu_sort"); $outdrop = ""; foreach ($item['dropdown'] as $dropdownitem) { if (!isset($dropdownitem['session']) || isset($dropdownitem['session']) && $session[$dropdownitem['session']] == 1) { $i++; if (is_active($dropdownitem)) { $subactive = true; } if (isset($dropdownitem['divider']) && $dropdownitem['divider']) { $outdrop .= '<li class="divider"></li>'; } // TODO: Remove dependency of index position on APPs module $outdrop .= '<li class="' . (is_active($dropdownitem) ? ' active' : '') . '"><a href="' . $path . (isset($dropdownitem['path']) ? $dropdownitem['path'] : $dropdownitem['1']) . '">' . (isset($dropdownitem['name']) ? drawNameIcon($dropdownitem, true) : $dropdownitem['0']) . '</a></li>'; } } } if ($i > 0) { $out .= '<li class="dropdown' . ($subactive ? " active" : "") . (isset($item['class']) ? " " . $item['class'] : "") . '">'; $out .= '<a href="#" class="dropdown-toggle" data-toggle="dropdown">' . drawNameIcon($item, false) . '<b class="caret"></b></a>'; $out .= '<ul class="dropdown-menu scrollable-menu">'; $out .= $outdrop; $out .= '</ul></li>'; } else { if (isset($item['path']) && isset($item['name'])) { $out .= "<li class='" . (is_active($item) ? "active" : "") . (isset($item['class']) ? " " . $item['class'] : "") . "'><a href=\"" . $path . $item['path'] . "\">" . drawNameIcon($item, false) . "</a></li>"; } } } } else { $out .= "<li class='" . (is_active($item) ? "active" : "") . (isset($item['class']) ? " " . $item['class'] : "") . "'><a href=\"" . $path . $item['path'] . "\">" . drawNameIcon($item, false) . "</a></li>"; } return $out; }
function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$joined, &$profile_img, &$profile, &$search_img, &$search, &$pm_img, &$pm, &$email_img, &$email, &$www_img, &$www) { global $lang, $images, $board_config, $MAIN_CFG; static $ranksrow; if (!is_array($ranksrow)) { global $db; $ranksrow = $db->sql_ufetchrowset("SELECT * FROM " . RANKS_TABLE . " ORDER BY rank_special, rank_min", SQL_ASSOC); } $from = !empty($row['user_from']) ? $row['user_from'] : ' '; $joined = formatDateTime($row['user_regdate'], _DATESTRING2); $posts = $row['user_posts'] ? $row['user_posts'] : 0; $email_img = $email = ''; for ($j = 0; $j < count($ranksrow); $j++) { if ($row['user_rank'] && $row['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] || !$row['user_rank'] && $row['user_posts'] >= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special']) { $email = $ranksrow[$j]['rank_title']; $email_img = $ranksrow[$j]['rank_image'] ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $email . '" title="' . $email . '" style="border:0;" />' : ''; } } $temp_url = URL::index("Your_Account&profile=" . $row['user_id']); $profile_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" /></a>'; $profile = '<a href="' . $temp_url . '">' . $lang['Read_profile'] . '</a>'; if (is_user() && is_active('Private_Messages')) { $temp_url = URL::index("Private_Messages&mode=post&" . POST_USERS_URL . "=" . $row['user_id']); $pm_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" style="border:0;" /></a>'; $pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>'; } else { $pm = $pm_img = ''; } if ($row['user_website'] == 'http:///' || $row['user_website'] == 'http://') { $row['user_website'] = ''; } if ($row['user_website'] != '' && substr($row['user_website'], 0, 7) != 'http://') { $row['user_website'] = 'http://' . $row['user_website']; } $www_img = $row['user_website'] ? '<a href="' . $row['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" style="border:0;" /></a>' : ''; $www = $row['user_website'] ? '<a href="' . $row['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : ''; $temp_url = URL::index("Forums&file=search&search_author=" . urlencode($row['user_id']) . "&showresults=posts"); $search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . $lang['Search_user_posts'] . '" style="border:0;" /></a>'; $search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>'; return; }
function nav($main_up = 0) { global $module_name, $articlecomm, $db, $prefix; $row = $db->sql_fetchrow($db->sql_query("SELECT overwrite_theme from " . $prefix . "_config")); $overwrite_theme = intval($row['overwrite_theme']); $thmcount = 0; $handle = opendir('themes'); while ($file = readdir($handle)) { if (!ereg("[.]", $file)) { $thmcount++; } } closedir($handle); echo "<table border=\"0\" width=\"100%\" align=\"center\"><tr><td width=\"10%\">"; $menuimg = menuimg("info.gif"); echo "<font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=edituser\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CHANGEYOURINFO . "\" title=\"" . _CHANGEYOURINFO . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=edituser\">" . _CHANGEYOURINFO . "</a>" . "</center></font></td>"; $menuimg = menuimg("home.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=edithome\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CHANGEHOME . "\" title=\"" . _CHANGEHOME . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=edithome\">" . _CHANGEHOME . "</a>" . "</center></form></font></td>"; if ($articlecomm == 1) { $menuimg = menuimg("comments.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=editcomm\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CONFIGCOMMENTS . "\" title=\"" . _CONFIGCOMMENTS . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=editcomm\">" . _CONFIGCOMMENTS . "</a>" . "</center></form></font></td>"; } if (is_active("Private_Messages")) { $menuimg = menuimg("messages.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Private_Messages\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _PRIVATEMESSAGES . "\" title=\"" . _PRIVATEMESSAGES . "\"></a><br>" . "<a href=\"modules.php?name=Private_Messages\">" . _MESSAGES . "</a>" . "</center></form></font></td>"; } if (is_active("Journal")) { $menuimg = menuimg("journal.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Journal&file=edit\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _JOURNAL . "\" title=\"" . _JOURNAL . "\"></a><br>" . "<a href=\"modules.php?name=Journal&file=edit\">" . _JOURNAL . "</a>" . "</center></form></font></td>"; } if ($thmcount > 1 and $overwrite_theme == 1) { $menuimg = menuimg("themes.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _SELECTTHETHEME . "\" title=\"" . _SELECTTHETHEME . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=chgtheme\">" . _SELECTTHETHEME . "</a>" . "</center></form></font></td>"; } $menuimg = menuimg("exit.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=logout\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _LOGOUTEXIT . "\" title=\"" . _LOGOUTEXIT . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=logout\">" . _LOGOUTEXIT . "</a>" . "</center></form></font>"; echo "</td></tr></table>"; if ($main_up != 1) { echo "<br><center>[ <a href=\"modules.php?name=Your_Account\">" . _RETURNACCOUNT . "</a> ]</center>\n"; } }
function themeheader() { global $slogan, $sitename, $banners, $mainindex, $adminindex, $cpgtpl, $site_logo, $CPG_SESS, $MAIN_CFG, $Blocks; if ($MAIN_CFG['global']['admingraphic'] & 4) { include 'includes/cssmainmenu.php'; } $imgr = $imgl = ''; // left blocks ? if ($Blocks->l) { $img = $Blocks->hideblock('600') ? 'plus.gif' : 'minus.gif'; $imgl = '<img alt="Toggle Content" title="Toggle Content" id="pic600" src="themes/' . $CPG_SESS['theme'] . '/images/' . $img . '" onclick="blockswitch(\'600\');" style="cursor:pointer; float:left; padding:2px 0 2px 0;" />'; } // right blocks ? if ($Blocks->r) { $img = $Blocks->hideblock('601') ? 'plus.gif' : 'minus.gif'; $imgr = '<img alt="Toggle Content" title="Toggle Content" id="pic601" src="themes/' . $CPG_SESS['theme'] . '/images/' . $img . '" onclick="blockswitch(\'601\');" style="cursor:pointer; float:right; padding:2px 0 2px 0;" />'; } $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $cpgtpl->assign_vars(array('CSS_IE' => ereg('MSIE 7.0', $user_agent) ? '<link rel="stylesheet" type="text/css" href="themes/' . $CPG_SESS['theme'] . '/style/ie7.css" />' : (ereg('MSIE ([0-6].[0-9]{1,2})', $user_agent) ? '<link rel="stylesheet" type="text/css" href="themes/' . $CPG_SESS['theme'] . '/style/ie6.css" />' : ''), 'PUBLIC_HEADER' => !defined('ADMIN_PAGES'), 'B_L_VISIBLE' => $Blocks->hideblock('600') ? 'style="display: none"' : '', 'B_L_HIDDEN' => $Blocks->hideblock('600') ? '' : 'style="display: none"', 'G_LEFTIMAGE' => $imgl, 'G_RIGHTIMAGE' => $imgr, 'S_IS_ADMIN' => is_admin(), 'S_CAN_ADMIN' => can_admin(), 'S_IS_USER' => is_user(), 'S_LOGO' => $site_logo, 'S_SITENAME' => $sitename, 'S_HOME' => _HOME, 'S_DOWNLOADS' => is_active('Downloads') ? _DownloadsLANG : false, 'S_FORUMS' => _ForumsLANG, 'S_MY_ACCOUNT' => is_user() ? _Your_AccountLANG : _BREG, 'S_ADMIN' => _ADMINISTRATION, 'S_BANNER' => $banners ? viewbanner() : '', 'U_MAININDEX' => $mainindex, 'U_DOWNLOADS' => getlink('Downloads'), 'U_FORUMS' => getlink('Forums'), 'U_MY_ACCOUNT' => getlink(is_user() ? 'Your_Account' : 'Your_Account&file=register'), 'U_ADMININDEX' => $adminindex, 'S_MAIN_MENU' => isset($mmcontent) ? $mmcontent : false)); $Blocks->display('l'); }
function themeheader() { global $slogan, $sitename, $mainindex, $adminindex, $cpgtpl, $site_logo, $userinfo, $CPG_SESS, $MAIN_CFG, $Blocks; if ($MAIN_CFG['global']['admingraphic'] & 4) { include 'includes/cssmainmenu.php'; } $imgr = $imgl = ''; // left blocks ? if ($Blocks->l && $Blocks->showblocks & 1) { $img = $Blocks->hideblock('600') ? 'plus.png' : 'minus.png'; $imgl = '<img style="float:left; cursor:pointer;" alt="' . _TOGGLE . '" title="' . _TOGGLE . '" id="pic600" src="themes/' . $CPG_SESS['theme'] . '/images/' . $img . '" onclick="blockswitch(\'600\');" />'; } // right blocks ? if ($Blocks->r && $Blocks->showblocks & 2) { $img = $Blocks->hideblock('601') ? 'plus.png' : 'minus.png'; $imgr = '<img style="float:right; cursor:pointer;" alt="' . _TOGGLE . '" title="' . _TOGGLE . '" id="pic601" src="themes/' . $CPG_SESS['theme'] . '/images/' . $img . '" onclick="blockswitch(\'601\');" />'; } $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $css_ie = false !== strpos($user_agent, 'MSIE 7.0') ? 'ie7' : (preg_match('#MSIE ([0-6].[0-9]{1,2})#', $user_agent) ? 'ie6' : (isset($_SESSION['SECURITY']['UA']) && $_SESSION['SECURITY']['UA'] == 'Safari' ? 'safari' : (isset($_SESSION['SECURITY']['UA']) && $_SESSION['SECURITY']['UA'] == 'Opera' ? 'opera' : ''))); $cpgtpl->assign_vars(array('CSS_IE' => $css_ie ? '<link rel="stylesheet" type="text/css" href="themes/' . $CPG_SESS['theme'] . '/style/' . $css_ie . '.css" />' : '', 'PUBLIC_HEADER' => !defined('ADMIN_PAGES'), 'B_L_VISIBLE' => $Blocks->hideblock('600') ? 'style="display: none"' : '', 'G_LEFTIMAGE' => $imgl, 'G_RIGHTIMAGE' => $imgr, 'S_IS_ADMIN' => is_admin(), 'S_IS_USER' => is_user(), 'S_USER_INFO' => _BWEL . ' ' . (is_user() ? $userinfo['username'] : _ANONYMOUS), 'S_LOGO' => $site_logo, 'S_SITENAME' => $sitename, 'S_HOME' => _HOME, 'S_DOWNLOADS' => is_active('Downloads') ? _DownloadsLANG : false, 'S_FORUMS' => _ForumsLANG, 'S_MY_ACCOUNT' => is_user() ? _Your_AccountLANG : _BREG, 'S_ADMIN' => _ADMINISTRATION, 'U_MAININDEX' => $mainindex, 'U_DOWNLOADS' => URL::index('Downloads'), 'U_FORUMS' => URL::index('Forums'), 'U_MY_ACCOUNT' => URL::index(is_user() ? 'Your_Account' : 'Your_Account&file=register'), 'U_ADMININDEX' => $adminindex, 'S_MAIN_MENU' => isset($mmcontent) ? $mmcontent : false)); $Blocks->display('l'); }
+-------------------------------------------------------------------+ |Original Copyright below | +-------------------------------------------------------------------+ | CPG Dragonfly™ CMS | | Copyright © 2004 - 2005 by CPG-Nuke Dev Team | | http://www.dragonflycms.com | | Dragonfly is released under the terms and conditions of the GNU | | GPL version 2 or any later version | +-------------------------------------------------------------------+ */ if (!defined('CPG_NUKE')) { exit; } global $prefix, $db, $CONFIG, $cpg_dir, $lang_get_pic_data; $cpg_dir = 'coppermine'; if (!is_active($cpg_dir)) { $content = 'ERROR'; return trigger_error($cpg_dir . ' module is inactive', E_USER_WARNING); } $cpg_block = true; require "modules/" . $cpg_dir . "/include/load.inc"; $cpg_block = false; $limit = $CONFIG['thumbcols']; //number of thumbs // $limit = 5; //number of pictures $content = ''; // END USER DEFINEABLES $result = $db->sql_query("SELECT pid, filepath, filename, p.aid, pic_rating, p.votes, p.title FROM " . $cpg_prefix . "pictures AS p INNER JOIN " . $cpg_prefix . "albums AS a ON (p.aid = a.aid AND " . VIS_GROUPS . ") WHERE approved=1 AND p.votes >= '{$CONFIG['min_votes_for_rating']}' GROUP BY pid ORDER BY ROUND((pic_rating+1)/2000) DESC, p.votes DESC LIMIT {$limit}"); $content .= '<br /><table width="100%" cols="' . $limit . '" border="0" cellpadding="0" cellspacing="0"><tr align="center">'; $pic = 0; while ($row = $db->sql_fetchrow($result)) {
} } // // Handle anon users posting with usernames // if ($poster_id == ANONYMOUS && $postrow[$i]['post_username'] != '') { $poster = $postrow[$i]['post_username']; $poster_rank = $lang['Guest']; } $temp_url = ''; if ($poster_id != ANONYMOUS) { $temp_url = append_sid("profile.{$phpEx}?mode=viewprofile&" . POST_USERS_URL . "={$poster_id}"); $profile_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" border="0" /></a>'; $profile = '<a href="' . $temp_url . '">' . $lang['Read_profile'] . '</a>'; $temp_url = append_sid("privmsg.{$phpEx}?mode=post&" . POST_USERS_URL . "={$poster_id}"); if (is_active("Private_Messages")) { $pm_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>'; $pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>'; } if (!empty($postrow[$i]['user_viewemail']) || $is_auth['auth_mod']) { $email_uri = $board_config['board_email_form'] ? append_sid("profile.{$phpEx}?mode=email&" . POST_USERS_URL . '=' . $poster_id) : 'mailto:' . $postrow[$i]['user_email']; $email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>'; $email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>'; } else { $email_img = ''; $email = ''; } if ($postrow[$i]['user_website'] == "http:///" || $postrow[$i]['user_website'] == "http://") { $postrow[$i]['user_website'] = ""; } if ($postrow[$i]['user_website'] != "" && substr($postrow[$i]['user_website'], 0, 7) != "http://") {
<link href="/assets/bootstrap-v3.3.5/css/bootstrap.css" rel="stylesheet" type="text/css"> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body onLoad="" onResize="" class="<?php echo get_page_content("top_nav") ? 'with-top-nav' : 'without-top-nav'; ?> "> <!-- body --> <div class="<?php echo get_page_content("container") ? get_page_content("container") : "container-fluid"; ?> "> <div id="page-body-content-wrapper" class="<?php echo get_page_content("top_nav") ? get_page_content("collapse_side_nav") && is_active("collapse_side_nav_link") ? "with-collapse-side-nav" : "without-collapse-side-nav" : "without-collapse-side-nav"; ?> <?php echo get_page_content("page_footer") ? "with-page-footer" : "without-page-footer"; ?> <?php echo get_page_content("page_header") ? "with-page-header" : "without-page-header"; ?> <?php echo get_page_content("page_top_menu") ? "with-page-top-menu" : "without-page-top-menu"; ?> "> <!-- page body content wrapper --> <?php if (get_page_content("top_nav")) { if (get_page_content("top_nav_container")) {
function all($bgcolor1, $bgcolor2, $bgcolor3, $sitename, $username) { global $prefix, $user_prefix, $db, $module_name; OpenTable(); echo "<div align=\"center\" class=title>" . _ALPHABETICAL . "</div><br>"; echo "<table align=center border=1 cellpadding=0 cellspacing=0>"; echo "<tr>"; echo "<td bgcolor={$bgcolor1} width=150> <strong>" . _MEMBER . "</strong> " . _CLICKTOVIEW . "</td>"; echo "<td bgcolor={$bgcolor1} width=70 align=center><strong>" . _VIEWJOURNAL . "</strong></td>"; echo "<td bgcolor={$bgcolor1} width=70 align=center><strong>" . _MEMBERPROFILE . "</strong></td>"; if ($username == "") { echo "<td bgcolor={$bgcolor1} width=70 align=center><strong>" . _CREATEACCOUNT2 . "</strong></td>"; } else { echo "<td bgcolor={$bgcolor1} width=70 align=center><strong>" . _PRIVMSGJ . "</strong></td>"; } echo "</tr>"; $sql = "SELECT j.id, j.joid, j.nop, j.ldp, j.ltp, j.micro, u.user_id FROM " . $prefix . "_journal_stats j, " . $user_prefix . "_users u where u.username=j.joid ORDER BY 'joid'"; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { print "<tr>"; printf("<td bgcolor={$bgcolor2}> <a href=\"modules.php?name={$module_name}&file=search&bywhat=aid&forwhat=%s\">%s</a></td>", $row[joid], $row[joid]); printf("<td bgcolor={$bgcolor2} align=center><div class=title><a href=\"modules.php?name={$module_name}&file=search&bywhat=aid&forwhat=%s\"><img src=\"modules/{$module_name}/images/binocs.gif\" border=0 alt=\"" . _VIEWJOURNAL2 . "\" title=\"" . _VIEWJOURNAL2 . "\"></a></td>", $row[joid], $row[joid]); printf("<td bgcolor={$bgcolor2} align=center><a href=\"modules.php?name=Your_Account&op=userinfo&username=%s\"><img src=\"modules/{$module_name}/images/nuke.gif\" alt=\"" . _USERPROFILE2 . "\" title=\"" . _USERPROFILE2 . "\" border=0></a></td>", $row[joid], $row[joid], $row[joid]); if ($username == "") { print "<td align=center bgcolor={$bgcolor2}><a href=\"modules.php?name=Your_Account&op=new_user\"><img src=\"modules/{$module_name}/images/folder.gif\" border=0 alt=\"" . _CREATEACCOUNT . "\" title=\"" . _CREATEACCOUNT . "\"></a></td>"; } elseif ($username != "" and is_active("Private_Messages")) { printf("<td align=center bgcolor={$bgcolor2}><a href=\"modules.php?name=Private_Messages&mode=post&u={$row['user_id']}\"><img src='modules/{$module_name}/images/chat.gif' border='0' alt='" . _PRIVMSGJ2 . "'></a></td>", $row[aid], $row[aid]); } echo "</tr>"; } echo "</table>"; CloseTable(); }
<script language="javascript" src="ks.js"></script> </head> <body> <div id="navcontainer"> <ul id="navlist"> <li><a href="?page=manage"<?php is_active('manage', $page); ?> >Manage calendar</a></li> <li><a href="?page=config"<?php is_active('config', $page); ?> >General settings</a></li> <li><a href="?page=lang"<?php is_active('lang', $page); ?> >Language settings</a></li> <li><a href="http://blog.kreci.net/code/booking-calendar-lite/">Script homepage</a></li> </ul> </div> <div id="content"> <?php if ($page == 'config') { ?> <?php if (isset($_POST['conf'])) { update_config($_POST['conf'], $conf);
function themeheader() { global $slogan, $sitename, $mainindex, $adminindex, $cpgtpl, $db, $prefix, $banners, $site_logo, $userinfo, $pagetitle, $module_name, $file, $op, $CPG_SESS, $MAIN_CFG, $Blocks; if ($MAIN_CFG['global']['admingraphic'] & 4) { include 'includes/cssmainmenu.php'; } if (!isset($module_name)) { $module_name = false; } if (!isset($file)) { $file = 'index'; } if (!isset($op) || !defined('ADMIN_PAGES')) { unset($op); } $imgr = $imgl = ''; // left blocks if ($Blocks->l) { $img = $Blocks->hideblock('600') ? 'plus.png' : 'minus.png'; $imgl = '<img alt="' . _TOGGLE . '" title="' . _TOGGLE . '" id="pic600" src="themes/' . $CPG_SESS['theme'] . '/images/' . $img . '" onclick="blockswitch(\'600\');" style="cursor:pointer; float:left; padding:2px 0 4px 0;" />'; } // right blocks if ($Blocks->r) { $img = $Blocks->hideblock('601') ? 'plus.png' : 'minus.png'; $imgr = '<img alt="' . _TOGGLE . '" title="' . _TOGGLE . '" id="pic601" src="themes/' . $CPG_SESS['theme'] . '/images/' . $img . '" onclick="blockswitch(\'601\');" style="cursor:pointer; float:right; padding:2px 0 4px 0;" />'; } $bc = $pagetitle; $bc_parts = explode(' ' . _BC_DELIM . ' ', $pagetitle); if (defined('ADMIN_PAGES') && !isset($op)) { $bc = '<a class="white" href="' . $adminindex . '">' . $bc_parts[0] . '</a>'; } elseif (defined('ADMIN_PAGES') && is_admin() && isset($op) && isset($bc_parts[1]) && (file_exists('modules/' . $op . '/admin/index.inc') || file_exists('admin/modules/' . $op . '.php'))) { $bc = '<a class="white" href="' . adminlink($op . ($file != 'index' ? '&file=' . $file : '')) . '">' . $bc_parts[1] . '</a>'; } elseif (isset($module_name) && file_exists('modules/' . $module_name . '/index.php')) { $bc = '<a class="white" href="' . getlink($module_name) . '">' . $bc_parts[0] . '</a>'; } elseif (isset($module_name) && $module_name == 'credits' || $module_name == 'privacy_policy') { $bc = '<a class="white" href="' . getlink($module_name) . '">' . $bc_parts[0] . '</a>'; } if (isset($module_name) && !defined('ADMIN_PAGES') && $file != 'index') { $bc .= ' ' . _BC_DELIM . ' <a class="white" href="' . getlink($module_name . '&file=' . $file) . '">' . $bc_parts[1] . '</a>'; } if (count($bc_parts) > 1) { $a = (isset($module_name) || defined('ADMIN_PAGES')) && $file == 'index' && !isset($op) ? 1 : 2; for ($i = $a; $i < count($bc_parts); $i++) { $bc .= ' ' . _BC_DELIM . ' ' . $bc_parts[$i]; } } $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $css_ie = ereg('MSIE 7.0', $user_agent) ? 'ie7' : (ereg('MSIE ([0-6].[0-9]{1,2})', $user_agent) ? 'ie6' : (isset($_SESSION['SECURITY']['UA']) && $_SESSION['SECURITY']['UA'] == 'Safari' ? 'safari' : (isset($_SESSION['SECURITY']['UA']) && $_SESSION['SECURITY']['UA'] == 'Opera' ? 'opera' : ''))); $cpgtpl->assign_vars(array('CSS_IE' => $css_ie ? '<link rel="stylesheet" type="text/css" href="themes/' . $CPG_SESS['theme'] . '/style/' . $css_ie . '.css" />' : '', 'PUBLIC_HEADER' => !defined('ADMIN_PAGES'), 'ADMIN_PAGES' => defined('ADMIN_PAGES') && is_admin(), 'B_L_VISIBLE' => $Blocks->hideblock('600') ? 'style="display: none"' : '', 'G_LEFTIMAGE' => $imgl, 'G_RIGHTIMAGE' => $imgr, 'S_TOGGLE' => _TOGGLE, 'S_BC' => _BC_DELIM, 'S_IS_ADMIN' => is_admin(), 'S_CAN_ADMIN' => can_admin(), 'S_IS_USER' => is_user(), 'S_LOGO' => $site_logo, 'S_SITENAME' => $sitename, 'S_HOME' => _HOME, 'S_DOWNLOADS' => is_active('Downloads') ? _DownloadsLANG : false, 'S_FORUMS' => _ForumsLANG, 'S_MY_ACCOUNT' => _Your_AccountLANG, 'S_ADMIN' => _ADMINISTRATION, 'A_LOGOUT' => is_admin() . ' | <a class="white" href="' . adminlink('logout') . '">' . _LOGOUT . '</a>', 'S_BANNER' => $banners ? viewbanner() : '', 'U_MAININDEX' => $mainindex, 'U_DOWNLOADS' => getlink('Downloads'), 'U_FORUMS' => getlink('Forums'), 'U_MY_ACCOUNT' => getlink('Your_Account'), 'U_TRANSLATE' => getlink('CPGlang'), 'U_ADMININDEX' => $adminindex, 'I18N' => 'enctype="multipart/form-data" accept-charset="utf-8"', 'WELCOME' => is_user() ? 'Welcome ' . $userinfo['username'] : '******' . _ANONYMOUS, 'BREADCRUMB' => defined('ADMIN_PAGES') && $op != 'logout' && $file != 'index' && !isset($bc_parts[1]) ? $bc : ' ' . _BC_DELIM . ' ' . $bc, 'S_MAIN_MENU' => isset($mmcontent) ? $mmcontent : false)); $Blocks->display('l'); }
CPG-NUKE: Advanced Content Management System ******************************************** Copyright (c) 2004 by CPG-Nuke Dev Team http://www.cpgnuke.com CPG-Nuke is released under the terms and conditions of the GNU GPL version 2 or any later version $Source: /cvs/modules/Downloads/modules/Your_Account/blocks/downloads.php,v $ $Revision: 9.1 $ $Author: djmaze $ $Date: 2005/01/13 04:02:52 $ ***********************************************************************/ if (!defined('CPG_NUKE')) { exit; } // Last 10 Download Links Approved if (is_active('Downloads')) { $result = $db->sql_query('SELECT lid, title FROM ' . $prefix . "_downloads_downloads where submitter='{$username}' order by date DESC limit 0,10"); if ($db->sql_numrows($result) > 0) { echo '<br />'; OpenTable(); echo '<div align="left"><b>' . $username . '\'s ' . _LAST10DOWNLOAD . ':</b><ul>'; while (list($lid, $title) = $db->sql_fetchrow($result)) { echo '<li><a href="' . getlink('Downloads&d_op=viewdownloaddetails&lid=' . $lid) . '">' . $title . '</a></li>'; } echo '</ul></div>'; CloseTable(); } }
Please see the included LICENSE.txt for the terms and conditions that govern your use of this module $Source: /cvs/modules/Downloads_Pro/blocks/block-Top10_Downloads.php,v $ $Revision: 1.6 $ $Author: phoenix $ $Date: 2010/11/03 23:13:17 $ ******************************************************/ if (!defined('CPG_NUKE')) { exit; } global $db, $prefix; $dl_mod = 'Downloads'; $dl_mod_prefix = $prefix . '_' . strtolower($dl_mod); $content = ''; if (!is_active($dl_mod)) { $content = 'ERROR'; return trigger_error($dl_mod . ' module is inactive', E_USER_WARNING); } $a = 1; $result = $db->sql_query("SELECT d.lid, d.title, SUM(s.hits) AS hits FROM " . $dl_mod_prefix . "_downloads d\nLEFT JOIN " . $dl_mod_prefix . "_stats s ON (s.id = d.lid) WHERE d.active=1 GROUP BY s.id ORDER BY hits DESC LIMIT 0,10"); if ($db->sql_numrows($result) < 1) { $content = 'ERROR'; return trigger_error('There are no downloads in ' . $dl_mod, E_USER_WARNING); } while (list($lid, $dtitle) = $db->sql_fetchrow($result)) { $content .= '<b>•</b> ' . $a . ': <a href="' . URL::index($dl_mod . '&file=details&id=' . $lid) . '">' . $dtitle . '</a><br />'; $a++; } $db->sql_freeresult($result);
+-------------------------------------------------------------------+ |Original Copyright below | +-------------------------------------------------------------------+ | CPG Dragonfly™ CMS | | Copyright © 2004 - 2005 by CPG-Nuke Dev Team | | http://www.dragonflycms.com | | Based on "All Info Block" by Alex Hession | | http://www.gtaunited.com | +-------------------------------------------------------------------+ */ if (!defined('CPG_NUKE')) { exit; } global $prefix, $user_prefix, $db, $userinfo, $MAIN_CFG, $CPG_SESS; $content = ''; $pm_active = is_active('Private_Messages'); $memres = $db->sql_query('SELECT s.uname, s.module, s.url, u.user_allow_viewonline FROM ' . $prefix . '_session AS s LEFT JOIN ' . $user_prefix . '_users AS u ON u.username=s.uname WHERE guest=0 OR guest=2 ORDER BY s.uname'); $anonres = $db->sql_query('SELECT uname, module, url FROM ' . $prefix . '_session WHERE guest=1 OR guest=3'); $online_num[0] = $db->sql_numrows($memres); $online_num[1] = $db->sql_numrows($anonres); $online_num[2] = $online_num[0] + $online_num[1]; $who_where = array('', ''); $hidden = 0; for ($i = 1; $i <= $online_num[0]; $i++) { $onluser = $db->sql_fetchrow($memres); if ($onluser['user_allow_viewonline'] || is_admin()) { $ttt = "<a href=\"" . URL::index("Your_Account&profile={$onluser['uname']}") . "\">";
function Stats_Main() { global $prefix, $db, $cpgtpl, $MAIN_CFG, $user_prefix; require_once 'header.php'; $result = $db->sql_query('SELECT type, var, count FROM ' . $prefix . '_counter ORDER BY count DESC, var'); $browser = $os = array(); $totalos = $totalbr = 0; while (list($type, $var, $count) = $db->sql_fetchrow($result)) { if ($type == 'browser') { $browser[$var] = $count; $totalbr += $count; } elseif ($type == 'os') { if ($var == 'OS/2') { $var = 'OS2'; } $os[$var] = $count; $totalos += $count; } } $db->sql_freeresult($result); $cpgtpl->assign_vars(array('S_STATS_TITLE' => $MAIN_CFG['global']['sitename'] . ' ' . _STATS, 'S_STATS_TOTAL' => _WERECEIVED . ' <b>' . $totalbr . '</b> ' . _PAGESVIEWS . ' ' . $MAIN_CFG['global']['startdate'], 'L_STATS_DETAIL' => _VIEWDETAILED, 'L_STATS_BROWSERS' => _BROWSERS, 'L_STATS_OS' => _OPERATINGSYS, 'L_STATS_MISC' => _MISCSTATS, 'U_STATS_DETAIL' => URL::index("&file=details"))); // Browsers $totalbr = 100 / $totalbr; foreach ($browser as $var => $count) { $perc = round($totalbr * $count, 2); $cpgtpl->assign_block_vars('browsers', array('IMG' => strtolower($var), 'NAME' => $var, 'PERC' => "{$perc} %", 'COUNT' => $count, 'WIDTH' => $perc)); } // Operating System $totalos = 100 / $totalos; foreach ($os as $var => $count) { $perc = round($totalos * $count, 2); $cpgtpl->assign_block_vars('os', array('IMG' => strtolower($var), 'NAME' => $var, 'PERC' => "{$perc} %", 'COUNT' => $count, 'WIDTH' => $perc)); } // Miscellaneous Stats list($count) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $user_prefix . '_users WHERE user_id > 1', SQL_NUM); $cpgtpl->assign_block_vars('misc', array('IMG' => 'users', 'NAME' => _REGUSERS, 'COUNT' => $count)); list($count) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $prefix . '_stories', SQL_NUM); $cpgtpl->assign_block_vars('misc', array('IMG' => 'news', 'NAME' => _STORIESPUBLISHED, 'COUNT' => $count)); if (is_active('Topics')) { list($count) = $db->sql_ufetchrow("SELECT COUNT(*) FROM " . $prefix . "_topics", SQL_NUM); $cpgtpl->assign_block_vars('misc', array('IMG' => 'topics', 'NAME' => _SACTIVETOPICS, 'COUNT' => $count)); } list($count) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $prefix . '_comments', SQL_NUM); $cpgtpl->assign_block_vars('misc', array('IMG' => 'comments', 'NAME' => _COMMENTSPOSTED, 'COUNT' => $count)); if (is_active('Sections')) { list($count) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $prefix . '_sections', SQL_NUM); $cpgtpl->assign_block_vars('misc', array('IMG' => 'sections', 'NAME' => _SSPECIALSECT, 'COUNT' => $count)); list($count) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $prefix . '_seccont', SQL_NUM); $cpgtpl->assign_block_vars('misc', array('IMG' => 'articles', 'NAME' => _ARTICLESSEC, 'COUNT' => $count)); } if (is_active('Web_Links')) { list($count) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $prefix . '_links_links', SQL_NUM); $cpgtpl->assign_block_vars('misc', array('IMG' => 'topics', 'NAME' => _LINKSINLINKS, 'COUNT' => $count)); list($count) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $prefix . '_links_categories', SQL_NUM); $cpgtpl->assign_block_vars('misc', array('IMG' => 'sections', 'NAME' => _LINKSCAT, 'COUNT' => $count)); } list($count) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $prefix . '_queue', SQL_NUM); $cpgtpl->assign_block_vars('misc', array('IMG' => 'waiting', 'NAME' => _NEWSWAITING, 'COUNT' => $count)); $cpgtpl->set_filenames(array('body' => 'statistics/index.html')); $cpgtpl->display('body'); }
$db->sql_freeresult($result); if ($assoc != '') { $cpgtpl->assign_vars(array('S_ASSOTOPIC' => _ASSOTOPIC, 'S_ASSOTOPICS' => $assoc)); } } else { $cpgtpl->assign_vars(array('S_ASSOTOPICS' => false)); } $cpgtpl->set_filenames(array('body' => 'news/article.html')); //$themeblockside = 'right'; //$Blocks->showblocks |= 2; //echo $Blocks->showblocks; $cpgtpl->assign_vars(array('S_RIGHTBLOCKS' => true)); // Show comments $querylang = $MAIN_CFG['global']['multilingual'] ? "AND (blanguage='{$currentlang}' OR blanguage='')" : ''; /* Determine if the article has a poll attached */ if (is_active('Surveys') && $story['haspoll']) { $poll_id = $story['poll_id']; $content = '<form action="' . URL::index('Surveys') . '" method="post">'; $content .= '<input type="hidden" name="pollid" value="' . $poll_id . '" />'; $content .= '<input type="hidden" name="forwarder" value="' . URL::index('Surveys&op=results&pollid=' . $poll_id) . '" />'; list($poll_title, $voters) = $db->sql_ufetchrow("SELECT poll_title, voters FROM " . $prefix . "_poll_desc \n\t\tWHERE poll_id='{$poll_id}'", SQL_NUM); $content .= '<span class="content"><b>' . $poll_title . '</b></span><br /><br />'; $content .= '<table width="100%">'; $sum = 0; $result = $db->sql_query("SELECT option_text, vote_id, option_count FROM " . $prefix . "_poll_data \n\t\tWHERE poll_id='{$poll_id}' AND option_text!='' \n\t\tORDER BY vote_id"); while ($row = $db->sql_fetchrow($result)) { $content .= '<tr><td valign="top"><input type="radio" name="vote_id" value="' . $row['vote_id'] . '" /></td>'; $content .= '<td width="100%" class="content">' . $row['option_text'] . '</td></tr>'; $sum += $row['option_count']; } $db->sql_freeresult($result);
<div class="block"> <h3>Categories</h3> <!-- http://getbootstrap.com/components/#list-group --> <div class="list-group"> <a href="topics.php" class="list-group-item <?php echo is_active(null); ?> ">All Topics <span class="badge pull-right"></span></a> <?php foreach (getCategories() as $category) { ?> <a href="topics.php?category=<?php echo $category->id; ?> " class="list-group-item <?php echo is_active($category->id); ?> "><?php echo $category->name; ?> </a> <?php } ?> </div> </div> </div> </div> </div>
"> <?php include_once "analyticstracking.php"; ?> <div class="bkg-sec color-white text-center banner border-box"> <div class="l-container"> <!--<nav> <ul class="nav"> <?php $lis = fn::get_datas_with_tag('page', 1); foreach ($lis as $li) { ?> <li><a <?php echo is_active($page, $li); ?> href="<?php echo site_url; echo $li['int']; ?> "><?php echo $li['title']; ?> </a></li> <?php } ?> </ul> </nav>-->
$emailer = new emailer($board_config['smtp_delivery']); $emailer->from($board_config['board_email']); $emailer->replyto($board_config['board_email']); $emailer->use_template('user_activate', stripslashes($user_lang)); $emailer->email_address($email); $emailer->set_subject($lang['Reactivate']); $emailer->assign_vars(array('SITENAME' => $board_config['sitename'], 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\\'", "'", $username), 0, 25)), 'EMAIL_SIG' => !empty($board_config['board_email_sig']) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '', 'U_ACTIVATE' => $server_url . '&mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey)); $emailer->send(); $emailer->reset(); if (is_active("Forums")) { $message = $lang['Profile_updated_inactive'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.{$phpEx}") . '">', '</a>'); } else { $message = $lang['Profile_updated_inactive'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="index.php">', '</a>'); } } else { if (is_active("Forums")) { $message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.{$phpEx}") . '">', '</a>'); } else { $message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="index.php">', '</a>'); } } // $template->assign_vars(array( // "META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx") . '">') // ); message_die(GENERAL_MESSAGE, $message); } else { $sql = "SELECT MAX(user_id) AS total\n FROM " . USERS_TABLE; if (!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql); } if (!($row = $db->sql_fetchrow($result))) {
} } } CloseTable(); $mod1 = $mod2 = $mod3 = ""; if (isset($query) and !empty($query)) { echo "<br>"; if (is_active("Downloads")) { $dcnt = $db->sql_numrows($db->sql_query("SELECT * from " . $prefix . "_downloads_downloads WHERE title LIKE '%{$query2}%' OR description LIKE '%{$query3}%'")); $mod1 = "<li> <a href=\"modules.php?name=Downloads&d_op=search&query={$query3}\">" . _DOWNLOADS . "</a> ({$dcnt} " . _SEARCHRESULTS . ")"; } if (is_active("Web_Links")) { $lcnt = $db->sql_numrows($db->sql_query("SELECT * from " . $prefix . "_links_links WHERE title LIKE '%{$query2}%' OR description LIKE '%{$query3}%'")); $mod2 = "<li> <a href=\"modules.php?name=Web_Links&l_op=search&query={$query}\">" . _WEBLINKS . "</a> ({$lcnt} " . _SEARCHRESULTS . ")"; } if (is_active("Encyclopedia")) { $ecnt1 = $db->sql_query("SELECT eid from " . $prefix . "_encyclopedia WHERE active='1'"); $ecnt = 0; while ($row_e = $db->sql_fetchrow($ecnt1)) { $eid = intval($row_e['eid']); $ecnt2 = $db->sql_numrows($db->sql_query("select * from " . $prefix . "_encyclopedia WHERE title LIKE '%{$query2}%' OR description LIKE '%{$query3}%' AND eid='{$eid}'")); $ecnt3 = $db->sql_numrows($db->sql_query("select * from " . $prefix . "_encyclopedia_text WHERE title LIKE '%{$query2}%' OR text LIKE '%{$query3}%' AND eid='{$eid}'")); $ecnt = $ecnt + $ecnt2 + $ecnt3; } $mod3 = "<li> <a href=\"modules.php?name=Encyclopedia&file=search&query={$query}\">" . _ENCYCLOPEDIA . "</a> ({$ecnt} " . _SEARCHRESULTS . ")"; } OpenTable(); echo "<font class=\"title\">" . _FINDMORE . "<br><br>" . "" . _DIDNOTFIND . "</font><br><br>" . "" . _SEARCH . " \"<b>{$query}</b>\" " . _ON . ":<br><br>" . "<ul>" . "{$mod1}" . "{$mod2}" . "{$mod3}" . "<li> <a href=\"http://www.google.com/search?q={$query}\" target=\"new\">Google</a>" . "<li> <a href=\"http://groups.google.com/groups?q={$query}\" target=\"new\">Google Groups</a>" . "</ul>"; CloseTable(); } include "footer.php";
$Author: Madis $ $Date: 2009/09/05 22:30:00 $ Encoding test: n-array summation ∑ latin ae w/ acute ǽ ********************************************************/ //Security check needed by Dragonfly if (!defined('CPG_NUKE')) { exit; } //Get global variables for sql querys($db, $prefix, $user_prefix), //multilanguage(forums.php uses $lang not defines) and for applying templating system($cpgtpl) global $db, $prefix, $user_prefix, $lang, $cpgtpl, $userinfo, $CPG_SESS; //Get languages/USED_LANGUAGE/forums.php file for having translated strings //Uncomment this, if you need translated strings: //get_lang('forums'); //Check if Forums module is active and say if it isn't if (!is_active('Forums')) { $content = 'ERROR'; return trigger_error('Forums module is inactive. Please activate the Forums in order to use this block.', E_USER_WARNING); } else { get_lang('latest_forum_posts'); //How many topics would you like to show? $count = 8; $query_restriction = ''; if (!is_admin()) { $query_restriction = ' AND (f.auth_view < 2 && f.auth_read < 2)'; //$query_restriction = ' AND (f.auth_view < 2 || f.auth_read < 2)'; } //Main query $result = $db->sql_query('SELECT t.topic_id AS topic_id, t.forum_id AS forum_id, t.topic_title AS topic_title, t.topic_replies AS topic_replies, t.topic_last_post_id AS topic_last_post_id,
?> </span> </a> </li> <?php } $i++; } ?> </ul> </li> </ul> <ul> <li class="<?php echo is_active($current, '/circle/all/' . $user->id); ?> "> <a class="menu-title" href="javascript:void(0)"> <span class="title">Recently Created Storyboards</span> <span class="arrow"></span> </a> <ul class="folders sub-menu" > <?php $i = 1; foreach ($my_recent_5_storyboards as $c) { if ($i <= 5) { ?> <li> <a href="<?php
if ($time2 == $datetime2) { $boxstuff .= "<tr><td valign=\"top\"><strong><big>·</big></strong></td><td> <a href=\"modules.php?name=News&file=article&sid={$sid}{$r_options}\">{$title}</a> {$comments}</td></tr>\n"; } else { if (empty($a)) { $boxstuff .= "<tr><td colspan=\"2\"><b>{$datetime2}</b></td></tr><tr><td valign=\"top\"><strong><big>·</big></strong></td><td> <a href=\"modules.php?name=News&file=article&sid={$sid}{$r_options}\">{$title}</a> {$comments}</td></tr>\n"; $time2 = $datetime2; $a = 1; } else { $boxstuff .= "<tr><td colspan=\"2\"><b>{$datetime2}</b></td></tr><tr><td valign=\"top\"><strong><big>·</big></strong></td><td> <a href=\"modules.php?name=News&file=article&sid={$sid}{$r_options}\">{$title}</a> {$comments}</td></tr>\n"; $time2 = $datetime2; } } $vari++; if ($vari == $oldnum) { if (isset($userinfo['storyhome'])) { $storynum = $userinfo['storyhome']; } else { $storynum = $storyhome; } $min = $oldnum + $storynum; $dummy = 1; } } if ($dummy == 1 and is_active("Stories_Archive")) { $boxstuff .= "</table><br><a href=\"modules.php?name=Stories_Archive\"><b>" . _OLDERARTICLES . "</b></a>\n"; } else { $boxstuff .= "</table>"; } if ($see == 1) { $content = $boxstuff; }
<div class="subnav" style="margin-bottom: 10px;"> <ul class="nav nav-pills"> <li <?php if (is_active()) { ?> class="active"<?php } ?> ><a href="<?php echo site_url(); ?> ">Home</a></li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="">Item</a></li> </ul> </li> <ul class="nav nav-pills pull-right"> <?php if ($user->uid) { ?> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown"><?php echo $user->name; ?> <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="<?php
/* Copyright (c) 2007 by Francisco Burzi */ /* http://phpnuke.org */ /* */ /* This program is free software. You can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ /************************************************************************/ if (!defined('BLOCK_FILE')) { Header("Location: ../index.php"); fdie(); } global $prefix, $db, $admin, $language, $currentlang; $ThemeSel = get_theme(); if (file_exists("themes/{$ThemeSel}/module.php")) { include "themes/" . $ThemeSel . "/module.php"; if (is_active($default_module) and file_exists("modules/{$default_module}/index.php")) { $def_module = $default_module; } else { $def_module = ""; } } $row = $db->sql_fetchrow($db->sql_query("SELECT main_module FROM " . $prefix . "_main")); $main_module = filter($row['main_module'], "nohtml"); /* If the module doesn't exist, it will be removed from the database automaticaly */ $result2 = $db->sql_query("SELECT title FROM " . $prefix . "_modules"); while ($row2 = $db->sql_fetchrow($result2)) { $title = filter($row2['title'], "nohtml"); $a = 0; $handle = opendir('modules'); while ($file = readdir($handle)) { if ($file == $title) {