Subversion Repositories computer_asset_manager_v2

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 rodolico 1
<?php
20 rodolico 2
   include_once( 'DatabaseDefinition.php' );
1 rodolico 3
   global $LOGFILE;
4
   $LOGFILE='/tmp/camp.log';
5
   define( 'VERSION', '2.0b' );
6
   define( 'BUILD_DATE', '20130527');
7
 
8
   function insertValuesIntoQuery( $query, $values ) {
9
      foreach ( $values as $name => $value ) {
10
         $query = search_replace_string($query, "<$name>", $value );
11
      }
12
      return $query;
13
   }
14
 
15
   function search_replace_string($string, $searchFor, $replaceWith ) {
16
      $string = str_replace ( $searchFor, $replaceWith, $string );
17
      return $string;
18
   }
20 rodolico 19
 
22 rodolico 20
 
21
 
1 rodolico 22
 
23
?>