Просмотр файла adm/add_exp.php

Размер файла: 1.14Kb
<?php
// coding by Felis

require ("../system/core.php");
require ("../templates/header.php");
?>
<?
// если пароль неверен
if ($_POST[password] != $passwd)
{ echo '
<div class="head">Ошибка</div>
<div class="cont">
<b>Ошибка!</b> Доступ запрещен!<br>[<a href=index.php>Повторить</a>]<br>
'; }
// если пароль верный
else
{ echo "
<div class=head>Добавить условие</div>
<div class=cont>
<form action=rewrite.php method=post>
Что заменять:<br>
<input type=text name=write style=font-family: Courier New; color: #538939;><br>
На что заменять:<br>
<input name=password type=hidden value=$_POST[password]>
<input type=text name=rewrite style=font-family: Courier New; color: #538939;><br>
<input type=submit value=Отправить style=border: 1px solid #999999;>
</form>
"; }
?>
<hr>
[<a href="../index.php">На главную</a>]<br>
<hr>
В базе: <i><b>
<?
$file=file("../includes/exp.php");
$count=count($file);
echo $count - 2;
?>
</b> выражений</i>
</div>
<?php require ("../templates/footer.php"); ?>