function tpl_content() { global $page, $mibewroot, $errors; ?> <?php if ($page['grid']) { echo getlocal("page.group.intro"); } if (!$page['grid']) { echo getlocal("page.group.create_new"); } ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("data.saved"); ?> </div> <?php } ?> <form name="groupForm" method="post" action="<?php echo $mibewroot; ?> /operator/group.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="gid" value="<?php echo safe_htmlspecialchars($page['grid']); ?> "/> <div> <?php print_tabbar(); ?> <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.groupname'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="name" size="40" value="<?php echo form_value('name'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.groupname.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.groupdesc'); ?> </div> <div class="fvalue"> <input type="text" name="description" size="40" value="<?php echo form_value('description'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.groupdesc.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.groupcommonname'); ?> </div> <div class="fvalue"> <input type="text" name="commonname" size="40" value="<?php echo form_value('commonname'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.groupcommonname.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.groupcommondesc'); ?> </div> <div class="fvalue"> <input type="text" name="commondescription" size="40" value="<?php echo form_value('commondescription'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.groupcommondesc.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.mail'); ?> </div> <div class="fvalue"> <input type="text" name="email" size="40" value="<?php echo form_value('email'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.groupemail.description'); ?> </div> <br clear="all"/> </div> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php echo getlocal("page_settings.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("settings.saved"); ?> </div> <?php } ?> <form name="performance" method="post" action="<?php echo $webimroot; ?> /operator/performance.php"> <?php print_csrf_token_input(); ?> <div> <?php print_tabbar(); ?> <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('settings.onlinetimeout'); ?> </div> <div class="fvalue"> <input type="text" name="onlinetimeout" size="40" value="<?php echo form_value('onlinetimeout'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.onlinetimeout.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.frequencyoperator'); ?> </div> <div class="fvalue"> <input type="text" name="frequencyoperator" size="40" value="<?php echo form_value('frequencyoperator'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.frequencyoperator.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.frequencychat'); ?> </div> <div class="fvalue"> <input type="text" name="frequencychat" size="40" value="<?php echo form_value('frequencychat'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.frequencychat.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.frequencyoldchat'); ?> </div> <div class="fvalue"> <input type="text" name="frequencyoldchat" size="40" value="<?php echo form_value('frequencyoldchat'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.frequencyoldchat.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.onehostconnections'); ?> </div> <div class="fvalue"> <input type="text" name="onehostconnections" size="40" value="<?php echo form_value('onehostconnections'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.onehostconnections.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.threadlifetime'); ?> </div> <div class="fvalue"> <input type="text" name="threadlifetime" size="40" value="<?php echo form_value('threadlifetime'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.threadlifetime.description'); ?> </div> <br clear="all"/> </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> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php if ($page['opid']) { echo getlocal("page_agent.intro"); } if (!$page['opid']) { echo getlocal("page_agent.create_new"); } ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['needChangePassword']) { ?> <div id="formmessage"><?php echo getlocal("error.no_password"); ?> </div> <br/> <?php } else { if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("data.saved"); ?> </div> <?php } } ?> <?php if ($page['opid'] || $page['canmodify']) { ?> <form name="agentForm" method="post" action="<?php echo $mibewroot; ?> /operator/operator.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="opid" value="<?php echo safe_htmlspecialchars($page['opid']); ?> "/> <?php if (!$page['showjabber']) { ?> <input type="hidden" name="jabber" value="<?php echo form_value('jabber'); ?> "/> <?php if (form_value_cb('jabbernotify')) { ?> <input type="hidden" name="jabbernotify" value="on"/><?php } } ?> <div> <?php if (!$page['needChangePassword']) { print_tabbar(); } ?> <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.login'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="login" size="40" value="<?php echo form_value('login'); ?> " class="formauth"<?php echo $page['canmodify'] && !$page['opid'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.login.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.mail'); ?> </div> <div class="fvalue"> <input type="text" name="email" size="40" value="<?php echo form_value('email'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.mail.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.password'); if (!$page['opid'] || $page['needChangePassword']) { ?> <span class="required">*</span><?php } ?> </div> <div class="fvalue"> <input type="password" name="password" size="40" value="" class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> autocomplete="off"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.password.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.password_confirm'); if (!$page['opid'] || $page['needChangePassword']) { ?> <span class="required">*</span><?php } ?> </div> <div class="fvalue"> <input type="password" name="passwordConfirm" size="40" value="" class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> autocomplete="off"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.password_confirm.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.agent_name'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="name" size="40" value="<?php echo form_value('name'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.agent_name.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.agent_commonname'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="commonname" size="40" value="<?php echo form_value('commonname'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.agent_commonname.description'); ?> </div> <br clear="all"/> </div> <?php if ($page['showjabber']) { ?> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.jabber'); ?> </div> <div class="fvalue"> <input type="text" name="jabber" size="40" value="<?php echo form_value('jabber'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.jabber.description'); ?> </div> <br clear="all"/> </div> <div class="field" style="padding-top:0.3em;"> <div class="flabel"><?php echo getlocal('form.field.jabbernotify'); ?> </div> <div class="fvalue"> <input type="checkbox" name="jabbernotify" value="on"<?php echo form_value_cb('jabbernotify') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.jabbernotify.description'); ?> </div> <br clear="all"/> </div> <?php } ?> <?php if ($page['canmodify']) { ?> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> <?php } ?> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php } }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php if ($page['saved']) { ?> <?php echo getlocal2("page_ban.sent", array(safe_htmlspecialchars($page['address']))); ?> <script type="text/javascript"><!-- setTimeout( (function() { window.close(); }), 1500 ); //--></script> <?php } else { ?> <?php echo getlocal("page_ban.intro"); ?> <br/> <br/> <?php require_once 'inc_errors.php'; ?> <?php if ($page['thread']) { ?> <?php echo getlocal2("page_ban.thread", array(safe_htmlspecialchars($page['thread']))); ?> <br/> <br/> <?php } ?> <form name="banForm" method="post" action="<?php echo $mibewroot; ?> /operator/ban.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="banId" value="<?php echo safe_htmlspecialchars($page['banId']); ?> "/> <?php if ($page['threadid']) { ?> <input type="hidden" name="threadid" value="<?php echo safe_htmlspecialchars($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"> <input type="text" name="address" size="40" value="<?php echo form_value('address'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.address.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.ban_days'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="days" size="4" value="<?php echo form_value('days'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.ban_days.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.ban_comment'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="comment" size="40" value="<?php echo form_value('comment'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.ban_comment.description'); ?> </div> <br clear="all"/> </div> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(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> <?php } ?> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php if ($page['saved']) { ?> <?php echo getlocal("page.translate.done"); ?> <script type="text/javascript"><!-- if(window.opener && window.opener.location) { window.opener.location.reload(); } setTimeout( (function() { window.close(); }), 500 ); //--></script> <?php } if (!$page['saved']) { ?> <?php echo getlocal("page.translate.one"); ?> <br/> <br/> <?php require_once 'inc_errors.php'; ?> <form name="translateForm" method="post" action="<?php echo $mibewroot; ?> /operator/translate.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="key" value="<?php echo safe_htmlspecialchars($page['key']); ?> "/> <input type="hidden" name="target" value="<?php echo safe_htmlspecialchars($page['target']); ?> "/> <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 safe_htmlspecialchars($page['title1']); ?> </div> <div class="fvaluenodesc"> <textarea name="original" disabled="disabled" cols="20" rows="5" class="wide"><?php echo form_value('original'); ?> </textarea> </div> </div> <div class="field"> <div class="flabel"><?php echo safe_htmlspecialchars($page['title2']); ?> </div> <div class="fvaluenodesc"> <textarea name="translation" cols="20" rows="5" class="wide"><?php echo form_value('translation'); ?> </textarea> </div> </div> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </form> <?php } ?> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php echo safe_htmlspecialchars(getlocal("page.groupmembers.intro")); ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo safe_htmlspecialchars(getlocal("data.saved")); ?> </div> <?php } ?> <form name="membersForm" method="post" action="<?php echo $mibewroot; ?> /operator/groupmembers.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="gid" value="<?php echo safe_htmlspecialchars($page['groupid']); ?> "/> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <p> <b><?php echo safe_htmlspecialchars($page['currentgroup']); ?> </b> </p> <?php foreach ($page['operators'] as $pm) { ?> <div class="field"> <div class="fvaluenodesc"> <input type="checkbox" name="op<?php echo safe_htmlspecialchars($pm['operatorid']); ?> " value="on"<?php echo form_value_mb('op', $pm['operatorid']) ? " checked=\"checked\"" : ""; ?> /> <?php echo safe_htmlspecialchars(topage($pm['vclocalename'])); ?> (<a href="operator.php?op=<?php echo urlencode($pm['operatorid']); ?> " ><?php echo safe_htmlspecialchars(topage($pm['vclogin'])); ?> </a>) </div> </div> <?php } ?> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> </form> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php echo getlocal("operator.groups.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("data.saved"); ?> </div> <?php } ?> <form name="opgroupsForm" method="post" action="<?php echo $mibewroot; ?> /operator/opgroups.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="op" value="<?php echo safe_htmlspecialchars($page['opid']); ?> "/> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <p> <b><?php echo safe_htmlspecialchars($page['currentop']); ?> ‎</b> </p> <?php foreach ($page['groups'] as $pm) { ?> <div class="field"> <div class="flabel"><?php echo safe_htmlspecialchars(topage($pm['vclocalname'])); ?> </div> <div class="fvalue"> <input type="checkbox" name="group<?php echo safe_htmlspecialchars($pm['groupid']); ?> " value="on"<?php echo form_value_mb('group', $pm['groupid']) ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo $pm['vclocaldescription'] ? safe_htmlspecialchars(topage($pm['vclocaldescription'])) : getlocal("operator.group.no_description"); ?> </div> <br clear="all"/> </div> <?php } ?> <?php if ($page['canmodify']) { ?> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> <?php } ?> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> </form> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php echo getlocal("page_avatar.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; ?> <form name="avatarForm" method="post" action="<?php echo $mibewroot; ?> /operator/avatar.php" enctype="multipart/form-data"> <?php print_csrf_token_input(); ?> <input type="hidden" name="op" value="<?php echo safe_htmlspecialchars($page['opid']); ?> "/> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <p> <b><?php echo safe_htmlspecialchars($page['currentop']); ?> ‎</b> </p> <div class="fieldForm"> <?php if ($page['avatar']) { ?> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.avatar.current'); ?> </div> <div class="fvalue"> <img src="<?php echo safe_htmlspecialchars($page['avatar']); ?> ?<?php echo rand(); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("page_avatar.cannot_load_avatar")); ?> "/><br/> <?php if ($page['canmodify']) { ?> <a class="formauth" href="<?php echo $mibewroot; ?> /operator/avatar.php?op=<?php echo urlencode($page['opid']); ?> &act=del<?php print_csrf_token_in_url(); ?> "> <?php echo getlocal("page_agent.clear_avatar"); ?> </a> <?php } ?> </div> <div class="fdescr"> — <?php echo getlocal('form.field.avatar.current.description'); ?> </div> <br clear="all"/> </div> <?php } else { if (!$page['canmodify']) { ?> <div class="field"> <div class="fvaluenodesc"> <?php echo getlocal('page_avatar.no_avatar'); ?> </div> </div> <?php } } ?> <?php if ($page['canmodify']) { ?> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.avatar.upload'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="file" name="avatarFile" size="40" value="<?php echo form_value('avatarFile'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.avatar.upload.description'); ?> </div> <br clear="all"/> </div> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> <?php } ?> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php echo getlocal("page_settings.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("settings.saved"); ?> </div> <?php } ?> <form name="settings" method="post" action="<?php echo $mibewroot; ?> /operator/settings.php"> <?php print_csrf_token_input(); ?> <div> <?php print_tabbar(); ?> <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('settings.email'); ?> </div> <div class="fvalue"> <input type="text" name="email" size="40" value="<?php echo form_value('email'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.email.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.company.title'); ?> </div> <div class="fvalue"> <input type="text" name="title" size="40" value="<?php echo form_value('title'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.company.title.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.chat.title'); ?> </div> <div class="fvalue"> <input type="text" name="chattitle" size="40" value="<?php echo form_value('chattitle'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.chat.title.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.logo'); ?> </div> <div class="fvalue"> <input type="text" name="logo" size="40" value="<?php echo form_value('logo'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.logo.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.host'); ?> </div> <div class="fvalue"> <input type="text" name="hosturl" size="40" value="<?php echo form_value('hosturl'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.host.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.geolink'); ?> </div> <div class="fvalue"> <input type="text" name="geolink" size="40" value="<?php echo form_value('geolink'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.geolink.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.geolinkparams'); ?> </div> <div class="fvalue"> <input type="text" name="geolinkparams" size="40" value="<?php echo form_value('geolinkparams'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.geolinkparams.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.usernamepattern'); ?> </div> <div class="fvalue"> <input type="text" name="usernamepattern" size="40" value="<?php echo form_value('usernamepattern'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.usernamepattern.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.chatstyle'); ?> </div> <div class="fvalue"> <select name="chatstyle" ><?php foreach ($page['availableStyles'] as $k) { echo "<option value=\"" . safe_htmlspecialchars($k) . "\"" . ($k == form_value("chatstyle") ? " selected=\"selected\"" : "") . ">" . safe_htmlspecialchars($k) . "</option>"; } ?> </select> </div> <div class="fdescr"> — <?php echo getlocal('settings.chatstyle.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.sendmessagekey'); ?> </div> <div class="fvaluenodesc"> <label> <input type="radio" name="sendmessagekey" value="enter" <?php echo form_value("sendmessagekey") == "enter" ? " checked=\"checked\"" : ""; ?> />Enter</label> <label> <input type="radio" name="sendmessagekey" value="center" <?php echo form_value("sendmessagekey") == "center" ? " checked=\"checked\"" : ""; ?> />Ctrl-Enter</label> </div> </div> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php if ($page['saved']) { ?> <?php echo getlocal("cannededit.done"); ?> <script><!-- if(window.opener && window.opener.location) { window.opener.location.reload(); } setTimeout( (function() { window.close(); }), 500 ); //--></script> <?php } if (!$page['saved']) { ?> <?php echo $page['key'] ? getlocal("cannededit.descr") : getlocal("cannednew.descr"); ?> <br/> <br/> <?php require_once 'inc_errors.php'; ?> <form name="cannedForm" method="post" action="<?php echo $webimroot; ?> /operator/cannededit.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="key" value="<?php echo $page['key']; ?> "/> <?php if (!$page['key']) { ?> <input type="hidden" name="lang" value="<?php echo $page['locale']; ?> "/> <input type="hidden" name="group" value="<?php echo $page['groupid']; ?> "/> <?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("cannededit.message"); ?> </div> <div class="fvaluenodesc"> <textarea name="message" cols="20" rows="5" class="wide"><?php echo form_value('message'); ?> </textarea> </div> </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> </form> <?php } ?> <?php }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php echo getlocal("permissions.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("data.saved"); ?> </div> <?php } ?> <form name="permissionsForm" method="post" action="<?php echo $webimroot; ?> /operator/permissions.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="op" value="<?php echo $page['opid']; ?> "/> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <p> <b><?php echo $page['currentop']; ?> ‎</b> </p> <?php foreach ($page['permissionsList'] as $pm) { ?> <label> <input type="checkbox" name="permissions<?php echo $pm['id']; ?> " value="on"<?php echo form_value_mb('permissions', $pm['id']) ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> <?php echo $pm['descr']; ?> </label> <br/> <?php } ?> <?php if ($page['canmodify']) { ?> <div class="fbutton"> <input type="image" name="save" value="" src='<?php echo $webimroot . getlocal("image.button.save"); ?> ' alt='<?php echo getlocal("button.save"); ?> '/> </div> <?php } ?> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> </form> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php echo getlocal("page_settings.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("features.saved"); ?> </div> <?php } ?> <form name="features" method="post" action="<?php echo $mibewroot; ?> /operator/features.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="sent" value="true"/> <div> <?php print_tabbar(); ?> <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('settings.usercanchangename'); ?> </div> <div class="fvalue"> <input type="checkbox" name="usercanchangename" value="on"<?php echo form_value_cb('usercanchangename') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.usercanchangename.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.enablessl'); ?> </div> <div class="fvalue"> <input id="enablessl" type="checkbox" name="enablessl" value="on"<?php echo form_value_cb('enablessl') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.enablessl.description'); ?> </div> <br clear="all"/> <div class="subfield underssl"> <div class="flabel"><?php echo getlocal('settings.forcessl'); ?> </div> <div class="fvalue"> <input type="checkbox" name="forcessl" value="on"<?php echo form_value_cb('forcessl') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.forcessl.description'); ?> </div> <br clear="all"/> </div> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.enablegroups'); ?> </div> <div class="fvalue"> <input type="checkbox" name="enablegroups" value="on"<?php echo form_value_cb('enablegroups') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.enablegroups.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.enablestatistics'); ?> </div> <div class="fvalue"> <input type="checkbox" name="enablestatistics" value="on"<?php echo form_value_cb('enablestatistics') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.enablestatistics.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.enablejabber'); ?> </div> <div class="fvalue"> <input type="checkbox" name="enablejabber" value="on"<?php echo form_value_cb('enablejabber') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.enablejabber.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.enableban'); ?> </div> <div class="fvalue"> <input type="checkbox" name="enableban" value="on"<?php echo form_value_cb('enableban') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.enableban.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.enablepresurvey'); ?> </div> <div class="fvalue"> <input id="enablepresurvey" type="checkbox" name="enablepresurvey" value="on"<?php echo form_value_cb('enablepresurvey') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.enablepresurvey.description'); ?> </div> <br clear="all"/> <div class="subfield undersurvey"> <div class="flabel"><?php echo getlocal('settings.survey.askmail'); ?> </div> <div class="fvalue"> <input type="checkbox" name="surveyaskmail" value="on"<?php echo form_value_cb('surveyaskmail') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.survey.askmail.description'); ?> </div> <br clear="all"/> </div> <div class="subfield undersurvey"> <div class="flabel"><?php echo getlocal('settings.survey.askgroup'); ?> </div> <div class="fvalue"> <input type="checkbox" name="surveyaskgroup" value="on"<?php echo form_value_cb('surveyaskgroup') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.survey.askgroup.description'); ?> </div> <br clear="all"/> </div> <div class="subfield undersurvey"> <div class="flabel"><?php echo getlocal('settings.survey.askmessage'); ?> </div> <div class="fvalue"> <input type="checkbox" name="surveyaskmessage" value="on"<?php echo form_value_cb('surveyaskmessage') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.survey.askmessage.description'); ?> </div> <br clear="all"/> </div> <div class="subfield undersurvey"> <div class="flabel"><?php echo getlocal('settings.survey.askcaptcha'); ?> </div> <div class="fvalue"> <input type="checkbox" name="surveyaskcaptcha" value="on"<?php echo form_value_cb('surveyaskcaptcha') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.survey.askcaptcha.description'); ?> </div> <br clear="all"/> </div> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.popup_notification'); ?> </div> <div class="fvalue"> <input type="checkbox" name="enablepopupnotification" value="on"<?php echo form_value_cb('enablepopupnotification') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.popup_notification.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.show_online_operators'); ?> </div> <div class="fvalue"> <input type="checkbox" name="showonlineoperators" value="on"<?php echo form_value_cb('showonlineoperators') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.show_online_operators.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.leavemessage_captcha'); ?> </div> <div class="fvalue"> <input type="checkbox" name="enablecaptcha" value="on"<?php echo form_value_cb('enablecaptcha') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('settings.leavemessage_captcha.description'); ?> </div> <br clear="all"/> </div> <?php if ($page['canmodify']) { ?> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> <?php } ?> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> </form> <?php }