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

if ($action =="go")
{
    $query = "UPDATE $admintable SET strTopicsPerPage = '$Topicsperpage', strPostsPerPage = '$Postsperpage', strMembersPerPage = '$Membersperpage'";
    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 Page Breaks";
$pagelink = $file;
include("../inc/inc_setonline.php");
$title = "$name1 Admin - $gfcookie[1] - Customise Page Breaks";
include ("../inc/inc_head.php");
include ("../inc/inc_body.php");
$title = "Customise Page Breaks";
include ("../inc/inc_title.php");



$result=mysql_query("SELECT * FROM $admintable LIMIT 0, 1");
$num_rows = mysql_num_rows( $result );
while ( $a_row = mysql_fetch_object( $result ) )
{
    print "<br><font size=2>
    Enter 0 to disable page breaking.<br>
    If you choose to break the posts pages search highlighting, random quote linking, last post linking and active topics may not function properly if the topic exceeds one page. For this reason, it is recommended that you leave the post display set to 0.
    <br><br><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_break.php?action=go\"><br>

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

    <tr><td align=\"center\">
    Number Of Topics To Display Per Page</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Topicsperpage\" value=\"$a_row->strTopicsPerPage\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Number Of Posts To Display Per Page</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Postsperpage\" value=\"$a_row->strPostsPerPage\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Number Of Members To Display Per Page</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Membersperpage\" value=\"$a_row->strMembersPerPage\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></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");