本文整理汇总了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();
}