Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, November 12, 2026

Diff for Metafox/db.inc.php between version 1.24 and 1.25

version 1.24, 2006/07/09 09:26:05 version 1.25, 2006/08/06 09:33:14
Line 818  function ezin_update_counts($author_id,
Line 818  function ezin_update_counts($author_id,
 {  {
         global $ezin_sys;          global $ezin_sys;
         global $ezin_db_handle;          global $ezin_db_handle;
         global $HTTP_SERVER_VARS;  
   
         $author_id    = intval($author_id);          $author_id    = intval($author_id);
         $section_id   = intval($section_id);          $section_id   = intval($section_id);
Line 1049  function ezin_save_message($data) /* {{{
Line 1048  function ezin_save_message($data) /* {{{
         }          }
   
         $data['ip'] = array();          $data['ip'] = array();
         foreach (array('REMOTE_ADDR', 'HTTP_X_FORWARDED_FOR') as $key) {          foreach (array('REMOTE_HOST', 'REMOTE_ADDR', 'HTTP_X_FORWARDED_FOR') as $key) {
                 isset($_SERVER[$key]) && $data['ip'][] = $_SERVER[$key];                  if (isset($_SERVER[$key]) && strlen($_SERVER[$key]) > 0) {
                           $data['ip'][] = $_SERVER[$key];
                   }
         }          }
         $data['ip'] = join(' / ', $data['ip']);          $data['ip'] = join(' / ', $data['ip']);
   
Line 1271  function ezin_save_feedback($section_id,
Line 1272  function ezin_save_feedback($section_id,
         global $ezin_db_handle;          global $ezin_db_handle;
   
         $ip = array();          $ip = array();
         foreach (array('REMOTE_ADDR', 'HTTP_X_FORWARDED_FOR') as $key) {          foreach (array('REMOTE_HOST', 'REMOTE_ADDR', 'HTTP_X_FORWARDED_FOR') as $key) {
                 isset($_SERVER[$key]) && $ip[] = $_SERVER[$key];                  if (isset($_SERVER[$key]) && strlen($_SERVER[$key]) > 0) {
                           $ip = $_SERVER[$key];
                   }
         }          }
         $ip = stripslashes(join(' / ', $ip));          $ip = stripslashes(join(' / ', $ip));
         $ua = stripslashes(@$_SERVER['HTTP_USER_AGENT']);          $ua = stripslashes(@$_SERVER['HTTP_USER_AGENT']);

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top