This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LoginViewController.m | |
// Hiskor | |
// | |
// Created by Anthony Vella on 1/29/13. | |
// Copyright (c) 2013 ITP. All rights reserved. | |
// | |
#import "LoginViewController.h" | |
#import "AFHTTPClient.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(isset($_SESSION['ticketCode'])) : ?> | |
<p><?php echo $_SESSION['ticketCode']; ?></p> | |
<p><?php echo $qr->draw(); unset($_SESSION['ticketCode']); ?></p> | |
<?php endif; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
if(!isset($_SESSION['loggedIn']) || $_SESSION['loggedIn']!=1) | |
{ | |
header("Location: login.php"); | |
exit(); | |
} | |
$included = 'true'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Warning: Cannot modify header information - headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/Hiskor_Admin/addTicket.php:32) in /Applications/XAMPP/xamppfiles/htdocs/Hiskor_Admin/BarcodeQR.php on line 86 | |
�PNG IHDR���c��bKGD��������IDATx���A��0@Ѥ����.�C:�m���mg�}Y������zP���`��y�I�'a��y�I�'a��y�I�'a��y�I�'a��y�I�'a����x>��o��6�m�j��C]g��A�0O�< �$̛0�٘��dZ1�0n���b�I�'a��y��3�~�O[����F?c�I�'a��y˧3������?�i1 �$̓0O¼�tf�&�a�g�I�'a��y˧3W-|��_F��nK9Fa��y�I�7:s�:��k�����0O�< �$̛0���j�w�컹�0O�< �$�;��37��r��V+�y�I�'a�s��v��ͺ3D��� ������H�'a���M�~��y9ҡϽ|g�Q�'a��y�MX�9�y���L��L��Fa��y�I���ʦ���y�V�ϝ����bvc�I�'a��yg��Lt�F��ޘxT_1 �$̓0O¼�[��9�ug�~�(̓0O�< �>���A9���c6��< �$̓0/�D���j���M�!a��y��A9��1���lX�� �$̓0/<�YwϚ�����0O�< �>����F.G��R� �0O�< �$��_�l:�r$W6q��y�I����y�I�'a��y�I�'a��y�I�'a��y�I�'a��y�I�'a��y����$.��[IEND�B`�1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HomeTableViewController | |
- (IBAction)btnLogout:(id)sender { | |
self.animateBOOL = YES; | |
[Lockbox setString:@"FALSE" forKey:kLoggedinStatusKeyString]; | |
[(TabBarViewController *)[self tabBarController] loginCheck:animateBOOL]; | |
} | |
// TabBarViewController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction)btnLogout:(id)sender { | |
TabBarViewController *tabBarViewControllerObj = [[TabBarViewController alloc] init]; | |
[Lockbox setString:@"FALSE" forKey:kLoggedinStatusKeyString]; | |
[tabBarViewControllerObj loginCheck]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"sql_error":"SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''username', 'password', 'email') VALUES ('test', 'test', 'test')' at line 1"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function login() | |
{ | |
global $db; | |
// remove the second argument or pass false if you want to use an object | |
//$user_info = json_decode($HTTP_RAW_POST_DATA, false); | |
// Check for required parameters | |
if (isset($_POST['username']) && isset($_POST['password'])) | |
{ | |
//Put parameters into local variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function register() | |
{ | |
global $db; | |
if (isset($_POST['username']) && isset($_POST['passwordMD5']) && isset($_POST['email'])) | |
{ | |
$username = mysql_real_escape_string($_POST['username']); | |
$passwordMD5 = mysql_real_escape_string($_POST['passwordMD5']); | |
$email = mysql_real_escape_string($_POST['email']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function login() | |
{ | |
global $HTTP_RAW_POST_DATA, $db; | |
// remove the second argument or pass false if you want to use an object | |
//$user_info = json_decode($HTTP_RAW_POST_DATA, false); | |
// Check for required parameters | |
if (isset($_POST['username']) && isset($_POST['passwordMD5'])) | |
{ | |
//Put parameters into local variables |