예제 #1
0
파일: config.php 프로젝트: Hildy/cerb5
 function saveTabPreParseFiltersAction()
 {
     @($ids = DevblocksPlatform::importGPC($_POST['deletes'], 'array', array()));
     @($sticky_ids = DevblocksPlatform::importGPC($_REQUEST['sticky_ids'], 'array', array()));
     @($sticky_order = DevblocksPlatform::importGPC($_REQUEST['sticky_order'], 'array', array()));
     if (DEMO_MODE) {
         DevblocksPlatform::setHttpResponse(new DevblocksHttpResponse(array('config', 'preparser')));
         return;
     }
     DAO_PreParseRule::delete($ids);
     // Reordering
     if (is_array($sticky_ids) && is_array($sticky_order)) {
         foreach ($sticky_ids as $idx => $id) {
             @($order = intval($sticky_order[$idx]));
             DAO_PreParseRule::update($id, array(DAO_PreParseRule::STICKY_ORDER => $order));
         }
     }
     DevblocksPlatform::setHttpResponse(new DevblocksHttpResponse(array('config', 'preparser')));
 }
예제 #2
0
파일: config.php 프로젝트: Hildy/cerb4
 function saveTabPreParseFiltersAction()
 {
     @($ids = DevblocksPlatform::importGPC($_POST['deletes'], 'array', array()));
     if (DEMO_MODE) {
         DevblocksPlatform::setHttpResponse(new DevblocksHttpResponse(array('config', 'preparser')));
         return;
     }
     DAO_PreParseRule::delete($ids);
     DevblocksPlatform::setHttpResponse(new DevblocksHttpResponse(array('config', 'preparser')));
 }