View file katrinka.ru/admin/forum_close.php
<?php include '../wap/config.php'; include 'acl.php'; list ($uid, $pl) = priv_level(); if (!($conn=pg_connect("host=$dbhost port=$dbport dbname=$dbname user=$dbuser password=$dbpass"))) { echo ("пЫЙВЛБ РПДЛМАЮЕОЙС Л вд!\n"); }; pg_query($conn,"update themes set closed='$uid' where id='$t';"); $res=pg_query($conn,"select forum from themes where id='$t';"); $f=pg_result($res,0,0); pg_close($conn); $link=sprintf("Location: forum.php?f=%d", $f); header($link); ?>