Eliminated non-static method calls and other bulk fixes to fix php5 warnings
[fa-stable.git] / gl / includes / db / gl_db_currencies.inc
index 111b83dc8ee67a9612e055054a16a0d095d0ed92..342cddc4eb6275c6a45424fa861c760547cc8eb7 100644 (file)
 ***********************************************************************/
 //---------------------------------------------------------------------------------------------
 
-function update_currency($curr_abrev, $symbol, $currency, $country, $hundreds_name)
+function update_currency($curr_abrev, $symbol, $currency, $country, 
+       $hundreds_name, $auto_update)
 {
        $sql = "UPDATE ".TB_PREF."currencies SET currency=".db_escape($currency).", curr_symbol='$symbol',
-               country=".db_escape($country).", hundreds_name=".db_escape($hundreds_name)." WHERE curr_abrev = '$curr_abrev'";
+               country=".db_escape($country).", hundreds_name=".db_escape($hundreds_name)
+               .",auto_update = '$auto_update'"." WHERE curr_abrev = '$curr_abrev'";
 
        db_query($sql, "could not update currency for $curr_abrev");
 }
 
 //---------------------------------------------------------------------------------------------
 
-function add_currency($curr_abrev, $symbol, $currency, $country, $hundreds_name)
+function add_currency($curr_abrev, $symbol, $currency, $country, 
+       $hundreds_name, $auto_update)
 {
-       $sql = "INSERT INTO ".TB_PREF."currencies (curr_abrev, curr_symbol, currency, country, hundreds_name)
-               VALUES (".db_escape($curr_abrev).", '$symbol', ".db_escape($currency).", ".db_escape($country).", ".db_escape($hundreds_name).")";
+       $sql = "INSERT INTO ".TB_PREF."currencies (curr_abrev, curr_symbol, currency, country, 
+               hundreds_name, auto_update)
+               VALUES (".db_escape($curr_abrev).", '$symbol', ".db_escape($currency)
+               .", ".db_escape($country).", ".db_escape($hundreds_name)
+               .",".db_escape($auto_update).")";
 
        db_query($sql, "could not add currency for $curr_abrev");
 }