This repository has been archived by the owner on May 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheintragen.php
61 lines (58 loc) · 2.29 KB
/
eintragen.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
error_reporting(0);
include 'config.php';
$dbc = new PDO(''.$DBTYPE.':host='.$HOST.';dbname='.$DB.'', ''.$USER.'', ''.$PW.'');
?>
<!DOCTYPE HTML>
<!--
Linklist-Script and Design by Christoph Miksche
Websites: http://celzekr.webpage4.me and http://scripts.wronnay.net
License: Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)
Dieses Werk bzw. Inhalt steht unter einer Creative Commons Namensnennung-Nicht-kommerziell-
Weitergabe unter gleichen Bedingungen 3.0 Unported Lizenz.
Sie duerfen die Links zu celzekr.webpage4.me und Scripts.Wronnay.net nicht entfernen!
(http://creativecommons.org/licenses/by-nc-sa/3.0/)
-->
<html>
<head>
<title>Link eintragen</title>
<meta charset="ISO-8859-1">
<link rel="stylesheet" type="text/css" href="design/design.css">
</head>
<body>
<?php
if(isset($_POST['submit']) AND $_POST['submit'] == "Link eintragen") {
if(isset($_POST['email']) && $_POST['email']) {
echo"<div class=\"fehler\">You are an SPAM-Bot!</div>";
}
else {
if(empty($_REQUEST['link']) || empty($_REQUEST['titel']) || empty($_REQUEST['beschreibung'])) {
echo"<div class=\"fehler\">Bitte füllen Sie alle Felder aus!</div>";
}
else {
$sql = "INSERT INTO wronnay_linkliste (titel, link, beschreibung, datum) VALUES ('".$_REQUEST['titel']."','".$_REQUEST['link']."','".$_REQUEST['beschreibung']."',now())";
$dbpre = $dbc->prepare($sql);
$dbpre->execute();
echo "<div class=\"erfolg\">Sie haben den Link eingetragen.</div>";
}
}
}
?>
<b>Link eintragen:</b><br>
<form action="eintragen.php" method="post">
<table>
<p class="hallo"><input id="email" type="text" name="email" value="" size="60" /></p>
<tr><td>Link</td><td><input type="text" name="link" value="http://"></td></tr>
<tr><td>Titel Ihrer Webseite</td><td><input type="text" name="titel"></td></tr>
<tr><td>Beschreibung</td><td><textarea class="li" name="beschreibung" cols="55" rows="15"></textarea></td></tr>
</table>
<input type="submit" name="submit" value="Link eintragen">
</form>
<br>
<div style="font-size: 14px;">
<!--Den Link nicht entfernen!-->
<a style="opacity: 0.5;" href="http://scripts.wronnay.net"> Zur eigenen, kostenlosen, Linkliste</a>
<!--Den Link nicht entfernen! end-->
</div>
</body>
</html>