Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST["submit"])){
- $connect = mysql_connect("localhost","root","");
- $database = mysql_select_db("gta");
- $username = $_POST['Username'];
- $passwort = md5($_POST['Passwort']);
- $sql = "SELECT * FROM accounts WHERE Name='".$username."'";
- $result = mysql_query($sql);
- if(0 < mysql_num_rows($result)) {
- $data = mysql_fetch_array($result);
- if($data['Passwort'] == $passwort) {
- echo "<h1>Erfolgreich eingeloggt</h1>";
- echo "<h4>Um zu deinen Daten zu gelangen, klicke auf \"Weiter\".</h4>";
- echo "<form action=\"data.php\" method=\"post\">
- <input type=\"submit\" value=\"Weiter\">
- </form>";
- }
- else
- {
- echo "Falsches Passwort";
- }
- }
- else
- {
- echo "Ungültiger Name";
- }
- mysql_close($connect);
- }
- else
- {
- ?>
- <html>
- <head><head>
- <link href="index_html.css" type="text/css" rel="stylesheet" />
- <style type="text/css">
- html, body {
- background-image:url('background.png');
- background-color:#FE6E00;
- background-repeat: no-repeat;
- position:fixed;
- }
- #header
- {
- position:fixed;
- padding-left:660px;
- padding-top:30px;
- }
- nav {
- position:fixed;
- margin-top:120px;
- padding-left:335px;
- width: 1500px;
- }
- nav ul {
- list-style-type: none;
- }
- nav li {
- margin-right:40px;
- display:inline;
- font-size: 20pt;
- background-color: #ff9c00;
- height: 20px;
- padding-left:40px;
- padding-right:40px;
- padding-bottom:5px;
- padding-top:5px;
- border:#ffb137 3px outset;
- border-radius:55px;
- font-weight: bold;
- cursor: default;
- }
- nav a {
- text-decoration: none;
- color:#fefefe;
- text-shadow: #484948 1px 1px;
- }
- nav li:hover {
- border:#ffb137 3px inset;
- border-radius:55px;
- }
- nav a:hover {
- color:#000000;
- cursor: default;
- text-shadow: none;
- }
- sInfo {
- position:fixed;
- margin-top: 200px;
- padding-left:30px;
- }
- body sInfo article {
- background-color: #fefefe;
- padding-left:20px;
- padding-right:20px;
- padding-bottom:5px;
- padding-top:5px;
- border:#ffb137 10px outset;
- border-radius:55px;
- }
- body section {
- position:fixed;
- margin-top: 200px;
- padding-left:380px;
- }
- body section article {
- background-color: #fefefe;
- padding-left:20px;
- padding-right:20px;
- padding-bottom:5px;
- padding-top:5px;
- border:#ffb137 10px outset;
- border-radius:55px;
- width:930px;
- height: 600px;
- text-align: center;
- }
- </style>
- <title>VisionRPG - User Control Panel</title>
- </head>
- <body bgcolor="#FE6E00">
- <div id="header">
- <img src="logo.png"/>
- </div>
- <nav>
- <ul>
- <a href="localhost/sh12rl/homecp.html"><li>Startseite</li></a>
- <a href="localhost/sh12rl/index.php"><li>Spielerdaten</li></a>
- <a href="localhost/sh12rl/banking.php"><li>Online-Banking</li></a>
- <a href="localhost/sh12rl/logout.html"><li>Logout</li></a>
- </ul>
- </nav>
- </body>
- <sInfo>
- <article>
- <h2>Infos zum Server</h2>
- <p>Servername: German Vision Reallife</p>
- <p>Arbeit seit: Ungefähr 5 Monaten</p>
- <p>Scripter: [GVR]Narushi<br/>Projektleiter: [GVR]Narushi<br/>Serverinhaber: [GVR]Narushi<br/>Mapper: [GVR]TheOne</p>
- <h2>Script</h2>
- <p>Basiert auf: Reallife</p>
- <p>Zeilen: Fast 9.000</p>
- </article>
- </sInfo>
- <section>
- <article>
- <h1>Startseite - UCP</h1>
- <p>Willkommen in User Control Panel von German Vision Reallife.</p>
- <p>Bitte logge dich hier nun ein, um den Control Panel zu betreten.</p>
- <br/><br/>
- <form action="login.php" method="post">
- Username: <input type="text" size="20" name="Username"/><br/><br/>
- Passwort: <input type="password" size="20" name="Passwort"/><br/><br/>
- <input type="submit" value="Einloggen"/>
- </form>
- </article>
- </section>
- </html>
- <?php }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement