2007-10-10 19:15:47 +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
|
|
|
*
|
2010-01-08 01:14:29 +03:00
|
|
|
* Copyright (c) 2005-2010 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
|
|
|
*
|
2007-10-10 19:15:47 +04:00
|
|
|
* Contributors:
|
|
|
|
* Evgeny Gryaznov - initial API and implementation
|
|
|
|
*/
|
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
require_once("inc_menu.php");
|
2010-05-02 21:44:38 +04:00
|
|
|
require_once("inc_tabbar.php");
|
2009-03-12 04:07:35 +03:00
|
|
|
$page['title'] = getlocal("page.gen_button.title");
|
|
|
|
$page['menuid'] = "getcode";
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-25 02:34:57 +03:00
|
|
|
function tpl_content() { global $page, $webimroot, $errors;
|
2009-03-12 04:07:35 +03:00
|
|
|
?>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
<?php echo getlocal("page.gen_button.intro") ?>
|
|
|
|
<br />
|
|
|
|
<br />
|
2009-03-25 02:34:57 +03:00
|
|
|
<?php
|
|
|
|
require_once('inc_errors.php');
|
|
|
|
?>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
<form name="buttonCodeForm" method="get" action="<?php echo $webimroot ?>/operator/getcode.php">
|
2010-05-02 21:44:38 +04:00
|
|
|
<div>
|
|
|
|
<?php print_tabbar(); ?>
|
2009-03-12 04:07:35 +03:00
|
|
|
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
<div class="fieldForm">
|
2010-01-09 23:58:27 +03:00
|
|
|
|
|
|
|
<div class="fieldinrow">
|
2009-07-24 12:06:24 +04:00
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.choose_locale") ?></div>
|
2009-03-12 04:07:35 +03:00
|
|
|
<div class="fvaluenodesc">
|
2009-07-24 12:06:24 +04:00
|
|
|
<select name="lang" onchange="this.form.submit();"><?php foreach($page['availableLocales'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("lang") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2008-09-30 02:55:18 +04:00
|
|
|
|
2010-05-02 21:44:38 +04:00
|
|
|
<?php if($page['showgroups']) { ?>
|
2010-01-09 23:58:27 +03:00
|
|
|
<div class="fieldinrow">
|
2010-05-02 21:44:38 +04:00
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.choose_group") ?></div>
|
2009-03-12 04:07:35 +03:00
|
|
|
<div class="fvaluenodesc">
|
2010-05-02 21:44:38 +04:00
|
|
|
<select name="group" onchange="this.form.submit();"><?php foreach($page['groups'] as $k) { echo "<option value=\"".$k['groupid']."\"".($k['groupid'] == form_value("group") ? " selected=\"selected\"" : "").">".$k['vclocalname']."</option>"; } ?></select>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2010-05-02 21:44:38 +04:00
|
|
|
<?php } ?>
|
2010-01-09 23:58:27 +03:00
|
|
|
<br clear="all"/>
|
2008-09-30 02:55:18 +04:00
|
|
|
|
2010-01-09 23:58:27 +03:00
|
|
|
<div class="fieldinrow">
|
2010-05-02 21:44:38 +04:00
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.choose_image") ?></div>
|
2009-03-25 02:34:57 +03:00
|
|
|
<div class="fvaluenodesc">
|
2010-05-02 21:44:38 +04:00
|
|
|
<select name="i" onchange="this.form.submit();"><?php foreach($page['availableImages'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("image") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
|
2009-03-25 02:34:57 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2010-01-09 23:58:27 +03:00
|
|
|
<div class="fieldinrow">
|
2009-03-12 04:07:35 +03:00
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.choose_style") ?></div>
|
|
|
|
<div class="fvaluenodesc">
|
|
|
|
<select name="style" onchange="this.form.submit();"><?php foreach($page['availableStyles'] as $k => $v) { echo "<option value=\"".$k."\"".($k == form_value("style") ? " selected=\"selected\"" : "").">".$v."</option>"; } ?></select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2010-01-09 23:58:27 +03:00
|
|
|
<br clear="all"/>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2010-01-09 23:58:27 +03:00
|
|
|
<div class="fieldinrow">
|
2009-03-12 04:07:35 +03:00
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.include_site_name") ?></div>
|
|
|
|
<div class="fvaluenodesc">
|
|
|
|
<input type="checkbox" name="hostname" value="on"<?php echo form_value_cb('hostname') ? " checked=\"checked\"" : "" ?> onchange="this.form.submit();"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
|
|
|
<?php if( $page['formhostname'] ) { ?>
|
2009-03-12 04:07:35 +03:00
|
|
|
|
2010-01-09 23:58:27 +03:00
|
|
|
<div class="fieldinrow">
|
2009-03-12 04:07:35 +03:00
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.secure_links") ?></div>
|
|
|
|
<div class="fvaluenodesc">
|
|
|
|
<input type="checkbox" name="secure" value="on"<?php echo form_value_cb('secure') ? " checked=\"checked\"" : "" ?> onchange="this.form.submit();"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2007-10-10 19:15:47 +04:00
|
|
|
<?php } ?>
|
2010-01-09 23:58:27 +03:00
|
|
|
<br clear="all"/>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-07-24 12:06:24 +04:00
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.modsecurity") ?></div>
|
|
|
|
<div class="fvaluenodesc">
|
|
|
|
<input type="checkbox" name="modsecurity" value="on"<?php echo form_value_cb('modsecurity') ? " checked=\"checked\"" : "" ?> onchange="this.form.submit();"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.code") ?></div>
|
2009-04-24 19:09:46 +04:00
|
|
|
<div class="fvaluewithta" dir="ltr">
|
2009-03-12 04:07:35 +03:00
|
|
|
<textarea cols="44" rows="15"><?php echo htmlspecialchars($page['buttonCode']) ?></textarea>
|
|
|
|
</div>
|
|
|
|
<div class="fdescr"><?php echo getlocal("page.gen_button.code.description") ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.sample") ?></div>
|
|
|
|
<div class="fvaluenodesc">
|
|
|
|
<?php echo $page['buttonCode'] ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
|
2010-05-02 21:44:38 +04:00
|
|
|
</div>
|
2007-10-10 19:15:47 +04:00
|
|
|
</form>
|
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
<?php
|
|
|
|
} /* content */
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
require_once('inc_main.php');
|
|
|
|
?>
|