Forum > Admin Poststatus.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Forum

Download:
forum.zip

Category:
Discussion Boards

Archive Content:

Forum

Forum > Avatars

Forum

Forum > Db

Forum

Forum > Icon

Forum

Forum > Language

Forum

Forum > Port

Forum

Forum > Skins > Blue

Forum > Skins > Blue > Buttons

Forum > Skins > Blue > Other

Forum > Skins > Blue

Forum > Skins > Blue > Table

Forum > Skins > Blue

Forum > Smilies

Forum

Admin Poststatus.php:


<?php

if (isset($_GET["dele"])){
   echo (
"<div align=\"center\"><font size=\"$fsmall\" color=\"$fcolor\" face=\"$fface\">Successfuly updated the Status list.<br />Refreshing Status List!</font></div>\r\n");
   echo (
"<meta http-equiv=\"refresh\" content=\"2;url=admin.php?auth=poststatus\">");
}; 
//end isset $dele

if (isset($_POST["a"])){

   
$db->addRow("postcount",  array($_POST["old"],  $_POST["new"]),  false);
   
$db->reBuild();
   echo (
"<div align=\"center\"><font size=\"$fsmall\" color=\"$fcolor\" face=\"$fface\">Successfuly updated the Status list.</font></div>\r\n");

}; 
//end isset $a

echo ("<form method=\"post\" action=\"\">");
table_header("Post Status");
  echo (
"
<table border=\"0\" cellspacing=\"1\" cellpadding=\"3\" width=\"
$fwidth\" align=\"center\" bgcolor=\"$tborder_color2\">
  <tr class=\"background\" align=\"center\">
     <td  colspan=\"1\" width=\"33%\"><font size=\"
$fsmall\" color=\"$fsubtitle\" face=\"$fface\"><b>Post Count</b></td>
     <td  colspan=\"1\" width=\"33%\"><font size=\"
$fsmall\" color=\"$fsubtitle\" face=\"$fface\"><b>Alias Name</b></td>
     <td  colspan=\"1\" width=\"33%\"><font size=\"
$fsmall\" color=\"$fsubtitle\" face=\"$fface\"><b>Delete</b></td>
  </tr>"
);
  
for (
$postcount 2$postcount count($db->data["_DB"]["postcount"]); $postcount++){
  echo (
"<tr align=\"center\">
     <td  colspan=\"1\" width=\"33%\" bgcolor=\"
$tbackground2\"><font size=\"$fsmall\" color=\"$fcolor\" face=\"$fface\">".$db->data["_DB"]["postcount"]["$postcount"][0]."</td>
     <td  colspan=\"1\" width=\"33%\" bgcolor=\"
$tbackground2\"><font size=\"$fsmall\" color=\"$fcolor\" face=\"$fface\">".$db->data["_DB"]["postcount"]["$postcount"][1]."</td>
     <td  colspan=\"1\" width=\"33%\" bgcolor=\"
$tbackground2\"><font size=\"$fsmall\" color=\"$fcolor\" face=\"$fface\"><a href=\"admin.php?auth=poststatus&dele=$postcount\" title=\"[ $postcount ]\">Purge</a></td>
  </tr>"
);
}; 
//end for $postcount
  
echo ("
  <tr align=\"center\">
     <td  colspan=\"1\" width=\"33%\" bgcolor=\"
$tbackground1\"><font size=\"$fsmall\" color=\"$fcolor\" face=\"$fface\"><input type=\"text\" name=\"old\" size=\"20\"></td>
     <td  colspan=\"1\" width=\"33%\" bgcolor=\"
$tbackground1\"><font size=\"$fsmall\" color=\"$fcolor\" face=\"$fface\"><input type=\"text\" name=\"new\" size=\"20\"></td>
     <td  colspan=\"1\" width=\"33%\" bgcolor=\"
$tbackground1\"><font size=\"$fsmall\" color=\"$fcolor\" face=\"$fface\"><input type=\"submit\" name=\"a\" value=\"Add to postcount\" /></td>
  </tr>
</table>"
);
table_footer();

echo (
"</form>");

if (isset(
$_GET["dele"])){
  
$db->deleteRow("postcount",  $_GET["dele"]);
  
$db->reBuild();
}; 
//end isset $dele

?>



Other Discussion Boards Scripts:

WebMaster Resources Home

©RingsWorld.com