function Slicer_reloadPreset() { global $CFG; $cr = 0; $CI =& get_instance(); $url = SLICER_URL_RELOAD_PRESET; if ($CFG->config['use_sdcard']) { $url .= '?' . SLICER_PRM_SDCARD . '=1'; } $ret_val = Slicer__requestSlicer($url); if ($ret_val == SLICER_RESPONSE_OK) { $cr = ERROR_OK; } else { $cr = ERROR_INTERNAL; } Slicer_cleanSlicerFiles(); return $cr; }
function CoreStatus_cleanSliced() { $CI =& get_instance(); $CI->load->helper('slicer'); Slicer_cleanSlicerFiles(); return TRUE; }