当前位置: 首页>>代码示例>>PHP>>正文


PHP adminmenu函数代码示例

本文整理汇总了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();
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:8,代码来源:category.php

示例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");
}
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:20,代码来源:links.backup.php

示例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");
开发者ID:BackupTheBerlios,项目名称:domsmod-svn,代码行数:17,代码来源:links.php

示例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");
}
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:20,代码来源:links.messages.php

示例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");
开发者ID:BackupTheBerlios,项目名称:domsmod-svn,代码行数:17,代码来源:links.php

示例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");
}
开发者ID:BackupTheBerlios,项目名称:domsmod-svn,代码行数:19,代码来源:links.editadmins.php

示例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>";
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:spotlight.php

示例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");
}
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:20,代码来源:links.optimize.php

示例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();
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:75,代码来源:index.php

示例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");
}
开发者ID:BackupTheBerlios,项目名称:domsmod-svn,代码行数:19,代码来源:links.newsletter.php

示例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>";

}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:78,代码来源:brokendown.php

示例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");
开发者ID:BackupTheBerlios,项目名称:domsmod-svn,代码行数:17,代码来源:links.php

示例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());
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:groupperms.php

示例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");
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:18,代码来源:links.php

示例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");
}
开发者ID:BackupTheBerlios,项目名称:domsmod-svn,代码行数:16,代码来源:links.sommaire.php


注:本文中的adminmenu函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。