* change for framework.
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
* May you share freely, never taking more than you give.
|
||||
*/
|
||||
|
||||
include dirname(__FILE__) . '/base/control.class.php';
|
||||
/**
|
||||
* control基类继承与baseControl,所有模块的control类都派生于它。
|
||||
* The base class of control extends baseControl.
|
||||
*
|
||||
* @package framework
|
||||
*/
|
||||
include dirname(__FILE__) . '/base/control.class.php';
|
||||
class control extends baseControl
|
||||
{
|
||||
}
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
* May you share freely, never taking more than you give.
|
||||
*/
|
||||
|
||||
include dirname(__FILE__) . '/base/helper.class.php';
|
||||
/**
|
||||
* 该类实现了一些常用的方法
|
||||
* The helper class, contains the tool functions.
|
||||
*
|
||||
* @package framework
|
||||
*/
|
||||
include dirname(__FILE__) . '/base/helper.class.php';
|
||||
class helper extends baseHelper
|
||||
{
|
||||
}
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
* May you share freely, never taking more than you give.
|
||||
*/
|
||||
|
||||
include dirname(__FILE__) . '/base/model.class.php';
|
||||
/**
|
||||
* model基类。
|
||||
* The base class of model.
|
||||
*
|
||||
* @package framework
|
||||
*/
|
||||
include dirname(__FILE__) . '/base/model.class.php';
|
||||
class model extends baseModel
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
* May you share freely, never taking more than you give.
|
||||
*/
|
||||
|
||||
include dirname(__FILE__) . '/base/router.class.php';
|
||||
/**
|
||||
* router类。
|
||||
* The router class.
|
||||
*
|
||||
* @package framework
|
||||
*/
|
||||
include dirname(__FILE__) . '/base/router.class.php';
|
||||
class router extends baseRouter
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -198,7 +198,7 @@ class baseValidater
|
||||
* IP checking.
|
||||
*
|
||||
* @param ip $var
|
||||
* @param string $range all|public|static|public
|
||||
* @param string $range all|public|static|private
|
||||
* @static
|
||||
* @access public
|
||||
* @return bool
|
||||
@@ -207,7 +207,7 @@ class baseValidater
|
||||
{
|
||||
if($range == 'all') return filter_var($var, FILTER_VALIDATE_IP);
|
||||
if($range == 'public static') return filter_var($var, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE);
|
||||
if($range == 'public')
|
||||
if($range == 'private')
|
||||
{
|
||||
if($var == '127.0.0.1' or filter_var($var, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE) === false) return true;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user