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
@ -34,7 +34,37 @@
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
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) {
|
function dodo($do) {
|
||||||
|
|
||||||
switch ($do) {
|
switch ($do) {
|
||||||
case 'purgecache': {
|
case 'rebuild': {
|
||||||
$this->smarty->assign('phpinfo', 'This function has been removed.');
|
|
||||||
return PANEL_NOREDIRECT;
|
fs_delete_recursive(INDEX_DIR);
|
||||||
$obj =& entry_init();
|
if (!file_exists(INDEX_DIR))
|
||||||
$obj->purge();
|
fs_mkdir(INDEX_DIR);
|
||||||
if (!file_exists(CACHE_DIR))
|
|
||||||
fs_mkdir(CACHE_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");
|
||||||
|
|
||||||
$this->smarty->assign('success', 1);
|
|
||||||
return PANEL_REDIRECT_CURRENT;
|
return PANEL_NOREDIRECT;
|
||||||
}
|
}
|
||||||
case 'restorechmods': {
|
case 'restorechmods': {
|
||||||
$this->smarty->assign('files',fs_chmod_recursive());
|
$this->smarty->assign('files',fs_chmod_recursive());
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
{else}
|
{else}
|
||||||
<p>{$panelstrings.descr}</p>
|
<p>{$panelstrings.descr}</p>
|
||||||
<ul>
|
<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: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:restorechmods}">{$panelstrings.opt3}</a></li>
|
||||||
<li><a href="{$action_url|cmd_link:do:phpinfo}">{$panelstrings.opt4}</a></li>
|
<li><a href="{$action_url|cmd_link:do:phpinfo}">{$panelstrings.opt4}</a></li>
|
||||||
<li><a href="{$panel_url|action_link:updates}">{$panelstrings.opt5}</a></li>
|
<li><a href="{$panel_url|action_link:updates}">{$panelstrings.opt5}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -107,6 +107,7 @@
|
|||||||
|
|
||||||
|
|
||||||
function d($s) {
|
function d($s) {
|
||||||
|
return; // disable debug output
|
||||||
if (is_array($s)) { $s = '{ '.implode(", ", $s) . ' }'; }
|
if (is_array($s)) { $s = '{ '.implode(", ", $s) . ' }'; }
|
||||||
|
|
||||||
$x = debug_backtrace();
|
$x = debug_backtrace();
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
define('SYSTEM_VER', '0.805');
|
define('SYSTEM_VER', '0.812');
|
||||||
function system_ver() {
|
function system_ver() {
|
||||||
return 'fp-' . SYSTEM_VER;
|
return 'fp-' . SYSTEM_VER;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
'and maybe here you\'ll find a solution.
|
'and maybe here you\'ll find a solution.
|
||||||
However this might not work.',
|
However this might not work.',
|
||||||
'opt0' => '« Back to main menu',
|
'opt0' => '« Back to main menu',
|
||||||
'opt1' => 'Purge entry cache',
|
'opt1' => 'Rebuild index',
|
||||||
'opt2' => 'Purge theme and templates cache',
|
'opt2' => 'Purge theme and templates cache',
|
||||||
'opt3' => 'Restore file permissions',
|
'opt3' => 'Restore file permissions',
|
||||||
'opt4' => 'Show info about PHP',
|
'opt4' => 'Show info about PHP',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user