⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
extra.spread.com.ng
/
app
/
Models
/
View File Name :
Settings.php
array('method' => 'HEAD'))); } $head = array_change_key_case(get_headers($url, 1)); // content-length of download (in bytes), read from Content-Length: field $clen = isset($head['content-length']) ? $head['content-length'] : 0; $biggest_value = 0; if(is_array($clen) > 1) { for($i=0; $i
$biggest_value) $biggest_value = $clen[$i]; } $clen = $biggest_value; } // cannot retrieve file size, return "-1" if (!$clen) { return -1; } if (!$formatSize) { return $clen; // return size in bytes } $size = $clen; switch ($clen) { case $clen < 1024: $size = $clen .' B'; break; case $clen < 1048576: $size = round($clen / 1024, 2) .' KiB'; break; case $clen < 1073741824: $size = round($clen / 1048576, 2) . ' MiB'; break; case $clen < 1099511627776: $size = round($clen / 1073741824, 2) . ' GiB'; break; } return $size; } public static function dropWatermark($sid) { $image = DB::table('settings')->where('sid', $sid)->first(); $file= $image->site_watermark; $filename = public_path().'/storage/settings/'.$file; File::delete($filename); } public static function getVideoId($url) { preg_match("#([\/|\?|&]vi?[\/|=]|youtu\.be\/|embed\/)([a-zA-Z0-9_-]+)#", $url, $matches); return $matches; } public static function editGeneral($sid){ $value = DB::table('settings') ->where('sid', 1) ->first(); return $value; } public static function updategeneralData($sid,$data){ DB::table('settings') ->where('sid', 1) ->update($data); } public static function dropFavicon($sid) { $image = DB::table('settings')->where('sid', 1)->first(); $file= $image->site_favicon; $filename = public_path().'/storage/settings/'.$file; File::delete($filename); } public static function dropLogo($sid) { $image = DB::table('settings')->where('sid', 1)->first(); $file= $image->site_logo; $filename = public_path().'/storage/settings/'.$file; File::delete($filename); } public static function dropBanner($sid) { $image = DB::table('settings')->where('sid', 1)->first(); $file= $image->site_banner; $filename = public_path().'/storage/settings/'.$file; File::delete($filename); } /* settings */ /* all settings */ public static function allSettings(){ $value = DB::table('settings') ->where('sid', 1) ->first(); return $value; } /* all settings */ }