AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.36
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_projetos/sopizzas/application/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_projetos/sopizzas/application/controllers/contentmanagement.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
session_start(); //we need to call PHP's session object to access it through CI
class Contentmanagement extends MY_Controller {

  function __construct()
  {
     parent::__construct();
     $this->load->helper("url");
     $this->load->helper('form');
     $this->load->library('form_validation');
     $this->load->library('javascript'); 
     $this->perPage = ROW_PER_PAGE;
     $this->load->model('contentmanagement_model');
     $this->load->library('Ajax_pagination');
     $session_data = $this->session->userdata('logged_in');
     //if(empty($session_data)) { redirect('superadmin', 'refresh'); }    
     if($this->session->userdata('user_language'))
      {
        $language = $this->session->userdata('user_language');
      }
      else
      {
        $language = $this->config->item("language");
      }
      $data['user_language'] =  $language;
      $this->lang->load('superAdmin', $language);  
  }

  function index( $offset = 0 )
  {
    $SearchBy = '';
    //total rows count
    $totalRec = count($this->contentmanagement_model->get_page_list());
    
    //pagination configuration
    $config['target']      = '#postList';
    $config['base_url']    = base_url().'state/ajaxPaginationData/'.$SearchBy;
    $config['total_rows']  = $totalRec;
    $config['per_page']    = $this->perPage;
    $this->ajax_pagination->initialize($config);
    
    //get the posts data
    $data['PageList'] = $this->contentmanagement_model->get_page_list(array('limit'=>$this->perPage), $SearchBy);

    $data['title']="Content Management";  
    $data['page']="content"; 
    $this->load->view('superadmin/header',$data);
    $this->load->view('superadmin/main-sidebar');
    $this->load->view('superadmin/content_management_list');
    $this->load->view('superadmin/footer');

  }

function showContent() {
    $my_id = $this->input->post('id');
    $ShowPageContent = $this->contentmanagement_model->show_page_content($my_id);
    $data['ShowPageContent'] = $ShowPageContent;
    
    echo json_encode($data);
  }


  function updateContent()
  {

    $this->db->trans_start();
    $data_up= array(
      'content_title'         => $this->input->post('content_title'),
      'metatagtitle'          => $this->input->post('metatagtitle'),
      'metatagdescription'    => $this->input->post('metatagdescription'),
      'metatagkeyword'        => $this->input->post('metatagkeyword'),
      'content'               => $this->input->post('editor2')
    );

   
    $ContentEditId = $this->input->post('ContentEditId');
    $this->db->where('content_id',$ContentEditId);
    $this->db->update('rt_content',$data_up);
    $this->db->trans_complete(); 

    $this->session->set_flashdata('success_msg', 'Content updated successfully');
    redirect('contentmanagement');

  }


}

Anon7 - 2022
AnonSec Team