本文整理汇总了PHP中admin_tools::AdminHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP admin_tools::AdminHtml方法的具体用法?PHP admin_tools::AdminHtml怎么用?PHP admin_tools::AdminHtml使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类admin_tools
的用法示例。
在下文中一共展示了admin_tools::AdminHtml方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: RunOut
static function RunOut()
{
global $page;
$page->RunScript();
//decide how to send the content
self::Prep();
switch (common::RequestType()) {
// <a data-cmd="admin_box">
case 'flush':
self::Flush();
break;
// remote request
// file browser
// remote request
// file browser
case 'body':
common::CheckTheme();
self::BodyAsHTML();
break;
case 'admin':
self::AdminHtml();
break;
// <a data-cmd="gpajax">
// <a data-cmd="gpabox">
// <input data-cmd="gpabox">
// <a data-cmd="gpajax">
// <a data-cmd="gpabox">
// <input data-cmd="gpabox">
case 'json':
common::CheckTheme();
includeFile('tool/ajax.php');
gpAjax::Response();
break;
case 'content':
self::Content();
break;
default:
common::CheckTheme();
self::Template();
break;
}
//if logged in, prepare the admin content and don't send 304 response
if (common::LoggedIn()) {
admin_tools::AdminHtml();
//empty edit links if there isn't a layout
if (!$page->gpLayout) {
self::$editlinks = '';
}
return;
}
/* attempt to send 304 response */
if ($page->fileModTime > 0) {
global $wbMessageBuffer, $gp_head_content;
$len = strlen($gp_head_content) + ob_get_length();
if (count($wbMessageBuffer)) {
$len += strlen(serialize($wbMessageBuffer));
}
common::Send304(common::GenEtag($page->fileModTime, $len));
}
}
示例2: RunOut
function RunOut()
{
global $page, $gp_head_content;
$page->RunScript();
//decide how to send the content
gpOutput::Prep();
$req = '';
if (isset($_REQUEST['gpreq'])) {
$req = $_REQUEST['gpreq'];
}
switch ($req) {
// <a name="admin_box">
case 'flush':
gpOutput::Flush();
break;
// remote request
// file browser
// remote request
// file browser
case 'body':
common::CheckTheme();
gpOutput::BodyAsHTML();
break;
// <a name="gpajax">
// <a name="gpajax">
case 'json':
common::CheckTheme();
includeFile('tool/ajax.php');
gpAjax::Response();
break;
case 'content':
gpOutput::Content();
break;
default:
common::CheckTheme();
gpOutput::Template();
break;
}
//if logged in, prepare the admin content and don't send 304 response
if (common::LoggedIn()) {
admin_tools::AdminHtml();
return;
}
/* attempt to send 304 response */
if ($page->fileModTime > 0) {
$len = strlen($gp_head_content) + ob_get_length();
common::Send304(common::GenEtag($page->fileModTime, $len));
}
}