From: Evan Prodromou Date: Wed, 27 Apr 2011 21:54:21 +0000 (-0700) Subject: move registeremailuser.php back to email registration X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1946eba7f43ab0bb7896c0330debae97fa69e803;p=quix0rs-gnu-social.git move registeremailuser.php back to email registration --- diff --git a/plugins/DomainStatusNetwork/scripts/registeremailuser.php b/plugins/DomainStatusNetwork/scripts/registeremailuser.php deleted file mode 100644 index a8c942d3dd..0000000000 --- a/plugins/DomainStatusNetwork/scripts/registeremailuser.php +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env php -. - */ - -define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..')); - -$helptext = << - -Options: --e --email Send a confirmation message to the email address - -register a new user by email address. - -END_OF_REGISTEREMAILUSER_HELP; - -require_once INSTALLDIR.'/scripts/commandline.inc'; - -if (count($args) == 0) { - show_help(); -} - -$email = $args[0]; - -$confirm = EmailRegistrationPlugin::registerEmail($email); - -if (have_option('e', 'email')) { - EmailRegistrationPlugin::sendConfirmEmail($confirm); -} - -$confirmUrl = common_local_url('register', array('code' => $confirm->code)); - -print $confirmUrl."\n"; diff --git a/plugins/EmailRegistration/scripts/registeremailuser.php b/plugins/EmailRegistration/scripts/registeremailuser.php new file mode 100644 index 0000000000..a8c942d3dd --- /dev/null +++ b/plugins/EmailRegistration/scripts/registeremailuser.php @@ -0,0 +1,49 @@ +#!/usr/bin/env php +. + */ + +define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..')); + +$helptext = << + +Options: +-e --email Send a confirmation message to the email address + +register a new user by email address. + +END_OF_REGISTEREMAILUSER_HELP; + +require_once INSTALLDIR.'/scripts/commandline.inc'; + +if (count($args) == 0) { + show_help(); +} + +$email = $args[0]; + +$confirm = EmailRegistrationPlugin::registerEmail($email); + +if (have_option('e', 'email')) { + EmailRegistrationPlugin::sendConfirmEmail($confirm); +} + +$confirmUrl = common_local_url('register', array('code' => $confirm->code)); + +print $confirmUrl."\n";