本文整理汇总了PHP中adminmenu函数的典型用法代码示例。如果您正苦于以下问题:PHP adminmenu函数的具体用法?PHP adminmenu怎么用?PHP adminmenu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了adminmenu函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sectionheader
function sectionheader() {
echo "<div><h4>"._AM_SECTIONMANAGE."</h4></div>";
// add adminmenu flag
// adminmenu();
global $wfsAdminMenu;
if ($wfsAdminMenu) adminmenu();
}
示例2: die
<?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");
}
示例3: die
<?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");
示例4: die
<?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");
}
示例5: die
<?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");
示例6: die
<?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");
}
示例7: xoops_cp_header
// 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>";
示例8: die
<?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");
}
示例9: Metagen
/**
* 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();
}
示例10: die
<?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");
}
示例11: listBrokenDownloads
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>";
}
示例12: die
<?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");
示例13: xoops_cp_header
// 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());
示例14: die
<?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");
示例15: adminmenu
<?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");
}