Changeset 26

Show
Ignore:
Timestamp:
2007-11-23 16:32:12 (4 years ago)
Author:
hannes
Message:
  • (hopefully) final fix for all links to work BOTH with and without mod_rewrite
  • disabled debugging output in installer
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/classes/pages/Category.php

    r23 r26  
    4242        } else { 
    4343            // login form 
    44             $this->permissionDenied('category', NULL, TRUE); 
     44            $this->permissionDenied($F->link('category'), NULL, TRUE); 
    4545        } 
    4646    } /* constructor */ 
  • trunk/classes/pages/Category.php

    r24 r26  
    118118                    } 
    119119                    if ($_mods != '') { 
    120                         $_mods = $LANG['Moderators'] . ': ' . $_mods
     120                        $_mods = '<b>' . $LANG['Moderators'] . ': ' . $_mods . '</b><br />'
    121121                    } 
    122122                    // show forum overview 
    123                     $table->addRow(Array($_mark, '<td><h3><a href="' . $F->link('forum') . 'id=' . $row2['forumid'] . '">' . $row2['forumtitle'] . '</a></h3><b>' . $_mods . '</b><br />' . $row2['forumdescription'] . '</td>', '<td align="center">' . $row3->topics . '</td>', '<td align="center">' . $row4->posts . '</td>', '<td><div>' . $LANG['by'] . ' ' . $_poster->getProfileLink() . '</div><div>' . $LANG['in'] . ' <a href="' . $F->link('topic') . 'id=' . $row5->topicid . '">' . $row5->topictitle . '</a></div><div>' . $F->datetime($row5->posttime) . '</div></td>')); 
     123                    $table->addRow(Array($_mark, '<td><h3><a href="' . $F->link('forum') . 'id=' . $row2['forumid'] . '">' . $row2['forumtitle'] . '</a></h3>' . $_mods . $row2['forumdescription'] . '</td>', '<td align="center">' . $row3->topics . '</td>', '<td align="center">' . $row4->posts . '</td>', '<td><div>' . $LANG['by'] . ' ' . $_poster->getProfileLink() . '</div><div>' . $LANG['in'] . ' <a href="' . $F->link('topic') . 'id=' . $row5->topicid . '">' . $row5->topictitle . '</a></div><div>' . $F->datetime($row5->posttime) . '</div></td>')); 
    124124                } 
    125125            } 
     
    145145        if ($this->show_maint == 1 && $SETTINGS['maintainancemode'] == 1 && (!isset($id) || $id == '')) { 
    146146            // 'permission denied' in maintainance mode results in a message 
    147             $this->permissionDenied($F->link('category') . 'id=' . $id); 
     147            $this->permissionDenied($F->link('category')); 
    148148        } 
    149149    } /* constructor */ 
  • trunk/classes/pages/Page.php

    r24 r26  
    446446            // maybe user can rectify this by entering his password 
    447447            $this->html->body->addChild('h2', $LANG['Login']); 
    448             $this->loginForm($F->link($t), $a, $admin); 
     448            $this->loginForm($t, $a, $admin); 
    449449            // redefine title and location 
    450450            $this->title = ' - ' . $LANG['Login']; 
  • trunk/install.php

    r25 r26  
    316316                $db = explode(';', $db); 
    317317                foreach ($db as $query) { 
    318                     $C->query(str_replace('%prefix%', $SETTINGS['dbtableprefix'], $query)); 
     318                    @$C->query(str_replace('%prefix%', $SETTINGS['dbtableprefix'], $query)); 
    319319                } 
    320320            } 
     
    592592print(' 
    593593        </form> 
    594         <pre> 
    595 '); 
    596 print_r($SETUPDATA); 
    597 print(' 
    598         </pre> 
    599594    </body> 
    600595</html>