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 | |
App::uses('AppController', 'Controller'); | |
class HomeController extends AppController { | |
public function index() { | |
// Load Author model | |
$this->loadModel('Author'); | |
// Load Authors controller |
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(); | |
define('WWW_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR); | |
require_once WWW_ROOT . 'includes' . DIRECTORY_SEPARATOR . 'functions.php'; | |
require_once WWW_ROOT . 'classes' . DIRECTORY_SEPARATOR . 'Config.php'; | |
require_once(WWW_ROOT . 'dao' . DIRECTORY_SEPARATOR . 'UserDAO.php'); | |
require_once(WWW_ROOT . 'dao' . DIRECTORY_SEPARATOR . 'EventDAO.php'); |
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
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app /Applications/iPhone\ Simulator.app |
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
- (void)enumerateFonts { | |
NSLog(@"[AppDelegate.enumerateFonts] Start enumerating fonts"); | |
for(NSString *fontFamilyStrings in [UIFont familyNames]) { | |
NSLog(@"[AppDelegate.enumerateFonts] Font family: %@", fontFamilyStrings); | |
for(NSString *fontStrings in [UIFont fontNamesForFamilyName:fontFamilyStrings]) { | |
NSLog(@"[AppDelegate.enumerateFonts] Font: %@", fontStrings); | |
} | |
} | |
NSLog(@"[AppDelegate.enumerateFonts] End enumerating fonts"); | |
} |
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
AddType application/vnd.ms-fontobject .eot | |
AddType font/ttf .ttf | |
AddType font/otf .otf | |
AddType application/x-font-woff .woff |
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
<meta name="viewport" content="width=320.1"> <!-- // Hack for full screen web app on iPhone 5, this is bugged at this time --> |
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 | |
namespace Travellar\Service; | |
use PDO; | |
use PDOException; | |
use Exception; | |
class ConnectionService { | |
public static function getInstance() { |
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 | |
/** | |
* @author: WouterDS | |
* @created: 01/01/13, 22:28 | |
* @filename: CodeGenerator.php | |
*/ | |
class CodeGenerator { | |
public static function randomCode($length = 4, $codeset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") { | |
$converted = ''; |
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() { | |
console.log("Start injection script!"); | |
function breach() { | |
$(document).ready(function () { | |
console.log("Trying to inject swf.."); | |
$("body,html").css("width: 100%; height: 100%; min-height: 100%; display: block; position: relative; background: #000;"); | |
var e = '<html><body><div style="z-index:100;top: 0;left: 0;position:absolute;width: 100%;height: 100%;min-height: 100%;display: block;"><object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="http://shots.wouterds.be/party_hard-5mvSyjMMS5.swf"/><param name="wmode" value="transparent"/><object type="application/x-shockwave-flash" data="http://student.howest.be/joachim.van.de.voo1/partyhard/swf/party_hard.swf" width="100%" height="100%"><param name="wmode" value="transparent"/><div><h1>Alternative content</h1><p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_but |