SEO Сообщество: Спрашивайте и помогайте

Присоединяйтесь к сообществу профессиональных веб-мастеров PR-CY, отвечайте на вопросы коллег и задавайте свои.

Q&A SEO

Нужен человек который умеет закупать хорошие ссылки в sape

matveyka matveyka  
45
  10.08.2017 13:41       1 092    
Нужен человек который умеет закупать хорошие ссылки в sape? Кто поможет пишите в личку, за оплату не большую! Нужно отобрать доноров хороших чтобы был толк от закупки ссылок. 

Ответы на пост (29) Написать ответ
glavseo glavseo
124
10.08.2017 13:58
Так вроде от этого сейчас нет смысла
0
termyt termyt
16
10.08.2017 14:07
Смысл есть, если с умом подойти, но небольшая оплата - не мотивирует как-то. Там больше мороки будет.
0
termyt termyt
16
10.08.2017 14:06
1) Хорошими ссылки становятся со временем. Смотрите, чтобы не мигали и спустя 1 год ссылка начнет работать.
2) Покупайте ссылки на сайтах с трафом - это лучший критерий качества сайта.
3
Hyrilion Hyrilion
14
10.08.2017 14:21
Лучше брать ссылки напрямую!
0
avis avis
34
10.08.2017 16:30
За оплату не большую - т.е чтобы за копейки показали критерии отбора доноров? )))))
0
avis avis
34
10.08.2017 16:32
Ссылки работали, работают и будут всегда работать.
2
ssrr ssrr
0
13.08.2017 08:12
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:12
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:12
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:12
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:12
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:12
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:12
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:13
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:13
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:13
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:13
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:13
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:13
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:13
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:13
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:14
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:14
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:14
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:14
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:14
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:14
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:14
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0
ssrr ssrr
0
13.08.2017 08:14
index.php
[PHP]<?php
var_dump ($auth) ;
require_once "lib/user_class.php";
$user = User::getObject();
$auth = $user->isAuth();
if (isset ($_POST["reg"])){
$login = $_POST["login"];
$password = $_POST["password"];
$reg_success = $user->regUser($login, $password);
}
elseif (isset ($_POST["auth"])){
$login = $_POST["login"];
$password = $_POST["password"];
$auth_success = $user->login($login, $password);
if ($auth_success){
header ("Location: index.php");
exit;
}
}
?>
<html>
<head>
<title>Регистрация и авторизация пользователей</title>
</head>
<body>
<?php
if (auth){
echo "Здравствуйте, ".$_SESSION ["login"]."(<a href="http://pr-cy.ru/jump/?url=logout.php">Выход</a>)";
}
else {
echo '<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>';
}
?>
<h1>Регистрация</h1>
<form name="red" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="reg" value="Зарегистрироваться">
</td>
<tr>
</table>
</form>
<h1>Авторизация</h1>
<form name="auth" action="index.php" method="post">
<table>
<tr>
<td>Логин</td>
<td>
<input type="text" name="login">
</td>
<tr>
<tr>
<td>Пароль</td>
<td>
<input type="password" name="password">
</td>
<tr>
<tr>
<td clospan="2">
<input type="submit" name="auth" value="Войти">
</td>
<tr>
</table>
</form>
</body>
</html>[/PHP]
0