phpBMS

Changeset 349 for trunk/phpbms/include

Show
Ignore:
Timestamp:
10/22/07 13:27:09 (5 years ago)
Author:
brieb
Message:

Fixed problem with reserved constant in certain PHP versions.
If you load this change set on a current working database, make sure to
manually run the SQL in the update-nextver.sql on your database.

Also, you may need to flush your browser cache so the javaScript is re-loaded properly.

Location:
trunk/phpbms/include
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/include/common_functions.php

    r324 r349  
    434434        if($number<0) 
    435435                $currency.="-"; 
    436         $currency.=CURRENCY_SYMBOL.number_format(abs($number),CURRENCY_ACCURACY,DECIMAL_SYMBOL,THOUSANDS_SEPARATOR); 
     436        $currency.=CURRENCY_SYM.number_format(abs($number),CURRENCY_ACCURACY,DECIMAL_SYMBOL,THOUSANDS_SEPARATOR); 
    437437        return $currency; 
    438438} 
    439439 
    440440function currencyToNumber($currency){ 
    441         $number=str_replace(CURRENCY_SYMBOL,"",$currency); 
     441        $number=str_replace(CURRENCY_SYM,"",$currency); 
    442442        $number=str_replace(THOUSANDS_SEPARATOR,"",$number); 
    443443        $number=str_replace(DECIMAL_SYMBOL,".",$number); 
  • trunk/phpbms/include/jstransport.php

    r345 r349  
    3131 
    3232        //currency formating 
    33         ?>CURRENCY_SYMBOL="<?php echo htmlQuotes(CURRENCY_SYMBOL)?>";<?php 
     33        ?>CURRENCY_SYM="<?php echo htmlQuotes(CURRENCY_SYM)?>";<?php 
    3434 
    3535        ?>CURRENCY_ACCURACY=<?php echo CURRENCY_ACCURACY?>;<?php 
  • trunk/phpbms/include/session.php

    r347 r349  
    316316                        return false; 
    317317                } else { 
    318                         while($therecord=$this->db->fetchArray($queryresult)) 
     318                        while($therecord=$this->db->fetchArray($queryresult)){ 
     319                         
     320                                //old versions used a reserved constant in certain php versions 
     321                                if($therecord["name"] == "currency_symbol") 
     322                                        $therecord["name"] = "currency_sym"; 
     323                                         
    319324                                if(!defined(strtoupper($therecord["name"]))) 
    320325                                        define(strtoupper($therecord["name"]),$therecord["value"]); 
     326                                         
     327                        }//end while 
    321328 
    322329                        // This following code is for windows boxen, because they lack some server varables as well 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.