X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=wiki.phtml;h=a1975457e1d1f37ea82be89120be40584ea72985;hb=75bfb94f1e5981194c9736de125cbda41ab331ec;hp=cd2a88066a9c634cb6e0d825818232a7a9d9d673;hpb=deebd655d4b47d40fa2316a5725d1f53c10e3785;p=lhc%2Fweb%2Fwiklou.git diff --git a/wiki.phtml b/wiki.phtml index cd2a88066a..a1975457e1 100644 --- a/wiki.phtml +++ b/wiki.phtml @@ -1,101 +1,3 @@ - $value) { - wfDebug( "$name: $value\n" ); -} - -# Query string fields -# -global $action, $title, $search, $go, $target, $printable; -global $returnto, $diff, $oldid; - -$action = strtolower( trim( $action ) ); -if ( "" == $action ) { $action = "view"; } -if ( "yes" == $printable ) { $wgOut->setPrintable(); } - -if ( "" == $title && "delete" != $action ) { - $wgTitle = Title::newFromText( wfMsg( "mainpage" ) ); -} else { - $wgTitle = Title::newFromURL( $title ); -# if( $wgTitle->getInterwiki() != "" or $wgTitle->getDBkey() == "" or strncmp($wgTitle->getDBkey(),"_",1) == 0 ) { - if( $wgTitle->getInterwiki() != "" or $wgTitle->getDBkey() == "" ) { - $wgOut->errorpage( "badtitle", "badtitletext" ); - $wgOut->output(); - exit; - } -} -wfProfileOut(); -if ( -1 == $wgTitle->getNamespace() ) { - wfSpecialPage(); -} else if ( "" != $search ) { - if($go) { - - wfGo ($search); - - } else { - - wfSearch( $search ); - - } - -} else { - switch( $wgTitle->getNamespace() ) { - case 6: - include_once( "$IP/ImagePage.php" ); - $wgArticle = new ImagePage( $wgTitle ); - break; - default: - $wgArticle = new Article( $wgTitle ); - } - - switch( $action ) { - case "view": - case "watch": - case "unwatch": - case "history": - case "delete": - case "revert": - case "rollback": - case "protect": - case "unprotect": - $wgArticle->$action(); - break; - case "print": - $wgArticle->view(); - break; - case "edit": - case "submit": - include_once( "$IP/EditPage.php" ); - $editor = new EditPage( $wgArticle ); - $editor->$action(); - break; - default: - $wgOut->errorpage( "nosuchaction", "nosuchactiontext" ); - } -} - -$wgOut->output(); -foreach ( $wgDeferredUpdateList as $up ) { $up->doUpdate(); } - -?> +