diff options
author | Simone Rota <sip@crux.nu> | 2006-11-29 23:29:34 +0100 |
---|---|---|
committer | Simone Rota <sip@crux.nu> | 2006-11-29 23:29:34 +0100 |
commit | ea1ba712483cdd2a98991c15759f2c277e3b7510 (patch) | |
tree | 3a64ca30595ef8a6d9d767e99c726d7238478770 | |
parent | 6e0932080c83838bbea260d344a866d44b042e36 (diff) | |
download | webtools-ea1ba712483cdd2a98991c15759f2c277e3b7510.tar.gz webtools-ea1ba712483cdd2a98991c15759f2c277e3b7510.tar.xz |
portdb: removed email form
-rwxr-xr-x | portdb/portdb/index.php | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/portdb/portdb/index.php b/portdb/portdb/index.php index c318bcd..73f9b44 100755 --- a/portdb/portdb/index.php +++ b/portdb/portdb/index.php @@ -135,32 +135,28 @@ function showSearch($singlerepo) { function showRegister() { $query = sanitize($_GET['q']); echo "<h2>Register your ports repository</h2>"; - echo "<p>You can register your personal HttpUp repository with this form. Please enter a name for your repository, your email address and the url to your HttpUp repository. The form data is sent via mail to a CRUX team member, who will put your repository into our database. Please give us some time to do this. Once it is active it is synced once a day. <b>Please do not submit .httpup files, only the URL for the repository. This means the URL to the repository itself, not portspage or other indexes.</b>"; - echo '<form action="?a=send" method="post"> - <b><input name="command" value="register" type="hidden"> - </b><table> - <tbody><tr><td>Repository Name <small>(e.g. myports)</small>:</td><td><input name="name" size="30" type="text"></td></tr> - <tr><td>Root URL <small>(e.g. http://mypage.se/ports/)</small>:</td><td><input name="url" size="30" type="text"></td></tr> - <tr><td>Your name:</td><td><input name="maint" size="30" type="text"></td></tr> - <tr><td>Email:</td><td><input name="mail" size="30" type="text"></td></tr> - <tr><td></td><td><input value="Submit" type="submit"></td></tr> - </tbody></table> - </form>'; + echo "<p>You can register your personal HttpUp repository sending an email with the following information to <i>viper at hometux dot de</i>:</p>"; + echo '<ul><li>Repository Name <small>(e.g. myports)</small></li> + <li>Root URL <small>(e.g. http://mypage.se/ports/)</small></li> + <li>Your name</li> + <li>Your Email</li></ul>'; + echo "<p>A CRUX team member, will put your repository into our database. Please give us some time to do this. Once it is active it is synced once a day. <b>Please do not submit .httpup files, only the URL for the repository. This means the URL to the repository itself, not portspage or other indexes.</b>"; } -function showSendMail() { - $name = $_POST['name']; - $url = $_POST['url']; - $mail = $_POST['mail']; - $maint = $_POST['maint']; - echo "<h2>Registration results</h2>"; - if (sendMail($name, $url, $mail, $maint)) { - echo "<p>Your data was sent to the responsible CRUX member. Thanks for your contribution!</p>"; - } else { - echo "<p>Your mail could not be sent. Please contact a CRUX Team member.</p>"; - } +#function showSendMail() { +# $name = $_POST['name']; +# $url = $_POST['url']; +# $mail = $_POST['mail']; +# $maint = $_POST['maint']; +# echo "<h2>Registration results</h2>"; +# if (sendMail($name, $url, $mail, $maint)) { +# echo "<p>Your data was sent to the responsible CRUX member. Thanks for your contribution!</p>"; +# } else { +# echo "<p>Your mail could not be sent. Please contact a CRUX Team member.</p>"; +# } +# +#} -} function showDuplicates() { global $db; $sql = "select portname, count(*) as dup from ports @@ -278,9 +274,9 @@ switch ($action) { case "register": showRegister(); break; - case "send": - showSendMail(); - break; +# case "send": +# showSendMail(); +# break; case "dups": showDuplicates(); break; |