コード例 #1
0
        }
        echo '</p>';
        echo '<p>' . $_lang['some_tables_not_updated'] . '</p>';
        return;
    } else {
        echo '<span class="ok">' . $_lang['ok'] . '</span></p>';
    }
}
// call back function
if ($callBackFnc != '') {
    $callBackFnc($sqlParser);
}
// Setup the MODx API -- needed for the cache processor
// initiate a new document parser
include_once "{$base_path}index.php";
$modx->clearCache();
// always empty cache after install
$cache_path = "{$base_path}assets/cache/";
$files = glob("{$cache_path}*.idx.php");
foreach ($files as $file) {
    @unlink($file);
}
// try to chmod the cache go-rwx (for suexeced php)
@chmod("{$cache_path}siteCache.idx.php", 0600);
@chmod("{$cache_path}sitePublishing.idx.php", 0600);
// remove any locks on the manager functions so initial manager login is not blocked
mysql_query("TRUNCATE TABLE {$tbl_active_users}");
// andrazk 20070416 - release manager access
if (is_file("{$cache_path}installProc.inc.php")) {
    @chmod("{$cache_path}installProc.inc.php", 0755);
    unlink("{$cache_path}installProc.inc.php");