| verzia 1.71, 2012/10/10 18:28:51 |
verzia 1.72, 2012/10/25 08:09:16 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.70 2012-10-07 15:45:58 igor Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.71 2012-10-10 18:28:51 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 |
| Riadok 249 function ezin_get_bind_lang_table($bind_ |
|
| Riadok 249 function ezin_get_bind_lang_table($bind_ |
|
| } |
} |
| |
|
| if ($type == 'S') { |
if ($type == 'S') { |
| $query = 'SELECT id, access_key, lang' |
$query = 'SELECT id, access_key, lang, link' |
| .' FROM '.$ezin_sys['db']['tables']['sections'] |
.' FROM '.$ezin_sys['db']['tables']['sections'] |
| .' WHERE bind_lang = '.$bind_lang |
.' WHERE bind_lang = '.$bind_lang |
| .' ORDER BY id ASC'; |
.' ORDER BY id ASC'; |
| Riadok 269 function ezin_get_bind_lang_table($bind_ |
|
| Riadok 269 function ezin_get_bind_lang_table($bind_ |
|
| while (($row = mysql_fetch_array($result, MYSQL_NUM)) !== false) { |
while (($row = mysql_fetch_array($result, MYSQL_NUM)) !== false) { |
| $array[$row[2]] = $row[0]; |
$array[$row[2]] = $row[0]; |
| $array[$row[2].'2'] = empty($row[1]) ? $row[0] : $row[1]; |
$array[$row[2].'2'] = empty($row[1]) ? $row[0] : $row[1]; |
| |
$array[$row[2].'3'] = empty($row[3]) ? null : $row[3]; |
| } |
} |
| @mysql_free_result($result); |
@mysql_free_result($result); |
| |
|