SHARE
TWEET

Untitled

a guest Jun 28th, 2020 15 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version         :   4.1.0.0
  8. * @ Author          :   DeZender
  9. * @ Release on      :   15.05.2020
  10. * @ Official site   :   http://DeZender.Net
  11. *
  12. */
  13. defined('BASEPATH') || exit('No direct script access allowed');
  14.  
  15. class Page extends Front_Controller
  16. {
  17.     public function index()
  18.     {
  19.         $nav = $this->input->post('nav', true);
  20.  
  21.         if ($nav) {
  22.             if ($this->cache->get(md5('index_nav'))) {
  23.                 echo $this->cache->get(md5('index_nav'));
  24.                 exit();
  25.             }
  26.         }
  27.         else if ($this->cache->get(md5(__FUNCTION__))) {
  28.             echo $this->cache->get(md5(__FUNCTION__));
  29.             exit();
  30.         }
  31.  
  32.         if (!$this->seriesMode) {
  33.             if ($this->lastEpisode) {
  34.                 $lastEpisodeList = $this->series_m->getLastEpisodeList();
  35.             }
  36.  
  37.             $episodeListId = $this->series_m->getEpisodeList(NULL, 3);
  38.  
  39.             if (!empty($episodeListId)) {
  40.                 $this->db->join('series', 'series.s_id = episode.s_id');
  41.                 $this->db->where_in('episode.e_id', $episodeListId);
  42.  
  43.                 if ($this->seriesMode) {
  44.                     $this->db->where('request', NULL);
  45.                 }
  46.  
  47.                 $lastSeries = $this->my_model->get('episode', NULL, 'result', '', ['e_id', 'desc']);
  48.                 $data['lastSeries'] = $lastSeries;
  49.             }
  50.  
  51.             $this->db->join('series', 'series.s_id = episode.s_id');
  52.             $this->db->group_by('episode.s_id');
  53.             $this->db->limit(3);
  54.             if ($this->cuff && $this->setting->cuff) {
  55.                 $this->db->where('cuff', 1);
  56.             }
  57.  
  58.             $lastMovies = $this->my_model->get('episode', ['series.s_type' => 1, 'series.s_active' => 1, 'request' => NULL], 'result', [3, 0], ['e_id', 'desc']);
  59.             $data['lastMovies'] = $lastMovies;
  60.             $this->db->join('series', 'series.s_id = fragman.s_id');
  61.             $data['fragman'] = $this->my_model->get('fragman', ['view' => 1], 'result', [8, 0], ['sort', 'asc']);
  62.             $this->db->select('episode.show,series.s_id,s_name,episode.e_id,episode.e_name,episode.e_link,season_number,e_num,e_date_up,s_anime,s_active,timeout,s_type,no_season,s_image,s_link,e_overview,vote_count,');
  63.             $this->db->join('series', 'series.s_id = episode.s_id');
  64.  
  65.             if ($this->setting->episode_status) {
  66.                 $this->db->join('episode_video', 'episode_video.e_id = episode.e_id');
  67.                 $this->db->group_by('episode_video.e_id');
  68.             }
  69.             if (!empty($lastEpisodeList) && $this->lastEpisode) {
  70.                 $this->db->where_in('episode.e_id', $lastEpisodeList);
  71.             }
  72.  
  73.             if ($this->setting->show) {
  74.                 $where = ['request' => NULL, 'series.s_type' => NULL, 'episode.show' => 1, 'series.s_anime' => NULL, 'series.s_active' => 1, 'timeout <=' => date('Y-m-d H:i:s')];
  75.             }
  76.             else {
  77.                 $where = ['series.s_type' => NULL, 'series.s_anime' => NULL, 'request' => NULL, 'series.s_active' => 1, 'timeout <=' => date('Y-m-d H:i:s')];
  78.             }
  79.  
  80.             $episode = $this->my_model->get('episode', $where, 'result', [$this->setting->series_limit, 0], ['episode.e_date_up,episode.e_id,episode.season_number,episode.e_num', 'desc']);
  81.             $data['episode'] = $episode;
  82.         }
  83.  
  84.         if ($this->movie) {
  85.             if ($this->setting->show) {
  86.                 $where = ['series.show' => 1, 's_type' => 1, 'series.s_active' => 1, 'request' => NULL];
  87.             }
  88.             else {
  89.                 $where = ['s_type' => 1, 'series.s_active' => 1, 'request' => NULL];
  90.             }
  91.  
  92.             $movie = $this->my_model->get('series', $where, 'result', [$this->setting->movie_limit, 0], ['s_id', 'desc']);
  93.             $data['movies'] = $movie;
  94.         }
  95.  
  96.         if ($this->setting->series_popular) {
  97.             $data['populerSeries'] = $this->my_model->get('series', ['s_popular' => 1, 's_type' => NULL, 'request' => NULL, 'series.s_active' => 1, 's_anime' => NULL, 's_access !=' => 1], 'result', [8, 0]);
  98.         }
  99.         else {
  100.             $data['populerSeries'] = $this->my_model->get('series', ['s_view >=' => 1, 's_type' => NULL, 'request' => NULL, 'series.s_active' => 1, 's_anime' => NULL, 's_access !=' => 1], 'result', [8, 0], ['s_view', 'desc']);
  101.         }
  102.         if (!empty($nav) && $this->navigo) {
  103.             $this->load->view(THEME . '/template/default', $data);
  104.             $content = $this->load->view(THEME . '/template/default', $data, true);
  105.  
  106.             if (!$this->cache->get(md5('index_nav'))) {
  107.                 $this->cache->save(md5('index_nav'), $content);
  108.             }
  109.             else {
  110.                 echo $this->cache->get(md5('index_nav'));
  111.             }
  112.         }
  113.         else {
  114.             $data['subview'] = THEME . '/template/default';
  115.             $this->load->view(THEME . '/_main_layout', $data);
  116. ..................................................................
  117. ....................................
  118. ...............
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top