This file contains 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 Hossam Youssef <[email protected]> | |
* @copyright 2015 Hossam Youssef | |
* @license https://opensource.org/licenses/MIT | |
* | |
* MIT LICENSE | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the |
This file contains 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 Hossam Youssef <[email protected]> | |
* @copyright 2015 Hossam Youssef | |
* @license https://opensource.org/licenses/MIT | |
* | |
* MIT LICENSE | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the |
This file contains 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 Hossam Youssef <[email protected]> | |
* @copyright 2015 Hossam Youssef | |
* @license https://opensource.org/licenses/MIT | |
* | |
* MIT LICENSE | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the |
This file contains 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 Hossam Youssef <[email protected]> | |
* @copyright 2015 Hossam Youssef | |
* @license https://opensource.org/licenses/MIT | |
* | |
* MIT LICENSE | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the |
This file contains 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 Hossam Youssef <[email protected]> | |
* @copyright 2015 Hossam Youssef | |
* @license https://opensource.org/licenses/MIT | |
* | |
* MIT LICENSE | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the |
This file contains 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 Hossam Youssef <[email protected]> | |
* | |
* Retrieves the best guess of the client's actual IP address. | |
* Takes into account numerous HTTP proxy headers due to variations | |
* in how different ISPs handle IP addresses in headers between hops. | |
*/ | |
function get_ip_address() { | |
// check for shared internet/ISP IP |