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

Untitled - Stikked
From hrthrth, 10 Years ago, written in PHP.
Embed
  1. <?php
  2. /**
  3.  * Class and Function List:
  4.  * Function list:
  5.  * - __construct()
  6.  * - index()
  7.  * Classes list:
  8.  * - Backup extends CI_Controller
  9.  */
  10.  
  11. class Backup extends CI_Controller
  12. {
  13.        
  14.         function __construct()
  15.         {
  16.                 parent::__construct();
  17.  
  18.                 //protection
  19.                 $user = $this->config->item('backup_user');
  20.                 $pass = $this->config->item('backup_pass');
  21.                
  22.                 if ($user == '' || $pass == '' || !isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER'] != $user || $_SERVER['PHP_AUTH_PW'] != $pass)
  23.                 {
  24.                         header('WWW-Authenticate: Basic realm="Backup"');
  25.                         header('HTTP/1.0 401 Unauthorized');
  26.                         exit;
  27.                 }
  28.         }
  29.        
  30.         function index()
  31.         {
  32.  
  33.                 // Load the DB utility class
  34.                 $this->load->dbutil();
  35.  
  36.                 // Backup your entire database and assign it to a variable
  37.                 $backup = & $this->dbutil->backup();
  38.  
  39.                 // Load the download helper and send the file to your desktop
  40.                 $this->load->helper('download');
  41.                 force_download('stikked.gz', $backup);
  42.         }
  43. }