function get_anons_url structure_id global structure_table db_s exec_q

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
function get_anons_url($structure_id){
global $structure_table;
$db_s=exec_query("SELECT * FROM $structure_table where id='".$structure_id."' limit 1");
$s = mysql_fetch_assoc($db_s);
$catalog_part=$s[part];
//echo $s[catalog_id]."<br/>";
if ($s[structure_id]!='0')
$catalog_part=get_anons_url($s[structure_id])."/".$catalog_part;
return $catalog_part;