小编Kyo*_*oku的帖子

WordPress ==> SSL ==> MySQL这种配置可行吗?

我正在尝试在我的Wordpress应用程序及其MySQL数据库之间进行SSL加密,有人知道这个解决方案/教程吗?尚未在Google或Wordpress Codex上找到任何内容。

mysql security wordpress mysql-management

3
推荐指数
2
解决办法
5974
查看次数

这个PHP代码有任何安全漏洞吗?

我想知道此代码中是否存在任何安全漏洞:

<?php
/*
    Plugin Name: Dashboard Switcher
    Plugin URI: http://wordpress.org/extend/plugins/dashboard-switcher/
    Description: Adds a dropdown list of the sites with every site owned in a network to quickly switch between them.
    Version: 0.1
    Author: Ezequiel Livinsky
    Author URI: http://livindev.com.ar
*/

    add_action('in_admin_header', 'own_favorite_actions');
    function own_favorite_actions() {
        if(!is_super_admin()) return;

        global $wpdb, $current_blog;

        $blogs = $wpdb->get_results("SELECT domain FROM $wpdb->blogs WHERE blog_id <> $current_blog->blog_id", ARRAY_A);

        $actions = array();
        foreach($blogs as $row){
            $url = 'http://'.$row['domain'].$_SERVER['REQUEST_URI'];
            $actions[$url] = $row['domain'];
        }

        $first = array_keys($actions);
        $first = $first[0];
        echo …
Run Code Online (Sandbox Code Playgroud)

php security wordpress

0
推荐指数
1
解决办法
142
查看次数

标签 统计

security ×2

wordpress ×2

mysql ×1

mysql-management ×1

php ×1