$titext\n".
"\"Forbidden\" messages are caused by certain page names.
\n";
sel_db('log');
if (isset($_POST['do_del'])) {
$startick=microtime(true);
echo "Deleted:
\n";
reset($_POST); $ea=each($_POST);
while ($ea) {
if (substr($ea['key'],0,3)=='pag')
{ $rj=substr($ea['key'],3); $pag=urldecode($ea['value']); }
if ($ea['key']=="del{$rj}")
{ echo "• ". do_del($pag) ."
\n"; }
$delct++;
$ea=each($_POST); }
$ms_per_del=round(1000*(microtime(true)-$startick)/$delct);
echo "$delct items deleted taking $ms_per_del mS per deletion
\n";
}
$plim = ($_REQUEST['lim']>0 ? $_REQUEST['lim'] : 99999);
/* If I try to post deletions for a very long list, I get a message "Forbidden".
This lim parameter enables us to create a shorter, postable list.
In fact I don't think length was a problem at all. It was the "killer" directory names ... */
$_g['killers']=array
('"',"bin/","dev/","boot/","etc/","opt/","proc/","root/","sys/","tmp/","usr/",);
/* If the post data contains one of these names at the start of a resource name,
I get a prompt "Forbiddden" message.
This only happens on my server at microlite. If I post to other servers, the data is accepted.
All these are names of directories in the root directory of the server but there are other
directories in there, eg. lost+found which do not cause the "Forbidden" message. */
$slim = 300;
/* Assume safe below this level. Limit is probably a function of amount of bytes sent rather
than number of items in the post. */
$sres=do_query("select * from `rh_com_fix` order by `pagename`");
echo "
\n";
?>
Calls log
? lim= set=keywd set=* are specials |