Commit 53d065a9 by Jansa Jose

apis

parent 8397b0ee
...@@ -13,4 +13,18 @@ ...@@ -13,4 +13,18 @@
echo '<br>'; echo '<br>';
} }
function set_upload_service($path){
$config = array();
$config['upload_path'] = $path;
$config['allowed_types'] = '*';
$config['overwrite'] = FALSE;
return $config;
}
function getSettings(){
$CI = & get_instance();
$settings = $CI->db->get('settings');
return (!empty($settings))?$settings->row_array():'';
}
?> ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment