本文整理匯總了PHP中QApplication::CheckRemoteAdmin方法的典型用法代碼示例。如果您正苦於以下問題:PHP QApplication::CheckRemoteAdmin方法的具體用法?PHP QApplication::CheckRemoteAdmin怎麽用?PHP QApplication::CheckRemoteAdmin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類QApplication
的用法示例。
在下文中一共展示了QApplication::CheckRemoteAdmin方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Form_Run
protected function Form_Run()
{
// Security check for ALLOW_REMOTE_ADMIN
// To allow access REGARDLESS of ALLOW_REMOTE_ADMIN, simply remove the line below
QApplication::CheckRemoteAdmin();
QApplication::$LoadedPage = 'My Contacts';
}
示例2: Form_Run
protected function Form_Run()
{
QApplication::$LoadedPage = 'Home';
QApplication::CheckRemoteAdmin();
isset($_SESSION['User']) ? $_SESSION['User'] = $_SESSION['User'] : ($_SESSION['User'] = '');
if ($_SESSION['User'] != '') {
QApplication::Redirect('postlogin.php');
}
}
示例3:
<?php
// Include prepend.inc to load Qcodo
require '../includes/prepend.inc.php';
/* if you DO NOT have "includes/" in your include_path */
// require('prepend.inc.php'); /* if you DO have "includes/" in your include_path */
// Include the classfile for ShipmentListFormBase
require __FORMBASE_CLASSES__ . '/ShipmentListFormBase.class.php';
// Security check for ALLOW_REMOTE_ADMIN
// To allow access REGARDLESS of ALLOW_REMOTE_ADMIN, simply remove the line below
QApplication::CheckRemoteAdmin();
/**
* This is a quick-and-dirty draft form object to do the List All functionality
* of the Shipment class. It extends from the code-generated
* abstract ShipmentListFormBase class.
*
* Any display customizations and presentation-tier logic can be implemented
* here by overriding existing or implementing new methods, properties and variables.
*
* Additional qform control objects can also be defined and used here, as well.
*
* @package My Application
* @subpackage FormDraftObjects
*
*/
class ShipmentListForm extends ShipmentListFormBase
{
}
// Go ahead and run this form object to generate the page and event handlers, using
// generated/shipment_list.tpl.php as the included HTML template file
ShipmentListForm::Run('ShipmentListForm', 'generated/shipment_list.tpl.php');
示例4: Form_Run
protected function Form_Run()
{
QApplication::CheckRemoteAdmin();
}
示例5: Form_Run
protected function Form_Run()
{
QApplication::$LoadedPage = 'Asset Log';
QApplication::CheckRemoteAdmin();
}