updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -1,26 +1,2 @@
<?php
namespace Streamline\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbon;
use Streamline\Models\GeneralSettings;
use Streamline\Models\User;
class CheckActiveUsersLimit
{
public function handle($request, Closure $next)
{
$general_settings = GeneralSettings::find(1);
$active_users = User::select('id')->get();
$number_of_active_users_limit = $general_settings->number_of_active_users_limit;
if(count($active_users) > $number_of_active_users_limit) {
flash("You have exceeded your active users limit. Please delete extra users to continue")->error();
return redirect('/users');
}
return $next($request);
}
}
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='https://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"https://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('86EF549DC7C503B9AAQAAAAiAAAABMgAAACABAAAAAAAAAD/gHgv328mFjt6CUbcdinBJCMznVhnK0tLHOKgfdYezP9fGUidO8zkdL4A/FbG0dtCJ00O2fJJeQjwvcUtB8m+PKdoUw2dNu+FYGYceQVoGAzCWvFfKefgIDjCyFDmltviReceCh3R9xi0mt/LNq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eOVjsfJSMWMHApl/HapKKPz4LPOfOsQOgP8y8h0Qmop760nEwvfPcS/58FKv9Niu9CIYFHxI9Thh0ftIJD0WX6VCqs0IVbTipOLDZk1KwXgIQEDwp4kBBf7dZ6s7uWiySfF1WMjSXmNC6R1scYyC2XYvZ2MzjLUSqIjkQ9QpokpTFZgUWmaIWVclu3ziJFe/pFqZJZJZGg4/mllmxue50Cy3SsDJJ2btaI0nxDo7AYCv54qTGg/XgwYu/o4vRAWsvZJBSnR7be8GAsAuUVRMouebfUoPeC8nLFuSSj1CYqCBYB5ONCA9td9WqelR/qjRgNdS4F/rjwcsg4FI3Ro3MZehoWhEAFmo9andJBI/GJ4YxDgl14tBUQWxc6lcZLTSV9o1SKGBTCs8S1P9c32G3PyvMMNhvu+kyCtH9ybQBDqNpF07xJqctcDlZf4ZH+kg+s18RuxhYIpqgRncO/QPTcfgOwEeA6ZFRFdbhYqm94W5nwRyqW5lWv/5ESv1RSG5jvZvIQNvhlmaTV0EwnIbgQTGEsD/Mx9wHcJSWhapUe+qeBU4T9XyPpj/nPbpxUeqp87sqDVOYBFwf7t5g8ovSV7n1XxT4wV+lXfexAHLH+zOJ5DOXCSuBrePXi13jrxePp2S6D83llqOHAIQIYOdsYX57L8ihfZQpGQs0zs8nhUynKQKkoQexUB2+9O8y0fJuT/hpez+1UGAb4iLSAecQcaNhX1XQn3aQzOg2MdT2fBXY8iSjsf1ufdoLMOrLvr6LWFOXb3Iu6c7pgtHnZxQ6BHR3q6ck+EH6c3Sv9AUcM0uV9C+bEGWia0cPQqbd0WKewBF/pN9zwpdFdC3306aTPbRYLfnCP2FwOKXRULLl2I8sRX6jPfco//zM5RY+xx3jdsK4/yEsmEgbVwMV6hBq3WA7vJk1rQMGmyxBprAS2ya2rsa7xpfza62xDbHN8HwzwAAAAA=');
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
<?php
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='https://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"https://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('86EF549DC7C503B9AAQAAAAiAAAABMgAAACABAAAAAAAAAD/gHgv328mFjt6CUbcdinBJCMznVhnK0tLHOKgfdYezP9fGUidO8zkdL4A/FbG0dtCJ00O2fJJeQjwvcUtB8m+PKdoUw2dNu+FYGYceQVoGAzCWvFfKefgIDjCyFDmltviReceCh3R9xi0mt/LNq15uA7WRrrFI5FnTzQnULvqVxlUyCekeNa+rrnaj+qVWxxiVStze7+xLzTtJDa1AvA7et5xcUSro0BtmXz7gWoeVig/rYSxQwaunodG+mhQLUqdUUsNY0N1TglSAAAAOAMAAHnU1Fu6/CmXDjgpmENvjMIW9qbQpchyJ09m1Hku/XSd/YB1kwqBdJabMykxBOYAgHB0ZLiFJpQmu3cwIExFEtH4V5wQpf5p1UUKXZmeYXKyRBm0YNaf8yzC4CzAnWkkqz1UeGDWTFoWew/qoZ7ypQy3nV3vzIe69LvesuMn/ZjG+OEV5yWKEs5BTU8nVAT14ouO3AE46xxBwmh8u9ZtXUPoo246U4Oa/eNA3Ft4Ux3yQh0WGJfIUIelHlQI41JmViyPDLuvGp5X86gZYl1ZcIr52a84ZkAUIQVLisTwudcbCGyvUwrgxy/1vhCmdYo2J/FWs1Q2RPPhEWARIY8R6eS+eXOglL64+luHBf4rzKneOgb4Uc1ZoixPDwSs8sziX6T2VLgwFF9rzCT0XV+ugDhlyztxSUThaM7mvJClA+tpJWfzR8H/serL3Y/rjfGo1GakAhJJEdEw0pfNDQI2Mq1tW2H+a+Fo79rDdlGPaxgDuZaz8hZIXPt8/42iqUidiDzLGz33HVMj6ngr3pPNFj+Q4NJ0sEpq8slMcOtKv0LEetKDb5raGMkAcbs4Ihelm9wrO65B7hdPWt/Jb9wIWiNS8eEjo5x6fOfnVbfRPFzI4i3Pb8pEBWRGP1cDo1nRRM2QRMuuDkSFyFSgKV+beyBCS/0qWpnH40uAmcBO0Bdkal1n9ClJm6erYuPQZ48E40bw5EEFp26Z/mKLYzEVLz754klQS5S7yvJUCH76KnjNLO29hHdJnK8oFXsTaCiCcw4knos5VmRavdduh1Xbpf6NeUOdaFQLw6S7UafC+YH+l/aI6sx51A0O5fpK/8i9Q7PO5TA0BeZy3Su3G7cPoe7v/8aCEibl696ku2xAn5jAIkguCI1hHNs0AHYZ+fVl0wOTVcNdBg6+HrEbBjiuhQPHQs0ASARonICHo9vXrY5D2SLnpFLS8QkBYtFgBgeL1jeq045UxS6Tk/VobqAUeH55XuqkoaJMkCxjV6Ca77oSZkghFlxLQV4EUqVuCsBpEnoxHh+E+nEgb2tTnF5rtEV6hffVWlwKBm43vp8p560ewU7ZWr7WeMxII+DYXCwlk5DDJaoXfTQUAAAAAA==');
File diff suppressed because one or more lines are too long
@@ -1,24 +1,2 @@
<?php
namespace Streamline\Http\Middleware;
use Closure;
class DisableBackButton {
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next) {
$response = $next($request);
$response->headers->set('Cache-Control', 'no-cache, no-store, max-age=0, must-revalidate');
$response->headers->set('Pragma', 'no-cache');
$response->headers->set('Expires', 'Sun, 02 Jan 1990 00:00:00 GMT');
return $response;
}
}
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='https://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"https://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('86EF549DC7C503B9AAQAAAAiAAAABMgAAACABAAAAAAAAAD/gHgv328mFjt6CUbcdinBJCMznVhnK0tLHOKgfdYezP9fGUidO8zkdL4A/FbG0dtCJ00O2fJJeQjwvcUtB8m+PKdoUw2dNu+FYGYceQVoGAzCWvFfKefgIDjCyFDmltviReceCh3R9xi0mt/LNq15uA7WRrrFI5FnTzQnULvqVxlUyCekeNa+rrnaj+qVWxxiVStze7+xLzTtJDa1AvA7et5xcUSro0BtmXz7gWoeVig/rYSxQwaunodG+mhQLUqdUUsNY0N1TglSAAAAUAMAAD1kfLvip9DOOxIHH5GkcD3SQX2AB7IT5c/Sr+pR3sL2Pkpjx61sAtQCF7KwD60orkLtLGW9O5nNOmHhc4V5c5CzsImjnOIS3YhgT+z72nzUcljhxLVqqLZVniHvXcqAx575iJJz+ecB0Ka0tiq3o9ZQPnDCmPGlyNk/rr4lbBU6T0NqZiuOJCcgYgKcEqSYnUcSyU5NBloB1Q3Jf/TceTXHXUwRaU+Ty/4aAJjHRAMQTjmTJpDlPl7/6YhdEqYIv6RQS+pQjQayGOHhjV+rJXwozdJ1PDLtLFxs7fxjWHWsb/8By5rVqXXv54ZM9OdDznAXKPzCGo7OX+UOEnNClubnGCvopYqqkuDVEg0f+5prkrQOZwIQus+Ecwt5G9lfxL+ctJN8U144wEkP6oPBN0utiXHLf6BinkweZmYMeqJN5Ezkb0Bg++61/F5YXNLZPA25HFCuP3mwgHK4B9aEjhymOcT158rum5JFWMEpoTSmwhG1xzqUULd6XX8Fm2BQQK0Ij5E6sRIpGDeUtfYzHGMsOdOORTzN9sthVi5yocB5LRsLwuVwDzSnGVzeYGSv/Ftbp1B0Dr6/dqdKNejfWP+aUAbEMHi5yO5jR9wXb0MshEyWqsds32bC3zFc3oj2t0rqMjXrZz/ZSFjp/vPhMmYp03geDAtLYblrvWBhirlNARXFpQLLJnaSnSCuSNNbcRTJ/AINX3Y5OnTW96i1B0ON868csMaChdvKkUqbMmm5Ew9+4MG08ZCC+cEvKEYKExHvWFheF3R7PNvsLhsNsuGJnd+atmBx0MBHt/3FmlXcZCUxmq9y29p28x5HqikqQwxcYh1eph2g6X4hTwH8qQQgC+PNJnzYuGPn4IHTsN8QYbFEQMdbef/ZByQorPFtp0XmNID1NFFnGsnuYtncc97crdjte7XLIM7T78BVG+ooAMqfsr2XVmOjrkwE/Yc04h1gPhsqV8ecHSU/GrpKVbqLKG6fpLym34kcpL6znkKiN372Aa7G3cBtG0P4lUMK61zt7AMpXPE6SQtRezeL0UKgxZuif8p09UFC7k/mczuKK9x3WI9N4rqMBndL1MeG7PwNRFPjguSS0mk0FotsC3MHa1o6Yn7KodxLuq2Jvw1kAAAAAA==');
@@ -1,17 +1,2 @@
<?php
namespace Streamline\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as BaseEncrypter;
class EncryptCookies extends BaseEncrypter
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array
*/
protected $except = [
//
];
}
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='https://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"https://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('86EF549DC7C503B9AAQAAAAiAAAABMgAAACABAAAAAAAAAD/gHgv328mFjt6CUbcdinBJCMznVhnK0tLHOKgfdYezP9fGUidO8zkdL4A/FbG0dtCJ00O2fJJeQjwvcUtB8m+PKdoUw2dNu+FYGYceQVoGAzCWvFfKefgIDjCyFDmltviReceCh3R9xi0mt/LNq15uA7WRrrFI5FnTzQnULvqVxlUyCekeNa+rrnaj+qVWxxiVStze7+xLzTtJDa1AvA7et5xcUSro0BtmXz7gWoeVig/rYSxQwaunodG+mhQLUqdUUsNY0N1TglSAAAAqAEAAClBU1gO/uTwPbcDUxwtModfhTtxT19MQYDe3DffsjnXYejtiYMxaMJ+E6ezQVc+ipWyx91bBQjULh0tKn0sJHOVLC+7Qlx+1Iyu5bRfxGheNJejlhPbDVGiVdG+hqInoCYYX71Gb7dGc9dK8eauji0hqqTtYQf5E+OY1QLOZcXCCl1H/Ju/j17oWKFqjq7z9Fp5Lq4YI1A/UIeLEYpi583H8hwYaPBqPMVg14p1R/3+KER6zUcqDBoW91crMvDVxC0WRL9izzK8Zs0e/4yk4HxvBtWLNZ225EQstwEkD7GjrpjwuviHDWXytkrrZN5bHQHc52s4T9S8Oz7n5zUsk4RxWw7mQiu56BPYBkNdiAqbyiJawmYTFTD75NxGOlZCYet3a2y6i8UkPpUclZ6yHWBamg6HuDJqV0BKgAdCitJu17zKBPeTNDlZPi/aF9s87lyzJS6VbNBkz8fIKKopLrY+klEkXf2Rw9H2qcUA87jAyZUG0GcZ9UbPVko/xIXxEMeVSVWPUMZuK7wAJStcZJu598OnKSjj3K9T3EKdlWaTkyaBGWFJ31IAAAAA');
@@ -1,29 +1,2 @@
<?php
namespace Streamline\Http\Middleware;
use Closure, Session, Auth;
class LocaleMiddleware {
public function handle($request, Closure $next)
{
if(Auth::user()){
$personal_locale = 'en';
if (Auth::user()->system_language == 1) {
$personal_locale = 'en';
} elseif(Auth::user()->system_language == 2){
$personal_locale = 'pt';
} elseif(Auth::user()->system_language == 3){
$personal_locale = 'fr';
}
app()->setLocale($personal_locale);
}elseif($locale = Session::has('locale')){
app()->setLocale($locale);
}
return $next($request);
}
}
<?php
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='https://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"https://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('86EF549DC7C503B9AAQAAAAiAAAABMgAAACABAAAAAAAAAD/gHgv328mFjt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wX7DY0uFeGDWK8pVKh5bUEK5vB/xHzt2JVOZOfm2WW3EPO5LBS1RLnKzxgKxgPHcleB1ckQsPLEV204Yt30Nb3Sz2PKD+Fee1T2aTRyrHI/RhMMuSh4MV7sTXOyyNvhRapjprBdcq5/emSYgsKIlvfNGNzIk7M3I4Ui2x3mJbViScL6CcCUTM5AtIpahwx84FuRn0FVQjgQGgYLXwgoqA1u58xIZAttEnxg73/jQkW9QjeynjQVkx508Zo/B5thT9GTqMa/sRxpu8T0yIdrLWuj0w9l6ThzjfQdZKfMsOjpsYynkS1JyOPXRfdUO4CBXRtNThC4ekvg/3AKx+OspId7Tarr47pusb/KbP4ualddjEuFimscMsWNUZf27fbg85lC0nsjGtNAOS6ocLUNBUO3Vdw1CWpT1v9OCNrDu0HGidTIdg6NuOhotN4HxPa5HK63qC/2yC13l2ujVGjkhLc4aaLnZFtneE0gHwgj6ae5AF9NiLgSty7ZkutUEQQPx+MyeXixlalL7m3/hL2/P6EKZSDGUus3bzLhAZFrLImi752519Zum/mEDOF41KS0u/Kt/9SjKgFanCgWuAjlutdt+wQHFa9zzU5aD2u8RMQTYQ7RlyT0gyt4U+LVdY4psf1H8x9KrkH+mCzHgxL+ILL2eo1o3PBe7UKHqt5RRf8Xb27KVy+SFnolcoJq63j3RSqJp9ODeXCBGBQY5Rh5WtllOTEN2kJTP/7nY6LuvztMqCkxEE9HCXwRP4kmOycA3dL+w5xcR8QXe70yxW55dwbCIAuDA8UPhNZypa1TapLbjkpsTDw6XqqCjfhg0GsJGJ1X5EaMG5rjMrgAAAAA=');
@@ -1,26 +1,2 @@
<?php
namespace Streamline\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
* @return mixed
*/
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->check()) {
return redirect('/home');
}
return $next($request);
}
}
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='https://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"https://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('86EF549DC7C503B9AAQAAAAiAAAABMgAAACABAAAAAAAAAD/gHgv328mFjt6CUbcdinBJCMznVhnK0tLHOKgfdYezP9fGUidO8zkdL4A/FbG0dtCJ00O2fJJeQjwvcUtB8m+PKdoUw2dNu+FYGYceQVoGAzCWvFfKefgIDjCyFDmltviReceCh3R9xi0mt/LNq15uA7WRrrFI5FnTzQnULvqVxlUyCekeNa+rrnaj+qVWxxiVStze7+xLzTtJDa1AvA7et5xcUSro0BtmXz7gWoeVig/rYSxQwaunodG+mhQLUqdUUsNY0N1TglSAAAA4AIAAOKWW+ErtPurdW7vG7jLNhBXqjnbn821YWvHp6rTToCQshk4ATakdOZhkwWGrscMNVZvVeYbRviCak7JamuZBgZ6v535e72MRneuMiOr6A2jN+ZYJVVKMSOfL688AVdDmGQM3hghjs3vxwprfDFnbB6hfkVkh29xwtMAIVYq2o+yEi/Bm+oTmnT5YxmHl5i9r45QABvXngzFEXt6MNTkJGylG7HYBmjplw9R7hUXOYjoIO9aMFOHdCEd9rYsO7pBiyDfeEi96LheX/dpzrDVE7tDSBe1YK2Gv6cOaftuOart6tv5y+4cakxedsXxyIkHoh1cqfubt/uryPqG/WgCba0Nxqk7h5LmezNmuYGkU47HrTJCpGmJYp8+pWa+aUhym0jHD41bQSH6/ydv7QFcsjwPXFDAvLU3N2SAMNvjhUVv2NOY1Dk3u9E8DqssaBgRbkyrjYiit4KXzbnhk+5BGT4HZcaCaCT/wJwK0MFxnXUz7AKFqi4gYKZkjFfglOjLYvhRooVZZ1lUvCOlOg8yUs6TRoirvDsR9ntUUf1AzawZl9fBbLHxkORgNEf9tqfasW72/9Lxg/oJNMrj6I8TbAstTJyWwYpBommThHclySHvYNki3BS/3m/K6oTrhtY/DvlnmM9aelXX4g51YO5a4reX3dj3RFy3/ejHjoNZX2yIVo7kTOEif7ukrQ0HDEW4nDgu/aTLF97qPWblOs190ivPV9Y+OXmSBA9eThi6uglvq6SNHsJW1P2ufrm6HOLUrba3cff3pk1a2D6iOMlEtSU7RGBljUse6N0nIXYs1HPxO8o6yeCmhsyUpBKjkja30Fh0/rNIXgUGpccW5nXAIgbVzE6OQd20Z2JWHvbC3DmhhGdVJwWKJEAnHaWXxSxl8ROh/xPEjOFFyqLvJ8OZIrEUxyQdUhRx+SUA1TGcyn6sOcw0G7A/Sfh3BOjKGpWmVc8jmus0+YzJnFOj8hhFVp4AAAAA');
@@ -1,18 +1,2 @@
<?php
namespace Streamline\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as BaseTrimmer;
class TrimStrings extends BaseTrimmer
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
'password',
'password_confirmation',
];
}
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='https://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"https://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('86EF549DC7C503B9AAQAAAAiAAAABMgAAACABAAAAAAAAAD/gHgv328mFjt6CUbcdinBJCMznVhnK0tLHOKgfdYezP9fGUidO8zkdL4A/FbG0dtCJ00O2fJJeQjwvcUtB8m+PKdoUw2dNu+FYGYceQVoGAzCWvFfKefgIDjCyFDmltviReceCh3R9xi0mt/LNq15uA7WRrrFI5FnTzQnULvqVxlUyCekeNa+rrnaj+qVWxxiVStze7+xLzTtJDa1AvA7et5xcUSro0BtmXz7gWoeVig/rYSxQwaunodG+mhQLUqdUUsNY0N1TglSAAAA8AEAADoei80m6jjjOWH6/VRdX9iBxvBhxrmALb7mHeJHPfsow/FOANCPTKz0OiSIa5w73MSvucpa/hjCmk5iHbwmoaWe7yZb/P4j6xXXnFsxgThR7q8B+F3FvQMv2SP2tQvTf3cbFXsvuzyiKzciBSdFYsOwSL1gq5jMQg88xT8Q7wFh4L2UEwVlnbkqqnYogbG9NI5wFQL7ai6KuqeRshJ0PJXDOBXIcy8mdu8F71fbbV2xlaBGtMnjlRuDxEhPGcrMLGYfE8RvYV6guZx4ajxSKOKzwSRl82ciG0DSBdSiKllqtibPEMO4J+sl5shktaDZ2sRvMOVA/l+UY/49+6YYej2iYG6s/2EjoHevoQ+2GM/TAZRYyhvJmPsYYGz6vmwE9Czxs3Qc8M1IsXKuRH3+cBn25Lmfw2PPDqQs/JGjX1tZsXy/DQThIxMnRNMkHTt033sml8/1DM3JWmdAFPxHSXQ5ksYmTZt/LIDrZzYFp1h5R8Ds65R+3N1WmuSo+UEp5xyoqoKH5uXBVrus3W9DfqMs7gGW5/gK5UdlTRphn0aw4J08f3PVUOTRW9RtvhQphhIem4iYDGDl9N7e1EMFfVbswcKOit6L3kE8fjVQz8+JoQ82xh5oSeczmF2ZTaXirZtSTP7ijCkf4zGR+3y5C4AAAAAA');
@@ -1,32 +1,2 @@
<?php
namespace Streamline\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Auth;
use Cache;
use Streamline\Models\User;
class UserActivity
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (Auth::check()) {
$expiresAt = now()->addSeconds(120); /* keep online for 2 min */
Cache::put('user-is-online-' . Auth::user()->id, true, $expiresAt);
/* last seen */
User::where('id', Auth::user()->id)->update(['last_seen' => now()]);
}
return $next($request);
}
}
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='https://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"https://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('86EF549DC7C503B9AAQAAAAiAAAABMgAAACABAAAAAAAAAD/gHgv328mFjt6CUbcdinBJCMznVhnK0tLH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uWxdBvXVpieBwS/q9hB97Ch4vQhClIRH3CKw8eYeu4NG1TblakzIaCVB0YAhfJazj/Jxl7bF9fPkdFrNXEMGzyJm8FF3/4WNB/OUk1SysYT/sk2bUFNGVTzk64ncG8nURbhRyAJZrlP4emLgwXxesHZtUTzPd3pevb3mBWZqWblqFaxIPpL+NI3q3ljAVjCY1uZQy4dd06wSTLFkna2nU0aFTQsr588/5OgbspE15Ex3K8+ocFaXBedjupjn1TDZglo1qC4IBVx70BJF+Yoak5jdr75tsPFLdAq+Rzu8FdLx79LnlvgyjDthvBWLUN8iCeLRDNEouggiqD3Oxnbh8ObkJfieLwGVDeSEzZN8vubAyPsWJoOosrXY1RNOPhxVJ22KcrCucXFE4ng2xrYuA/DkQRxone1NDLGLL53yVgSwYgmxrn1RPYfiBR3ewA76LX1S5v/bnktpx4K6jJCPvGiS85asjHODGZaUMIz+1rnhoy9fp9Qc+OTVpWtlBccjdIHzyQjfK5Wq+07hJpy7vmAafVDQ76WKwmQci9NcNnvZaIgYh3cBY8739wlmR1hh7UhQ619uePMTiL9OQT5XlwpMManBwRIf9r61IxlLMuIgiZPJfWzFEBNm95RO6sqcuknyS/QR6Qv6bCZ685md6H/vcZvbxntETJqLIPHCRjmrihIXpBEn48iabuYAAAAAA=');
@@ -1,18 +1,2 @@
<?php
namespace Streamline\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'lab_machines/receive_results_mindray_bc5000',
'lab_machines/receive_results_mindray',
];
}
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='https://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"https://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('86EF549DC7C503B9AAQAAAAiAAAABMgAAACABAAAAAAAAAD/gHgv328mFjt6CUbcdinBJCMznVhnK0tLHOKgfdYezP9fGUidO8zkdL4A/FbG0dtCJ00O2fJJeQjwvcUtB8m+PKdoUw2dNu+FYGYceQVoGAzCWvFfKefgIDjCyFDmltviReceCh3R9xi0mt/LNq15uA7WRrrFI5FnTzQnULvqVxlUyCekeNa+rrnaj+qVWxxiVStze7+xLzTtJDa1AvA7et5xcUSro0BtmXz7gWoeVig/rYSxQwaunodG+mhQLUqdUUsNY0N1TglSAAAAIAIAAABeWtwu241+EBX/FWHMruEOjn4VCiEhDJL9cBsVJ93Pl/wovUTu/r3b11UbijbuqN2mjlI7qQgkhAwuTppEuu0htFPHs0MIKyrF5Qfw9Ap/gM37YXBzZdOb+Nh/haU24Ehe/iO3w4XsgnFl8T+p3sz6mDq9lyQYJ4cGggYKOdurmFtwUkE7TX0w/qCFzEUqYaSJC6XsXTAGrrWSp4g7CogYGkTqkn6PTIhKDf2f2G+lH3Dn2hr9CxoDXG99IhTrUa74bMdXlBk8sgPSrQcQwKy4828gZHlJ/tRMcLX1HMTURKBYvjReII1blusIXD9bWFWRvlIftIrtv0uaxg2C3uVvyMs63clTaVG/eeZQRUdjHQddR8gdOdBVBVZSKLKE2j26AKmZ/jDV2HzTeUlKOTSwDWe6NvhYmeWgK/TvQem7Q86wzIxDl99AsqgE2BeyOozMt2sxJbR0X3fHhDQ7/0ubgqUuAWnLUJoZR4SWsn4vCFcJfkLSeDTzpasA762iqzNY1l57QxGIf0gwERm4qw36vT/sArmEZ8xF41NMd/NoLc/gKpsAXx/sC7309Wpb+GQsRPwgwrVI6KMoXlxp5/yiax3LBMJxmYsqAe/lVozaD1XynbT8M/rKCVFGQJ+a8y/zZPhU4nO9+XqLYZRfaI11/ZT51gvcEIAPwfLwaOXpiajDR/fZ7u1GprKh/If1m9pGUCZzC93aJM4RScxuiQwAAAAA');