本文整理汇总了PHP中Admin::MP方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin::MP方法的具体用法?PHP Admin::MP怎么用?PHP Admin::MP使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin
的用法示例。
在下文中一共展示了Admin::MP方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: domanage
function domanage()
{
Admin::MP("menu_plugin_manage");
$plugins = $this->iCMS->getCache('system/plugins');
$rs = plugin::doList();
include admincp::tpl();
}
示例2: domanage
function domanage()
{
Admin::MP("menu_template_manage");
$dir = trim($_GET["dir"]);
$L = FS::folder($dir, "templates", "");
include admincp::tpl();
}
示例3: domanage
function domanage()
{
Admin::MP("menu_models_manage");
$rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__model`");
$_count = count($rs);
include admincp::tpl();
}
示例4: domanage
function domanage()
{
Admin::MP("menu_group_manage");
include iPATH . 'include/group.class.php';
$group = new group();
$type = $_GET['type'];
include admincp::tpl();
}
示例5: doDefault
function doDefault()
{
Admin::MP("menu_filter");
$cache = $this->iCMS->getCache(array('system/word.filter', 'system/word.disable'));
foreach ((array) $cache['system/word.filter'] as $k => $val) {
$filterArray[$k] = implode("=", (array) $val);
}
include admincp::tpl('filter');
}
示例6: doedit
function doedit()
{
Admin::MP("menu_account_edit");
include iPATH . 'include/group.class.php';
$group = new group('a');
$rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__admin` WHERE `uid`='" . intval($_GET['uid']) . "'");
$info = unserialize($rs->info);
include admincp::tpl("account.edit");
}
示例7: domanage
function domanage()
{
Admin::MP("menu_user_manage");
$maxperpage = 20;
$total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__members`") : (int) $_GET['rowNum'];
page($total, $maxperpage, "位会员");
$rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__members` order by uid DESC LIMIT {$this->firstcount},{$maxperpage}");
$_count = count($rs);
include admincp::tpl('user.manage');
}
示例8: dodefault
function dodefault()
{
Admin::MP("menu_search");
$maxperpage = 20;
$total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__search`") : (int) $_GET['rowNum'];
page($total, $maxperpage, "个关键字");
$rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__search` order by id DESC LIMIT {$this->firstcount},{$maxperpage}");
$_count = count($rs);
include admincp::tpl('search');
}
示例9: dodefault
function dodefault()
{
Admin::MP(array("menu_index_link", "menu_link"));
$maxperpage = 60;
$total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__links`") : (int) $_GET['rowNum'];
page($total, $maxperpage, '个链接');
$rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__links` ORDER BY `logo`, `orderNum` ASC LIMIT {$this->firstcount},{$maxperpage}");
$_count = count($rs);
include admincp::tpl('link');
}
示例10: dodefault
function dodefault()
{
Admin::MP(array("menu_index_advertise", "menu_advertise"));
$maxperpage = 30;
$total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__advertise`") : (int) $_GET['rowNum'];
page($total, $maxperpage, "个广告");
$rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__advertise` order by id DESC LIMIT {$this->firstcount},{$maxperpage}");
$_count = count($rs);
include admincp::tpl("advertise");
}
示例11: dodefault
function dodefault()
{
global $firstcount, $pagenav;
Admin::MP("menu_message");
$_GET['keywords'] && ($sql[] = " CONCAT(author,email,url,ip) REGEXP '{$_GET['keywords']}'");
isset($_GET['status']) && ($sql[] = " `status`='" . $_GET['status'] . "'");
$where = $sql ? ' where ' . implode(' AND ', (array) $sql) : '';
$maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20;
$total = iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__plugins_message` {$where} order by id DESC");
page($total, $maxperpage, "条留言");
$rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__plugins_message` {$where} order by id DESC LIMIT {$firstcount},{$maxperpage}");
$_count = count($rs);
include plugin::acptpl();
}
示例12: dodefault
function dodefault()
{
Admin::MP("menu_keywords");
$_GET['keywords'] && ($sql[] = " `keyword` REGEXP '{$_GET['keywords']}'");
$_GET['replace'] && ($sql[] = " `replace` REGEXP '{$_GET['replace']}'");
isset($_GET['status']) && $_GET['status'] != '-1' && ($sql[] = " `status`='" . $_GET['status'] . "'");
$where = $sql ? ' where ' . implode(' AND ', (array) $sql) : '';
$maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20;
$total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__keywords` {$where}") : (int) $_GET['rowNum'];
page($total, $maxperpage, "个关键字");
$rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__keywords` {$where} order by id DESC LIMIT {$this->firstcount},{$maxperpage}");
$_count = count($rs);
include admincp::tpl('keywords');
}
示例13: doRecover
function doRecover()
{
Admin::MP("menu_database_recover");
// include(iPATH.'admin/table.array.php');
$filedb = array();
$handle = opendir(iPATH . 'admin/backup');
while ($file = readdir($handle)) {
if (eregi("^iCMS_", $file) && eregi("\\.sql\$", $file)) {
$strlen = eregi("^iCMS_", $file) ? 16 + strlen("iCMS_") : 19;
$fp = fopen(iPATH . "admin/backup/{$file}", 'rb');
$bakinfo = fread($fp, 200);
fclose($fp);
$detail = explode("\n", $bakinfo);
$bk['name'] = $file;
$bk['version'] = substr($detail[1], 10);
$bk['time'] = substr($detail[2], 8);
$bk['pre'] = substr($file, 0, $strlen);
$bk['num'] = substr($file, $strlen, strrpos($file, '.') - $strlen);
$filedb[] = $bk;
}
}
include admincp::tpl();
}
示例14: doDefault
function doDefault()
{
Admin::MP(array("menu_index_comment", "menu_comment"));
include_once iPATH . 'include/model.class.php';
if ($_GET['st'] == "title") {
$_GET['keywords'] && ($sql[] = " `title` REGEXP '{$_GET['keywords']}'");
} else {
if ($_GET['st'] == "contents") {
$_GET['keywords'] && ($sql[] = " `contents` REGEXP '{$_GET['keywords']}'");
}
}
$_GET['starttime'] && ($sql[] = " `addtime`>='" . strtotime($_GET['starttime']) . "'");
$_GET['endtime'] && ($sql[] = " `addtime`<='" . strtotime($_GET['endtime']) . "'");
$_GET['mid'] && ($sql[] = " `mid`='" . strtotime($_GET['mid']) . "'");
isset($_GET['status']) && $_GET['status'] != '-1' && ($sql[] = " `status`='" . $_GET['status'] . "'");
$where = $sql ? ' where ' . implode(' AND ', (array) $sql) : '';
$maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20;
$total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__comment` {$where}") : (int) $_GET['rowNum'];
page($total, $maxperpage, "条评论");
$rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__comment` {$where} order by id DESC LIMIT {$this->firstcount},{$maxperpage}");
$_count = count($rs);
include admincp::tpl('comment');
}
示例15: dirname
<?php
/**
* @package iCMS V3.1
* @copyright 2007-2009, iDreamSoft
* @license http://www.idreamsoft.cn iDreamSoft
* @author coolmoo <idreamsoft@qq.com>
*/
header('Content-Type: text/html; charset=utf-8');
require_once dirname(__FILE__) . '/../global.php';
require_once iPATH . "admin/admin.class.php";
require_once iPATH . "admin/function.php";
require_once iPATH . 'admin/admincp.lang.php';
$iCMS->rewrite = false;
unset($_keywords);
$do = $_GET['do'];
$operation = !empty($_GET['operation']) && is_string($_GET['operation']) ? trim($_GET['operation']) : '';
$frames = isset($_GET['frames']) ? $_GET['frames'] : $_POST['frames'];
$action = $_POST['action'];
$Admin = new Admin();
$_GET['do'] == 'logout' && $Admin->logout(__SELF__);
if ($action == "login") {
ckseccode($_POST['seccode']) && alert('验证码错误!');
$username = $_POST['username'];
$password = md5($_POST['password']);
}
$Admin->checklogin($username, $password);
admincp_log();
$Admin->MP("ADMINCP", "ADMINCP_Permission_Denied");
$menu_array = (include iPATH . 'admin/menu.array.php');