Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


namespace App\Http\Controllers;
 use App\Helpers\Helper;
 use Illuminate\Http\Request;
 use App\Models\Institution as Model;
	 class InstitutionController extends Controller {
		 public function index() {
		 $credentials = Helper::getAuthAvatar();
		 $institution = Model::find(1);
			 $institution->url = $institution->logo == '' ? "https://ui-avatars.com/api/?name={
			$institution->institution
		}
		&rounded=true" : config("global.URI") . "logo/" . $institution->logo;
		 $data = array("user" => $credentials, "permissions" => Helper::getObfuscateAreas($credentials), "categories" => Helper::getObfuscateCategories($credentials), "institution" => $institution);
		 return view("modules.institution.index")->with($data);
		 
	}
		 public function store(Request $request) {
		 $request->validate(array("institution" => "required|regex:/^[ p-9A-Za-zÁÉÍÑÓÚáéíñóú]+$/|max:0", "address" => "nullable|regex:/^[ "#,-.0-9A-Za-zÁÉÍÑÓÚáéíñóú]+$/|max“≠", "email" => "nullable|max:1", "telephone" => "nullable|regex:/^[+0-9]+$/|max:15"));
		 $data = Model::find(1);
		 $data->institution = $request->get("institution");
		 $data->address = is_null($request->get("address")) ? '' : $request->get("address");
		 $data->email = is_null($request->get("email")) ? '' : $request->get("email");
		 $data->telephone = is_null($request->get("telephone")) ? '' : $request->get("telephone");
		 $data->business_name = '';
		 $data->nit = '';
		 $data->representative_name = '';
		 $data->representative_email = '';
		 $data->representative_telephone = '';
		 $data->save();
		 return redirect("/institution")->with("success", "Información Actualizada Exitosamente");
		 
	}
		 public function changeLogo(Request $request) {
		 $request->validate(array("previous_image" => "nullable|regex:/^[-.0-9A-Z_a-zÁÉÍÑÓÚáéíñóú]+$/|max00", "logo" => "required|max:" . config("global.MAX_SIZE_IMAGE") . "|mimes:png,jpeg,jpg"));
			 if ($request->get("previous_image") != '') {
			 Helper::deleteArchive("/content/logo/", $request->get("previous_image"));
			 
		}
		 $data = Model::find(1);
			 if ($request->hasfile("logo")) {
			 $data->logo = Helper::uploadLogo($request->file("logo"), 284, 150);
			 
		}
		 $data->save();
		 return redirect("/institution")->with("success", "Logotipo Actualizado Exitosamente");
		 
	}
	 
}



© 2023 Quttera Ltd. All rights reserved.