} if (isset($context['arguments'][4])) { $script .= '/' . $context['arguments'][4]; } if (isset($context['arguments'][5])) { $script .= '/' . $context['arguments'][5]; } } // fight against hackers $script = preg_replace(FORBIDDEN_IN_PATHS, '', strip_tags($script)); // get the actual page include_once 'scripts.php'; include_once 'phpdoc.php'; $row = PhpDoc::get($script); if (!$row) { $row = PhpDoc::get($script . '/index.php'); } // load localized strings i18n::bind('scripts'); // load the skin load_skin('scripts'); // the path to this page $context['path_bar'] = array('scripts/' => i18n::s('Server software')); // page title if ($script == 'todo') { $context['page_title'] = i18n::s('To-do list'); } elseif ($script == 'authors') { $context['page_title'] = i18n::s('Authors of all those scripts'); } elseif ($script == 'testers') { $context['page_title'] = i18n::s('Testers of all those scripts'); } elseif ($script == 'licenses') {
// the status message Safe::load('footprints.php'); if (isset($generation['date']) && $generation['date']) { $context['text'] .= '<p>' . sprintf(i18n::s('Last update took place on %s'), $generation['date']) . '</p>' . "\n"; } unset($generation); // ensure we have a reference server if (!isset($context['reference_server']) || !$context['reference_server']) { $context['reference_server'] = i18n::s('www.yacs.fr'); } // offer to upgrade $context['text'] .= '<p>' . Skin::build_link('scripts/stage.php', i18n::s('Update the software')) . "</p>\n"; } // get the page from the php documentation, if any include_once 'phpdoc.php'; $item = PhpDoc::get('index'); if ($item) { // the list of things to do $context['page_tools'][] = Skin::build_link(Scripts::get_url('todo'), i18n::s('To do'), 'basic'); // the list of testers $context['page_tools'][] = Skin::build_link(Scripts::get_url('testers'), i18n::s('Testers'), 'basic'); // the list of authors $context['page_tools'][] = Skin::build_link(Scripts::get_url('authors'), i18n::s('Authors'), 'basic'); // the list of licenses $context['page_tools'][] = Skin::build_link(Scripts::get_url('licenses'), i18n::s('Licenses'), 'basic'); // splash message $text = '<p>' . i18n::s('Click on any link below to access the documentation extracted from each script (phpDoc).') . "</p>\n"; // tree of links to documentation pages $text .= Codes::beautify($item['content']); // link to some other server } else {