Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.3.0
- * @ Author : DeZender
- * @ Release on : 17.05.2011
- * @ Official site : http://DeZender.Net
- *
- */
- function SecurityNumber() {
- $rndnum[0] = rand( 1, 10 );
- $rndnum[1] = rand( 1, 10 );
- $rndnum[2] = $rndnum[0] + $rndnum[1];
- return $rndnum;
- }
- function div($a, $b) {
- return (int)$a / $b;
- }
- function gregorian_to_jalali($g_y, $g_m, $g_d) {
- $g_days_in_month = array( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
- $j_days_in_month = array( 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29 );
- $gy = $g_y - 1600;
- $gm = $g_m - 1;
- $gd = $g_d - 1;
- $g_day_no = 365 * $gy + div( $gy + 3, 4 ) - div( $gy + 99, 100 ) + div( $gy + 399, 400 );
- $i = 360;
- while ($i < $gm) {
- $g_day_no += $g_days_in_month[$i];
- ++$i;
- }
- if (( 1 < $gm && ( ( $gy % 4 == 0 && $gy % 100 != 0 ) || $gy % 400 == 0 ) )) {
- ++$g_day_no;
- }
- ...................................
- ...................
- .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement