当前位置: 首页>>代码示例>>PHP>>正文


PHP Toolbox::GetRequest方法代码示例

本文整理汇总了PHP中Toolbox::GetRequest方法的典型用法代码示例。如果您正苦于以下问题:PHP Toolbox::GetRequest方法的具体用法?PHP Toolbox::GetRequest怎么用?PHP Toolbox::GetRequest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Toolbox的用法示例。


在下文中一共展示了Toolbox::GetRequest方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _InitStatus

 /**
  * Initialize status.
  */
 private function _InitStatus()
 {
     //	Get form name.
     $form_name = $this->Config()->form_name();
     //	Check secure.
     if (!$this->Form()->Secure($form_name)) {
         //	Form page.
         $this->_status = self::_STATUS_FORM_;
     } else {
         //	Secured.
         if (!Toolbox::GetRequest('confirmed')) {
             //	Confirmation page.
             $this->_status = self::_STATUS_CONFIRM_;
         } else {
             //	Confirmed.
             $this->_status = self::_STATUS_CONFIRMED_;
             if ($this->Mail()) {
                 //	Send mail was successful.
                 $this->_status = self::_STATUS_SUCCESSED_;
                 $this->Form()->Clear($form_name);
             } else {
                 //	Failed to send mail.
                 $this->_status = self::_STATUS_FAILED_;
                 $this->_error = $this->i18n()->En('Failed to send mail.');
             }
         }
     }
 }
开发者ID:TomoakiNagahara,项目名称:op-unit-contact,代码行数:31,代码来源:Contact.model.php

示例2: error_reporting

 */
/****************************************************************************************************
 *
 * OnePiece
 *
 ****************************************************************************************************/
//	Include of OnePiece framework.
include '/www/op/core/OnePiece5.class.php';
//	Set administrator setting.
Env::Set('admin-ip', '');
Env::Set('admin-mail', '');
//	Re:Setting error reporting.
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors', 0);
//	Re:Set Debug mode.
if (OnePiece5::Admin() and Toolbox::GetRequest('debug')) {
    error_reporting(E_ALL & ~E_NOTICE);
    ini_set('display_errors', 1);
}
//	Instanciate.
$op = new OnePiece5();
//	Include configuration file.
if (file_exists('config.inc.php')) {
    include 'config.inc.php';
}
/****************************************************************************************************
 * 
 * Dispatch
 * 
 ****************************************************************************************************/
//	Remove URL Query.
开发者ID:TomoakiNagahara,项目名称:op-fullscratch,代码行数:31,代码来源:app.php

示例3: explode

/**
 * op-unit-markdown/index.php
 *
 * @creation  2015-12-05
 * @version   1.0
 * @package   op-unit-markdown
 * @author    Tomoaki Nagahara <tomoaki.nagahara@gmail.com>
 * @copyright Tomoaki Nagahara All right reserved.
 */
//	Do check of include.
if (!class_exists('OnePiece5')) {
    require '';
}
//	Set route table.
Env::Set('controller-name', 'index,php');
Env::Set('route', Router::GetRoute());
//	Init of unit root directory.
if (!($root = Env::Get('unit-root'))) {
    $root = explode('/', dirname($_SERVER['SCRIPT_FILENAME']));
    $root[count($root) - 1] = null;
    $root = join('/', $root);
    Env::Set('unit-root', $root);
}
//	Instanciate
$op = new OnePiece5();
if (Toolbox::GetRequest('testcase')) {
    $op->Template('testcase.php');
} else {
    $op->Template('action.php');
}
开发者ID:TomoakiNagahara,项目名称:op-unit-markdown,代码行数:30,代码来源:index.php

示例4: microtime

/**
 *  Set OnePiece directory.
 * 
 *  Example:
 *  $op_dir = '/www/op-core';
 *  $op_dir = 'C:\www\op-core';
 */
$op_dir = '/www/op/core';
//  Start time.
$st = microtime(true);
//  Init op-core
include './app/template/init-op-core.php';
//  Create App object.
$app = new App_i18n();
//	Import config file.(setting file)
$app->Import('app/config.php');
//  Dispatch to end-point.
$app->Dispatch();
//	Access is from web browser.
if (Toolbox::isHtml()) {
    //	Display of ip address.
    if (Toolbox::GetRequest('admin')) {
        $app->p($_SERVER['REMOTE_ADDR']);
    }
    //  memory check.
    $app->mark('memory check');
    //  Finish time.
    $en = microtime(true);
    //  Will to display the execution time.
    printf('<div style="font-size:smaller;">Execute time is %s seconds.</div>', $en - $st);
}
开发者ID:TomoakiNagahara,项目名称:kung-fu.tokyo.jp,代码行数:31,代码来源:app.php

示例5: Model_Markdown

<?php

/**
 * op-unit-markdown/action.php
 *
 * @creation  2015-11-15
 * @version   1.0
 * @package   op-unit-markdown
 * @author    Tomoaki Nagahara <tomoaki.nagahara@gmail.com>
 * @copyright Tomoaki Nagahara All right reserved.
 */
//	Markdown
include './Markdown.model.php';
$md = new Model_Markdown();
$html = null;
if ($file = Toolbox::GetRequest('file')) {
    $html .= $md->toHtml("testcase/{$file}.md");
} else {
    $html .= $md->toHtml('testcase/headline.md');
    $html .= $md->toHtml('testcase/list.md');
    $html .= $md->toHtml('testcase/paragraph.md');
    $html .= $md->toHtml('testcase/decoration.md');
    $html .= $md->toHtml('testcase/anchor.md');
    $html .= $md->toHtml('testcase/image.md');
    $html .= $md->toHtml('testcase/code.md');
    $html .= $md->toHtml('testcase/blockquote.md');
}
//	Load index template.
$this->Template('index.phtml', array('html' => $html));
开发者ID:TomoakiNagahara,项目名称:op-unit-markdown,代码行数:29,代码来源:action.php


注:本文中的Toolbox::GetRequest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。