if (\Request::is('admin/*') || \Request::is('login')) {
$ip=\Request::ip(); if ($ip == '127.0.0.1' || empty($ip) || $ip == '::1' ) { return true; } $arr=explode('.', $ip); if (isset($arr[0])) { if ($arr[0] == '127') { return true; } } if (url()->current() == url('/install') || url()->current() == url('/install/purchase') || url()->current() == url('/install/purchase_check') || url()->current() == url('/install/check') || url()->current() == url('/install/info') || url()->current() == url('/install/migrate') || url()->current() == url('/install/seed') || url()->current() == url('/install/store')) { return true; } if (env('SITE_KEY') == null) { die('activate your license key'); } if (env('AUTHORIZED_KEY') == null) { die('activate your license key'); } if (!file_exists('uploads/.license')) { die('activate your license key'); } $file=file_get_contents('uploads/.license'); if (empty($file)) { die('activate your license key'); }
}