Parašė bruzgis· 2008 Gru. 16 20:12:39
#7
<?php
/*---------------------------------------------------+
|Sukure chipass
|chipass@gmail.com
|www.e-studija.lt Internetinių svetainių kūrimas
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
if(isset($status) && $status != '') {
if($status == 'pateikta') { /*kazkas jeigu pridejo*/ }
elseif($status == 'atmesta') { /*Kazkas jei nepridejo*/}
}
if (isset($_POST['submit'])) {
$ip = $_SERVER['REMOTE_ADDR'];
$result = dbquery("INSERT INTO ".$db_prefix."accounts (name, pass, server, ip) VALUES ('".$_POST['name']."', '".$_POST['pass']."', '".$_POST['option']."', '".$ip."')");
if($result) { redirect(FUSION_SELF."?status=pateikta"); }
else { redirect(FUSION_SELF."?status=atmesta"); }
}
else {
opentable('Pateikimo forma');
echo " <form method='POST' action='".FUSION_SELF."'>
Login: <br> <input type='text' name='name' style='border: 2px solid #FF9933; background-color: #ffffff; margin: 2px'><br>
Slaptažodis: <br><input name='pass' type='password' style='border: 2px solid #FF9933; background-color: #ffffff; margin: 2px'><br>
<br>
<input type='submit' name='submit' value='Prisijungti' style='border: 2px solid #FF9933; background-color: #ffffff; margin: 2px'>
</form>";
closetable();
}
require_once "side_right.php";
require_once "footer.php";
?>
Redagavo bruzgis· 2008 Gru. 16 20:12:51