| Server IP : 162.214.74.102 / Your IP : 216.73.217.103 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/models/ |
Upload File : |
<?php
Class contentmanagement_model extends CI_Model {
function get_page_list($params = array(), $action = '',$action2='')
{
$this->db->select('*');
$this->db->from('rt_content');
if(array_key_exists("start",$params) && array_key_exists("limit",$params)){
$this->db->limit($params['limit'],$params['start']);
}elseif(!array_key_exists("start",$params) && array_key_exists("limit",$params)){
$this->db->limit($params['limit']);
}
$query = $this->db->get();
return ($query->num_rows() > 0)?$query->result_array():FALSE;
}
function show_page_content($id) {
$this->db->select('*');
$this->db->from('rt_content');
$this->db->where('content_id', $id);
$query = $this->db->get();
return ($query->num_rows() > 0)?$query->row_array():FALSE;
}
}