Once again, I hope you'll help me decrypt
File 19KB, code can not be copied up, give the address of Baidu network disk:
http://pan.baidu.com/share/link?shareid=3742325242&uk=1711309333 Thank you!!!
Reply to discussion (solution)
?>
'; foreach ($CATEGORY as $k = + $v) {echo '' . $v [' CatName ']. '';} Echo '';} Else{if (@$_post[' auth ']!= $auth &&@$_get[' auth ']!= $auth && $verify) exit (' No authentication '); $post = Array (); GET_MAGIC_QUOTES_GPC () or $_post = Array_map (' stripslashes ', $_post); if ($_post) {$post = $_post;} ElseIf ($_get) {$post = $_get;} Else{exit (' No data received ');} Data formatting starts if ($moduleid = = ' 5 ') {$post [' Thumb ']=relapic ($post [' Thumb '], ' thumb ');} else{$post [' Thumb ']=relapic ($post [' thumb ']);} if ($moduleid = = ' 4 ') {write_error (' Start matching member: '. $post [' username ']); Userreg ($post);} if ($moduleid = = ' 6 ') {$post [' tag ']= $post [' Producttag ']; Write_error (' Start matching member: '. $post [' username ']); Userreg ($post);} if ($moduleid = = ' 7 ') {$post [' tag ']= $post [' Producttag '];} if ($moduleid = = ') {write_error (' Start matching member: '. $post [' username ']); Userreg ($post);} if ($moduleid = = ' + ') {write_error (' Start matching member: '. $post [' username ']); Userreg ($post);} if ($moduleid = = ' n ') {$post [' minamount ']= $post [' Groupminamount ']; $post [' Amount ']= $post [' Groupamount ']; $post [' Marketprice ']= $post [' Price ']*1.1; $post [' Areaid ']= ';;} if ($moduleid = = ') {write_error (' Start matching member: '. $post [' username ']); userReg ($post);} $post [' Addtime ']=str_replace (' year ', '-', Str_replace (' Month ', '-', Str_replace (' Day ', ' ', $post [' Addtime '])); if (!is_numeric ($post [' typeid ']) | | $post [' typeid ']>5) $post [' typeid ']= "0"; if (!empty ($post [' Areaid '])) $post [' Areaid ']=getareaid ($post [' Areaid ']) if ($post [' Gender ']== ' Mr. ') $post [' Gender ']= ' 1 '; if ($post [' Gender ']== ' lady ') $post [' Gender ']= ' 2 '; if (empty ($post [' Email ']) $post [' email '] = $post [' username ']. ' @ '. $emaildomain, if (Isset ($post [' username ')) $post [' username ']= $prefix. Trim ($post [' username ']). $suffix; if (isset ($post [' username '])) $_username = $post [' username '];if (in_array ($module, Array (' article ', ' info ', ' sell '))) {$table = $DT _pre. $module. '_' . $moduleid, $table _data = $DT _pre. $module. ' _data_ '. $moduleid, $table _search = $DT _pre. $module. ' _search_ '. $moduleid;} else{$table = $DT _pre. $module $table _data = $DT _pre. $module. ' _data ';} if ($moduleid ==4| | $moduleid ==2) {if (Userreg ($post)) {exit (' publish successful ');} Else{exit (' Registered member failed ');}} ElseIf (Is_file ($class)) {include_once dt_root. '/incLude/post.func.php '; $cominc =dt_root. '/module/'. $module. '/common.inc.php ', if (Is_file ($cominc)) include_once $cominc; include_once $class; $do = new $module ($moduleid); @ $do- > table_search = $table _search;if (isset ($post [' Islink ']) unset ($post [' Islink ']), if ($spider _status) $post [' Status '] = $spider _status;if ($module = = ' article ') $post [' save_remotepic '] = $MOD [' Save_remotepic '];if ($do, pass ($ Post) {if ($moduleid ==5) {write_error (' Start matching member: '. $post [' username ']); Userreg ($post);} Write_error ("Data is verified"), if ($id = $do, add ($post)) {Write_error (' Publish succeeded, ID: '. $id); if ($moduleid = = ' 5 ') {Write_error (' Start matching member: '. $post [' username ']); Userreg ($post);} ElseIf ($moduleid = = ') {write_error (' start to release answer '), $table _answer = $DT _pre. ' Know_answer '; $addtime 1=strtotime ($post [' Addtime1 ']); $addtime 2=strtotime ($post [' addtime2 ']); if (! $db->query ("INSERT into {$table _answer} (Qid,linkurl, Content,username,expert,addtime,ip,status,hidden) VALUES (' $id ', ' ', ' $post [Content1] ', ' $post [username1] ', ' 0 ', ' $ Addtime1 ', ' $DT _ip ', ' $spideR_status ', ' $post [Hidden1] ')) {Write_error ($db->error ());} if (! $db->query ("INSERT into {$table _answer} (Qid,linkurl,content,username,expert,addtime,ip,status,hidden) VALUES (' $id ', ' ', ' $post [Content2] ', ' $post [username2] ', ' 0 ', ' $addtime 2 ', ' $DT _ip ', ' $spider _status ', ' 0 ') ') {Write_ Error ($db->error ());} $aid = $db->insert_id (); if (! $db->query ("UPDATE {$table} SET process= ' 3 ', updatetime= ' $addtime 2 ', aid= ' $aid ' WHERE itemid= ' $id ')) {Write_error ($db->error ());}} Exit (' publish Success ');} Else{echo $do-errmsg; Write_error (' Publish failed: '. $do-ErrMsg); exit (' Publish failed ');}} Else{write_error (' Publish failed: '. $do-ErrMsg); exit (' data validation does not pass ');}} Else{write_error (' Publish failed: Model does not support inbound '); exit (' model does not support inbound ');}}} Else{write_error (' Publish failed: Model does not exist '); exit (' model does not exist ');} function Userreg ($post) {global $db, $DT _pre, $DT _time, $emaildomain, $randskin; $table _member = $DT _pre. ' member '; $table _company = $DT _pre. ' Company '; $table _company_data = $DT _pre. ' Company_data '; $username = $post [' username ']; $getone = $db- >get_one ("select UserID from {$table _company}WHERE username= ' $username '), if (Empty ($getone)) {Write_error (' member not present, start registration: '. $post [' username ']); $post [' Regid ']= ' 6 ' ; $post [' groupid '] = ' 6 '; $post [' password '] = ' Fzzjia '. rand (123456,999999); $post [' password '] = MD5 (MD5 ($post [' Password ']); $post [' cpassword '] = $post [' password ']; $post [' type '] = ' Enterprise unit '; $post [' catid ']= ', '. $post [' Comcatid ']. ', '; $post [' sound '] = ' 0 '; $post [' edittime '] = ' 1 '; $post [' Passport ']= $post [' username ']; $post [' linkurl '] = Userurl ($post [ ' username '), if ($post [' catid ']) {$catids = explode (', ', substr ($post [' catid '], 1,-1)); $cids = "; foreach ($catids as $ CATID) {$C = Get_cat ($catid), if ($C) {$catid = $C [' ParentID ']? $C [' Arrparentid ']. ', '. $catid: $catid; $cids. = $catid. ', ';} } $cids = Array_unique (Explode (', ', substr (' Str_replace (', 0, ', ', ', ', ', '. $cids), 1,-1))); $post [' catids '] = ', '. Implode (', ', $cids). ', ';} $post [' Thumb ']=relapic ($post [' comthumb ']); Write_error ("Company picture". $post [' Comthumb ']. ' Localization '. $post [' thumb ']), if (!isset ($post [' Telephone '])) {$post [' telephone ']= ' 131 '. Rand (' 00000000 ', ' 99999999 ');} if (!isset ($post [' Regunit '])) {$post [' regunit ']= ' RMB ';} if ($randskin) {$skintable = $DT _pre. ' style '; $s = $db->get_one ("Select skin from ' $skintable ' ORDER by rand ()"); $post [' Skin ']= $s [' skin ']; $post [' Template ']= ' homepage ';} $mfs = Readcache ($table _member), $cfs = Readcache ($table _company), $sqlk = $sqlv = "; foreach ($post as $k + = $v) {if (!in_a Rray ($k, $mfs)) continue; $sqlk. = ', '. $k; $sqlv. = ", ' $v '";} if (! $sqlk) {write_error (' Invalid data: ' $do-errmsg); exit (' Invalid data ');} $sqlk = substr ($sqlk, 1); $sqlv = substr ($SQLV, 1); $db-& Gt;query ("INSERT into {$table _member} ($sqlk) VALUES ($SQLV)") $userid = $db->insert_id (); $post [' userid '] = $userid; $sqlk = $SQLV = ";" If (!isset ($post [' regyear])) $post [' regyear '] = "200*"; $post [' regtime '] = $DT _time;foreach ($post as $k = = $v) {if (!in_array ($k, $CFS)) continue; $sqlk. = ', '. $k; $sqlv. = ", ' $v '";} $sqlk = substr ($sqlk, 1), $sqlv = substr ($SQLV, 1), $db->query ("INSERT into {$table _company} ($sqlk) VALUES ($SQLV)"); $c ontent = $post [' introduce ']; $content_table = content_table (4, $userid, Is_file (Dt_cache. ') /4.part '), $table _company_data), $db->query ("INSERT into {$content _table} (userid,content) VALUES (' $userid ', ' $ Content ') ");} Else{write_error (' member: '. $post [' username ']. " exist, return directly ");} return $post [' username '];} function Readcache ($table) {global $db; $cfs = Cache_read ($table. '. php '), if (! $cfs) {$cfs = Array (), $result = $db, query ("SHOW COLUMNS from ' $table '"), while ($r = $db, Fetch_array ( $result) {$cfs [] = $r [' Field '];} Cache_write ($table. '. php ', $CFS);} return $CFS;} function Relapic ($remote, $thumbdo = ') {include_once dt_root. ' /include/remote.class.php '; include_once dt_root. ' /include/image.class.php '; $newfile = '; if (!empty ($remote)) {Global $DT, $DT _time, $width, $height; $uploaddir = ' file/ upload/'. Timetodate ($DT _time, $DT [' Uploaddir ']). ' /'; $doremote = new Remote ($remote, $uploaddir), if ($doremote->save ()) {$saveto = $doremote->saveto; $image = new Image (Dt_root. ' /'. $saveto); if ($DT [' water_type '] = = 2) {$image->waterimage ();} elseif ($DT [' water_type '] = = 1) {$image->watertext ();} $info = getimagesize (dt_root. ') /'. $doremote->saveto); $img _w = $info [0]; $img _h = $info [1];if ($img _w > $DT [' max_image ']) {$img _h = intval ($DT [' Max _image ']* $img _h/$img _w); $img _w = $DT [' max_image ']; $image->thumb ($img _w, $img _h);} if ($thumbdo = = ' thumb ') {if (!isset ($width)) $width = ' n ', if (!isset ($height)) $height = ' n '; $thumb = $saveto. '. Thumb. '. $doremote->ext;file_copy (dt_root. ' /'. $saveto, Dt_root. ' /'. $thumb); $image = new Image (Dt_root. /'. $thumb); $image->thumb ($width, $height, $DT [' thumb_album ']); $middle = $saveto. Middle. '. $doremote->ext;file_copy (dt_root. ' /'. $saveto, Dt_root. ' /'. $middle); $image = new Image (Dt_root. /'. $middle); $image->thumb ($DT [' Middle_w '], $DT [' Middle_h '], $DT [' thumb_album ']); $newfile = Dt_path. $thumb;} else{$newfile = Dt_path. $saveto;} Write_error ("Remote Picture". $remote. " Localization succeeded. " Dt_path. $saveto); unset ($doremote); unset ($image); return $newfile;} Else{write_error ("Remote image localization failed"); return $remote;}} Else{return ';}} functionGetareaid ($areaname) {if ($areaname! = ' && $areaname! = ' [DB: Region] ') {$area = Cache_read (' area.php '); $areaid = ' 0 '; foreach ($area as $value) {if (Array_search ($areaname, $value)) {$areaid = $value [' Areaid '];break;}} Write_error ($areaname. ' Match areaid: ' $areaid); return $areaid;} Else{return ' 0 ';}} function Write_error ($msg) {Global $logfile, $debug, if ($debug) {$msg =str_replace ("\ n", "", $msg); $Err = $msg. CHR, @Error_log ($ERR, 3,dt_root. /'. $logfile);}} @ob_flush (); @flush;? >
First row of the first?> deleted
It's a real cow upstairs, man.
First row of the first?> deleted
What is the method used?