Редакция 70 | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 70 | Редакция 74 | ||
---|---|---|---|
Строка 78... | Строка 78... | ||
78 | $url = parse_url($current); |
78 | $url = parse_url($current); |
79 | $path = array(); |
79 | $path = array(); |
80 | $path = split("/",$url["path"]); |
80 | $path = split("/",$url["path"]); |
81 | $currentIF = str_replace(".php","",$path[count($path)-1]); |
81 | $currentIF = str_replace(".php","",$path[count($path)-1]); |
82 | $req =& $dblink->query("SELECT * FROM interfaces WHERE interface NOT LIKE '$currentIF'"); |
82 | $req =& $dblink->query("SELECT * FROM interfaces WHERE interface NOT LIKE '$currentIF'"); |
83 | $iflist = "Интерфейсы: "; |
83 | $iflist = "<a href='./'>Интерфейсы</a>: "; |
84 | while ($req->fetchInto($if, DB_FETCHMODE_ASSOC)) { |
84 | while ($req->fetchInto($if, DB_FETCHMODE_ASSOC)) { |
85 | $iflist .= "<a href='./".stripslashes($if["interface"]).".php'>".strtolower(stripslashes($if["interfaceinfo"]))."</a>, "; |
85 | $iflist .= "<a href='./".stripslashes($if["interface"]).".php'>".strtolower(stripslashes($if["interfaceinfo"]))."</a>, "; |
86 | }
|
86 | }
|
87 | $iflist = substr($iflist, 0, strlen($iflist)-2); |
87 | $iflist = substr($iflist, 0, strlen($iflist)-2); |
88 | return $iflist; |
88 | return $iflist; |