HOR-2689 Removed references to G::LoadClass, Bootstrap::LoadClass and various references to class loading methods and require_once
This commit is contained in:
committed by
davidcallizaya
parent
d72b7aa561
commit
60efcf7ac7
@@ -21,11 +21,11 @@
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
/*
|
||||
* Authentication for Case Tracker
|
||||
*
|
||||
* @author Everth S. Berrios Morales <everth@colosa.com>
|
||||
*
|
||||
/*
|
||||
* Authentication for Case Tracker
|
||||
*
|
||||
* @author Everth S. Berrios Morales <everth@colosa.com>
|
||||
*
|
||||
*/
|
||||
|
||||
if (! isset( $_POST['form'] )) {
|
||||
@@ -44,16 +44,15 @@ try {
|
||||
$pin = trim( $frm['PIN'] );
|
||||
}
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$cases = new Cases();
|
||||
|
||||
$uid = $cases->verifyCaseTracker( $case, $pin );
|
||||
switch ($uid) {
|
||||
//The case doesn't exist
|
||||
//The case doesn't exist
|
||||
case - 1:
|
||||
G::SendTemporalMessage( 'ID_CASE_NOT_EXISTS', "error" );
|
||||
break;
|
||||
//The pin is invalid
|
||||
//The pin is invalid
|
||||
case - 2:
|
||||
G::SendTemporalMessage( 'ID_PIN_INVALID', "error" );
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user