2007-10-10 19:15:47 +04:00
|
|
|
<?php
|
|
|
|
/*
|
2013-03-07 01:22:53 +04:00
|
|
|
* Copyright 2005-2013 the original author or authors.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
2007-10-10 19:15:47 +04:00
|
|
|
*/
|
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
require_once("inc_menu.php");
|
|
|
|
$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">
|
|
|
|
<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">
|
2011-02-26 17:21:14 +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
|
|
|
|
2011-02-26 17:21:14 +03:00
|
|
|
<div class="fieldinrow">
|
2009-07-24 12:06:24 +04:00
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.choose_image") ?></div>
|
2009-03-12 04:07:35 +03:00
|
|
|
<div class="fvaluenodesc">
|
2009-09-01 12:50:11 +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-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-02-26 17:21:14 +03:00
|
|
|
<br clear="all"/>
|
2008-09-30 02:55:18 +04:00
|
|
|
|
2011-12-14 19:50:10 +04:00
|
|
|
|
|
|
|
|
2011-02-26 17:21:14 +03:00
|
|
|
<div class="fieldinrow">
|
2011-12-14 19:50:10 +04:00
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.choose_style") ?></div>
|
2009-03-25 02:34:57 +03:00
|
|
|
<div class="fvaluenodesc">
|
2011-12-14 19:50:10 +04:00
|
|
|
<select name="style" onchange="this.form.submit();"><?php foreach($page['availableChatStyles'] as $k => $v) { echo "<option value=\"".$k."\"".($k == form_value("style") ? " selected=\"selected\"" : "").">".$v."</option>"; } ?></select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if($page['enabletracking']) { ?>
|
|
|
|
<div class="fieldinrow">
|
|
|
|
<div class="flabel"><?php echo getlocal("page.gen_button.choose_invitationstyle") ?></div>
|
|
|
|
<div class="fvaluenodesc">
|
|
|
|
<select name="invitationstyle" onchange="this.form.submit();"><?php foreach($page['availableInvitationStyles'] as $k => $v) { echo "<option value=\"".$k."\"".($k == form_value("invitationstyle") ? " selected=\"selected\"" : "").">".$v."</option>"; } ?></select>
|
2009-03-25 02:34:57 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2011-12-14 19:50:10 +04:00
|
|
|
<br clear="all"/>
|
2009-03-25 02:34:57 +03:00
|
|
|
|
2011-02-26 17:21:14 +03:00
|
|
|
<div class="fieldinrow">
|
2011-12-14 19:50:10 +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">
|
2012-02-24 17:52:39 +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\"" : "").">".str_repeat(' ', $k['level']*2).$k['vclocalname']."</option>"; } ?></select>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-02-26 17:21:14 +03:00
|
|
|
<br clear="all"/>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2011-02-26 17:21:14 +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
|
|
|
|
2011-02-26 17:21:14 +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 } ?>
|
2011-02-26 17:21:14 +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>
|
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');
|
|
|
|
?>
|