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['authentication'])){?> | |
| <script type="text/javascript"> | |
| <!-- | |
| window.location = "main.php" | |
| //--> | |
| </script> | |
| You're already logged in, redirecting you. | |
| <?php }else{ | |
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
| /*jslint continue:true*/ | |
| /** | |
| * Adapted from {@link http://www.bulgaria-web-developers.com/projects/javascript/serialize/} | |
| * Changes: | |
| * Ensures proper URL encoding of name as well as value | |
| * Preserves element order | |
| * XHTML and JSLint-friendly | |
| * Disallows disabled form elements and reset buttons as per HTML4 [successful controls]{@link http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2} | |
| * (as used in jQuery). Note: This does not serialize <object> | |
| * elements (even those without a declare attribute) or |
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
| #include "SkCanvas.h" | |
| #include "SkGraphics.h" | |
| #include "SkImageEncoder.h" | |
| #include "SkString.h" | |
| #include "SkTemplates.h" | |
| int main (int argc, char * const argv[]) { | |
| // | |
| SkAutoGraphics ag; |
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
| var express = require('express'), | |
| app = express.createServer(), | |
| sio = require('socket.io'), | |
| redis = require("redis"), | |
| client = redis.createClient(), | |
| io = null; | |
| /** | |
| * Used to parse cookie | |
| */ |