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.82 and 1.83

version 1.82, 2015/01/15 16:22:22 version 1.83, 2015/02/11 13:28:34
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/db.inc.php,v 1.81 2014-10-13 10:04:54 igor Exp $ */  /* $Platon: Metafox/db.inc.php,v 1.82 2015-01-15 16:22:22 igor Exp $ */
   
 /*  /*
  * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002   * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002
Line 2195  function ezin_save_feedback($section_id,
Line 2195  function ezin_save_feedback($section_id,
         return true;          return true;
 } /* }}} */  } /* }}} */
   
 function ezin_save_email($section_id, $email) /* {{{ */  function ezin_save_email($section_id, $email = null, $phone = null) /* {{{ */
 {  {
         global $ezin_sys;          global $ezin_sys;
         global $ezin_db_handle;          global $ezin_db_handle;
Line 2203  function ezin_save_email($section_id, $e
Line 2203  function ezin_save_email($section_id, $e
         $ip = ezin_get_remote_addr(true);          $ip = ezin_get_remote_addr(true);
         $ua = stripslashes(@$_SERVER['HTTP_USER_AGENT']);          $ua = stripslashes(@$_SERVER['HTTP_USER_AGENT']);
   
         $query = sprintf('INSERT INTO %s (email,id,dt_added,section_id,ip,user_agent)'          $query = sprintf('INSERT INTO %s (email,phone,id,dt_added,section_id,ip,user_agent)'
                         .' VALUES ("%s",0,SYSDATE(),%d,"%s","%s")',                          .' VALUES ("%s","%s",0,SYSDATE(),%d,"%s","%s")',
                         $ezin_sys['db']['tables']['nl_emails'], ezin_db_escape($email),                          $ezin_sys['db']['tables']['nl_emails'], ezin_db_escape($email),
                         intval($section_id), ezin_db_escape($ip), ezin_db_escape($ua));                          ezin_db_escape($phone), intval($section_id), ezin_db_escape($ip),
                           ezin_db_escape($ua));
         if (@mysql_query($query, $ezin_db_handle)) {          if (@mysql_query($query, $ezin_db_handle)) {
                 return true;                  return true;
         }          }

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83

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