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: Re: Re: Re: Re: mhcc - Stikked
From david, 10 Years ago, written in PHP.
This paste is a reply to Re: Re: Re: Re: Re: mhcc from david - view diff
Embed
  1. case 'create':
  2.         $formValid = true;
  3.  
  4.         if (isset($_POST["create"])) {
  5.            
  6.             $salt     = md5(APP_SECRET . date('Ymdhis'));
  7.             $password = md5( $salt . $_POST["password"] );
  8.             $active   = (isset($_POST["active"])) ? true : false;
  9.             $locked   = (isset($_POST["locked"])) ? true : false;
  10.  
  11.             $sql = "INSERT INTO
  12.                      auth_user
  13.                    (username, email, password, salt, first_name, last_name, active, locked)
  14.                    VALUES
  15.                    (?, ?, ?, ?, ?, ?, ?, ?)";
  16.  
  17.             $dbObj = new db();
  18.             $dbObj->dbPrepare( $sql );
  19.             $dbObj->dbExecute(array(
  20.                 $_POST["username"],
  21.                 $_POST["email"],
  22.                 $password,
  23.                 $salt,
  24.                 $_POST["firstname"],
  25.                 $_POST["lastname"],
  26.                 $active,
  27.                 $locked
  28.             ));
  29.         }
  30.         else {
  31.             $formValid = false;            
  32.         }
  33.  
  34.         if ($formValid) {
  35.             $sql = "SELECT
  36.                      *
  37.                    FROM
  38.                      auth_user
  39.                    ORDER BY
  40.                      username";
  41.  
  42.             $dbObj = new db();
  43.             $dbObj->dbPrepare( $sql );
  44.             $dbObj->dbExecute();
  45.  
  46.             include( APP_VIEW .'/user/userSubNav.php' );
  47.             include( APP_VIEW .'/user/listView.php' );
  48.             break;
  49.         }
  50.         else {
  51.             include( APP_VIEW .'/user/userSubNav.php' );
  52.             include( APP_VIEW .'/user/addView.php' );
  53.             break;            
  54.         }

Replies to Re: Re: Re: Re: Re: Re: mhcc rss

Title Name Language When
Re: Re: Re: Re: Re: Re: Re: mhcc david html5 10 Years ago.