portdb: removed email form
This commit is contained in:
parent
6e0932080c
commit
ea1ba71248
@ -135,32 +135,28 @@ function showSearch($singlerepo) {
|
|||||||
function showRegister() {
|
function showRegister() {
|
||||||
$query = sanitize($_GET['q']);
|
$query = sanitize($_GET['q']);
|
||||||
echo "<h2>Register your ports repository</h2>";
|
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 "<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 '<form action="?a=send" method="post">
|
echo '<ul><li>Repository Name <small>(e.g. myports)</small></li>
|
||||||
<b><input name="command" value="register" type="hidden">
|
<li>Root URL <small>(e.g. http://mypage.se/ports/)</small></li>
|
||||||
</b><table>
|
<li>Your name</li>
|
||||||
<tbody><tr><td>Repository Name <small>(e.g. myports)</small>:</td><td><input name="name" size="30" type="text"></td></tr>
|
<li>Your Email</li></ul>';
|
||||||
<tr><td>Root URL <small>(e.g. http://mypage.se/ports/)</small>:</td><td><input name="url" size="30" type="text"></td></tr>
|
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>";
|
||||||
<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>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function showSendMail() {
|
#function showSendMail() {
|
||||||
$name = $_POST['name'];
|
# $name = $_POST['name'];
|
||||||
$url = $_POST['url'];
|
# $url = $_POST['url'];
|
||||||
$mail = $_POST['mail'];
|
# $mail = $_POST['mail'];
|
||||||
$maint = $_POST['maint'];
|
# $maint = $_POST['maint'];
|
||||||
echo "<h2>Registration results</h2>";
|
# echo "<h2>Registration results</h2>";
|
||||||
if (sendMail($name, $url, $mail, $maint)) {
|
# if (sendMail($name, $url, $mail, $maint)) {
|
||||||
echo "<p>Your data was sent to the responsible CRUX member. Thanks for your contribution!</p>";
|
# echo "<p>Your data was sent to the responsible CRUX member. Thanks for your contribution!</p>";
|
||||||
} else {
|
# } else {
|
||||||
echo "<p>Your mail could not be sent. Please contact a CRUX Team member.</p>";
|
# echo "<p>Your mail could not be sent. Please contact a CRUX Team member.</p>";
|
||||||
}
|
# }
|
||||||
|
#
|
||||||
|
#}
|
||||||
|
|
||||||
}
|
|
||||||
function showDuplicates() {
|
function showDuplicates() {
|
||||||
global $db;
|
global $db;
|
||||||
$sql = "select portname, count(*) as dup from ports
|
$sql = "select portname, count(*) as dup from ports
|
||||||
@ -278,9 +274,9 @@ switch ($action) {
|
|||||||
case "register":
|
case "register":
|
||||||
showRegister();
|
showRegister();
|
||||||
break;
|
break;
|
||||||
case "send":
|
# case "send":
|
||||||
showSendMail();
|
# showSendMail();
|
||||||
break;
|
# break;
|
||||||
case "dups":
|
case "dups":
|
||||||
showDuplicates();
|
showDuplicates();
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user