Ejemplo n.º 1
0
 /**
  * Step #2 - Import Admin Help XML
  *
  */
 function step_2()
 {
     $this->show_message($this->phrase['final']['import_latest_adminhelp']);
     require_once DIR . '/includes/adminfunctions_help.php';
     if (!($xml = file_read(DIR . '/install/vbulletin-adminhelp.xml'))) {
         $this->add_error(sprintf($this->phrase['vbphrase']['file_not_found'], 'vbulletin-adminhelp.xml'), self::PHP_TRIGGER_ERROR, true);
         return;
     }
     $this->show_message(sprintf($this->phrase['vbphrase']['importing_file'], 'vbulletin-adminhelp.xml'));
     xml_import_help_topics($xml);
     $this->show_message($this->phrase['core']['import_done']);
 }
Ejemplo n.º 2
0
                 echo '<p>Uh oh, ./install/vbulletin-language.xml doesn\'t appear to exist! Upload it and refresh the page.</p>';
                 print_cp_footer();
             }
             echo '<p>Importing vbulletin-language.xml';
             xml_import_language($xml);
             build_language();
             echo '<br /><span class="smallfont"><b>Okay</b></span></p>';
             break;
         case 'adminhelp':
             require_once './includes/adminfunctions_help.php';
             if (!($xml = file_read('./install/vbulletin-adminhelp.xml'))) {
                 echo '<p>Uh oh, ./install/vbulletin-adminhelp.xml doesn\'t appear to exist! Upload it and refresh the page.</p>';
                 print_cp_footer();
             }
             echo '<p>Importing vbulletin-adminhelp.xml';
             xml_import_help_topics($xml);
             echo "<br /><span class=\"smallfont\"><b>Okay</b></span></p>";
             break;
     }
     define('SCRIPT_REDIRECT', true);
 } else {
     if ($_REQUEST['do'] == 'cache') {
         switch ($vbulletin->GPC['type']) {
             case 'forum':
                 build_forum_permissions();
                 define('SCRIPT_REDIRECT', true);
                 break;
             case 'options':
                 build_options();
                 define('SCRIPT_REDIRECT', true);
                 break;