Просмотр файла admin/links.php

Размер файла: 2.18Kb
<?php

include("../config.php");
include("../templates/head.php");
include("../data/data_links.dat");
echo"<div class=\"a\">";
echo"Админка";
echo"</div>";
echo"<p>";
echo"<div class=\"c\">";
echo"Настройка ссылок на главной<p>";
if($_SERVER['QUERY_STRING'] == "login=$admin&pass=$pass")
{
echo"<form action=links_save.php?login=$admin&pass=$pass method=POST>
Ссылка №1</br>
URL ссылки:
<input type=text maxlength=\"1000\" name=ss1 value=\"http://\"></br>
Название ссылки:</br>
<input type=text maxlength=\"300\" name=ss1name></br>";
echo"Текущая ссылка: $link1<p>";
echo"Ссылка №2</br>
URL ссылки:
<input type=text maxlength=\"1000\" name=ss2 value=\"http://\"></br>
Название ссылки:</br>
<input type=text maxlength=\"300\" name=ss2name></br>";
echo"Текущая ссылка: $link2<p>";
echo"Ссылка №3</br>
URL ссылки:
<input type=text maxlength=\"1000\" name=ss3 value=\"http://\"></br>
Название ссылки:</br>
<input type=text maxlength=\"300\" name=ss3name></br>";
echo"Текущая ссылка: $link3<p>";
echo"Ссылка №4</br>
URL ссылки:
<input type=text maxlength=\"1000\" name=ss4 value=\"http://\"></br>
Название ссылки:</br>
<input type=text maxlength=\"300\" name=ss4name></br>";
echo"Текущая ссылка: $link4<p>";
echo"Ссылка №5</br>
URL ссылки:
<input type=text maxlength=\"1000\" name=ss5 value=\"http://\"></br>
Название ссылки:</br>
<input type=text maxlength=\"300\" name=ss5name></br>";
echo"Текущая ссылка: $link5<p>";
echo"Ссылка №6</br>
URL ссылки:
<input type=text maxlength=\"1000\" name=ss6 value=\"http://\"></br>
Название ссылки:</br>
<input type=text maxlength=\"300\" name=ss6name></br>";
echo"Текущая ссылка: $link6<p>";
echo"<input type=submit name=submit class=buttom value=\"Сохранить\"><p>
</form>";
echo"<a href=\"main.php?login=$admin&pass=$pass\">Назад</a></br>";
}
else
{
echo"Ошибка авторизации";
}
echo"</div>";
include("../templates/foot.php");

?>