* change for framework.

This commit is contained in:
wangyidong
2016-03-11 09:02:31 +08:00
parent 142915aa30
commit b0e0241676
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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
{
}
+1 -1
View File
@@ -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
{
}
+1 -1
View File
@@ -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
{
/**
+1 -1
View File
@@ -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
{
/**
+2 -2
View File
@@ -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;