/**
 * Entry point : initialise variables and call subfunctions.
 * @param $par String: becomes "FOO" when called like Special:Allpages/FOO (default NULL)
 * @param $specialPage See the SpecialPage object.
 */
function wfSpecialAllpages($par = NULL, $specialPage)
{
    global $wgRequest, $wgOut, $wgContLang;
    # GET values
    $from = $wgRequest->getVal('from');
    $namespace = $wgRequest->getInt('namespace');
    $namespaces = $wgContLang->getNamespaces();
    $indexPage = new SpecialAllpages();
    if (!in_array($namespace, array_keys($namespaces))) {
        $namespace = 0;
    }
    $wgOut->setPagetitle($namespace > 0 ? wfMsg('allinnamespace', str_replace('_', ' ', $namespaces[$namespace])) : wfMsg('allarticles'));
    // BizzWiki begin {{
    global $wgUser;
    if (!$wgUser->isAllowed('browse', $namespace)) {
        return;
    }
    //FIXME
    // BizzWiki end }}
    if (isset($par)) {
        $indexPage->showChunk($namespace, $par, $specialPage->including());
    } elseif (isset($from)) {
        $indexPage->showChunk($namespace, $from, $specialPage->including());
    } else {
        $indexPage->showToplevel($namespace, $specialPage->including());
    }
}
/**
 * Entry point : initialise variables and call subfunctions.
 * @param $par String: becomes "FOO" when called like Special:Allpages/FOO (default NULL)
 * @param $specialPage See the SpecialPage object.
 */
function wfSpecialAllpages($par = NULL, $specialPage)
{
    global $wgRequest, $wgOut, $wgContLang;
    # GET values
    $from = $wgRequest->getVal('from');
    $namespace = $wgRequest->getInt('namespace');
    $namespaces = $wgContLang->getNamespaces();
    $indexPage = new SpecialAllpages();
    $wgOut->setPagetitle($namespace > 0 && in_array($namespace, array_keys($namespaces)) ? wfMsg('allinnamespace', str_replace('_', ' ', $namespaces[$namespace])) : wfMsg('allarticles'));
    if (isset($par)) {
        $indexPage->showChunk($namespace, $par, $specialPage->including());
    } elseif (isset($from)) {
        $indexPage->showChunk($namespace, $from, $specialPage->including());
    } else {
        $indexPage->showToplevel($namespace, $specialPage->including());
    }
}
예제 #3
0
 function __construct()
 {
     parent::__construct('Prefixindex');
 }
예제 #4
0
 function __construct()
 {
     parent::__construct('Translations');
 }