Просмотр файла Install.php
- <?
- error_reporting(E_ALL & ~E_NOTICE);
- if($pass==False){
- echo"Установки<br>Введите пароль админа:<form><input type=text name=pass><br>
- Цвет даты:<input type=text name=datec><br>
- и цвет новости<input type=text name=textc><br>
- <input type=submit value=Сохранить>
- </form>";
- }
- if($pass==True){
- $file=fopen("conf.php","w");
- fwrite($file,'<? $pass='.$pass.'; $textc='.$textc.'; $datec='.$datec.'; ?>');
- fclose($file);
- echo'Пароль сохранен! Удалите Install.php';
- }
- ?>