Show CGI.php syntax highlighted
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Environment
* @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Exception.php 2794 2007-01-16 01:29:51Z bkarwin $
*/
/**
* Zend_Environment_Container_Abstract
*/
require_once 'Zend/Environment/Security/Test.php';
abstract class Zend_Environment_Security_Test_CGI extends Zend_Environment_Security_Test
{
protected $_group = 'cgi';
/**
* No CGI tests should be run if the CGI SAPI isn't being used
*
* @return boolean
*/
public function isTestable() {
return strpos(php_sapi_name(), 'cgi') === 0;
}
/**
* Set the messages specific to this test
*
* @access public
* @return null
*/
protected function _setMessages() {
parent::_setMessages();
$this->setMessageForResult(self::RESULT_NOTRUN, 'en', "You don't seem to be using the CGI SAPI");
}
}
See more files for this project here