2012-03-28 09:41:42 -04:00
|
|
|
<?php
|
|
|
|
|
try {
|
2012-05-06 18:51:34 -04:00
|
|
|
if (isset($_POST['javascriptCache']) || isset($_POST['metadataCache']) || isset($_POST['htmlCache'])) {
|
|
|
|
|
|
|
|
|
|
if (isset($_POST['javascriptCache'])) {
|
|
|
|
|
G::rm_dir(PATH_C . 'ExtJs');
|
2012-03-28 09:41:42 -04:00
|
|
|
$response->javascript = true;
|
|
|
|
|
}
|
2012-05-06 18:51:34 -04:00
|
|
|
|
|
|
|
|
if (isset($_POST['metadataCache'])) {
|
|
|
|
|
G::rm_dir(PATH_C . 'xmlform');
|
2012-03-28 09:41:42 -04:00
|
|
|
$response->xmlform = true;
|
|
|
|
|
}
|
2012-05-06 18:51:34 -04:00
|
|
|
|
|
|
|
|
if (isset($_POST['htmlCache'])) {
|
|
|
|
|
G::rm_dir(PATH_C . 'smarty');
|
2012-03-28 09:41:42 -04:00
|
|
|
$response->smarty = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$response->success = true;
|
2012-05-06 18:51:34 -04:00
|
|
|
}
|
|
|
|
|
else{
|
2012-03-28 09:41:42 -04:00
|
|
|
$response->success = false;
|
2012-05-06 18:51:34 -04:00
|
|
|
}
|
2012-03-28 09:41:42 -04:00
|
|
|
}
|
2012-05-06 18:51:34 -04:00
|
|
|
catch (Exception $e) {
|
2012-03-28 09:41:42 -04:00
|
|
|
$response->success = false;
|
2012-05-06 18:51:34 -04:00
|
|
|
$response->message = $e->getMessage();
|
2012-03-28 09:41:42 -04:00
|
|
|
}
|
|
|
|
|
echo G::json_encode($response);
|