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
| #!/bin/sh | |
| echo " | |
| Cool, let's start. | |
| " | |
| src=$PWD |
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 curPageURL() { | |
| $pageURL = ‘http’; | |
| if ($_SERVER["HTTPS"] == “on”) {$pageURL .= “s”;} | |
| $pageURL .= “://”; | |
| if ($_SERVER["SERVER_PORT"] != “80″) { | |
| $pageURL .= $_SERVER["SERVER_NAME"].”:”.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; | |
| } else { | |
| $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; | |
| } | |
| return $pageURL; |
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 | |
| ob_start();/* header buffer */ | |
| session_start(); | |
| ### Make cookies if they don't exist ####################### | |
| if(!$_SESSION['exists']){ | |
| $_SESSION['exists']= 'off'; | |
| setcookie("exits", "data"); | |
| } | |
| ### Test for $_SESSION cookies being enabled ############## |