preparing for .812; fixed version number, added rebuild index option in MAINTAIN panel, muted debug mode in bplustree
This commit is contained in:
parent
96ca82205a
commit
aa1b273031
@ -35,6 +35,36 @@
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class s_entry_crawler extends fs_filelister {
|
||||
|
||||
var $_directory = CONTENT_DIR;
|
||||
|
||||
function __construct() {
|
||||
$this->index =& entry_init();
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function _checkFile($directory, $file) {
|
||||
$f = "$directory/$file";
|
||||
if ( is_dir($f) && ctype_digit($file)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (fnmatch('entry*'.EXT, $file)) {
|
||||
$id=basename($file,EXT);
|
||||
$arr=entry_parse($id, true);
|
||||
|
||||
echo "[POST] $id => {$arr['SUBJECT']}\n";
|
||||
$this->index->add($id, $arr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*********************/
|
||||
|
||||
|
||||
@ -96,16 +126,20 @@
|
||||
function dodo($do) {
|
||||
|
||||
switch ($do) {
|
||||
case 'purgecache': {
|
||||
$this->smarty->assign('phpinfo', 'This function has been removed.');
|
||||
return PANEL_NOREDIRECT;
|
||||
$obj =& entry_init();
|
||||
$obj->purge();
|
||||
if (!file_exists(CACHE_DIR))
|
||||
fs_mkdir(CACHE_DIR);
|
||||
case 'rebuild': {
|
||||
|
||||
$this->smarty->assign('success', 1);
|
||||
return PANEL_REDIRECT_CURRENT;
|
||||
fs_delete_recursive(INDEX_DIR);
|
||||
if (!file_exists(INDEX_DIR))
|
||||
fs_mkdir(INDEX_DIR);
|
||||
|
||||
header('Content-Type: text/plain');
|
||||
echo "ENTERING LOWRES MODE\n\n";
|
||||
|
||||
new s_entry_crawler;
|
||||
exit("\nDONE \nPlease, select the back arrow in your browser");
|
||||
|
||||
|
||||
return PANEL_NOREDIRECT;
|
||||
}
|
||||
case 'restorechmods': {
|
||||
$this->smarty->assign('files',fs_chmod_recursive());
|
||||
|
@ -16,7 +16,7 @@
|
||||
{else}
|
||||
<p>{$panelstrings.descr}</p>
|
||||
<ul>
|
||||
<li><a href="{$action_url|cmd_link:do:purgecache}">{$panelstrings.opt1}</a></li>
|
||||
<li><a href="{$action_url|cmd_link:do:rebuild}">{$panelstrings.opt1}</a></li>
|
||||
<li><a href="{$action_url|cmd_link:do:purgetplcache}">{$panelstrings.opt2}</a></li>
|
||||
<li><a href="{$action_url|cmd_link:do:restorechmods}">{$panelstrings.opt3}</a></li>
|
||||
<li><a href="{$action_url|cmd_link:do:phpinfo}">{$panelstrings.opt4}</a></li>
|
||||
|
@ -107,6 +107,7 @@
|
||||
|
||||
|
||||
function d($s) {
|
||||
return; // disable debug output
|
||||
if (is_array($s)) { $s = '{ '.implode(", ", $s) . ' }'; }
|
||||
|
||||
$x = debug_backtrace();
|
||||
|
@ -73,7 +73,7 @@
|
||||
|
||||
|
||||
|
||||
define('SYSTEM_VER', '0.805');
|
||||
define('SYSTEM_VER', '0.812');
|
||||
function system_ver() {
|
||||
return 'fp-' . SYSTEM_VER;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
'and maybe here you\'ll find a solution.
|
||||
However this might not work.',
|
||||
'opt0' => '« Back to main menu',
|
||||
'opt1' => 'Purge entry cache',
|
||||
'opt1' => 'Rebuild index',
|
||||
'opt2' => 'Purge theme and templates cache',
|
||||
'opt3' => 'Restore file permissions',
|
||||
'opt4' => 'Show info about PHP',
|
||||
|
Loading…
x
Reference in New Issue
Block a user