. */ class global_login implements pts_option_interface { public static function run($r) { echo "\nIf you haven't already registered for your free Phoronix Global account, you can do so at http://global.phoronix-test-suite.com/\n\nOnce you have registered your account and clicked the link within the verification email, enter your log-in information below.\n\n"; echo "User-Name: "; $username = trim(fgets(STDIN)); echo "Password: "; $password = md5(trim(fgets(STDIN))); $uploadkey = @file_get_contents("http://www.phoronix-test-suite.com/global/account-verify.php?user_name=" . $username . "&user_md5_pass=" . $password); if(!empty($uploadkey)) { pts_user_config_init($username, $uploadkey); echo "\nAccount: " . $uploadkey . "\nAccount information written to user-config.xml.\n\n"; } else { echo "\nPhoronix Global Account Not Found.\n"; } } } ?>