function sectionheader() { echo "<div><h4>"._AM_SECTIONMANAGE."</h4></div>"; // add adminmenu flag // adminmenu(); global $wfsAdminMenu; if ($wfsAdminMenu) adminmenu(); }
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* 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('ADMIN_FILE')) { die("Access Denied"); } global $admin_file; if ($radminsuper == 1) { adminmenu("" . $admin_file . ".php?op=backup", "" . _SAVEDATABASE . "", "backup.gif"); }
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2002 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 (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die("Access Denied"); } adminmenu("admin.php?op=downloads", "" . _DOWNLOAD . "", "downloads.gif");
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* 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('ADMIN_FILE')) { die("Access Denied"); } global $admin_file; if ($radminsuper == 1) { adminmenu("" . $admin_file . ".php?op=messages", "" . _MESSAGES . "", "messages.gif"); }
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2002 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 (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die("Access Denied"); } adminmenu("admin.php?op=adminStory", "" . _NEWS . "", "stories.gif");
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2002 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 (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die("Access Denied"); } if ($radminsuper == 1) { adminmenu("admin.php?op=mod_authors", "" . _EDITADMINS . "", "authors.gif"); }
// source code which is considered copyrighted (c) material of the // // original comment or credit authors. // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // include '../../../include/cp_header.php'; include_once "functions.php"; xoops_cp_header(); adminmenu(4); $spotlight_handler =& xoops_getmodulehandler('spotlight', $xoopsModule->getVar('dirname')); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'list'; switch ($op) { case "list": default: $block_handler =& xoops_gethandler('block'); $spotlightBlock = $block_handler->getObjects(new Criteria('b.func_file', "ams_spotlight.php")); $spotlightBlock = isset($spotlightBlock[0]) ? $spotlightBlock[0] : null; $block = $spotlight_handler->getSpotlightBlock(false); $spotlights = isset($block['spotlights']) ? $block['spotlights'] : array(); $output = "<div align='right'>\n <a href='spotlight.php?op=add'><img src='../images/new.png' />" . _AMS_AM_SPOT_ADD . "</a>"; if (is_object($spotlightBlock)) { $output .= "<br />\n <a href='" . XOOPS_URL . "/modules/system/admin.php?fct=blocksadmin&op=edit&bid=" . $spotlightBlock->getVar('bid') . "'><img src='../images/edit.png' />" . _AMS_AM_SPOT_EDITBLOCK . "</a>"; } $output .= "</div>";
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* 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('ADMIN_FILE')) { die("Access Denied"); } global $admin_file; if ($radminsuper == 1) { adminmenu("" . $admin_file . ".php?op=optimize", "Optimize DB", "optimize.gif"); }
/** * Metagen * * Metagen is a system that can help you to have your page best indexed by search engines. * Except if you type meta keywords and meta descriptions yourself, the module will automatically create them. * From here you can also manage some other options like the maximum number of meta keywords to create and * the keywords apparition's order. */ function Metagen() { include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; global $xoopsModule, $xoopsConfig, $xoopsModuleConfig, $cfg; xoops_cp_header(); $myts =& MyTextSanitizer::getInstance(); if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php')) { include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php'; } else { include_once XOOPS_ROOT_PATH . '/modules/news/language/english/main.php'; } adminmenu(8); echo "<h1>" . _AM_NEWS_METAGEN . "</h1>"; echo _AM_NEWS_METAGEN_DESC . "<br /><br />"; // Metagen Options $registry = new news_registryfile('news_metagen_options.txt'); $content = ''; $content = $registry->getfile(); if (xoops_trim($content) != '') { list($keywordscount, $keywordsorder) = explode(',', $content); } else { $keywordscount = $cfg['meta_keywords_count']; $keywordsorder = $cfg['meta_keywords_order']; } $sform = new XoopsThemeForm(_OPTIONS, 'metagenoptions', XOOPS_URL . '/modules/news/admin/index.php', 'post'); $sform->addElement(new XoopsFormHidden('op', 'metagenoptions'), false); $sform->addElement(new XoopsFormText(_AM_NEWS_META_KEYWORDS_CNT, 'keywordscount', 4, 6, $keywordscount), true); $keywordsorder = new XoopsFormRadio(_AM_NEWS_META_KEYWORDS_ORDER, 'keywordsorder', $keywordsorder); $keywordsorder->addOption(0, _AM_NEWS_META_KEYWORDS_INTEXT); $keywordsorder->addOption(1, _AM_NEWS_META_KEYWORDS_FREQ1); $keywordsorder->addOption(2, _AM_NEWS_META_KEYWORDS_FREQ2); $sform->addElement($keywordsorder, false); $button_tray = new XoopsFormElementTray('', ''); $submit_btn = new XoopsFormButton('', 'post', _AM_MODIFY, 'submit'); $button_tray->addElement($submit_btn); $sform->addElement($button_tray); $sform->display(); // Blacklist $sform = new XoopsThemeForm(_AM_NEWS_BLACKLIST, 'metagenblacklist', XOOPS_URL . '/modules/news/admin/index.php', 'post'); $sform->addElement(new XoopsFormHidden('op', 'metagenblacklist'), false); // Remove words $remove_tray = new XoopsFormElementTray(_AM_NEWS_BLACKLIST); $remove_tray->setDescription(_AM_NEWS_BLACKLIST_DESC); $blacklist = new XoopsFormSelect('', 'blacklist', '', 5, true); $words = array(); $metablack = new news_blacklist(); $words = $metablack->getAllKeywords(); if (is_array($words) && count($words) > 0) { foreach ($words as $key => $value) { $blacklist->addOption($key, $value); } } $blacklist->setDescription(_AM_NEWS_BLACKLIST_DESC); $remove_tray->addElement($blacklist, false); $remove_btn = new XoopsFormButton('', 'go', _AM_DELETE, 'submit'); $remove_tray->addElement($remove_btn, false); $sform->addElement($remove_tray); // Add some words $add_tray = new XoopsFormElementTray(_AM_NEWS_BLACKLIST_ADD); $add_tray->setDescription(_AM_NEWS_BLACKLIST_ADD_DSC); $add_field = new XoopsFormTextArea('', 'keywords', '', 5, 70); $add_tray->addElement($add_field, false); $add_btn = new XoopsFormButton('', 'go', _AM_ADD, 'submit'); $add_tray->addElement($add_btn, false); $sform->addElement($add_tray); $sform->display(); }
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2002 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 (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die("Access Denied"); } if ($radminsuper == 1 or $radminnewsletter == 1) { adminmenu("admin.php?op=newsletter", "" . _NEWSLETTER . "", "newsletter.gif"); }
function listBrokenDownloads() { global $xoopsDB, $eh; global $wfsTableFiles, $wfsTableBroken; // add // easy to rename module and table // $result = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix("wfs_broken")." ORDER BY reportid"); $result = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix($wfsTableBroken)." ORDER BY reportid"); $totalbrokendownloads = $xoopsDB->getRowsNum($result); xoops_cp_header(); // same title as admin menu // add adminmenu // echo "<h4>"._AM_DLCONF."</h4>"; echo "<h4>"._AM_LIST_BROKEN."</h4>"; global $wfsAdminMenu; if ($wfsAdminMenu) adminmenu(); echo"<table width='100%' border='0' cellspacing='1' class='outer'><tr class='odd'><td>"; echo "<h4>"._AM_BROKENREPORTS." ($totalbrokendownloads)</h4><br />"; if ($totalbrokendownloads==0) { echo _AM_NOBROKEN; } else { echo "<center>"._AM_IGNOREDESC."<br />"._AM_DELETEDESC."</center><br /><br /><br />"; $colorswitch="#dddddd"; echo "<table align='center' width='90%'>"; echo " <tr> <td><b>"._AM_FILETITLE."</b></td> <td><b>" ._AM_REPORTER."</b></td> <td><b>" ._AM_IGNORE."</b></td> <td><b>" ._AM_EDIT."</b></td> <td><b>" ._AM_DELETE."</b></td> </tr>"; while(list($reportid, $lid, $sender, $ip)=$xoopsDB->fetchRow($result)){ // easy to rename module and table // $result2 = $xoopsDB->query("SELECT fileshowname FROM ".$xoopsDB->prefix("wfs_files")." WHERE fileid=$lid"); $result2 = $xoopsDB->query("SELECT fileshowname FROM ".$xoopsDB->prefix($wfsTableFiles)." WHERE fileid=$lid"); if ($sender != 0) { $result3 = $xoopsDB->query("SELECT uname, email FROM ".$xoopsDB->prefix("users")." WHERE uid=".$sender.""); list($sendername, $email)=$xoopsDB->fetchRow($result3); } list($fileshowname)=$xoopsDB->fetchRow($result2); $result4 = $xoopsDB->query("SELECT uname, email FROM ".$xoopsDB->prefix("users")." WHERE uid=".$owner.""); list($ownername, $owneremail)=$xoopsDB->fetchRow($result4); echo "<tr><td bgcolor=$colorswitch><a href=index.php?op=fileedit&fileid=$lid target='_blank'>".$fileshowname."</a></td>"; if ($email=="") { echo "<td bgcolor=$colorswitch>$sendername ($ip)"; } else { echo "<td bgcolor=$colorswitch><a href=mailto:$email>$sendername</a> ($ip)"; } echo "</td>"; echo "</td><td bgcolor='$colorswitch' align='center'>"; echo myTextForm("brokendown.php?op=ignoreBrokenDownloads&lid=$lid" , "X"); echo "</td><td bgcolor='$colorswitch' align='center'>"; echo myTextForm("index.php?op=fileedit&fileid=$lid" , "X"); echo "</td><td bgcolor='$colorswitch' align='center'>"; echo myTextForm("brokendown.php?op=delBrokenDownloads&lid=$lid" , "X"); echo "</td></tr>"; if ($colorswitch=="#dddddd") { $colorswitch="#ffffff"; } else { $colorswitch="#dddddd"; } } echo "</table>"; } echo"</td></tr></table>"; }
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2002 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 (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die("Access Denied"); } adminmenu("admin.php?op=create", "" . _ADMPOLLS . "", "surveys.gif");
// This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // include '../../../include/cp_header.php'; include_once XOOPS_ROOT_PATH . "/modules/AMS/class/class.newstopic.php"; include_once XOOPS_ROOT_PATH . "/class/xoopslists.php"; include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php'; include_once "functions.php"; xoops_cp_header(); adminmenu(3); $module_id = $xoopsModule->getVar('mid'); $xt = new AmsTopic($xoopsDB->prefix("ams_topics")); $allTopics = $xt->getAllTopics(); $totaltopics = count($allTopics); if ($totaltopics > 0) { //Approver Form $approveform = new XoopsGroupPermForm(_AMS_AM_APPROVEFORM, $module_id, "ams_approve", _AMS_AM_APPROVEFORM_DESC); //Submitter Form $submitform = new XoopsGroupPermForm(_AMS_AM_SUBMITFORM, $module_id, "ams_submit", _AMS_AM_SUBMITFORM_DESC); //Viewer Form $viewform = new XoopsGroupPermForm(_AMS_AM_VIEWFORM, $module_id, "ams_view", _AMS_AM_VIEWFORM_DESC); foreach ($allTopics as $topic_id => $topic) { $approveform->addItem($topic_id, $topic->topic_title(), $topic->topic_pid()); $submitform->addItem($topic_id, $topic->topic_title(), $topic->topic_pid()); $viewform->addItem($topic_id, $topic->topic_title(), $topic->topic_pid());
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* 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('ADMIN_FILE')) { die("Access Denied"); } global $admin_file; adminmenu("" . $admin_file . ".php?op=FaqAdmin", "" . _FAQ . "", "faq.gif");
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2002 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 ($radminsuper == 1) { adminmenu("admin.php?op=sommaire", "" . _SOMMAIRE . "", "sommaire.gif"); }
} exit; } else { xoops_cp_header(); xoops_confirm(array('op' => 'delfile', 'uploadpath' => $HTTP_POST_VARS['uploadpath'], 'channelfile' => $HTTP_POST_VARS['channelfile'], 'confirm' => 1), 'upload.php', _AM_DELETEFILE . "<br/><br>" . $HTTP_POST_VARS['channelfile'], "Delete"); } break; case "default": default: $displayimage = ''; xoops_cp_header(); global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig; $dirarray = array(1 => $xoopsModuleConfig['uploaddir'], 2 => $xoopsModuleConfig['linkimages'], 3 => $xoopsModuleConfig['htmluploaddir']); $namearray = array(1 => _AM_CHAN_UPLOADDIR, 2 => _AM_CHAN_LINKIMAGES, 3 => _AM_CHAN_HTMLUPLOADDIR); $listarray = array(1 => _AM_UPLOADCHANLOGO, 2 => _AM_UPLOADLINKIMAGE, 3 => _AM_UPLOADCHANHTML); adminmenu(_AM_CHANADMIN, $extra = 1); include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; echo "<div><b>" . _AM_SERVERSTATUS . ":</b></div>"; $safemode = ini_get('safe_mode') ? _AM_SAFEMODEISON : _AM_SAFEMODEISOFF; $downloads = ini_get('enable_dl') ? _AM_UPLOADSON : _AM_UPLOADSOFF; echo "<div>" . $safemode . "</div>"; echo "<div>" . $downloads . ""; if (ini_get('enable_dl')) { echo " " . _AM_ANDTHEMAX . " " . ini_get('upload_max_filesize') . "</div>"; } if ($rootpath > 0) { echo "<p><div><b>" . _AM_UPLOADPATH . "</b> " . XOOPS_ROOT_PATH . "/" . $dirarray[$rootpath] . "</div></p>"; } $iform = new XoopsThemeForm(_AM_UPLOADIMAGE . $listarray[$rootpath], "op", xoops_getenv('PHP_SELF')); $iform->setExtra('enctype="multipart/form-data"'); ob_start();
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* 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('ADMIN_FILE')) { die("Access Denied"); } global $admin_file; adminmenu("" . $admin_file . ".php?op=Links", "" . _WEBLINKS . "", "weblinks.gif");
// This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // include_once '../../../include/cp_header.php'; include_once XOOPS_ROOT_PATH . "/class/xoopstopic.php"; include_once XOOPS_ROOT_PATH . "/class/xoopslists.php"; include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php'; include_once XOOPS_ROOT_PATH . "/modules/news/admin/functions.php"; xoops_cp_header(); adminmenu(2); echo "<br /><br />"; $permtoset = isset($_POST['permtoset']) ? intval($_POST['permtoset']) : 1; $selected = array('', '', ''); $selected[$permtoset - 1] = ' selected'; echo "<form method='post' name='fselperm' action='groupperms.php'><table border=0><tr><td><select name='permtoset' onChange='javascript: document.fselperm.submit()'><option value='1'" . $selected[0] . ">" . _AM_APPROVEFORM . "</option><option value='2'" . $selected[1] . ">" . _AM_SUBMITFORM . "</option><option value='3'" . $selected[2] . ">" . _AM_VIEWFORM . "</option></select></td><td><input type='submit' name='go'></tr></table></form>"; $module_id = $xoopsModule->getVar('mid'); switch ($permtoset) { case 1: $title_of_form = _AM_APPROVEFORM; $perm_name = "news_approve"; $perm_desc = _AM_APPROVEFORM_DESC; break; case 2: $title_of_form = _AM_SUBMITFORM; $perm_name = "news_submit";
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2002 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 (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die("Access Denied"); } if ($radminsuper == 1) { adminmenu("admin.php?op=modules", "" . _MODULES . "", "modules.gif"); }
/** * Statistics about stories, topics and authors * * You can reach the statistics from the admin part of the news module by clicking on the "Statistics" tabs * The number of visible elements in each table is equal to the module's option called "storycountadmin" * There are 3 kind of different statistics : * - Topics statistics * For each topic you can see its number of articles, the number of time each topics was viewed, the number * of attached files, the number of expired articles and the number of unique authors. * - Articles statistics * This part is decomposed in 3 tables : * a) Most readed articles * This table resumes, for all the news in your database, the most readed articles. * The table contains, for each news, its topic, its title, the author and the number of views. * b) Less readed articles * That's the opposite action of the previous table and its content is the same * c) Best rated articles * You will find here the best rated articles, the content is the same that the previous tables, the last column is just changing and contains the article's rating * - Authors statistics * This part is also decomposed in 3 tables * a) Most readed authors * To create this table, the program compute the total number of reads per author and displays the most readed author and the number of views * b) Best rated authors * To created this table's content, the program compute the rating's average of each author and create a table * c) Biggest contributors * The goal of this table is to know who is creating the biggest number of articles. */ function Stats() { global $xoopsModule, $xoopsConfig, $xoopsModuleConfig; xoops_cp_header(); $myts =& MyTextSanitizer::getInstance(); if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php')) { include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php'; } else { include_once XOOPS_ROOT_PATH . '/modules/news/language/english/main.php'; } adminmenu(6); $news = new NewsStory(); $stats = array(); $stats = $news->GetStats($xoopsModuleConfig['storycountadmin']); $totals = array(0, 0, 0, 0, 0); printf("<h1>%s</h1>\n", _AM_NEWS_STATS); // First part of the stats, everything about topics $storiespertopic = $stats['storiespertopic']; $readspertopic = $stats['readspertopic']; $filespertopic = $stats['filespertopic']; $expiredpertopic = $stats['expiredpertopic']; $authorspertopic = $stats['authorspertopic']; $class = ''; echo "<div style='text-align: center;'><b>" . _AM_NEWS_STATS0 . "</b><br />\n"; echo "<table border='1' width='100%'><tr class='bg3'><td align='center'>" . _AM_TOPIC . "</td><td align='center'>" . _NW_ARTICLES . "</td><td>" . _NW_VIEWS . "</td><td>" . _AM_UPLOAD_ATTACHFILE . "</td><td>" . _AM_EXPARTS . "</td><td>" . _AM_NEWS_STATS1 . "</td></tr>"; foreach ($storiespertopic as $topicid => $data) { $url = XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/index.php?storytopic=" . $topicid; $views = 0; if (array_key_exists($topicid, $readspertopic)) { $views = $readspertopic[$topicid]; } $attachedfiles = 0; if (array_key_exists($topicid, $filespertopic)) { $attachedfiles = $filespertopic[$topicid]; } $expired = 0; if (array_key_exists($topicid, $expiredpertopic)) { $expired = $expiredpertopic[$topicid]; } $authors = 0; if (array_key_exists($topicid, $authorspertopic)) { $authors = $authorspertopic[$topicid]; } $articles = $data['cpt']; $totals[0] += $articles; $totals[1] += $views; $totals[2] += $attachedfiles; $totals[3] += $expired; $class = $class == 'even' ? 'odd' : 'even'; printf("<tr class='" . $class . "'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='right'>%u</td><td align='right'>%u</td><td align='right'>%u</td><td align='right'>%u</td><td align='right'>%u</td></tr>\n", $url, $myts->displayTarea($data['topic_title']), $articles, $views, $attachedfiles, $expired, $authors); } $class = $class == 'even' ? 'odd' : 'even'; printf("<tr class='" . $class . "'><td align='center'><b>%s</b></td><td align='right'><b>%u</b></td><td align='right'><b>%u</b></td><td align='right'><b>%u</b></td><td align='right'><b>%u</b></td><td> </td>\n", _AM_NEWS_STATS2, $totals[0], $totals[1], $totals[2], $totals[3]); echo "</table></div><br /><br /><br />"; // Second part of the stats, everything about stories // a) Most readed articles $mostreadednews = $stats['mostreadednews']; echo "<div style='text-align: center;'><b>" . _AM_NEWS_STATS3 . "</b><br /><br />" . _AM_NEWS_STATS4 . "<br />\n"; echo "<table border='1' width='100%'><tr class='bg3'><td align='center'>" . _AM_TOPIC . "</td><td align='center'>" . _AM_TITLE . "</td><td>" . _AM_POSTER . "</td><td>" . _NW_VIEWS . "</td></tr>\n"; foreach ($mostreadednews as $storyid => $data) { $url1 = XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/index.php?storytopic=" . $data['topicid']; $url2 = XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/article.php?storyid=" . $storyid; $url3 = XOOPS_URL . '/userinfo.php?uid=' . $data['uid']; $class = $class == 'even' ? 'odd' : 'even'; printf("<tr class='" . $class . "'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='left'><a href='%s' target='_blank'>%s</a></td><td><a href='%s' target='_blank'>%s</a></td><td align='right'>%u</td></tr>\n", $url1, $myts->displayTarea($data['topic_title']), $url2, $myts->displayTarea($data['title']), $url3, $myts->htmlSpecialChars($news->uname($data['uid'])), $data['counter']); } echo "</table>"; // b) Less readed articles $lessreadednews = $stats['lessreadednews']; echo '<br /><br />' . _AM_NEWS_STATS5; echo "<table border='1' width='100%'><tr class='bg3'><td align='center'>" . _AM_TOPIC . "</td><td align='center'>" . _AM_TITLE . "</td><td>" . _AM_POSTER . "</td><td>" . _NW_VIEWS . "</td></tr>\n"; foreach ($lessreadednews as $storyid => $data) { $url1 = XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/index.php?storytopic=" . $data['topicid']; $url2 = XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/article.php?storyid=" . $storyid; $url3 = XOOPS_URL . '/userinfo.php?uid=' . $data['uid']; $class = $class == 'even' ? 'odd' : 'even'; printf("<tr class='" . $class . "'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='left'><a href='%s' target='_blank'>%s</a></td><td><a href='%s' target='_blank'>%s</a></td><td align='right'>%u</td></tr>\n", $url1, $myts->displayTarea($data['topic_title']), $url2, $myts->displayTarea($data['title']), $url3, $myts->htmlSpecialChars($news->uname($data['uid'])), $data['counter']); } echo "</table>"; // c) Best rated articles (this is an average) $besratednews = $stats['besratednews']; echo '<br /><br />' . _AM_NEWS_STATS6; echo "<table border='1' width='100%'><tr class='bg3'><td align='center'>" . _AM_TOPIC . "</td><td align='center'>" . _AM_TITLE . "</td><td>" . _AM_POSTER . "</td><td>" . _NW_RATING . "</td></tr>\n"; foreach ($besratednews as $storyid => $data) { $url1 = XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/index.php?storytopic=" . $data['topicid']; $url2 = XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/article.php?storyid=" . $storyid; $url3 = XOOPS_URL . '/userinfo.php?uid=' . $data['uid']; $class = $class == 'even' ? 'odd' : 'even'; printf("<tr class='" . $class . "'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='left'><a href='%s' target='_blank'>%s</a></td><td><a href='%s' target='_blank'>%s</a></td><td align='right'>%s</td></tr>\n", $url1, $myts->displayTarea($data['topic_title']), $url2, $myts->displayTarea($data['title']), $url3, $myts->htmlSpecialChars($news->uname($data['uid'])), number_format($data['rating'], 2)); } echo "</table></div><br /><br /><br />"; // Last part of the stats, everything about authors // a) Most readed authors $mostreadedauthors = $stats['mostreadedauthors']; echo "<div style='text-align: center;'><b>" . _AM_NEWS_STATS10 . "</b><br /><br />" . _AM_NEWS_STATS7 . "<br />\n"; echo "<table border='1' width='100%'><tr class='bg3'><td>" . _AM_POSTER . "</td><td>" . _NW_VIEWS . "</td></tr>\n"; foreach ($mostreadedauthors as $uid => $reads) { $url = XOOPS_URL . '/userinfo.php?uid=' . $uid; $class = $class == 'even' ? 'odd' : 'even'; printf("<tr class='" . $class . "'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='right'>%u</td></tr>\n", $url, $myts->htmlSpecialChars($news->uname($uid)), $reads); } echo "</table>"; // b) Best rated authors $bestratedauthors = $stats['bestratedauthors']; echo '<br /><br />' . _AM_NEWS_STATS8; echo "<table border='1' width='100%'><tr class='bg3'><td>" . _AM_POSTER . "</td><td>" . _NW_RATING . "</td></tr>\n"; foreach ($bestratedauthors as $uid => $rating) { $url = XOOPS_URL . '/userinfo.php?uid=' . $uid; $class = $class == 'even' ? 'odd' : 'even'; printf("<tr class='" . $class . "'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='right'>%u</td></tr>\n", $url, $myts->htmlSpecialChars($news->uname($uid)), $rating); } echo "</table>"; // c) Biggest contributors $biggestcontributors = $stats['biggestcontributors']; echo '<br /><br />' . _AM_NEWS_STATS9; echo "<table border='1' width='100%'><tr class='bg3'><td>" . _AM_POSTER . "</td><td>" . _AM_NEWS_STATS11 . "</td></tr>\n"; foreach ($biggestcontributors as $uid => $count) { $url = XOOPS_URL . '/userinfo.php?uid=' . $uid; $class = $class == 'even' ? 'odd' : 'even'; printf("<tr class='" . $class . "'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='right'>%u</td></tr>\n", $url, $myts->htmlSpecialChars($news->uname($uid)), $count); } echo "</table></div><br />"; }
<?php ###################################################################### # # Accounting - A PHP-Nuke module for customers to use to view # their current account status. Admins can manage invoices, # services attached to each invoice, view paid/unpaid # invoices, manage users, and much more! # # Copyright � 2004-2005 Joshua Scarbrough (JoshS@moahosting.com) # # 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, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # long with this program; if not, write to: # Free Software Foundation, Inc. # 59 Temple Place - Suite 330 # Boston, MA 02111-1307, USA. # ###################################################################### if ($radminsuper == 1 or $radminarticle == 1) { adminmenu("admin.php?op=Accounting", "Accounting", "accounting.gif"); }
function content() { global $pagenum, $selected, $message, $menu, $set, $langmessage, $LNEversion, $out, $prefix; if ($message != "") { $out .= "<div class=\"LNE_message\">" . $message . "</div>\n"; } if ($_SESSION['adminlevel'] > 3) { $out .= adminmenu(); } switch ($_GET['do']) { case "search": $out .= "<h2 class=\"LNE_title\">{$langmessage['66']}</h2>\n"; $out .= search(); break; case "register": if ($set['gzip']) { $out .= register(); } break; case "addons": $out .= addons(); break; case "create": $out .= create_page(); break; case "database": $out .= query(); break; case "delete": delete_page(); break; case "edit": print $out; $out = ""; editpage(); break; case "editextra": print $out; $out = ""; extras(); break; case "editmenu": $out .= editmenu(); break; case "login": $out .= loginform(); break; case "plugins": $out .= plugins(); break; case "profile": if ($_SESSION[$set['password']] == "1") { $out .= profile(); } break; case "query": $out .= query(); break; case "settings": $out .= settings(); break; case "setup": $out .= setup(); break; case "sitemap": $out .= showsitemap($langmessage, 0); break; case "users": $out .= users(); break; default: $addons = fetch_all(dbquery("SELECT * FROM " . $prefix . "addons WHERE active=1")); $found = false; foreach ($addons as $addon) { if ($_GET['do'] == $addon['name'] && $_SESSION['adminlevel'] >= $addon['adminlevel']) { require_once "addons/" . $addon['name'] . "/admin.php"; $out .= $addon['aname'](); $found = true; break; } } if (!$found) { $result = dbquery("SELECT * FROM " . $prefix . "paginas WHERE page=\"" . $pagenum . "\""); if ($row = fetch_array($result)) { if ($row['restricted'] != 0 && $row['restricted'] > $_SESSION['adminlevel']) { $out .= restrictedpage($row['restricted']); } else { $contnt = html_entity_decode(stripslashes($row['content'])); showcontent($contnt); } } else { $result = dbquery("SELECT * FROM " . $prefix . "paginas WHERE page=\"index\""); if ($row = fetch_array($result)) { $contnt = html_entity_decode(stripslashes($row['content'])); showcontent($contnt); } else { $out .= "<h2>{$langmessage['116']}</h2>\n"; } } foreach ($addons as $addon) { if (strpos($contnt, "%!\$" . $addon['name']) && $addon['header'] == 1) { require_once "addons/" . $addon['name'] . "/header.php"; } } } } }
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2002 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 (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die("Access Denied"); } if ($radminsuper == 1) { adminmenu("admin.php?op=BannersAdmin", "" . _BANNERS . "", "banners.gif"); }
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* 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('ADMIN_FILE')) { die("Access Denied"); } global $admin_file; if ($radminsuper == 1) { adminmenu("" . $admin_file . ".php?op=modules", "" . _MODULES . "", "modules.gif"); }
} } xoops_comment_delete($xoopsModule->getVar('mid'), $storyid); xoops_notification_deletebyitem($xoopsModule->getVar('mid'), 'story', $storyid); redirect_header('index.php?op=newarticle', 1, _AMS_AM_DBUPDATED); exit; } else { $story = new AmsStory($storyid); echo "<h4>" . _AMS_AM_CONFIG . "</h4>"; xoops_confirm(array('op' => 'delete', 'storyid' => $storyid, 'ok' => 1), 'index.php', _AMS_AM_RUSUREDEL . '<br />' . $story->title()); } break; case "default": default: case "topicsmanager": adminmenu(1); topicsmanager(); break; case "addTopic": addTopic(); break; case "delTopic": delTopic(); break; case "modTopicS": modTopicS(); break; case "edit": include "../submit.php"; break; case "delaudience":
<?php ###################################################################### # # Support - A PHP-Nuke module for customers to use to receive # support via support ticket system! # # Copyright � 2004-2005 Joshua Scarbrough (JoshS@moahosting.com) # # 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, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # long with this program; if not, write to: # Free Software Foundation, Inc. # 59 Temple Place - Suite 330 # Boston, MA 02111-1307, USA. # ###################################################################### if ($radminsuper == 1 or $radminarticle == 1) { adminmenu("admin.php?op=Support", "Support", "support.gif"); }
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2002 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 (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die("Access Denied"); } if ($radminsuper == 1) { adminmenu("admin.php?op=messages", "" . _MESSAGES . "", "messages.gif"); }
<?php /************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* 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('ADMIN_FILE')) { die("Access Denied"); } global $admin_file; adminmenu("" . $admin_file . ".php?op=reviews", "" . _REVIEWS . "", "reviews.gif");
<!-- .bartop { border-color: #FFFFFF #FFFFFF #FFFFFF #FFFFFF; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; background-color: #CCCCCC; auto; border-style: outset; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin} .barbottom { border-color: #FFFFFF #FFFFFF #FFFFFF #FFFFFF; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; background-color: #CCCCCC; auto; border-style: inset; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin} .filemantext { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; text-decoration: none} --> </style> <?php // same title as admin menu //echo "<div><h4>"._AM_UPOADMANAGE."</h4></div>"; echo "<div><h4>"._AM_UPLOADMAN."</h4></div>"; // add adminmenu flag // adminmenu(); if ($wfsAdminMenu) adminmenu(); $php_self = xoops_getenv('PHP_SELF'); echo "<table width = 100% cellspacing = '0' cellpadding = '1' class = outer >"; echo "<b>Server status</b>"; echo "<br /><br />"; if (ini_get('safe_mode')) echo "safe_mode is ON (This will cause problems with Filemanger)"; else echo "safe_mode is OFF"; echo "<br />"; if (ini_get('enable_dl')) echo "Uploads is ON"; else echo "Uploads is OFF"; if (ini_get('enable_dl')) echo " and Max Upload size = ".ini_get('upload_max_filesize'); echo "<br />"; if (ini_get('register_globals')) echo "Register Globals is ON"; else echo "Register Globals is OFF"; echo "<br /><br />"; echo "<div><a href='".$urlpath."'>$home</a>";
<?php ##################################################################### # # Online Ordering - A PHP-Nuke module for customers to use to # sign-up and purchase services from your company. Uses # PayPal as final payment method. # # Copyright � 2004-2005 Joshua Scarbrough (JoshS@moahosting.com) # # 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, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # long with this program; if not, write to: # Free Software Foundation, Inc. # 59 Temple Place - Suite 330 # Boston, MA 02111-1307, USA. # ###################################################################### if ($radminsuper == 1 or $radminarticle == 1) { adminmenu("admin.php?op=Order", "Order", "order.gif"); }