Marius Cramer
2013-11-14 7fe908c50c8dbc5cc05f571dbe11d66141caacd4
interface/lib/classes/remoting_lib.inc.php
@@ -64,7 +64,10 @@
*
*/
class remoting_lib {
   
        /**
        * Definition of the database table (array)
@@ -121,7 +124,7 @@
       function loadFormDef($file) {
         global $app,$conf;
            
         include($file);
      include $file;
            
         $this->formDef = $form;
         unset($this->formDef['tabs']);
@@ -232,6 +235,7 @@
        return $new_record;
        }
        /**
        * Get the key => value array of a form filled from a datasource definitiom
        *
@@ -239,7 +243,6 @@
        * @param record = Dataset as array
        * @return key => value array for the value field of a form
        */
        function getDatasourceData($field, $record) {
                global $app;
@@ -289,6 +292,7 @@
                return $values;
        }
        /**
        /**
@@ -397,6 +401,10 @@
                return $new_record;
        }
      
      /**
        * process the filters for a given field.
        *
@@ -406,7 +414,6 @@
      * @param filter_event = 'SAVE'or 'SHOW'
        * @return record
        */
        function filterField($field_name, $field_value, $filters, $filter_event) {
         global $app;
@@ -438,6 +445,7 @@
         return $returnval;
        }
        /**
        * process the validators for a given field.
        *
@@ -446,7 +454,6 @@
        * @param validatoors = Array of validators
        * @return record
        */
        function validateField($field_name, $field_value, $validators) {
                global $app;
@@ -562,7 +569,7 @@
                        if(preg_match("/^[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}$/", $field_value)){
                        $groups=explode(".",$field_value);
                        foreach($groups as $group){
                           if($group<0 OR $group>255)
                  if($group<0 or $group>255)
                           $vip=0;
                        }
                        }else{$vip=0;}
@@ -661,6 +668,7 @@
                return true;
        }
        /**
        * Create SQL statement
        *