當前位置: 首頁>>代碼示例>>PHP>>正文


PHP admincp類代碼示例

本文整理匯總了PHP中admincp的典型用法代碼示例。如果您正苦於以下問題:PHP admincp類的具體用法?PHP admincp怎麽用?PHP admincp使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了admincp類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: domanage

 function domanage()
 {
     member::MP("menu_plugin_manage");
     $plugins = $this->iCMS->getCache('system/plugins');
     $rs = plugin::doList();
     include admincp::tpl();
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:7,代碼來源:plugins.mo.php

示例2: dofpower

 function dofpower()
 {
     $rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__members` WHERE `uid`='" . intval($_GET['uid']) . "'");
     $forum = new forum();
     $forum->allArray();
     include admincp::tpl("account.fpower");
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:7,代碼來源:account.mo.php

示例3: doDefault

 function doDefault()
 {
     //數據統計
     $rs = iCMS_DB::getArray("SHOW FULL TABLES FROM `" . DB_NAME . "` WHERE table_type = 'BASE TABLE';");
     foreach ($rs as $k => $val) {
         if (strstr(DB_PREFIX, $val['Tables_in_' . DB_NAME]) === false) {
             $iCMSTable[] = $val['Tables_in_' . DB_NAME];
         } else {
             $oTable[] = $val['Tables_in_' . DB_NAME];
         }
     }
     $content_datasize = 0;
     $tables = iCMS_DB::getArray("SHOW TABLE STATUS");
     $_count = count($tables);
     $tableStr = strtoupper(implode(",", $iCMSTable));
     for ($i = 0; $i < $_count; $i++) {
         $tableName = strtoupper($tables[$i]['Name']);
         if (stristr($tableStr, $tableName)) {
             $datasize += $tables[$i]['Data_length'];
             $indexsize += $tables[$i]['Index_length'];
             if (stristr(strtoupper(DB_PREFIX . "article," . DB_PREFIX . "forum," . DB_PREFIX . "comment," . DB_PREFIX . "article_data"), $tableName)) {
                 $content_datasize += $tables[$i]['Data_length'] + $tables[$i]['Index_length'];
             }
         }
     }
     $c = iCMS_DB::getValue("SELECT count(*) FROM #iCMS@__forum");
     $a = iCMS_DB::getValue("SELECT count(*) FROM #iCMS@__article");
     file_exists(iPATH . 'license.php') && ($license = (include iPATH . 'license.php'));
     include admincp::tpl("home");
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:30,代碼來源:home.mo.php

示例4: dofpower

 function dofpower()
 {
     include_once iPATH . 'include/forum.class.php';
     $rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__admin` WHERE `uid`='" . intval($_GET['uid']) . "'");
     $forum = new forum();
     $forum->allArray();
     include admincp::tpl("account.fpower");
 }
開發者ID:idreamsoft,項目名稱:iCMS5.0,代碼行數:8,代碼來源:account.mo.php

示例5: doDefault

 function doDefault()
 {
     $_configRs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__config`");
     foreach ($_configRs as $_C) {
         $configRs[$_C['name']] = $_C['value'];
     }
     include admincp::tpl("setting");
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:8,代碼來源:setting.mo.php

示例6: doedit

 function doedit()
 {
     $path = trim($_GET["path"]);
     $FileData = FS::read(iPATH . "templates" . $path);
     $strpos = strpos(__REF__, '?');
     $REFERER = $strpos === false ? '' : substr(__REF__, $strpos);
     include admincp::tpl();
 }
開發者ID:idreamsoft,項目名稱:iCMS5.0,代碼行數:8,代碼來源:templates.mo.php

示例7: dofpower

 function dofpower()
 {
     $rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__group` WHERE `gid`='" . intval($_GET['groupid']) . "'");
     admincp::head();
     $forum = new forum();
     $forum->allArray();
     include admincp::tpl();
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:8,代碼來源:groups.mo.php

示例8: doDefault

 function doDefault()
 {
     member::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');
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:9,代碼來源:filter.mo.php

示例9: dodefault

 function dodefault()
 {
     member::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');
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:10,代碼來源:search.mo.php

示例10: dodefault

 function dodefault()
 {
     member::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");
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:10,代碼來源:advertise.mo.php

示例11: 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');
 }
開發者ID:idreamsoft,項目名稱:iCMS5.0,代碼行數:10,代碼來源:link.mo.php

示例12: dodefault

 function dodefault()
 {
     member::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');
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:14,代碼來源:keywords.mo.php

示例13: doinstall

 function doinstall($download = false)
 {
     $a = patch::init(isset($_GET['force']) ? true : false);
     if (empty($a)) {
         echo "iCMS版本目前是最新版本:iCMS " . iCMS_VER . " [" . iCMS_RELEASE . "]";
         return;
     }
     $msg = '';
     if ($download) {
         $msg .= patch::download($a[1]);
     }
     //下載
     $msg .= patch::update($a[1]);
     //更新
     if ($a[2]) {
         $msg .= patch::run($a[2]);
     }
     //執行升級程序
     include admincp::tpl("ipatch");
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:20,代碼來源:ipatch.mo.php

示例14: doextract

 function doextract()
 {
     include iPATH . 'include/forum.class.php';
     $forum = new forum();
     include admincp::tpl();
 }
開發者ID:idreamsoft,項目名稱:iCMS5.0,代碼行數:6,代碼來源:files.mo.php

示例15: doAddfield

 function doAddfield()
 {
     $mid = (int) $_GET['id'];
     $fid = (int) $_GET['fid'];
     if ($fid) {
         $rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__field` where `id`='{$fid}'", ARRAY_A);
         $rs['option'] = unserialize($rs['option']);
     } else {
         $rs['show'] = 0;
     }
     include admincp::tpl();
 }
開發者ID:idreamsoft,項目名稱:iCMS5.1,代碼行數:12,代碼來源:models.mo.php


注:本文中的admincp類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。