uawdijnntqw1x1x1
IP : 216.73.217.47
Hostname : srv913213
Kernel : Linux srv913213 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
yapwebtv.com
/
..
/
..
/
www
/
krcollege.co
/
application
/
controllers
/
Settings.php
/
/
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Settings extends CI_Controller { public $menu; function __construct() { parent::__construct(); $this->load->model('system_setting/System_setting_model'); $this->load->model('location/Location_model', 'Location_model'); isLoggedIn(); } public function index() { //if(checkPermission('Settings') && isLoggedIn == true) { $district = $this->Location_model->get_district()->result_array(); $state =$this->Location_model->get_state()->result_array(); $web_details = $this->System_setting_model->getDetails(); $page_data['page_title'] = 'Web Settings'; $page_data['page_name'] = 'admin/system_setting/system_setting'; $page_data['state'] = $state; $page_data['district'] = $district; $page_data['web_details'] = $web_details; $this->load->view('admin/template', $page_data); //} } public function insert() { $error_type = ''; $msg = ''; $result = false; $this->form_validation->set_rules('company_name', 'Company Name', 'trim|required'); $this->form_validation->set_rules('address_1', 'Address 1', 'trim|required'); $this->form_validation->set_rules('pincode', 'Pincode', 'trim|required'); $this->form_validation->set_rules('state_id', 'State', 'trim|required'); $this->form_validation->set_rules('city_id', 'City', 'trim|required'); $this->form_validation->set_rules('print_solgan', 'Print Solgan', 'trim|required'); if ($this->form_validation->run() == FALSE) { $error_type = 'v'; $msg = validation_errors('<p class="error">', '</p>'); //validation_errors(); $result = false; } else { if ($_FILES['logo']['name']) { $config['upload_path'] = './assets/img/logo/'; $config['allowed_types'] = 'gif|jpg|png|jpeg|ico|JPEG|GIF|JPG|PNG|ICO'; $config['max_size'] = "*"; $config['max_width'] = "*"; $config['max_height'] = "*"; $config['encrypt_name'] = false; $this->load->library('upload', $config); if (!$this->upload->do_upload('logo')) { $error = array('error' => $this->upload->display_errors()); $this->session->set_userdata(array('error_message' => $this->upload->display_errors())); redirect(base_url('Settings')); } else { $image = $this->upload->data(); $logo = $image['file_name']; } } if ($_FILES['print_logo']['name']) { //Chapter chapter add start $config['upload_path'] = './assets/img/logo/'; $config['allowed_types'] = 'gif|jpg|png|jpeg|ico|JPEG|GIF|JPG|PNG|ICO'; $config['max_size'] = "*"; $config['max_width'] = "*"; $config['max_height'] = "*"; $config['encrypt_name'] = false; $this->load->library('upload', $config); if (!$this->upload->do_upload('print_logo')) { $error = array('error' => $this->upload->display_errors()); $this->session->set_userdata(array('error_message' => $this->upload->display_errors())); redirect(base_url('settings')); } else { $image = $this->upload->data(); $print_logo = $image['file_name']; } } $old_c_logo = $this->input->post('old_logo'); $old_print = $this->input->post('old_print_logo'); $data = array( 'company_logo' => (!empty($logo) ? $logo : $old_c_logo), 'company_slogan' => $this->input->post('company_name'), 'company_name' => $this->input->post('company_name'), 'email' => $this->input->post('email_1'), 'alter_email' => $this->input->post('email_2'), 'mobile' => $this->input->post('mobile_1'), 'alter_mobile' => $this->input->post('mobile_2'), 'address_1' => $this->input->post('address_1'), 'address_2' => $this->input->post('address_2'), 'landmark' => $this->input->post('landmark'), 'pincode' => $this->input->post('pincode'), 'city_id' => $this->input->post('city_id'), 'state_id' => $this->input->post('state_id'), 'websiteurl' => $this->input->post('websiteurl'), 'gst' => $this->input->post('gst'), 'bank_name' => $this->input->post('bank_name'), 'branch' => $this->input->post('branch'), 'account_name' => $this->input->post('account_name'), 'account_no' => $this->input->post('account_no'), 'ifsc_code' => $this->input->post('ifsc_code'), 'print_slogan' => $this->input->post('print_solgan'), 'print_logo' => (!empty($print_logo) ? $print_logo : $old_print), ); // print_r($data);die; $result = $this->System_setting_model->insert($data); $error_type = 'm'; $msg = 'System settings Successfully updated'; $result = true; } echo json_encode(array('rs' => $result, 'errType' => $error_type, 'msg' => $msg)); } function remove() { $rs = false; $fid = $this->input->post('img'); $img = FCPATH . 'assets/img/logo/' . $fid; $data=array(); $data['company_logo'] = ''; $this->db->where('company_id',1)->update('company_settings',$data); @unlink($img); $rs = true; echo json_encode(array('rs' => $rs)); } function remove_print() { $rs = false; $fid = $this->input->post('img'); $img = FCPATH . 'assets/img/logo/' . $fid; $data=array(); $data['print_logo'] = ''; $this->db->where('company_id',1)->update('company_settings',$data); @unlink($img); $rs = true; echo json_encode(array('rs' => $rs)); } }
/var/www/yapwebtv.com/../../www/krcollege.co/application/controllers/Settings.php