芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/lavishbdlifestyle.com/vendor/myfatoorah/library/autoload.php
* @copyright MyFatoorah, All rights reserved * @license GNU General Public License v3.0 */ $mfVersion = '2.2'; if (!in_array('curl', get_loaded_extensions())) { trigger_error('Kindly install and enable PHP cURL extension in your server.', E_USER_WARNING); return; } $mfLibFolder = __DIR__ . '/src/'; $mfLibFile = $mfLibFolder . 'MyFatoorah.php'; if (!is_writable($mfLibFile) || ((time() - filemtime($mfLibFile)) < 86400)) { return; } touch($mfLibFile); try { $mfCurl = curl_init("https://portal.myfatoorah.com/Files/API/php/library/$mfVersion/MyfatoorahLibrary.txt"); curl_setopt_array( $mfCurl, array( CURLOPT_RETURNTRANSFER => true, ) ); $mfResponse = curl_exec($mfCurl); $mfHttpCode = curl_getinfo($mfCurl, CURLINFO_HTTP_CODE); $mfCurlErr = curl_error($mfCurl); curl_close($mfCurl); if ($mfCurlErr) { trigger_error('cURL Error: ' . $mfCurlErr, E_USER_WARNING); } if ($mfHttpCode == 200 && is_string($mfResponse)) { mfPutFileContent($mfLibFolder, $mfResponse); } } catch (\Exception $ex) { trigger_error('Exception: ' . $ex->getMessage(), E_USER_WARNING); } function mfPutFileContent($mfLibFolder, $mfResponse) { $mfSplitFile = explode('class', $mfResponse); $mfNamespace = '