A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_URI::$config is deprecated

Filename: core/URI.php

Line Number: 72

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property MY_Router::$uri is deprecated

Filename: core/Router.php

Line Number: 89

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Input::$security is deprecated

Filename: core/Input.php

Line Number: 93

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Input::$uni is deprecated

Filename: core/Input.php

Line Number: 99

load->library("urlutility"); $this->load->model("mcategory"); $this->load->model("mnews"); $this->load->model("mgallery"); $this->load->model("mproject"); $this->load->model("msubscribe"); $this->load->model("mbigimage"); $this->_lang=getlang(); } public function studioorder(){ $emailto="info@taj.vn"; if(!isset($_POST["listproduct"])) return; $checkemail=filter_var($_POST["email"],FILTER_VALIDATE_EMAIL); if($checkemail==false){ echo ""; return false; } $listthietbi="Thiết bị"; $listthietbi.='Tên thiết bịSố ngày'; $lstpr=json_decode($_POST["listproduct"]); foreach($lstpr as $p){ $listthietbi.=''.$p->name.''.$p->songay.''; } $strcontent=''.$listthietbi.'
Xác nhận đặt studio
Name : '.$_POST["hovaten"].'
Email : '.$_POST["email"].'
Số điện thoại : '.$_POST["dienthoai"].'
Message : '.$_POST["yeucau"].'
IP : '.$_SERVER['REMOTE_ADDR'].'
'; $this->load->helper("mail"); sendemailv2($emailto,"Xác nhận thuê trường quay",$strcontent); if($this->_lang=="vi") header("Location: /vi/cam-on-da-lien-he-voi-chung-toi"); else header("Location: /en/thank-for-your-contact-us"); } public function index(){ $data=array(); $data["current"]=$this->mcategory->getdatabyType_Position(0,0,3,1,getlang()); $data["idcate"]=$data["current"]["id"]; $data["idbanner"]=$data["current"]["id"]; $data["listchildhome"]=$this->mcategory->listbyPositionandParentid_Orderby($data["current"]["id"],1,3,getlang()); $data["banner"]=$this->mbigimage->getdatabycategoryid($data["current"]["id"]); $data["blogimage"]=$this->mgallery->listbyCategoryidandStatus_Order($data["current"]["id"],1); $data["newestnews"]=$this->mnews->getnewestnews(5,0,getlang()); $data["bannerindex"]=true; $data["eltit"]=$data["current"]["title"]; $data["keyword"]=$data["current"]["keyword"]; $data["description"]=$data["current"]["description"]; $data["template"]="contentpage/index"; $this->loadview("layout",$data); } public function subscribe(){ $checkemail=filter_var($_POST["email"],FILTER_VALIDATE_EMAIL); if($checkemail==false)echo"failed"; else { $getemail=$this->msubscribe->getdata_email($_POST["email"]); if($getemail["id"]>0)echo"duplicated"; else{ $emailto="hello@juicebazar.com"; //$emailto="phambaoviet0102@gmail.com"; $val=array("firstname"=>"","lastname"=>"","email"=>$_POST["email"]); $this->msubscribe->insert($val); $this->load->helper("mail"); $strcontent='
SIGN UP FROM JUICEBAZAR.COM
Email : '.$_POST["email"].'
'; sendemailv2($emailto,"SIGN UP",$strcontent); echo "success"; } } } public function thankforsubscribe(){ $data=array(); $data["category"]=$this->mcategory->getdata(167); $data["eltit"]="Thank for subcrbing"; $data["description"]=$data["category"]["description"]; $data["keyword"]=$data["category"]["keyword"]; $data["template"]="contentpage/thankforsubscribe"; $this->loadview("layout",$data); } public function changelanguage(){ if(isset($_GET["web_lang"])&&$_GET["web_lang"]!=""){ setcookie("web_lang",$_GET["web_lang"],time()+86400,"/"); $_COOKIE["web_lang"]=$_GET["web_lang"]; } echo $_COOKIE["web_lang"]; } public function projectdetail(){ $data=$this->mproject->getdata($_GET["id"]); $res=json_decode($data["jsondetail"]); if(is_object($res)){ $res->listimage=array(); $files = scandir($_SERVER["DOCUMENT_ROOT"].$res->listbanner); foreach($files as $f){ $ext=pathinfo($_SERVER["DOCUMENT_ROOT"].$res->listbanner.$f, PATHINFO_EXTENSION); if(in_array($ext,array('jpg','png','gif','jpeg'))){ array_push($res->listimage,$res->listbanner.$f); } } echo json_encode($res); }else{ echo '{"error":"0"}'; } } public function categorydetail(){ $data=$this->mcategory->getdata($_GET["id"]); $res=new stdClass; if($data["id"]!=0){ $res->gioithieu=$data["content"]; $res->chitiet=$data["content_2"]; $res->listimage=array(); $listgallery=$this->mgallery->listbyCategoryidandStatus($data["id"],1); foreach($listgallery as $g){ array_push($res->listimage,$g["photo"]); } echo json_encode($res); }else{ echo '{"error":"0"}'; } } }

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/nhtajvvr/public_html/application/modules/home/controllers/index.php:1)

Filename: core/Common.php

Line Number: 442

404 Page Not Found

404 Page Not Found

The page you requested was not found.