]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Renammed file chttp.class.php by chttprequest.class.php
authorDavide Franco <bacula-dev@dflc.ch>
Wed, 20 Jul 2011 17:01:16 +0000 (19:01 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:25 +0000 (14:49 +0200)
gui/bacula-web/includes/utils/chttp.class.php [deleted file]
gui/bacula-web/includes/utils/chttprequest.class.php [new file with mode: 0644]

diff --git a/gui/bacula-web/includes/utils/chttp.class.php b/gui/bacula-web/includes/utils/chttp.class.php
deleted file mode 100644 (file)
index 2d972bd..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-/*
-+-------------------------------------------------------------------------+
-| Copyright 2010-2011, Davide Franco |
-| |
-| This program is free software; you can redistribute it and/or |
-| modify it under the terms of the GNU General Public License |
-| as published by the Free Software Foundation; either version 2 |
-| of the License, or (at your option) any later version. |
-| |
-| This program is distributed in the hope that it will be useful, |
-| but WITHOUT ANY WARRANTY; without even the implied warranty of |
-| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
-| GNU General Public License for more details. |
-+-------------------------------------------------------------------------+
-*/
-       class CHttp
-       {
-               // Return a strip taged value
-               private static function getSafeValue( $value )
-               {
-                               return strip_tags($value);
-               }
-
-               // Return an array of $_POST or $_GET values
-               // If $_POST or $_GET are empty, the return value is FALSE
-               public static function getRequestVars( &$value )
-               {
-                       $value_list = array();
-                       
-                       if( is_array( $value ) and count($value) > 0 ) {
-                                       foreach( $value as $key => $var ) {
-                                               if( isset($value[$key] ) )
-                                                       $value_list[$key] = self::getSafeValue( $var );
-                                               else
-                                                       $value_list[$key] = false;
-                                       }
-                       }else {
-                               return false;
-                       }
-
-                       return $value_list;
-       }
-} // end class
-
-?>
diff --git a/gui/bacula-web/includes/utils/chttprequest.class.php b/gui/bacula-web/includes/utils/chttprequest.class.php
new file mode 100644 (file)
index 0000000..2d972bd
--- /dev/null
@@ -0,0 +1,46 @@
+<?php
+/*
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco |
+| |
+| This program is free software; you can redistribute it and/or |
+| modify it under the terms of the GNU General Public License |
+| as published by the Free Software Foundation; either version 2 |
+| of the License, or (at your option) any later version. |
+| |
+| This program is distributed in the hope that it will be useful, |
+| but WITHOUT ANY WARRANTY; without even the implied warranty of |
+| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
+| GNU General Public License for more details. |
++-------------------------------------------------------------------------+
+*/
+       class CHttp
+       {
+               // Return a strip taged value
+               private static function getSafeValue( $value )
+               {
+                               return strip_tags($value);
+               }
+
+               // Return an array of $_POST or $_GET values
+               // If $_POST or $_GET are empty, the return value is FALSE
+               public static function getRequestVars( &$value )
+               {
+                       $value_list = array();
+                       
+                       if( is_array( $value ) and count($value) > 0 ) {
+                                       foreach( $value as $key => $var ) {
+                                               if( isset($value[$key] ) )
+                                                       $value_list[$key] = self::getSafeValue( $var );
+                                               else
+                                                       $value_list[$key] = false;
+                                       }
+                       }else {
+                               return false;
+                       }
+
+                       return $value_list;
+       }
+} // end class
+
+?>