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
<!-- Update: You will no longer need this code, as Blogger do it now by default --> | |
<!-- This code will redirect any Blogger country code domain (ccTLDs) such as .blogspot.com.eg to the Blogger No Country Code Top Level Domaian TLD .blogspot.com --> | |
<!-- Just paste this code before <head> tag --> | |
<!-- Start of the code www.ahmedsheta.com --> | |
<script type='text/javascript'> | |
var blog = document.location.hostname;var slug = document.location.pathname;var ctld = blog.substr(blog.lastIndexOf("."));if (ctld != ".com") {var ncr = "http://" + blog.substr(0, blog.indexOf("."));ncr += ".blogspot.com/ncr" + slug;window.location.replace(ncr);}</script> | |
<!-- End of the code www.ahmedsheta.com --> |
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 | |
/** | |
* Generates human-readable string. | |
* | |
* @param string $length Desired length of random string. | |
* | |
* retuen string Random string. | |
*/ | |
function readable_random_string($length = 6) |