Changeset 4005


Ignore:
Timestamp:
Oct 9, 2009, 4:38:54 PM (15 years ago)
Author:
patdenice
Message:

set_magic_quote_runtime and get_magic_quote_gpc are depreciated and can produce notices from PHP 5.3.
Add a @ to avoid this notices.
This functions need to be removed with PHP 6

Location:
branches/2.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/admin/include/functions_upgrade.php

    r3137 r4005  
    137137  global $conf, $page;
    138138
    139   if(!get_magic_quotes_gpc())
     139  if(!@get_magic_quotes_gpc())
    140140  {
    141141    $username = mysql_real_escape_string($username);
  • branches/2.0/include/common.inc.php

    r3276 r4005  
    2929$t2 = $t1[1].'.'.$t2[1];
    3030
    31 set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
     31@set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
    3232
    3333//
     
    3535// precaution to prevent someone trying to break out of a SQL statement.
    3636//
    37 if( !get_magic_quotes_gpc() )
     37if( !@get_magic_quotes_gpc() )
    3838{
    3939  function sanitize_mysql_kv(&$v, $k)
  • branches/2.0/install.php

    r3714 r4005  
    7373}
    7474
    75 set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
     75@set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
    7676//
    7777// addslashes to vars if magic_quotes_gpc is off this is a security
    7878// precaution to prevent someone trying to break out of a SQL statement.
    7979//
    80 if( !get_magic_quotes_gpc() )
     80if( !@get_magic_quotes_gpc() )
    8181{
    8282  if( is_array($_POST) )
Note: See TracChangeset for help on using the changeset viewer.