2008-10-04 03:35:17 +04:00
|
|
|
<?php
|
|
|
|
/*
|
2009-06-04 02:44:32 +04:00
|
|
|
* This file is part of Mibew Messenger project.
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2009-06-04 02:44:32 +04:00
|
|
|
* Copyright (c) 2005-2009 Mibew Messenger Community
|
2009-08-04 19:03:27 +04:00
|
|
|
* All rights reserved. The contents of this file are subject to the terms of
|
|
|
|
* the Eclipse Public License v1.0 which accompanies this distribution, and
|
|
|
|
* is available at http://www.eclipse.org/legal/epl-v10.html
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2009-08-04 17:38:37 +04:00
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* the GNU General Public License Version 2 or later (the "GPL"), in which case
|
|
|
|
* the provisions of the GPL are applicable instead of those above. If you wish
|
|
|
|
* to allow use of your version of this file only under the terms of the GPL, and
|
|
|
|
* not to allow others to use your version of this file under the terms of the
|
|
|
|
* EPL, indicate your decision by deleting the provisions above and replace them
|
|
|
|
* with the notice and other provisions required by the GPL.
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2008-10-04 03:35:17 +04:00
|
|
|
* Contributors:
|
|
|
|
* Evgeny Gryaznov - initial API and implementation
|
|
|
|
*/
|
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
$page['title'] = getlocal("page_ban.title");
|
2008-10-04 03:35:17 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
function tpl_content() { global $page, $webimroot, $errors;
|
|
|
|
?>
|
2008-10-04 03:35:17 +04:00
|
|
|
|
|
|
|
<?php if( $page['saved'] ) { ?>
|
|
|
|
<?php echo getlocal2("page_ban.sent",array($page['address'])) ?>
|
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<script type="text/javascript"><!--
|
2008-10-04 03:35:17 +04:00
|
|
|
setTimeout( (function() { window.close(); }), 1500 );
|
|
|
|
//--></script>
|
2009-03-13 03:52:37 +03:00
|
|
|
<?php } else { ?>
|
2008-10-04 03:35:17 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<?php echo getlocal("page_ban.intro") ?>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
<?php
|
|
|
|
require_once('inc_errors.php');
|
|
|
|
?>
|
2008-10-04 03:35:17 +04:00
|
|
|
|
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<?php if( $page['thread'] ) { ?>
|
|
|
|
<?php echo getlocal2("page_ban.thread",array(htmlspecialchars($page['thread']))) ?><br/>
|
|
|
|
<br/>
|
|
|
|
<?php } ?>
|
2008-10-04 03:35:17 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<form name="banForm" method="post" action="<?php echo $webimroot ?>/operator/ban.php">
|
|
|
|
<input type="hidden" name="banId" value="<?php echo $page['banId'] ?>"/>
|
|
|
|
<?php if( $page['threadid'] ) { ?>
|
|
|
|
<input type="hidden" name="threadid" value="<?php echo $page['threadid'] ?>"/>
|
|
|
|
<?php } ?>
|
|
|
|
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
|
|
|
|
|
|
|
|
<div class="fieldForm">
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('form.field.address') ?><span class="required">*</span></div>
|
|
|
|
<div class="fvalue">
|
2008-10-04 03:35:17 +04:00
|
|
|
<input type="text" name="address" size="40" value="<?php echo form_value('address') ?>" class="formauth"/>
|
2009-03-13 03:52:37 +03:00
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('form.field.address.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-13 03:52:37 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('form.field.ban_days') ?><span class="required">*</span></div>
|
|
|
|
<div class="fvalue">
|
2008-10-04 03:35:17 +04:00
|
|
|
<input type="text" name="days" size="4" value="<?php echo form_value('days') ?>" class="formauth"/>
|
2009-03-13 03:52:37 +03:00
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('form.field.ban_days.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-13 03:52:37 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('form.field.ban_comment') ?></div>
|
|
|
|
<div class="fvalue">
|
2008-10-04 03:35:17 +04:00
|
|
|
<input type="text" name="comment" size="40" value="<?php echo form_value('comment') ?>" class="formauth"/>
|
2009-03-13 03:52:37 +03:00
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('form.field.ban_comment.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-13 03:52:37 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fbutton">
|
|
|
|
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
|
|
|
|
|
|
|
|
<div class="asterisk">
|
|
|
|
<?php echo getlocal("common.asterisk_explanation") ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
2008-10-04 03:35:17 +04:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<?php
|
|
|
|
} /* content */
|
|
|
|
|
|
|
|
require_once('inc_main.php');
|
|
|
|
?>
|