database.php File Reference

Go to the source code of this file.

Functions


Function Documentation

oscss_db_error ( query,
errno,
error 
)

Log appel element obsolété

Retro-compatibilité

Definition at line 36 of file database.php.

Referenced by DB_Mysql_Statement::get_error().

tep_db_output ( string  ) 

Definition at line 14 of file database.php.

Referenced by checkout_process::email_confirm_order().

00014                                 {
00015   return htmlspecialchars($string);
00016 }

tep_db_prepare_input ( string  ) 

Definition at line 21 of file database.php.

Referenced by contact::action(), customer::CheckData(), customer::CheckDataAddressBook(), customer::CheckDataName(), customer::CheckDataPassword(), productData::get_query(), contentData::get_query(), categorieData::get_query(), objectInfo::objectInfo(), order::query(), customer::search(), tep_currency_exists(), and customer::userUpdatepassword().

00021                                        {
00022   if (is_string($string)) {
00023     return trim(stripslashes($string));
00024   } elseif (is_array($string)) {
00025     reset($string);
00026     while (list($key, $value) = each($string)) {
00027       $string[$key] = tep_db_prepare_input($value);
00028     }
00029     return $string;
00030   } else {
00031     return $string;
00032   }
00033 }