Skip to content

Commit

Permalink
Added 'http-equiv refresh' to automatically reload browse page 2 seco…
Browse files Browse the repository at this point in the history
…nds after deleting token entry.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@306 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed May 25, 2003
1 parent a4af603 commit 5b39d25
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions admin/tokens.php
Expand Up @@ -49,7 +49,9 @@
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0

echo $htmlheader;
if ($action == "delete") {echo str_replace("<head>\n", "<head>\n<meta http-equiv=\"refresh\" content=\"2;URL=$PHP_SELF?action=browse&sid={$_GET['sid']}\"", $htmlheader);}
else {echo $htmlheader;}

echo "<table width='100%'>\n";
echo "\t<tr><td bgcolor='#BBBBBB' align='center'>$setfont<b>Token Control</b></td></tr>\n";

Expand Down Expand Up @@ -671,7 +673,8 @@
{
$dlquery = "DELETE FROM tokens_$sid WHERE tid={$_GET['tid']}";
$dlresult = mysql_query($dlquery) or die ("Couldn't delete record {$_GET['tid']}<br />".mysql_error());
echo "<br /><b>Record has been deleted.</b>\n";
echo "<br /><b>Record has been deleted.</b><br />\n";
echo "<font size='1'><i>Reloading browse screen. Please wait...</i></font>\n";
}


Expand Down

0 comments on commit 5b39d25

Please sign in to comment.