gnopaste

Sorry for this ugly message. We are searching for some translators.
Please take a look here
Thanks to all translators, you're doing a great job!

Name
Anonymous
Scriptlanguage
PHP
Tabwidth
4
Date
10/21/2009 11:42:32 am
IP
83.215.232.9

The user was too lazy to give a description

  1. for(...) {     
  2.         $dbconn = mysql_connect($typo_db_host, $typo_db_username, $typo_db_password);    
  3.     mysql_select_db($typo_db, $dbconn);
  4.                             
  5.     $dbres = mysql_query("    
  6.         SELECT         sys_language.uid
  7.         FROM         sys_language
  8.         LEFT JOIN     static_languages
  9.         ON             static_languages.uid = sys_language.static_lang_isocode
  10.         WHERE         static_languages.lg_typo3 = '". mysql_real_escape_string($language) ."'
  11.         LIMIT         1", $dbconn
  12.     ) or die(mysql_error($dbconn));
  13.     
  14.     if(mysql_num_rows($dbres, $dbconn) > 0) {
  15.         $row = mysql_fetch_assoc($dbres, $dbconn);
  16.         if(isset($row["uid"])) {
  17.             $sys_language_uid = $row["uid"];
  18.             $langMap[$language] = $sys_language_uid;
  19.         } else {
  20.             $sys_language_uid = $row[0]["uid"];
  21.             $langMap[$language] = $sys_language_uid;
  22.         }
  23.     }    
  24.     mysql_close($dbconn);            
  25. }                
submitter » gnopaster | imprint « imprint     
» Terms of use «