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 - go back
Embed
Viewing differences between Re: Re: Re: Re: Re: mhcc and Re: Re: Re: Re: Re: Re: mhcc
        <!-- page content -->\n        <div class="col-md-9">\n          <div class="pageContent">\n\n          <form method="post" action="<?php print APP_DOC_ROOT; ?>/user/create">\n            <div class="form-group">\n              <label for="username">Username</label>\n              <input type="text" class="form-control" id="username" name="username" placeholder="Enter username">\n            </div>\n            <div class="form-group">\n              <label for="email">Email</label>\n              <input type="email" class="form-control" id="email" name="email" placeholder="Enter email">\n            </div>\n            <div class="form-group">\n              <label for="firstname">First Name</label>\n              <input type="text" class="form-control" id="firstname" name="firstname" placeholder="Enter first name">\n            </div>\n            <div class="form-group">\n              <label for="lastname">Last Name</label>\n              <input type="text" class="form-control" id="lastname" name="lastname" placeholder="Enter last name">\n            </div>\n            <div class="form-group">\n              <label for="password">Password</label>\n              <input type="password" class="form-control" id="password" name="password" placeholder="Enter password">\n            </div>\n            <div class="checkbox">\n              <label>\n                <input type="checkbox" id="active" name="active" value="true"> Active\n              </label>\n            </div>\n            <div class="checkbox">\n              <label>\n                <input type="checkbox" id="locked" name="locked" value="true"> Locked\n              </label>\n            </div>\n            <button type="submit" id="create" name="create" value="true" class="btn btn-default">\n              <span class="fa fa-check"></span> Create\n            </button>\n          </form>\n\n           </div>\n        </div>\n        <!-- end page content -->case 'create':
        $formValid = true;

        if (isset($_POST["create"])) {
            
            $salt     = md5(APP_SECRET . date('Ymdhis'));
            $password = md5( $salt . $_POST["password"] );
            $active   = (isset($_POST["active"])) ? true : false;
            $locked   = (isset($_POST["locked"])) ? true : false;

            $sql = "INSERT INTO
                      auth_user
                    (username, email, password, salt, first_name, last_name, active, locked)
                    VALUES
                    (?, ?, ?, ?, ?, ?, ?, ?)";

            $dbObj = new db();
            $dbObj->dbPrepare( $sql );
            $dbObj->dbExecute(array(
                $_POST["username"],
                $_POST["email"],
                $password,
                $salt,
                $_POST["firstname"],
                $_POST["lastname"],
                $active,
                $locked
            ));
        }
        else {
            $formValid = false;            
        }

        if ($formValid) {
            $sql = "SELECT
                      *
                    FROM
                      auth_user
                    ORDER BY
                      username";

            $dbObj = new db();
            $dbObj->dbPrepare( $sql );
            $dbObj->dbExecute();

            include( APP_VIEW .'/user/userSubNav.php' );
            include( APP_VIEW .'/user/listView.php' );
            break;
        }
        else {
            include( APP_VIEW .'/user/userSubNav.php' );
            include( APP_VIEW .'/user/addView.php' );
            break;            
        }

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.