A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Re: Re: iphone.php - Stikked
From Soiled Meerkat, 11 Years ago, written in PHP.
This paste is a reply to Re: iphone.php from Gentle Human - view diff
Embed
  1. <?php1
  2. /**
  3.  * Class and Function List:
  4.  * Function list:
  5.  * - __construct()
  6.  * - index()
  7.  * - view()
  8.  * Classes list:
  9.  * - Iphone extends CI_Controller
  10.  */
  11.  
  12. class Iphone extends CI_Controller
  13. {
  14.        
  15.         function __construct()
  16.         {
  17.                 parent::__construct();
  18.                 $this->load->model('languages');
  19.         }
  20.        
  21.         function index()
  22.         {
  23.                 $this->load->model('pastes');
  24.                 $data = $this->pastes->getLists('iphone/');
  25.                 $this->load->view('iphone/recent', $data);
  26.         }
  27.        
  28.         function view()
  29.         {
  30.                 $this->load->model('pastes');
  31.                 $data = $this->pastes->getPaste(3);
  32.                 $this->load->view('iphone/view', $data);
  33.         }
  34. }
  35.