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: Re: Re: mhcc - Stikked
From david, 10 Years ago, written in PHP.
This paste is a reply to Re: Re: Re: Re: Re: Re: Re: mhcc from david - go back
Embed
        <!-- 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 -->$sql = "SELECT
                  a.description,
                  CONCAT(s.first_name, ' ', s.last_name) AS student,
                  CONCAT(i.first_name, ' ', i.last_name) AS instructor,
                  a.due_date,
                  a.submit_date
                FROM
                  assignment a
                JOIN student s    ON a.student = s.id
                JOIN instructor i ON a.instructor = i.id
                ORDER BY
                  a.submit_date";

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

        include( APP_VIEW .'/assignment/assignmentSubNav.php' );
        include( APP_VIEW .'/assignment/listView.php' );
        break;