$string = md5(time());
Instead of md5, you can use SHA1 or any other encryption method in PHP OR a mix of them.
Eg :
$string = sha1(md5(time()));
$string = md5(time());
$string = sha1(md5(time()));
function days_in_month($month, $year) {
return $month == 2 ?
($year % 4 ? 28 : ($year % 100 ? 29 : ($year % 400 ? 28 : 29))) :
(($month - 1) % 7 % 2 ? 30 : 31);
}
echo days_in_month(YOUR_MONTH,YOUR_YEAR);
function days_in_month($month,$year) {
return date('t',mktime(0,0,0,$month,1,$year));
}
echo days_in_month(YOUR_MONTH,YOUR_YEAR);
function SafSendMailV2(
$MYRECIPIENTE_EMAIL,
$MYRECIPIENTE_NAME,
$MYFROM_NAME,
$MYFROM_EMAIL,
$MYSUBJECT,
$MYBODY,
$MYHTML,
$REMOTE_ADDR,
$PHP_SELF){
$MYRECIPIENTE_EMAIL = "$MYRECIPIENTE_EMAIL";
if ($MYHTML==true) {
$MYHEADERS = "From: $MYFROM_NAME <$MYFROM_EMAIL>\r\n";
$MYHEADERS .= "MIME-Version: 1.0\r\n";
$MYHEADERS .= "Content-Type: text/html; charset=windows-1256\r\n";
$MYHEADERS .= "Content-Transfer-Encoding: base64\r\n";
$MYHEADERS .= "From-IP: $REMOTE_ADDR\r\n";
$MYHEADERS .= "From-File: $PHP_SELF\r\n";
$MYHEADERS .= chunk_split(base64_encode("$MYBODY"));
mail("$MYRECIPIENTE_EMAIL", "$MYSUBJECT", "", $MYHEADERS);
}else{
$MYHEADERS = "From: $MYFROM_NAME <$MYFROM_EMAIL>\r\n";
$MYHEADERS .= "From-IP: $REMOTE_ADDR\r\n";
$MYHEADERS .= "From-File: $PHP_SELF";
mail("$MYRECIPIENTE_EMAIL", "$MYSUBJECT", "$MYBODY", $MYHEADERS);
}
}
SafSendMailV2("Recipiente@domain.com","Recipiente Name","Your Name","Your Email","Subject",$MYBODY,true,$REMOTE_ADDR,$PHP_SELF)
$(document).ready(function(){
$('#your-twitter-div-id').jTweetsAnywhere({
username: 'your-twitter-username',
count: 5, //how many tweets you wants to show
showTweetFeed: {
/*showProfileImages: true,
showUserScreenNames: true,
showUserFullNames: true,*/
showActionReply: true,
showActionRetweet: true,
showActionFavorite: true
},
});
});
You can customize the CSS file as you like. Simple, isn't it? :)
<script>
var auto_refresh = setInterval(
function(){
$('#autorefresh').fadeOut('slow').load('refresh.php').fadeIn("slow");
}, 20000);
</script>
<div id="autorefresh">Hello</div>
function GenerateUUID() {
return sprintf('%04x%04x-%04x-%04x-%04x%04x%04x%04x',
// 32 bits for "time_low"
mt_rand(0, 0xffff), mt_rand(0, 0xffff),
// 16 bits for "time_mid"
mt_rand(0, 0xffff),
// 16 bits for "time_hi_and_version",
// four most significant bits holds version number 4
mt_rand(0, 0x0fff) | 0x4000,
// 16 bits, 8 bits for "clk_seq_hi_res",
// 8 bits for "clk_seq_low",
// two most significant bits holds zero and
// one for variant DCE1.1 mt_rand(0, 0x3fff) | 0x8000, // 48 bits for "node" mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff) ); }
<?php //Pass 2007-01-22 as date and output as January 22, 2007 function SafDate1V2($date){ list($y,$m,$d) = explode("-",$date); $mycooldate = date("F d, Y",mktime(0, 0, 0, $m, $d, $y)); return $mycooldate; } //Pass 2007-01-22 as date and output as Jan 22, 2007 function SafDate2V2($date){ list($y,$m,$d) = explode("-",$date); $mycooldate = date("M d, Y",mktime(0, 0, 0, $m, $d, $y)); return $mycooldate; } //Pass 2007-01-22 as date and output as Jan 22, 07 function SafDate3V2($date){ list($y,$m,$d) = explode("-",$date); $mycooldate = date("M d, y",mktime(0, 0, 0, $m, $d, $y)); return $mycooldate; } //Pass 2007-01-22 as date and output as Sunday Jan 22, 2007 function SafDate4V2($date){ list($y,$m,$d) = explode("-",$date); $mycooldate = date("l M d, Y",mktime(0, 0, 0, $m, $d, $y)); return $mycooldate; } ?>
<?php //Pass 2007-01-22 as date and output as Sun, Jan 22, 2007 function SafDate5V2($date){ list($y,$m,$d) = explode("-",$date); $mycooldate = @date("D, M d, Y",mktime(0, 0, 0, $m, $d, $y)); return $mycooldate; } ?>