whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
www
/
application
/
controllers
/
admin
/
Upload File:
files >> //proc/self/root/home/papecmvm/www/application/controllers/admin/Welcome.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); error_reporting(0); class Welcome extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('alldata', "usermodel"); } public function index() { $session_data=$this->session->all_userdata(); $lang=$session_data['lang']; $data['message']=$this->usermodel->getDatamodel($lang.'tblmsg'); $data['election_mode']=$this->usermodel->getDatamodel($lang.'tblposts '); //$data['job_package']=$this->usermodel->DetailData('tbl_job_package'); $this->load->view("admin_dashboard_view", $data); } public function logout() { $this->session->unset_userdata('userinfo'); redirect('admin/starlogin'); } public function changepassword() { $session_data=$this->session->all_userdata(); $where=array('uid'=>$session_data['userinfo'][0]['uid']); $data['data']=$this->usermodel->DetailData('tblusers',$where); $this->load->view("header",$data); $this->load->view("changepass"); $this->load->view("menu"); } public function changelang($pass='') { $this->session->set_userdata('lang', $pass); redirect('admin/welcome'); } public function getmessage($id) { $session_data=$this->session->all_userdata(); $lang=$session_data['lang']; $this->form_validation->set_rules('msg', 'msg', 'required|xss_clean|regex_match[/^[^\`\~\@\#\$\%\^\*\[\]\{\}\;:<>=+"]+$/]'); if ($this->form_validation->run() == TRUE) { $where=array('tblmsg_id'=>$id); $insertdata=array('message'=>$this->input->post('msg')); $this->usermodel->UpdateData($lang.'tblmsg',$insertdata,$where); } redirect('admin/welcome'); } public function changecolor($color) { $this->session->set_userdata('themecolor', $color); redirect('admin/welcome'); } public function election_mode($id){ $session_data=$this->session->all_userdata(); $lang=$session_data['lang']; if($id==0){$em=1;}else{$em=0;} $insertdata=array('election_mode'=>$id); $where=array('election_mode'=>$em); //$insertdata_off=array('election_mode'=>$electionmode_on); $this->usermodel->UpdateData($lang.'tblposts',$insertdata,$where); //redirect('admin/welcome'); } public function errorpage(){ show_error(); } public function document(){ $session_data=$this->session->all_userdata(); $lang=$session_data['lang']; $this->load->view("document_view"); } } /* End of file welcome.php */ /* Location: ./application/controllers/welcome.php */
Copyright ©2021 || Defacer Indonesia