<?php
$admin = 2;
$file = __FILE__;
include_once ("../inc/inc_connect.php");

if ($action =="go")
{
    $query = "UPDATE $admintable SET strSoftEdit = '$Softedit', strSoftDelete = '$Softdelete'";
    mysql_query( $query, $link ) or die ( "Error! : ".mysql_error() );
}

include ("../inc/inc_common.php");
include ("../inc/inc_admincheck.php");
include ("../inc/inc_getdate.php");
include ("../inc/inc_forumname.php");
$page = "Admin - Customise Soft Options";
$pagelink = $file;
include("../inc/inc_setonline.php");
$title = "$name1 Admin - $gfcookie[1] - Customise Soft Options";
include ("../inc/inc_head.php");
include ("../inc/inc_body.php");
$title = "Customise Soft Options";
include ("../inc/inc_title.php");

if ($softedit == 1)
{
    $Softeditch = "Checked";
}
if ($softdelete == 1)
{
    $Softdeletech = "Checked";
}


$result=mysql_query("SELECT * FROM $admintable LIMIT 0, 1");
$num_rows = mysql_num_rows( $result );
while ( $a_row = mysql_fetch_object( $result ) )
{
    print "<table border=1 cellpadding=5 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"$bordercolor\" style=\"font-family: $font; font-size: $fontpoint\" bgcolor=\"$fgcolour\"><tr><td width=\"100%\" align=\"center\">

    <form method=\"post\" action=\"admin_cus_soft.php?action=go\"><br>

    <table border=0 cellpadding=3 cellspacing=0 width=100% style=\"font-family: $font; font-size: $fontpoint\">

    <tr><td align=\"center\">
    Switch On Soft Editing</td><td align=\"center\"><input type=\"checkbox\" $Softeditch name=\"Softedit\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Switch On Soft Deleting</td><td align=\"center\"><input type=\"checkbox\" $Softdeletech name=\"Softdelete\" value=\"1\"></td></tr>


    </table><br><br><input type=\"submit\" value=\"Set This Value\"></form></td></tr></table><br><br><a href=\"admin_customise.php\"><font size=2>Back to the Main Customise Page</a><br><br>
    Having \"soft\" changes switched on means that moderators can still see the original posts after they have been edited or deleted.";

}

include ("../inc/inc_footer.php");