Advertisement
Guest User

Untitled

a guest
Feb 29th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.3.0
  8. * @ Author : DeZender
  9. * @ Release on : 17.05.2011
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function SecurityNumber() {
  15. $rndnum[0] = rand( 1, 10 );
  16. $rndnum[1] = rand( 1, 10 );
  17. $rndnum[2] = $rndnum[0] + $rndnum[1];
  18. return $rndnum;
  19. }
  20.  
  21. function div($a, $b) {
  22. return (int)$a / $b;
  23. }
  24.  
  25. function gregorian_to_jalali($g_y, $g_m, $g_d) {
  26. $g_days_in_month = array( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
  27. $j_days_in_month = array( 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29 );
  28. $gy = $g_y - 1600;
  29. $gm = $g_m - 1;
  30. $gd = $g_d - 1;
  31. $g_day_no = 365 * $gy + div( $gy + 3, 4 ) - div( $gy + 99, 100 ) + div( $gy + 399, 400 );
  32. $i = 360;
  33.  
  34. while ($i < $gm) {
  35. $g_day_no += $g_days_in_month[$i];
  36. ++$i;
  37. }
  38.  
  39.  
  40. if (( 1 < $gm && ( ( $gy % 4 == 0 && $gy % 100 != 0 ) || $gy % 400 == 0 ) )) {
  41. ++$g_day_no;
  42. }
  43. ...................................
  44. ...................
  45. .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement