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 | |
| require_once('HttpResponse.php'); | |
| class HttpRequest { | |
| /** | |
| * The url which will be requested | |
| * @var string | |
| */ |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <div id="macro-1"> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | |
| tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | |
| {{extra_contents}} |
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 | |
| // uncomment the following two lines, if you don't use composer | |
| require 'vendor/handlebars.php-0.10.4/src/Handlebars/Autoloader.php'; | |
| // require 'vendor/handlebars.php-master/src/Handlebars/Autoloader.php'; | |
| Handlebars\Autoloader::register(); | |
| use Handlebars\Handlebars; |
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 Utils; | |
| use Config; | |
| class SecurityUtils { | |
| /** | |
| * @param string $string: string to encrypt or decrypt |
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 | |
| class Hasher | |
| { | |
| private static $_pepper = 'Bh7ly%NX*3OY12%zd50amb$bizad%pxln*3a5q'; | |
| /** | |
| * @param plain pass | string generated from bcrypt_salt() method | |
| * @return string | |
| */ |
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
| <script> | |
| try { | |
| var source = new EventSource('/stream'); | |
| source.addEventListener('tick', function ( evt ) { | |
| console.log(evt.data); | |
| }); | |
| } | |
| catch ( e ) { |
NewerOlder