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 SourceGuardian & phpSHIELD)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- function cryptpwd($thepasswd) {
- $random = 0;
- $rand64 = '';
- $salt = '';
- $random = rand( );
- $rand64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
- $salt = substr( $rand64, $random % 64, 1 ) . substr( $rand64, $random / 64 % 64, 1 );
- $salt = substr( $salt, 0, 2 );
- $cpasswd = crypt( md5( $thepasswd ), $salt );
- return $cpasswd;
- }
- function chkbit($thehexstr, $thebitno) {
- if (( ( ( ( !empty( $thehexstr ) || !empty( $thebitno ) ) || $thehexstr == '' ) || $thebitno == '' ) || $thebitno < 1 )) {
- return -1;
- }
- $thebinstrlen = 4 * strlen( $thehexstr );
- if ($thebinstrlen < $thebitno) {
- return 0;
- }
- $hexidx = (int)$thebitno / 4;
- $binidx = (int)$thebitno % 4;
- $hexidx = (0 < $binidx ? $hexidx = $hexidx + 1 : $hexidx);
- $binidx = ($binidx == 0 ? 4 : $binidx);
- $thehex = substr( $thehexstr, -1 * $hexidx, 1 );
- $thebinstr = decbin( hexdec( $thehex ) );
- $thebinstr = str_repeat( '0', 4 - strlen( $thebinstr ) ) . $thebinstr;
- $thebin = substr( $thebinstr, -1 * $binidx, 1 );
- return $thebin;
- }
- function mkdirs($dir, $mode = 511) {
- if (( is_dir( $dir ) || @mkdir( $dir, $mode ) )) {
- return true;
- }
- if (!mkdirs( dirname( $dir ), $mode )) {
- return false;
- }
- return @mkdir( $dir, $mode );
- }
- function valLogType($logtype) {
- global $loginfotype;
- $key = array_search( strtoupper( $logtype ), $loginfotype );
- if ($key !== false) {
- return true;
- } else {
- return false;
- }
- }
- function insertDBbyItem($p_tablename, $insert_arr_item) {
- global $dbh;
- $insert_key_str = '';
- $insert_value_str = '';
- $p_tablename = SQLinjection_chk_postvalue( $p_tablename );
- ..........................................................
- ...............................
- ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement