<?php
/********************************************************/
/* NSN Your Account                                     */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.fr                            */
/* Original Script www.nukescripst.net                  */
/* Copyright © 2000-2005 by NukeScripts Network         */
/* ==================================================== */
/* Based from:                                          */
/* PHP-NUKE: Web Portal System                          */
/********************************************************/
defined('IN_YA') OR die ('Access denied editcomm MAXIMUS directly...');
defined('MAXIMUS') OR header("Location: index.php");

    getusrinfo($user);
    if (($userinfo['username'] == $cookie[1]) AND ($userinfo['user_password'] == $cookie[2])) {
        incoh();
        title(_COMMENTSCONFIG);
        Max_OpenTable();
        nav();
        Max_CloseTable();
        br('1');
        Max_OpenTable();
        echo "<table cellpadding=\"8\" border=\"0\">";
        echo "<form action=\"modules.php?name=$module_name\" method=\"post\">";
        echo "<tr><td><b>"._DISPLAYMODE."</b>";
        echo "<select name=\"umode\">";
        ?>
        <option value="nocomments" <?php if ($userinfo[umode] == 'nocomments') { echo "selected"; } ?>><?php echo _NOCOMMENTS ?>
        <option value="nested" <?php if ($userinfo[umode] == 'nested') { echo "selected"; } ?>><?php echo _NESTED ?>
        <option value="flat" <?php if ($userinfo[umode] == 'flat') { echo "selected"; } ?>><?php echo _FLAT ?>
        <option value="thread" <?php if (!isset($userinfo[umode]) || ($userinfo[umode]=="") || $userinfo[umode]=='thread') { echo "selected"; } ?>><?php echo _THREAD ?>
        </select>
        <br /><br />
        <b><?php echo _SORTORDER ?></b>
        <select name="uorder">
        <option value="0" <?php if (!$userinfo[uorder]) { echo "selected"; } ?>><?php echo _OLDEST ?>
        <option value="1" <?php if ($userinfo[uorder]==1) { echo "selected"; } ?>><?php echo _NEWEST ?>
        <option value="2" <?php if ($userinfo[uorder]==2) { echo "selected"; } ?>><?php echo _HIGHEST ?>
        </select>
        <br /><br />
        <b><?php echo _THRESHOLD ?></b>
        <?php echo _COMMENTSWILLIGNORED ?><br />
        <select name="thold">
        <option value="-1" <?php if ($userinfo[thold]==-1) { echo "selected"; } ?>>-1: <?php echo _UNCUT ?>
        <option value="0" <?php if ($userinfo[thold]==0) { echo "selected"; } ?>>0: <?php echo _EVERYTHING ?>
        <option value="1" <?php if ($userinfo[thold]==1) { echo "selected"; } ?>>1: <?php echo _FILTERMOSTANON ?>
        <option value="2" <?php if ($userinfo[thold]==2) { echo "selected"; } ?>>2: <?php echo _USCORE ?> +2
        <option value="3" <?php if ($userinfo[thold]==3) { echo "selected"; } ?>>3: <?php echo _USCORE ?> +3
        <option value="4" <?php if ($userinfo[thold]==4) { echo "selected"; } ?>>4: <?php echo _USCORE ?> +4
        <option value="5" <?php if ($userinfo[thold]==5) { echo "selected"; } ?>>5: <?php echo _USCORE ?> +5
        </select><br />
        <i><?php echo _SCORENOTE ?></i>
        <br /><br />
        <INPUT type="checkbox" name="noscore" <?php if ($userinfo[noscore]==1) { echo "checked"; } ?>><b> <?php echo _NOSCORES ?></b> <?php echo _HIDDESCORES ?>
        <br /><br />
        <b><?php echo _MAXCOMMENT ?></b> <?php echo _TRUNCATES ?><br />
        <input type="text" name="commentmax" value="<?php echo $userinfo[commentmax] ?>" size=11 maxlength=11> <?php echo _BYTESNOTE ?>
        <br /><br />
        <input type="hidden" name="username" value="<?php echo"$userinfo[username]"; ?>">
        <input type="hidden" name="user_id" value="<?php echo"$userinfo[user_id]"; ?>">
        <input type="hidden" name="op" value="savecomm">
        <input type="submit" value="<?php echo _SAVECHANGES ?>">
        </td></tr></form></table>
        <?php
        Max_CloseTable();
        incof();
    } else {
        mmain($user);
    }