|
Revision 59, 0.8 KB
(checked in by daris, 3 years ago)
|
|
Unknown column pg.position in pages panel, noticed by Owl
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /*********************************************************************** |
|---|
| 3 | |
|---|
| 4 | PunBB extension |
|---|
| 5 | Portal |
|---|
| 6 | Daris <daris91@gmail.com> |
|---|
| 7 | |
|---|
| 8 | ************************************************************************/ |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | // Make sure no one attempts to run this script "directly" |
|---|
| 12 | if (!defined('FORUM')) |
|---|
| 13 | exit; |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | ?> |
|---|
| 17 | <ul class="links"> |
|---|
| 18 | <?php |
|---|
| 19 | |
|---|
| 20 | $query = array( |
|---|
| 21 | 'SELECT' => 'pg.id, pg.title, pg.content', |
|---|
| 22 | 'FROM' => 'pages AS pg', |
|---|
| 23 | 'ORDER BY' => 'pg.title ASC', |
|---|
| 24 | ); |
|---|
| 25 | ($hook = get_hook('pr_menu_qr_get_pages')) ? eval($hook) : null; |
|---|
| 26 | $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); |
|---|
| 27 | |
|---|
| 28 | while ($cur_page = $forum_db->fetch_assoc($result)) |
|---|
| 29 | { |
|---|
| 30 | echo "\n\t\t".'<li><a href="'.forum_link($forum_url['page_id'], array($cur_page['id'], sef_friendly($cur_page['title']))).'">'.forum_htmlencode($cur_page['title']).'</a></li>'; |
|---|
| 31 | |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | ?> |
|---|
| 35 | </ul> |
|---|