function reinitialize_internal_values_and_clear_caches()
 {
     global $cachelib, $prefs, $tikilib;
     initialize_prefs();
     $tikilib->cache_page_info = array();
     $cachelib->empty_cache();
 }
 function reinitialize_internal_values_and_clear_caches()
 {
     global $prefs;
     $tikilib = TikiLib::lib('tiki');
     $cachelib = TikiLib::lib('cache');
     initialize_prefs();
     $tikilib->cache_page_info = array();
     $cachelib->empty_cache();
 }
示例#3
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $force = $input->getOption('force');
     $installer = new \Installer();
     $installed = $installer->tableExists('users_users');
     if (!$installed || $force) {
         $installer->cleanInstall();
         $output->writeln('Installation completed.');
         $output->writeln('<info>Queries executed successfully: ' . count($installer->success) . '</info>');
         if (count($installer->failures)) {
             foreach ($installer->failures as $key => $error) {
                 list($query, $message, $patch) = $error;
                 $output->writeln("<error>Error {$key} in {$patch}\n\t{$query}\n\t{$message}</error>");
             }
         }
         include_once 'tiki-setup.php';
         \TikiLib::lib('cache')->empty_cache();
         initialize_prefs(true);
         \TikiLib::lib('unifiedsearch')->rebuild();
     } else {
         $output->writeln('<error>Database already exists.</error>');
     }
 }
示例#4
0
        $install_type = '';
    }
}
if ($install_step == '8') {
    if (!isset($_POST['nolockenter'])) {
        touch('db/' . $tikidomainslash . 'lock');
    }
    $userlib = TikiLib::lib('user');
    $cachelib = TikiLib::lib('cache');
    if (session_id()) {
        session_destroy();
    }
    include_once 'tiki-setup.php';
    TikiLib::lib('cache')->empty_cache();
    if ($install_type == 'scratch') {
        initialize_prefs(true);
        TikiLib::lib('unifiedsearch')->rebuild();
        $u = 'tiki-change_password.php?user=admin&oldpass=admin&newuser=y';
    } else {
        $u = '';
    }
    if (empty($_REQUEST['multi'])) {
        $userlib->user_logout($user, false, $u);
        // logs out then redirects to home page or $u
    } else {
        $access->redirect('http://' . $_REQUEST['multi'] . $tikiroot . $u);
        // send to the selected multitiki
    }
    exit;
}
$smarty->assignByRef('tikifeedback', $tikifeedback);
示例#5
0
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once 'tiki-setup.php';
$access->check_permission(array('tiki_p_clean_cache'));
//get_strings tra('Tiki Cache/Sys Admin')
$done = '';
$output = '';
$buf = '';
$cachelib = TikiLib::lib('cache');
if (isset($_GET['do'])) {
    $cachelib->empty_cache($_GET['do']);
    if ($_GET['do'] === 'all') {
        // seems combination of clearing prefs and public now messes up the page, so reload
        include_once 'lib/setup/prefs.php';
        initialize_prefs();
        if ($prefs['mobile_feature'] === 'y') {
            include 'lib/setup/mobile.php';
        }
        include 'lib/setup/javascript.php';
        include 'lib/setup/theme.php';
    }
    // codemirror modes are created in /temp/public -- need to restore them
    if ($_GET['do'] === 'temp_public') {
        include 'lib/setup/javascript.php';
    }
}
if (isset($_GET['compiletemplates'])) {
    $ctempl = 'templates';
    $cachelib->cache_templates($ctempl, $_GET['compiletemplates']);
    if ($tikidomain) {