p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/dpmptsp/public_html/newsigniter/application/controllers/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /home/dpmptsp/public_html/newsigniter/application/controllers/Blog.php
<?php 
defined('BASEPATH') OR exit('No direct script access allowed');

class Blog extends CI_Controller {
   
   public function __construct()
   {
      parent::__construct();
      $this->load->model('identity_model', 'identity', true);
      $this->load->model('banner_model', 'banner', true);
      $this->load->model('posting_model', 'posting', true);
      $this->load->model('category_model', 'category', true);
   }
   
   public function index($page = null)
   {
      $data['favicon']     = $this->identity->getIdentity();
      $data['title']       = 'News';
      $data['navbar']      = $this->category->getCategory();
      $data['banner']      = $this->banner->getBanner();
      $data['category']    = $this->category->getCategory();
      $data['post']        = $this->posting->getAllPosting($page);
      $data['popular']     = $this->posting->getMostPopular();
      $data['trending']    = $this->posting->getThread();
      $data['category']    = $this->category->getCategory();
	  $data['lastNews']    = $this->posting->getLastNews();
         $data['banner']      = $this->banner->getBanner();

      $data['total_rows']  = $this->posting->countPosting();
      $data['pagination']  = $this->posting->makePagination(
         base_url('blog'), 2, $data['total_rows']
      );

      $data['page'] = 'blog';
      $this->load->view('front/layouts/app', $data);
   } 

   public function category($category, $page = null)
   {
      $data['favicon']     = $this->identity->getIdentity();
      $data['title']       = 'Blog';
      $data['category']    = $this->category->getCategory();
      $data['post']        = $this->posting->getPostingByCategory($category, $page);
      $data['category']    = $this->category->getCategory();
	  $data['lastNews']    = $this->posting->getLastNews();
       $data['banner']      = $this->banner->getBanner();

      $data['total_rows']  = $this->posting->countPosting($category);
      $data['pagination']  = $this->posting->makePagination(
         base_url("blog/category/$category/"), 4, $data['total_rows']
      );

      $data['page'] = 'blog';
      $this->load->view('front/layouts/app', $data);
   }

   public function read($seo_title)
   {
      $row = $this->posting->getPosting($seo_title);
      
      if($row){
         $data['posting']     = $row;
         $data['title']       = $row->title;
         $data['favicon']     = $this->identity->getIdentity();
         $data['banner']      = $this->banner->getBanner();
         $data['category']    = $this->category->getCategory();
         $data['page']        = 'news-detail';
		 $data['lastNews']    = $this->posting->getLastNews();
         $this->load->view('front/layouts/app', $data);
      }else{
         redirect(base_url('home'));
      }
   }
   
   public function search($page = null)
   {
		$filter = stripslashes(strip_tags(htmlspecialchars($_POST['q'],ENT_QUOTES)));
		$data['favicon']     = $this->identity->getIdentity();
		$data['title']       = 'Blog';
		$data['category']    = $this->category->getCategory();
		$data['post']        = $this->posting->getPostingByKeyword($filter, $page);
		$data['category']    = $this->category->getCategory();
		$data['lastNews']    = $this->posting->getLastNews();
		$data['banner']      = $this->banner->getBanner();
		$data['filter']      = $filter;

		$data['total_rows']  = $this->posting->countPosting2($filter);
		$data['pagination']  = $this->posting->makePagination(
         base_url("blog/search/"), 4, $data['total_rows']
      );

      $data['page'] = 'blog';
      $this->load->view('front/layouts/app', $data);
   }   

}

/* End of file Blog.php */
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 03 2025 03:29:09
0 / 0
0755
back
--
January 03 2025 03:29:07
0 / 0
0755
Admin.php
3.049 KB
January 22 2025 03:57:15
0 / 0
0644
Auth.php
27.039 KB
December 31 2020 02:24:50
0 / 0
0644
Blog.php
3.561 KB
April 17 2025 01:59:32
0 / 0
0644
Contact.php
0.896 KB
December 31 2020 02:24:50
0 / 0
0644
Home.php
2.12 KB
March 21 2025 04:25:46
0 / 0
0644
index.html
0.129 KB
December 31 2020 02:24:50
0 / 0
0644