Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for SourceGuardian & phpSHIELD)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function cryptpwd($thepasswd) {
  15. $random = 0;
  16. $rand64 = '';
  17. $salt = '';
  18. $random = rand( );
  19. $rand64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
  20. $salt = substr( $rand64, $random % 64, 1 ) . substr( $rand64, $random / 64 % 64, 1 );
  21. $salt = substr( $salt, 0, 2 );
  22. $cpasswd = crypt( md5( $thepasswd ), $salt );
  23. return $cpasswd;
  24. }
  25.  
  26. function chkbit($thehexstr, $thebitno) {
  27. if (( ( ( ( !empty( $thehexstr ) || !empty( $thebitno ) ) || $thehexstr == '' ) || $thebitno == '' ) || $thebitno < 1 )) {
  28. return -1;
  29. }
  30.  
  31. $thebinstrlen = 4 * strlen( $thehexstr );
  32.  
  33. if ($thebinstrlen < $thebitno) {
  34. return 0;
  35. }
  36.  
  37. $hexidx = (int)$thebitno / 4;
  38. $binidx = (int)$thebitno % 4;
  39. $hexidx = (0 < $binidx ? $hexidx = $hexidx + 1 : $hexidx);
  40. $binidx = ($binidx == 0 ? 4 : $binidx);
  41. $thehex = substr( $thehexstr, -1 * $hexidx, 1 );
  42. $thebinstr = decbin( hexdec( $thehex ) );
  43. $thebinstr = str_repeat( '0', 4 - strlen( $thebinstr ) ) . $thebinstr;
  44. $thebin = substr( $thebinstr, -1 * $binidx, 1 );
  45. return $thebin;
  46. }
  47.  
  48. function mkdirs($dir, $mode = 511) {
  49. if (( is_dir( $dir ) || @mkdir( $dir, $mode ) )) {
  50. return true;
  51. }
  52.  
  53.  
  54. if (!mkdirs( dirname( $dir ), $mode )) {
  55. return false;
  56. }
  57.  
  58. return @mkdir( $dir, $mode );
  59. }
  60.  
  61. function valLogType($logtype) {
  62. global $loginfotype;
  63.  
  64. $key = array_search( strtoupper( $logtype ), $loginfotype );
  65.  
  66. if ($key !== false) {
  67. return true;
  68. } else {
  69. return false;
  70. }
  71.  
  72. }
  73.  
  74. function insertDBbyItem($p_tablename, $insert_arr_item) {
  75. global $dbh;
  76.  
  77. $insert_key_str = '';
  78. $insert_value_str = '';
  79. $p_tablename = SQLinjection_chk_postvalue( $p_tablename );
  80. ..........................................................
  81. ...............................
  82. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement