瀏覽代碼

formate code

stanley-king 9 年之前
父節點
當前提交
4a0a4091ce
共有 4 個文件被更改,包括 8 次插入4 次删除
  1. 3 2
      helper/push_app.php
  2. 1 1
      helper/text_filter.php
  3. 3 0
      helper/umeng.php
  4. 1 1
      helper/user_helper.php

+ 3 - 2
helper/push_app.php

@@ -1,6 +1,7 @@
 <?php
-require_once(dirname(dirname(__FILE__)) . '/data/api/' . 'notification/android/AndroidCustomizedcast.php');
-require_once(dirname(dirname(__FILE__)) . '/data/api/' . 'notification/ios/IOSCustomizedcast.php');
+
+require_once(BASE_DATA_PATH . '/api/notification/android/AndroidCustomizedcast.php');
+require_once(BASE_DATA_PATH . '/api/notification/ios/IOSCustomizedcast.php');
 
 class push_app
 {

+ 1 - 1
helper/text_filter.php

@@ -25,7 +25,7 @@ class text_filter
     static public function filter_input($input)
     {
         $input = self::filter_html($input);
-        return $input;
+        return DFAFilter::instance()->filter($input);
     }
 
     //过滤敏感词

+ 3 - 0
helper/umeng.php

@@ -1,5 +1,8 @@
 <?php
 
+
+//todo 确认文件是否删除
+
 /**
  * Created by PhpStorm.
  * User: dell

+ 1 - 1
helper/user_helper.php

@@ -30,11 +30,11 @@ class user_helper
         return '';
     }
 
-
     static public function isLogin()
     {
         return ($_SESSION['is_login'] == 1);
     }
+
     static public function isVerfiyMobile()
     {
         if(self::isLogin()) {