Exemplo n.º 1
0
 function handler_review($page, $action = null, $mode = null)
 {
     // Include X-XRDS-Location response-header for Yadis discovery
     global $globals;
     header('X-XRDS-Location: ' . $globals->baseurl . '/openid/xrds');
     $this->load('review.inc.php');
     $dom = 'Review';
     if (@$GLOBALS['IS_XNET_SITE']) {
         $dom .= 'Xnet';
     }
     $wp = new PlWikiPage($dom . '.Admin');
     $conf = explode('%0a', $wp->getField('text'));
     $wiz = new PlWizard('Tour d\'horizon', PlPage::getCoreTpl('plwizard.tpl'), true);
     foreach ($conf as $line) {
         $list = preg_split('/\\s*[*|]\\s*/', $line, -1, PREG_SPLIT_NO_EMPTY);
         $wiz->addPage('ReviewPage', $list[0], $list[1]);
     }
     $wiz->apply($page, 'review', $action, $mode);
 }