portdb: removed email form
This commit is contained in:
parent
6e0932080c
commit
ea1ba71248
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user