µ½PPRPPËÑË÷Ê×Ò³

Äú²éѯµÄ¹Ø¼ü´Ê½öÔÚÍøÒ³±êÌâ»òÖ¸Ïò´ËÍøÒ³µÄÁ´½ÓÖгöÏÖ¡£

(PPRPPËÑË÷ºÍÍøÒ³http://www.pprpp.com/143µÄ×÷ÕßÎ޹أ¬²»¶ÔÆäÄÚÈݸºÔð¡£PPRPPËÑË÷¿ìÕÕ½÷ΪÍøÂç¹ÊÕÏʱ֮Ë÷Òý£¬²»´ú±í±»ËÑË÷ÍøÕ¾µÄ¼´Ê±Ò³Ãæ¡£)


UTF-8 ÍøÕ¾±»¹ÒÂíjsÎļþÌøת£¬·ÖÏíÒ»¸öÔÚ·þÎñÆ÷ÉÏphpÅúÁ¿Ìæ»»ÎļþÄÚÈÝ´úÂë | PPRPP

ÍøÕ¾±»¹ÒÂíjsÎļþÌøת£¬·ÖÏíÒ»¸öÔÚ·þÎñÆ÷ÉÏphpÅúÁ¿Ìæ»»ÎļþÄÚÈÝ´úÂë

»¥ÁªÍø9¸öÔÂÇ°·¢²¼ ɨ½ÖÈË
166 0

Õâ¸öÒ²ÊÇ×Ô¼ºÓöµ½ÁË£¬ÍøÉÏÏÂÔØÁËÒ»¸öÍøÕ¾³ÌÐò£¬°²×°Íêºó·¢ÏÖÒ»Õû¸ö·þÎñÆ÷ÉϵÄËùÓÐÍøÕ¾µÄjsºÍindex.php¶¼±»¹ÒÂíÁË£¬ÊÖ»ú´ò¿ª¼¸ÃëÖÓºó»áÌøתµ½»ÆÉ«ÍøÕ¾£¬ËùÓÐjsÎļþ¶¼ÊÇÍ·²¿±»¼ÓÁË´úÂ룬×Ô¼ºÓöµ½ÁË£¬¾Í°Ñ´úÂë·ÖÏí³öÀ´¡£

Õâ¸ö·½·¨ÎÒÊǾõµÃ±Ènode.jsÐ޸ĸü¼òµ¥·½±ãµÄ£¬±Ï¾¹ÊÇ¿ÉÊÓ»¯µÄ£¬²»ÐèÒªÄãÈ¥µ÷ÊÔ´úÂë¡£

Ê×ÏÈ´´½¨Ò»¸öphpÎļþ£¬Ãû×ÖËæ±ã£¬²»ÒªºÍÍøÕ¾ÄÚÎļþ³åÍ»¼´¿É£¬·ÅÔÚÍøÕ¾¸ùĿ¼¡£

°ÑÒ»ÏÂÄÚÈݸ´ÖƵ½Õâ¸öphpÎļþÖб£´æ¡££¨Ö»Ö§³ÖUTF-8£¬GBK»òÕßÆäËûµÄ×Ô¼ºÊÖ¶¯¸Ä¸Ä£©

# functionality: ±¾³ÌÐò¿ÉÒÔɨÃèÖ¸¶¨Ä¿Â¼µÄËùÓÐÎļþ£¬½øÐÐÄÚÈÝÌæ»»¡£¿ÉÓÃÓÚ±»ÅúÁ¿¹ÒÂíµÄɾ³ýÒÔ¼°ÅúÁ¿¸üÐÂÒ³ÃæijЩÄÚÈÝ¡£
# ±¾³ÌÐòÊÊÓÃÓÚ¶ÔUTF-8µÄÒ³Ãæ½øÐÐÐ޸ġ£
set_time_limit(3600); //½Å±¾ÔËÐÐʱ¼ä
?>
if($_POST[‘Submit’]==’¿ªÊ¼Ö´ÐвÙ×÷’){
$dir = $_POST[‘searchpath’];
$shortname = $_POST[‘shortname’];
$isall = $_POST[‘isall’];
$isreg = $_POST[‘isreg’];
if (!get_magic_quotes_gpc()) {
$sstr = $_POST[‘sstr’];
$rpstr = $_POST[‘rpstr’];
} else {
$sstr = stripslashes($_POST[‘sstr’]);
$rpstr = stripslashes($_POST[‘rpstr’]);
}
//·ÖÎöshortname
$arrext = explode (“|”,$shortname);
if (!is_dir($dir)) return;
if ($sstr == ”) return;
//°ÑĩβµÄ/È¥µô
if(substr($dir,-1)==’/’) $dir = substr($dir,0,strrpos($dir,”/”));
//ÂÞÁÐËùÓÐĿ¼
if ($isall == 1){
hx_dirtree($dir);
}else{
hx_dealdir($dir);
}
exit();
}
function hx_dirtree($path=”.”){
global $sstr,$rpstr,$isreg,$arrext;
$d = dir($path);
while(false !== ($v = $d->read())) {
if($v == “.” || $v == “..”) continue;
$file = $d->path.”/”.$v;
if(is_dir($file)) {
echo “

$v

”; hx_dirtree($file);
}else{
$ext=substr(strrchr($v,”.”), 1);
if( in_array($ext , $arrext) ){
echo “
  • $file “;
    $body = file_get_contents($file);
    if($isreg == 1){
    $body2 = preg_replace($sstr, $rpstr, $body);
    }else{
    $body2 = str_replace($sstr, $rpstr, $body);
    }
    if($body != $body2 && $body2 != ”){
    tofile($file,$body2);
    echo ‘ OK’;
    }else{
    echo ‘ NO’;
    }
    echo ‘
  • ’;
    }
    }
    }
    $d->close();
    }
    function hx_dealdir($dir){
    global $sstr,$rpstr,$isreg,$arrext;
    if ($dh = opendir($dir)) {
    while (false !== ($file = readdir($dh))) {
    if(filetype($dir.’/’.$file)==’file’){
    $ext=substr(strrchr($file,”.”), 1);
    if( in_array($ext , $arrext) ){
    echo “
  • $file “;
    $body = file_get_contents($dir.’/’.$file);
    if($isreg == 1){
    $body2 = preg_replace($sstr, $rpstr, $body);
    }else{
    $body2 = str_replace($sstr, $rpstr, $body);
    }
    if($body != $body2 && $body2 != ”){
    tofile($dir.’/’.$file,$body2);
    echo ‘ OK’;
    }else{
    echo ‘ NO’;
    }
    echo ‘
  • ’;
    }
    }
    }
    closedir($dh);
    }
    }
    //°ÑÉú³ÉÎļþµÄ¹ý³Ìд³öº¯Êý
    function tofile($file_name,$file_content){
    if (is_file ($file_name)){
    @unlink ($file_name);
    }
    $handle = fopen ($file_name,”w”);
    if (!is_writable ($file_name)){
    return false;
    }
    if (!fwrite ($handle,$file_content)){
    return false;
    }
    fclose ($handle); //¹Ø±ÕÖ¸Õë
    return $file_name;
    }
    ?>
    “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>



    ÅúÁ¿Ìæ»»³ÌÐò|ľÂíÅúÁ¿É¾³ý




    ÅúÁ¿Ìæ»»³ÌÐò(UTF-8°æ)


    ±¾³ÌÐò¿ÉÒÔɨÃèÖ¸¶¨Ä¿Â¼µÄËùÓÐÎļþ£¬½øÐÐÄÚÈÝÌæ»»¡£¿ÉÓÃÓÚ±»ÅúÁ¿¹ÒÂíµÄɾ³ýÒÔ¼°ÅúÁ¿¸üÐÂÒ³ÃæijЩÄÚÈÝ¡£

    ÔÚÎļþÊýÁ¿·Ç³£¶àµÄÇé¿öÏ£¬±¾²Ù×÷±È½ÏÕ¼Ó÷þÎñÆ÷×ÊÔ´£¬ÇëÈ·½Å±¾³¬Ê±ÏÞÖÆʱ¼äÔÊÐí¸ü¸Ä£¬·ñÔò¿ÉÄÜÎÞ·¨Íê³É²Ù×÷¡£


    ” name=”form1″ target=”stafrm” method=”post”>















     Æðʼ¸ù·¾¶£º
    µã±íʾµ±Ç°Ä¿Â¼£¬Ä©Î²²»Òª¼Ó/ °üº¬´ËĿ¼ÏÂËùÓÐĿ¼
     ÎļþÀ©Õ¹Ãû£º
    ¶à¸öÇëÓÃ|¸ô¿ª













    ÄÚÈÝÌ滻ѡÏ ʹÓÃÕýÔò±í´ïʽ
    Ìæ»»ÄÚÈÝÀàĬÈÏʹÓÃ×Ö·û´®Ìæ»»£¬Ò²¿ÉÒÔʹÓÃÕýÔò±í´ïʽ(Ðè¹´Ñ¡)¡£”Ì滻Ϊ”²»ÌîдµÄ»°£¬¾Í±íʾɾ³ý”Ìæ»»ÄÚÈÝ”¡£
     Ìæ»»ÄÚÈÝ£º Ìæ »» Ϊ£º













    ÐèÒªÖ÷Òª£¬Òª°ÑÍøÕ¾µÄphp°æ±¾¸Ä³É5.6»òÕßһϵģ¬7»òÒÔÉϱ¾°æ»á³öÎÊÌ⣬ÏȸijÉ5.6£¬ºóÃæÔٸĻØÀ´¾ÍÐÐÁË¡£

    ±£´æºÃÎļþºó£¬Í¨¹ýÍøÕ¾ÓòÃû·ÃÎÊÕâ¸öÎļþ£¬°ÑÄǸö¡°°üº¬´ËĿ¼ÏÂËùÓÐĿ¼¡±¹´Ñ¡ÆðÀ´£¬°Ñ¹ÒÂíµÄÄÚÈÝ·ÅÔÚÌæ»»ÄÚÈÝ¿òÄÚ£¬Ì滻ΪÕâ¸ö¿ò²»ÓÃÌµã»÷Ö´Ðм´¿É¡£

    Èç¹ûÄãµÄ¹ÒÂíÄÚÈÝÊÇÓйæÂɱ仯µÄ£¬È磺

    zheshiyigeguama.com/1-tiaozhuandao=xinlianjie.com

    zheshiyigeguama.com/2-tiaozhuandao=xinlianjie.com

    zheshiyigeguama.com/3-tiaozhuandao=xinlianjie.com

    ÕâÑùµÄÄã°ÑÕýÔò±í´ïʽ¹´ÆðÀ´£¬È»ºó°´ÕÕÕýÔò±í´ïʽͨÅä·û±à¼­ÅúÁ¿Ìæ»»³É¿ÕµÄ¾ÍÐÐÁË¡£

    ×îºó»¹ÒªÇ¿µ÷Ò»µã£¬´¦ÀíÍê¹ÒÂíºóÕâ¸öÎļþҪɾ³ýµô£¬²»È»±»±ðÈË·¢ÏÖ£¬ËûÄܸù¾ÝÄãµÄÍøÕ¾½á¹¹ÆÆ»µÍøÕ¾£¬Ä㾫ÐÄÐ޸ĵÄÄ£°å¸øÄãÈ«²¿Çå¿ÕɶµÄ¡£

    µ±È»ÁË£¬¾­ÀúÁ˹ÒÂíʼþºó£¬¼ÇµÃÒÔºóÒª¾­³£±¸·Ý£¬ÔÙ´ÎÓöµ½¹ÒÂíÖ±½ÓÇå¿ÕÉÏ´«±¸·ÝµÄÎļþºÍÊý¾Ý¿â¾ÍºÃÁË¡£

    © °æȨÉùÃ÷

    Ïà¹ØÎÄÕÂ

    Powered by somao