If we change index.php file, method of posting from POST to GET
PHP Code:
<form class="grey" action="spider.php" method="get"
And changing function Unlock (see above) to that code:
PHP Code:
function Unlock()
{
global $site_id, $id_connect, $run_mode, $mode, $br;
// unlock site if not normal terminate
if(connection_status())
{
// clean the tempspider table
$query = "DELETE FROM ".PHPDIG_DB_PREFIX."tempspider WHERE site_id=$site_id AND (error = 1 OR indexed = 1)";
mysql_query($query,$id_connect);
mysql_query('UPDATE '.PHPDIG_DB_PREFIX.'sites SET locked=0 WHERE site_id='.$site_id,$id_connect);
print $br."Site was unlocked".$br;
if ($run_mode == 'http')
{ ?>
<hr />
<a href="index.php" >[<?php phpdigPrnMsg('back') ?>]</a> <?php phpdigPrnMsg('to_admin') ?>.
<?php
if (isset($mode) && isset($site_id) && $mode == 'small') {
print '<br /><a href="update_frame.php?site_id='.$site_id.'" >['.phpdigMsg('back').']</a> '.phpdigMsg('to_update').'.';
}
print <<< HTML
<script>
<!--
window.location.reload();
//-->
</script>
HTML;
} else {
print $br;
}
}
return;
}
Have a nice day!