Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
echo "<meta http-equiv=\"Refresh\" content=\"0; URL=http://web-tourist.net\">";
огледай го, помисли и пак го огледаи....echo "<center>Добре дошли <b>$logged[username]</b><br /></center>";
a href=\"editprofile.php\">Промени профила си</a><br />
<a href=\"members.php\">Виж всички регистрирани потребители</a><br />
<a href=\"logout.php\">Излез от акаунта си</a>";
<?
oB_start();
// allows you to use cookies.
include("config.php");
if (!$logged[username])
{
if (!$_POST[login])
{
echo("
<center><form method=\"POST\">
<table>
<tr>
<td align=\"right\">
Потребител: <input type=\"text\" size=\"15\" maxlength=\"25\" name=\"username\">
</td>
</tr>
<tr>
<td align=\"right\">
Парола: <input type=\"password\" size=\"15\" maxlength=\"25\" name=\"password\">
</td></tr><tr>
<td align=\"center\">
<input type=\"submit\" name=\"login\" value=\"Влез\">
</td></tr><tr>
<td align=\"center\">
<a href=\"register.php\">Регистрирай се</a>
</td></tr></table></form></center>");
}
if ($_POST[login]) {
// the form has been submitted. We continue...
$username=$_POST['username'];
$password = md5($_POST[password]);
// the above lines set variables with the submitted information.
$info = mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());
$data = mysql_fetch_array($info);
if($data[password] != $password) {
// the password was not the user's password!
echo "Грешен потребител или парола!";
}else
// the password was right!
$query = mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());
$user = mysql_fetch_array($query);
// gets the user's information
setcookie("id", $user[id],time()+(60*60*24*5), "/", "/");
setcookie("pass", $user[password],time()+(60*60*24*5), "/", "/");
echo "<meta http-equiv=\"Refresh\" content=\"0; URL=http://cs-swim.netne.net\"Вие влязохте в профила си успешно!";
include ("online.php");
echo "<center>Добре дошли <b>$logged[username]</b><br /></center>
<a href=\"editprofile.php\">Промени профила си</a><br />
<a href=\"members.php\">Виж всички регистрирани потребители</a><br />
<a href=\"logout.php\">Излез от акаунта си</a>";
}
?>
hellbg каза:Това е
echo "<meta http-equiv='refresh' content='0; url=http://web-tourist.net'>";
header("Location: http://web-tourist.net");
header("Refresh: 3; url=http://web-tourist.net");
<?
oB_start();
// allows you to use cookies.
include("config.php");
if (!$logged[username])
{
if (!$_POST[login])
{
echo("
<center><form method=\"POST\">
<table>
<tr>
<td align=\"right\">
Потребител: <input type=\"text\" size=\"15\" maxlength=\"25\" name=\"username\">
</td>
</tr>
<tr>
<td align=\"right\">
Парола: <input type=\"password\" size=\"15\" maxlength=\"25\" name=\"password\">
</td></tr><tr>
<td align=\"center\">
<input type=\"submit\" name=\"login\" value=\"Влез\">
</td></tr><tr>
<td align=\"center\">
<a href=\"register.php\">Регистрирай се</a>
</td></tr></table></form></center>");
}
if ($_POST[login]) {
// the form has been submitted. We continue...
$username=$_POST['username'];
$password = md5($_POST[password]);
// the above lines set variables with the submitted information.
$info = mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());
$data = mysql_fetch_array($info);
if($data[password] != $password) {
// the password was not the user's password!
echo "Грешен потребител или парола!";
}else
// the password was right!
$query = mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());
$user = mysql_fetch_array($query);
// gets the user's information
setcookie("id", $user[id],time()+(60*60*24*5), "/", "/");
setcookie("pass", $user[password],time()+(60*60*24*5), "/", "/");
echo "Вие влязохте в профила си успешно!";
echo "<meta http-equiv=\"Refresh\" content=\"0; URL=http://cs-swim.netne.net\">";
include ("online.php");
echo "<center>Добре дошли <b>$logged[username]</b><br /></center>";
echo "a href=\"editprofile.php\">Промени профила си</a><br />
<a href=\"members.php\">Виж всички регистрирани потребители</a><br />
<a href=\"logout.php\">Излез от акаунта си</a>";
}
?>
<?
oB_start();
// allows you to use cookies.
include("config.php");
if (!$logged[username])
{
if (!$_POST[login])
{
echo("
<center><form method='POST'>
<table>
<tr>
<td align='right'>
Потребител: <input type='text' size='15' maxlength='25' name='username'>
</td>
</tr>
<tr>
<td align='right'>
Парола: <input type='password' size='15' maxlength='25' name='password'>
</td></tr><tr>
<td align='center'>
<input type='submit' name='login' value='Влез'>
</td></tr><tr>
<td align='center'>
<a href='register.php'>Регистрирай се</a>
</td></tr></table></form></center>");
}
if ($_POST[login]) {
// the form has been submitted. We continue...
$username=$_POST['username'];
$password = md5($_POST[password]);
// the above lines set variables with the submitted information.
$info = mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());
$data = mysql_fetch_array($info);
if($data[password] != $password) {
// the password was not the user's password!
echo "Грешен потребител или парола!";
}else
// the password was right!
$query = mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());
$user = mysql_fetch_array($query);
// gets the user's information
setcookie("id", $user[id],time()+(60*60*24*5), "/", "/");
setcookie("pass", $user[password],time()+(60*60*24*5), "/", "/");
echo "<meta http-equiv='Refresh' content='0; URL=http://cs-swim.netne.net'Вие влязохте в профила си успешно!";
include ("online.php");
echo "<center>Добре дошли <b>$logged[username]</b><br /></center>";
a href='editprofile.php'>Промени профила си</a><br />
<a href='members.php'>Виж всички регистрирани потребители</a><br />
<a href='logout.php'>Излез от акаунта си</a>";
}
?>
Ivos каза:@alex95_bg_2,начинаещ съм.Не мога да знам всичко!Никой не се е родил научен,затова смятам,че имам право да попитам във форума как да го оправя.. :x