View file admin.php

File size: 544B
<?php $accept = getenv ('HTTP_ACCEPT'); if (strpos($accept, 'text/html') !== false or $accept == '*/*') {include ('xml.php'); } else {include ('wml.php');}
$pass="kmx"; //Пароль
if($ps!=$pass) exit("<input name='ps'/><a href='admin.php?ps=$(ps)&amp;id=$id'>Ok</a>".$px);
if($op=="") exit("Описание:<input name='op'/><a href='admin.php?ps=$ps&amp;id=$id&amp;op=$(op)'>Ok</a>".$px);$o=unserialize(file_get_contents("op.dat")); $o[$id]=htmlspecialchars(stripslashes($op));  fputs(fopen("op.dat","wb"),serialize($o));echo "OK".$px; ?>