BUG 8856 Migrate the Clear cache Interface from master branch SOLVED.

- Migrate the Clear cache Interface from master branch.
- Clear cache Interface ExtJS migrated from the master branch.
This commit is contained in:
Hector Cortez
2012-03-28 09:41:42 -04:00
parent dd1a960d37
commit 9cd2aa97a0
3 changed files with 133 additions and 19 deletions

View File

@@ -23,22 +23,7 @@
*
*/
try{
if( isset($_GET['result']) && $_GET['result'] == 'done') {
$G_PUBLISH = new Publisher;
$G_PUBLISH->AddContent('view', 'setup/clearCompiledResult');
G::RenderPage('publish', 'blank');
} else {
if( isset($_GET['result']) && $_GET['result'] == 'confirm' ){
if( defined('PATH_C') ){
G::rm_dir(PATH_C);
G::SendTemporalMessage('ID_CLEAR_CACHE_MSG1', 'tmp-info', 'label','','100%');
G::header('location: clearCompiled?result=done');
}
} else {
echo '<script>parent.parent.msgBox("'.G::LoadTranslation('ID_CLEAR_CACHE_CONFIRM1').'", "confirm", function(){location.href = "clearCompiled?result=confirm"}, function(){history.back()});</script>';
}
}
} catch(Exception $e){
G::SendTemporalMessage($oError->getMessage(), 'error', 'string');
}
$oHeadPublisher =& headPublisher::getSingleton();
$oHeadPublisher->addExtJsScript('setup/clearCompiled', true ); //adding a javascript file .js
G::RenderPage('publish', 'extJs');