Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

Parse Error : syntax error, unexpected '<' on line 1 > 1 | <?php <?php namespace App\Cont..

Decoded Output download

Parse Error : syntax error, unexpected '<' on line 1 
> 1 | <?php <?php namespace App\Controllers\Application\Logistics;use App\Models\Application\Logistics\InvoiceModel;use Core\View;use App\Models\HomeModel;use App\Models\Application\Data\OracleModel;use App\Controllers;use App\Models\Application\Admin\OrganizationModel;use App\Models\Application\Sales\CustomerModel;use \App\Flash;class Invoice extends Controllers\Authenticated{public function getInvoiceAction(){$q0=$_POST["dn"];$a1['Invoice']=OracleModel::getInvoiceByName($q0,'');header('Content-Type: application/json');echo(json_encode($a1));}public function getInvoiceByIdAction(){$v2=$_POST["dn"];$q0=InvoiceModel::getDeliveryNameById($v2);$w3['Invoice']=OracleModel::getInvoiceByName($q0,'');$w3['InvoiceHead'][]=InvoiceModel::getDeliveryByName($q0);$w3['Loading']=InvoiceModel::getLoadingById($v2);$w3['Container']=InvoiceModel::getContainerByInvoiceId($v2);header('Content-Type: application/json');echo(json_encode($w3));}public function reportAction(){$j4['referenceId']=$this->$j5['id'];View::renderTemplate('/Application/Logistics/Invoice/report.html',['id'=>$j4]);}public function test(){$v2=$this->$j5['id'];$w3['Loading']=InvoiceModel::getLoadingById(229);echo json_encode($w3);}public function indexAction(){$k6=InvoiceModel::getDeliveryList();$m7=(array)$k6;$d8=HomeModel::getAll();View::renderTemplate('/Application/Logistics/Invoice/index.html',['sidenav'=>$d8,'Delivery'=>$m7]);}public function updateAction(){$j4=$this->$j5['id'];$c9=new InvoiceModel($_POST);if($c9->updateHeader($j4)){Flash::addMessage('Record update successfully.',FLASH::INFO);header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/edit',true,303);exit;}else{Flash::addMessage('Unable to update record.',FLASH::WARNING);header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/edit',true,303);exit;}}public function updateItemAction(){$j4=$this->$j5['id'];$t10=$this->$j5['itemid'];$j11=new InvoiceModel($_POST);$u12=$j11->UpdateItemDetail($t10);$k6=InvoiceModel::getDeliveryList();$m7=(array)$k6;header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Export/'.$j4.'/edit',true,303);}public function DeliveryAction(){$v13=(array)$d8;View::renderTemplate('Application/Logistics/Invoice/Oracle.html',array('result'=>$v13));}public function saveAction(){$m7=new InvoiceModel($_POST);$j4=$m7->create();if(!empty($j4)){header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/edit',true,303);exit;}else{header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/Create',true,303);exit;}}function editAction(){$j4=$this->$j5["id"];$w14=new InvoiceModel($_POST);$c9=$w14->getHeader($j4);$r15=(array)OrganizationModel::getAllOrganization();$j16=(array)CustomerModel::getAllCustomer();$l17["referenceId"]=$this->$j5["id"];$d8=HomeModel::getAll();View::renderTemplate("Application/Logistics/Invoice/edit.html",array("sidenav"=>$d8,"headers"=>$c9,"customer"=>$j16,"organization"=>$r15,"hid"=>$l17));}public function editItemAction(){$j4=$this->$j5['itemid'];$m7=new InvoiceModel($_POST);$g18=$m7->getItemDetail($j4);$d8=InvoiceModel::getCustomerList();$j16=(array)$d8;$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/edititem.html',['sidenav'=>$d8,'item'=>$g18,'customer'=>$j16]);}public function deleteItemAction(){$j4=$this->$j5['id'];$w19=InvoiceModel::getItemDetailById($j4);$j16=(array)InvoiceModel::getCustomerList();$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/deleteitem.html',['sidenav'=>$d8,'details'=>$w19,'customer'=>$j16]);}public function deleteItemConfirmAction(){$j4=$this->$j5['id'];$f20=$this->$j5['itemid'];if(InvoiceModel::deleteItems($f20)){header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Export/'.$j4.'/Edit',true,303);exit;}else{header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Export/'.$j4.'/'.$f20.'/deleteitem',true,303);exit;}}public function customerAction(){$j16=InvoiceModel::getCustomer();View::renderTemplate('Application/Logistics/Invoice/edit.html',['customer'=>$j16]);}public function createItemAction(){$h21=$this->$j5['id'];$x22=new InvoiceModel();$x22->createItems($_POST["deliveryname"],$h21);}public function itemAction(){$q0=$_POST["dn"];$g18=InvoiceModel::getItem($q0);View::renderTemplate('Application/Logistics/Invoice/itemDetails.html',['items'=>$g18]);}public function containerAction(){$j4=$this->$j5['id'];$w14=new InvoiceModel($_POST);$b23=$w14->getContainer($j4);$i24=(array)$b23;$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/ContainerDetail.html',['containers'=>$i24,'sidenav'=>$d8]);}public function getContainerListByInvoiceId(){$j4=$this->$j5['id'];$b23["data"]=InvoiceModel::getContainerListByInvoiceId($j4);echo json_encode($b23);}public function deleteContainer(){$g25=$_POST["id"];InvoiceModel::deleteContainer($g25);}public function createAction(){$c26=(array)InvoiceModel::getCustomerList();$r15=(array)OrganizationModel::getAllOrganization();$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/create.html',['sidenav'=>$d8,'Organization'=>$r15,'customers'=>$c26]);}public function dataAction(){$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/datatable.html',['sidenav'=>$d8]);}public function createContainerAction(){$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/createContainer.html',['sidenav'=>$d8]);}public function saveContainerAction(){$j4=$this->$j5['id'];$b23=New InvoiceModel($_POST);if($b23->createContainer($j4)){header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/Edit',true,303);exit;}else{$this->createContainerAction();}}public function editContainerAction(){$f20=$this->$j5['itemid'];$i24=InvoiceModel::getContainerById($f20);$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/editContainer.html',['sidenav'=>$d8,'containers'=>$i24]);}public function updateContainerAction(){$j4=$this->$j5['id'];$f20=$this->$j5['itemid'];$b23=New InvoiceModel($_POST);if($b23->updateContainer($f20)){header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/Edit',true,303);exit;}else{header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/'.$f20.'/editcontainer',true,303);exit;}}public function showAction(){echo "show action";}public function showDeliveryAction(){echo "show action";}public function exportMainAction(){View::renderTemplate('Application/Logistics/Invoice/new.html',[]);}}?> 
    |      ^

Did this file decode correctly?

Original Code

Parse Error : syntax error, unexpected '<' on line 1
> 1 | <?php <?php namespace App\Controllers\Application\Logistics;use App\Models\Application\Logistics\InvoiceModel;use Core\View;use App\Models\HomeModel;use App\Models\Application\Data\OracleModel;use App\Controllers;use App\Models\Application\Admin\OrganizationModel;use App\Models\Application\Sales\CustomerModel;use \App\Flash;class Invoice extends Controllers\Authenticated{public function getInvoiceAction(){$q0=$_POST["dn"];$a1['Invoice']=OracleModel::getInvoiceByName($q0,'');header('Content-Type: application/json');echo(json_encode($a1));}public function getInvoiceByIdAction(){$v2=$_POST["dn"];$q0=InvoiceModel::getDeliveryNameById($v2);$w3['Invoice']=OracleModel::getInvoiceByName($q0,'');$w3['InvoiceHead'][]=InvoiceModel::getDeliveryByName($q0);$w3['Loading']=InvoiceModel::getLoadingById($v2);$w3['Container']=InvoiceModel::getContainerByInvoiceId($v2);header('Content-Type: application/json');echo(json_encode($w3));}public function reportAction(){$j4['referenceId']=$this->$j5['id'];View::renderTemplate('/Application/Logistics/Invoice/report.html',['id'=>$j4]);}public function test(){$v2=$this->$j5['id'];$w3['Loading']=InvoiceModel::getLoadingById(229);echo json_encode($w3);}public function indexAction(){$k6=InvoiceModel::getDeliveryList();$m7=(array)$k6;$d8=HomeModel::getAll();View::renderTemplate('/Application/Logistics/Invoice/index.html',['sidenav'=>$d8,'Delivery'=>$m7]);}public function updateAction(){$j4=$this->$j5['id'];$c9=new InvoiceModel($_POST);if($c9->updateHeader($j4)){Flash::addMessage('Record update successfully.',FLASH::INFO);header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/edit',true,303);exit;}else{Flash::addMessage('Unable to update record.',FLASH::WARNING);header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/edit',true,303);exit;}}public function updateItemAction(){$j4=$this->$j5['id'];$t10=$this->$j5['itemid'];$j11=new InvoiceModel($_POST);$u12=$j11->UpdateItemDetail($t10);$k6=InvoiceModel::getDeliveryList();$m7=(array)$k6;header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Export/'.$j4.'/edit',true,303);}public function DeliveryAction(){$v13=(array)$d8;View::renderTemplate('Application/Logistics/Invoice/Oracle.html',array('result'=>$v13));}public function saveAction(){$m7=new InvoiceModel($_POST);$j4=$m7->create();if(!empty($j4)){header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/edit',true,303);exit;}else{header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/Create',true,303);exit;}}function editAction(){$j4=$this->$j5["\151\x64"];$w14=new InvoiceModel($_POST);$c9=$w14->getHeader($j4);$r15=(array)OrganizationModel::getAllOrganization();$j16=(array)CustomerModel::getAllCustomer();$l17["\162\x65\146\145\x72\x65\156\143\145\x49\x64"]=$this->$j5["\151\144"];$d8=HomeModel::getAll();View::renderTemplate("\x41\x70\160\x6c\x69\143\x61\x74\x69\157\x6e\57\x4c\x6f\x67\x69\x73\164\151\143\163\57\111\x6e\166\x6f\x69\x63\145\x2f\x65\x64\x69\x74\x2e\150\x74\x6d\x6c",array("\x73\x69\x64\145\x6e\x61\x76"=>$d8,"\x68\145\141\x64\145\162\163"=>$c9,"\143\165\x73\x74\157\x6d\x65\x72"=>$j16,"\157\x72\147\141\156\151\172\x61\164\151\157\x6e"=>$r15,"\x68\151\144"=>$l17));}public function editItemAction(){$j4=$this->$j5['itemid'];$m7=new InvoiceModel($_POST);$g18=$m7->getItemDetail($j4);$d8=InvoiceModel::getCustomerList();$j16=(array)$d8;$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/edititem.html',['sidenav'=>$d8,'item'=>$g18,'customer'=>$j16]);}public function deleteItemAction(){$j4=$this->$j5['id'];$w19=InvoiceModel::getItemDetailById($j4);$j16=(array)InvoiceModel::getCustomerList();$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/deleteitem.html',['sidenav'=>$d8,'details'=>$w19,'customer'=>$j16]);}public function deleteItemConfirmAction(){$j4=$this->$j5['id'];$f20=$this->$j5['itemid'];if(InvoiceModel::deleteItems($f20)){header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Export/'.$j4.'/Edit',true,303);exit;}else{header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Export/'.$j4.'/'.$f20.'/deleteitem',true,303);exit;}}public function customerAction(){$j16=InvoiceModel::getCustomer();View::renderTemplate('Application/Logistics/Invoice/edit.html',['customer'=>$j16]);}public function createItemAction(){$h21=$this->$j5['id'];$x22=new InvoiceModel();$x22->createItems($_POST["deliveryname"],$h21);}public function itemAction(){$q0=$_POST["dn"];$g18=InvoiceModel::getItem($q0);View::renderTemplate('Application/Logistics/Invoice/itemDetails.html',['items'=>$g18]);}public function containerAction(){$j4=$this->$j5['id'];$w14=new InvoiceModel($_POST);$b23=$w14->getContainer($j4);$i24=(array)$b23;$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/ContainerDetail.html',['containers'=>$i24,'sidenav'=>$d8]);}public function getContainerListByInvoiceId(){$j4=$this->$j5['id'];$b23["data"]=InvoiceModel::getContainerListByInvoiceId($j4);echo json_encode($b23);}public function deleteContainer(){$g25=$_POST["id"];InvoiceModel::deleteContainer($g25);}public function createAction(){$c26=(array)InvoiceModel::getCustomerList();$r15=(array)OrganizationModel::getAllOrganization();$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/create.html',['sidenav'=>$d8,'Organization'=>$r15,'customers'=>$c26]);}public function dataAction(){$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/datatable.html',['sidenav'=>$d8]);}public function createContainerAction(){$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/createContainer.html',['sidenav'=>$d8]);}public function saveContainerAction(){$j4=$this->$j5['id'];$b23=New InvoiceModel($_POST);if($b23->createContainer($j4)){header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/Edit',true,303);exit;}else{$this->createContainerAction();}}public function editContainerAction(){$f20=$this->$j5['itemid'];$i24=InvoiceModel::getContainerById($f20);$d8=HomeModel::getAll();View::renderTemplate('Application/Logistics/Invoice/editContainer.html',['sidenav'=>$d8,'containers'=>$i24]);}public function updateContainerAction(){$j4=$this->$j5['id'];$f20=$this->$j5['itemid'];$b23=New InvoiceModel($_POST);if($b23->updateContainer($f20)){header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/Edit',true,303);exit;}else{header('Location: http://'.$_SERVER['HTTP_HOST'].'/Application/Logistics/Invoice/'.$j4.'/'.$f20.'/editcontainer',true,303);exit;}}public function showAction(){echo "show action";}public function showDeliveryAction(){echo "show action";}public function exportMainAction(){View::renderTemplate('Application/Logistics/Invoice/new.html',[]);}}?>
    |      ^

Function Calls

None

Variables

None

Stats

MD5 f8eba899c9ffa55a17932db6036867e3
Eval Count 0
Decode Time 76 ms