⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.101
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
ebook.dev-unit.com
/
Modules
/
Setting
/
View File Name :
helpers.php
<?php if (! function_exists('setting')) { function setting($name = null, $default = null,$withClean=1) { if (is_null($name)) { return app('setting'); } if (is_array($name)) { return app('setting')->set($name); } try { if(!$withClean){ return (app('setting')->get($name, $default)); } return app('setting')->get($name, $default); //return clean(app('setting')->get($name, $default)); } catch (PDOException $e) { return $default; } } } if (! function_exists('get_allowed_file_types')) { function get_allowed_file_types($for='upload') { //mpga /*$allowed=setting('allowed_file_types',['pdf','epub']); if(in_array('mp3',$allowed)){ $allowed[]='mpga'; }*/ $allowed=['pdf','epub','docx','doc','txt','pptx','ppt','xls','xlsx']; if($for=='audio'){ $allowed=['mp3','wav','mpga']; } return $allowed; } }