CODE STYLE, workflow/engine/methods/setup/ PART 1
FILES: appCacheViewAjax.php appCacheViewConf.php appearance.php calendarDelete.php calendarEdit.php calendarList.php calendarSave.php calendarValidate.php calendar_Ajax.php clearCompiled.php clearCompiledAjax.php connectionDB.php connectionWS.php cron.php cronAjax.php customFunctions.php debug.php deleteSessions.php emailSystemCron.php emailSystemSpool.php emailSystemTest.php emails.php emails_Ajax.php emails_Save.php environmentSettings.php environmentSettingsAjax.php
This commit is contained in:
@@ -1,30 +1,29 @@
|
||||
<?php
|
||||
try {
|
||||
if (isset($_POST['javascriptCache']) || isset($_POST['metadataCache']) || isset($_POST['htmlCache'])) {
|
||||
|
||||
if (isset($_POST['javascriptCache'])) {
|
||||
G::rm_dir(PATH_C . 'ExtJs');
|
||||
$response->javascript = true;
|
||||
}
|
||||
if (isset( $_POST['javascriptCache'] ) || isset( $_POST['metadataCache'] ) || isset( $_POST['htmlCache'] )) {
|
||||
|
||||
if (isset($_POST['metadataCache'])) {
|
||||
G::rm_dir(PATH_C . 'xmlform');
|
||||
$response->xmlform = true;
|
||||
}
|
||||
if (isset( $_POST['javascriptCache'] )) {
|
||||
G::rm_dir( PATH_C . 'ExtJs' );
|
||||
$response->javascript = true;
|
||||
}
|
||||
|
||||
if (isset($_POST['htmlCache'])) {
|
||||
G::rm_dir(PATH_C . 'smarty');
|
||||
$response->smarty = true;
|
||||
if (isset( $_POST['metadataCache'] )) {
|
||||
G::rm_dir( PATH_C . 'xmlform' );
|
||||
$response->xmlform = true;
|
||||
}
|
||||
|
||||
if (isset( $_POST['htmlCache'] )) {
|
||||
G::rm_dir( PATH_C . 'smarty' );
|
||||
$response->smarty = true;
|
||||
}
|
||||
|
||||
$response->success = true;
|
||||
} else {
|
||||
$response->success = false;
|
||||
}
|
||||
|
||||
$response->success = true;
|
||||
}
|
||||
else{
|
||||
} catch (Exception $e) {
|
||||
$response->success = false;
|
||||
}
|
||||
$response->message = $e->getMessage();
|
||||
}
|
||||
catch (Exception $e) {
|
||||
$response->success = false;
|
||||
$response->message = $e->getMessage();
|
||||
}
|
||||
echo G::json_encode($response);
|
||||
echo G::json_encode( $response );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user