Просмотр файла wap_snapshot/wap_list_forums.php

Размер файла: 631B
<?php
session_start();
include('wap_common.php');
wapheader();


if (isset($HTTP_GET_VARS['cat'])){

    $sql="SELECT forum_id, cat_id, forum_name, forum_order FROM phpbb_forums WHERE cat_id = " . $HTTP_GET_VARS['cat'] . " ORDER BY forum_order";

}
else{
    $sql="SELECT forum_id, cat_id, forum_name FROM phpbb_forums ORDER BY forum_id";
}

$result=$db->sql_query($sql);
start_card("id","Forums Listing");

while( $row=$db->sql_fetchrow($result)){
    print("<p><a href=\"wap_view_topics.php?forum=" . $row['forum_id']. "\">" . $row['forum_name'] . "</a></p>");
}

end_card();
print("</wml>");

?>