Hirdetés
- Miért fárad gyorsabban az iPhone akku, mint az androidos?
- Kezünkben a OnePlus 15 és az Oppo Find X9-ek
- Yettel topik
- Megérkezett a Google Pixel 7 és 7 Pro
- iPhone topik
- Milyen okostelefont vegyek?
- MIUI / HyperOS topik
- Samsung Galaxy Watch7 - kötelező kör
- Android alkalmazások - szoftver kibeszélő topik
- Fotók, videók mobillal
Új hozzászólás Aktív témák
-
Paulie86
tag
Hello, kicsit hosszú lesz, ha ide beszúrom mind3at
Login :<div id="login">
<?phpinclude 'config.php';
ob_start();
echo "<form method=\"POST\">";
echo "<font face=\"Arial\" style=\"font-size:12px; color:#bdbbbb;\">Felhasználónév: </font><br><input type=\"text\" name=\"username\" value=\"\" size=\"15\"><br>";
echo "<font face=\"Arial\" style=\"font-size:12px; color:#bdbbbb;\">Jelszó: </font> <br><input type=\"password\" name=\"password\" value=\"\" size=\"15\">";
echo "<input type=\"submit\" value=\"Belépés\" style=\"position:absolute; left:0px; top:82px;\">";
echo "</form>";
echo "<font face=\"Arial\" style=\"position:absolute; left:120px; top:30px; font-size:10px; color:#bdbbbb;\"><a href=\"/loginsys/register.php\">Regisztráció</a>";
echo "<font face=\"Arial\" style=\"position:absolute; left:15px; top:16px; font-size:10px; color:#bdbbbb;\"><a href=\"/loginsys/sugo.php\">Súgó</a>";
echo "<font face=\"Arial\" style=\"position:absolute; left:-45px; top:46px; width:100px; font-size:10px; color:#bdbbbb;\"><a href=\"/loginsys/reset.php\">Elfelejtett jelszó</a>";$connection = @mysql_connect($hostname, $user, $pass)
or die(mysql_error());
$dbs = @mysql_select_db($database, $connection) or
die(mysql_error());$sql = "SELECT * FROM $userstable WHERE username = '$_POST[username]' AND password = '$_POST[password]'";
$result = @mysql_query($sql,$connection) or die(mysql_error());
$num = @mysql_num_rows($result);$sql2 = "SELECT * FROM $userstable WHERE username = '$_POST[username]'";
$result2 = @mysql_query($sql2,$connection) or die(mysql_error());
$num2 = @mysql_num_rows($result2);$sql3 = "SELECT * FROM $userstable WHERE password = '$_POST[password]'";
$result3 = @mysql_query($sql3,$connection) or die(mysql_error());
$num3 = @mysql_num_rows($result3);if ((num2 == 0) && ($_POST[username] != "") && (num3 != 0)) echo "Hiba, ilyen felhasználó nem létezik!";
if ((num3 == 0) && ($_POST[password] != "") && (num2 != 0)) echo "Hiba, rossz jelszót adtál meg!";if ((num2 == 1) && ($_POST[password] == "")) echo "Hiba, a jelszó nem lett megadva!";
if ((num3 == 1) && ($_POST[username] != "")) echo "Hiba, a felhasználónév nem lett megadva!";if ($num != 0) {
$cookie_name = "auth";
$cookie_value = "fook!$_POST[username]";
$cookie_expire = "0";
$cookie_domain = $domain;setcookie($cookie_name, $cookie_value, $cookie_expire, "/", $cookie_domain, 0);
header ("Location: http://" . $domain . $_SERVER["REQUEST_URI"]);ob_end_flush();
exit;
}
?>
</div>és a Naptár :
<div id="jscalendar">
<script language="Javascript" type="text/javascript">var SPECIAL_DAYS = {
1 : [ 22 ]
};function dateIsSpecial(year, month, day) {
var m = SPECIAL_DAYS[month];
if (!m) return false;
for (var i in m) if (m[i] == day) return true;
return false;
};function dateChanged(calendar) {
// Beware that this function is called even if the end-user only
// changed the month/year. In order to determine if a date was
// clicked you can use the dateClicked property of the calendar:
if (calendar.dateClicked) {
// OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
var y = calendar.date.getFullYear();
var m = calendar.date.getMonth(); // integer, 0..11
var d = calendar.date.getDate(); // integer, 1..31
// redirect...if ((y == 2009) && (m == 1) && (d == 22)) { window.location = "/versenyek/2009gyirmot_tk.php"; } else { ;}
}
};function ourDateStatusFunc(date, y, m, d) {
if ((dateIsSpecial(y, m, d)) && (y == 2009))
return "special";
else
return false; // other dates are enabled
// return true if you want to disable other dates
};Calendar.setup(
{
flat : "jscalendar", // ID of the parent element
flatCallback : dateChanged, // our callback function
dateStatusFunc : ourDateStatusFunc
}
);
</script></div>
Ez a 2 zárja ki egymást IE-ben, a 3.oldalba ahova includeolom őket, mindkettőt 1 konténer divbe rakom, css stílusuk külön fájlba :
#jscalendar {
position: absolute ;
top:398px;
left:698px;
width:170px;
height:150px;
}
#login {
position: absolute ;
text-align: center;
width: 170px;
height: 92px;
left: 698px;
top: 227px;
text-align:left;
}De lehet hogy a naptár CSS-ével van gubanc. közben eszembe jutott, hátha.
Új hozzászólás Aktív témák
- Miért fárad gyorsabban az iPhone akku, mint az androidos?
- Mibe tegyem a megtakarításaimat?
- Asustor NAS
- Home server / házi szerver építése
- Óra topik
- Kezünkben a OnePlus 15 és az Oppo Find X9-ek
- Sub-ZeRo: Euro Truck Simulator 2 & American Truck Simulator 1 (esetleg 2 majd, ha lesz) :)
- Androidos fejegységek
- E-roller topik
- Yettel topik
- További aktív témák...
- BESZÁMÍTÁS! Gigabyte Z370P i7 9700K 16GB DDR4 512GB SSD RTX 2070 Super 8GB RAMPAGE Shiva A-data 600W
- Samsung Galaxy S24 8/128 GB Onyx Black 6 hónap Garancia Beszámítás Házhozszállítás
- Apple iPhone 13 256GB / Kártyafüggetlen / 12Hó Garancia / 100% Akku
- ÁRGARANCIA!Épített KomPhone Ryzen 7 7800X3D 32/64GB RAM RTX 5070 12GB GAMER PC termékbeszámítással
- Lenovo Thinkpad X13 Gen1 Ryzen5 4650U Refurbished
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: NetGo.hu Kft.
Város: Gödöllő


