Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* This file is protected by copyright law and provided under license. Reverse engin..
Decoded Output download
$O000O0O00=$OOO000O00($OOO0O0O00,'rb');$O0O00OO00($O000O0O00,0x50a);$OO00O00O0=$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,0x17c),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'));eval($OO00O00O0);$OO00O00O0=str_replace('__FILE__',"'".$OOO0O0O00."'",$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,$OO00O0000),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));fclose($O000O0O00);eval($OO00O00O0);
namespace App\Http\Controllers\configudget;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\ConfigSbChapitre;
use DB;
class ChapitreController extends Controller
{
public function index()
{
try {
if (session('exercise_id') &&session('etablissement_id') &&session('budge_id')) {
$chapitres = ConfigSbChapitre::where([
['etablissement_id',session('etablissement_id')],
['budge_id',session('budge_id')]
])
->with(['article.paragraphe.sous_paragraphe.ligne.rubrique','article.paragraphe.sous_paragraphe.ligne.rubrique.op'])
->get();
$chapitre_op = array();
return view('container.config.structure_budget.chapitre.index',[
'chapitres'=>$chapitres,
]);
}else {
return redirect()->route('params');
}
}catch (\Throwable $th) {
session()->flash('error',"Problme au niveau de Model");
return redirect()->back();
}
}
public function create()
{
try {
return view('container.config.structure_budget.chapitre.create');
}catch (\Throwable $th) {
session()->flash('error',"Problme au niveau de Model");
return redirect()->back();
}
}
public function store(Request $request)
{
try {
DB::beginTransaction();
$session1 = session('etablissement_id');
$session2 = session('exercise_id');
$session3 = session('budge_id');
$request->validate([
'chapitre'=>'required',
],[
'chapitre.required'=>'chapitre est obligatoire',
]);
$delegation = ConfigSbChapitre::create([
'chapitre'=>$request->chapitre,
'num'=>$request->code_chapitre,
'exercise_id'=>$session2,
'etablissement_id'=>$session1,
'budge_id'=>$session3,
'create_uid'=>Auth::user()->id,
]);
DB::commit();
session()->flash('success',"Creation d'une chapitre avec succs");
return redirect()->route('chapitre.index');
}catch (\Throwable $th) {
DB::rollback();
session()->flash('error',"Problme au niveau de la cration d'une chapitre ");
return redirect()->back();
}
}
public function update(Request $request,$id)
{
try {
DB::beginTransaction();
$request->validate([
'chapitre'=>'required',
],[
'chapitre.required'=>'chapitre est obligatoire',
'update_uid'=>Auth::user()->id,
]);
$chapitre = ConfigSbChapitre::find($id);
$chapitre->update([
'chapitre'=>$request->chapitre,
'num'=>$request->code_chapitre,
]);
DB::commit();
session()->flash('success',"Modification d'une chapitre avec succs");
return redirect()->route('chapitre.index');
}catch (\Throwable $th) {
DB::rollback();
session()->flash('error',"Problme au niveau de la modification d'une chapitre");
return redirect()->back();
}
}
public function destroy($id)
{
try {
DB::beginTransaction();
$delegation = ConfigSbChapitre::find($id);
$delegation->update([
'delete_uid'=>Auth::user()->id,
]);
$delegation->delete();
DB::commit();
session()->flash('success',"Stucture budgetaire chapitre a t supprim");
return redirect()->back();
}catch (\Throwable $th) {
DB::rollback();
session()->flash('error',"Problme au niveau de la suppression d'une' chapitre");
return redirect()->back();
}
}
}
;
Did this file decode correctly?
Original Code
<?php /* This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0xf78;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTBhKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc4OSsvPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>vC]~AtVm`PSErNMqOHRkr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLT09NHeEXHr8XhtONT08XHeEXHr8Pkr8XTzEXT08XHtILTzEXHr8XTzEXRtONTzEXTzEXHeEpRtfydmOlFmlvfbfqDykwBAsKa09aaryiWMkeC0OLOMcuc0lpUMpHdr1sAunOFaYzamcCGyp6HerZHzW1YjF4KUSvNUFSk0ytW0OyOLfwUApRTr1KT1nOAlYAaacbBylDCBkjcoaMc2ipDMsSdB5vFuyZF3O1fmf4GbPXHTwzYeA2YzI5hZ8mhULpK2cjdo9zcUILTzEXHr8XTzEXhTslfMyShtONTzEXTzEXTzEpKX==tM5idBazFoyjcUnnFunFUuO0Fyxed250FM9SdoaZF1xjd25MDBfFCmaLc2a0KXp1F2AIUBxSfB1pdMy0caxTfbnXd3k0brciC2yLcbYFWba0DeShfbYlwrlSduasDB5ifoaFUuO0FyxUcby1cbY0KXp1F2AIWbnXbri0funFW29VfukvdoxlFmYFW29VfukvdoxlFjShfbYlwryXFyxYd2OlduYFW29VcMlmA2keDoyXDbOZcTShfbYlwrOtKXpjdoyzFZneDoyXDbOZcAYvdmOZd2xScbwIcbi0cB5LFZned250FM9SdoaZtmShFuaJdoljwoc1dMY0DB9VwolVcoa4htLhGXp0FmLIGXppcJEPF2azF2lvdJImcbilFMYpF2agDBWmhUEMkmYlF3Ypd24Pk2a0CBkSDbYzcB1ldmOgDBWmhUEMkmYlF3Ypd24Pk2k1coflb2lLkZLpwuShkoYPCbnpfuklFZE9wrYvdMcpc1YJW2iiFol0FMA6KmfPcbklhyShBZflfoyJdolzF2ascB50b2lLkZxzcbYzDB9VhtflfoyJdolzF2ascB50b2lLkZlfREpdk2k1coflb2lLkZxzcbYzDB9VhtfJfBOmca9pctFpbWpfhWPsNmfpfoIPBZfiFmOpC2xlRmniFMymFMyXDoAVF291F19XCbkic3kiFoilRMxpc25lRmk1CmkpFbalkZXmCbk0DBYScU5XCbkic3kiFoilRmYvfbYgFoyZCBfZCbnPcU5SDBfVcU5ZfBkZDby1cU5vFtffhWPsNMflftIpKXPLC2iiFol0FMagd3EINUniFmkiGUIpKXpZcbO1FM4IfMllfZImC29VfoypdMaZRMYvdMcpcZ5zfuk1C3O1FMagCmaLc2a0RMYPCbnpfuklRMlVcoa4kZxdtJfjDoyXDbOZcbHmNT4LC2iiFol0FMazREpfhTShgBaSF2AIGXpZcbO1FM4IFMaLDbklC3WPhU0+FM91foAPk3niFMysFZFpKXp9tm1jCbOjDtEPbyOPFM93CBkScUELfoIpwuShF2azF2lvdJIpRT5Mdoyz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oWmfB5lwoYPCbnpfuklwJL7tmklfuaZdJnZcBOpFMajftIpRT5JCBYqhtL7tm0hgWpXfBkSDBHIcmaVC3Opd24IcoazfukvGUILDBWptmShfuk5wuShOrw6KMklc2lVaukidmYiC3Opd24PhTShkoOldoamCbOpd24INUned25MDBfTCLYPCbnpfuklKjpMDB5LhtOpctL7tJOLcBxlc2y0DB9VRT51FoOifoAPBXPmcoaScbOlb3apctF9NLy1foI6KmazcbwPhU0+DBWStl0pKXPLcoaScBfifolvdJ0+coaScbOlhtL7tLOtKjpjd21sDbWPhTShF2azF2lvdJIpRT5MdoyzDtImF3ajC2azFZFSwlY0fBY0fbklwok1coflfoypFMAIC2iiFol0FMAICUeeQbTeQUnzfbnXFMlsX6LJhTShFMa0fbkVwuklcolZcBY0htLsNMkiC2SPhTShgBYifoYPwtiFaoiZd3fiCMxlwtO0DtLIGXprWjP6FM9SdokiC2SPhTShF2azF2lvdJIpRT5MdoyzDtImcbkZd3wmRtkWFM9JdHKPdBAICbAIdMl2cBy1woOlwoxiwuY1FunZcbYzDB9VwoWmfB5lkZnjDoyXDbOZcUwpKXpZcbO1FM4IFMaLDbklC3WPhU0+CMyjDZIpKXp9tm0hgWP7FcKIbOLuJNkKrUS
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | 8852635bd93cc2df62ed48e7bc14db6e |
Eval Count | 3 |
Decode Time | 94 ms |