Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: .
- ===================================================================
- --- . (revision 55937)
- +++ . (working copy)
- @@ -2,219 +2,223 @@
- {tabset name="admin_interwiki"}
- {tab name="{tr}Intertiki client{/tr}"}
- <h2>{tr}Intertiki client{/tr}</h2>
- - <form action="tiki-admin.php?page=intertiki" method="post" name="intertiki">
- + <form action="tiki-admin.php?page=intertiki" method="post" name="intertiki" class="form-horizontal">
- <input type="hidden" name="ticket" value="{$ticket|escape}">
- - <table class="formcolor">
- - <tr>
- - <td>{tr}Feature{/tr}</td>
- - <td>{preference name=feature_intertiki}</td>
- - </tr>
- - <tr>
- - <td>{tr}Tiki Unique key{/tr}</td>
- - <td><input type="text" name="tiki_key" value="{$prefs.tiki_key}" size="32" /></td>
- - </tr>
- - <tr>
- - <td>
- - {tr}InterTiki Slave mode{/tr}
- - <br>
- - <small>{tr}Warning: overrides manually registered local users{/tr}</small>
- - </td>
- - <td>
- - {jq}
- - {literal}
- - function check_server_visibility(sel) {
- - if (sel.selectedIndex == 0) {
- - document.getElementById('admin-server-options').style.display = 'block';
- - document.getElementById('admin-slavemode-options').style.display = 'none';
- - } else {
- - document.getElementById('admin-server-options').style.display = 'none';
- - document.getElementById('admin-slavemode-options').style.display = 'block';
- - }
- + <div class="form-group">
- + <label class="col-sm-3 control-label">Feature</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + {preference name=feature_intertiki}
- + </div>
- + </div>
- + <div class="form-group">
- + <label class="col-sm-3 control-label">Tiki Unique key</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="text" name="tiki_key" value="{$prefs.tiki_key}" size="32" class="form-control"/>
- + </div>
- + </div>
- + <div class="form-group">
- + <label class="col-sm-3 control-label">InterTiki Slave mode
- + <small>Warning: overrides manually registered local users</small></label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <select name="feature_intertiki_mymaster" onchange="check_server_visibility(this);" class="form-control">
- + <option value="">{tr}No{/tr}</option>
- + {foreach from=$prefs.interlist key=k item=i}
- + <option value="{$k|escape}"{if $prefs.feature_intertiki_mymaster eq $k} selected="selected"{/if}>{$i.name} {tr}as master{/tr}</option>
- + {/foreach}
- + </select>
- + {jq}
- + {literal}
- + function check_server_visibility(sel) {
- + if (sel.selectedIndex == 0) {
- + document.getElementById('admin-server-options').style.display = 'block';
- + document.getElementById('admin-slavemode-options').style.display = 'none';
- + } else {
- + document.getElementById('admin-server-options').style.display = 'none';
- + document.getElementById('admin-slavemode-options').style.display = 'block';
- }
- - {/literal}
- - {/jq}
- -
- - <select name="feature_intertiki_mymaster" onchange="check_server_visibility(this);">
- - <option value="">{tr}No{/tr}</option>
- - {foreach from=$prefs.interlist key=k item=i}
- - <option value="{$k|escape}"{if $prefs.feature_intertiki_mymaster eq $k} selected="selected"{/if}>{$i.name} {tr}as master{/tr}</option>
- - {/foreach}
- - </select>
- - <div id="admin-slavemode-options" style="display: {if $prefs.feature_intertiki_mymaster eq ''}none{else}block{/if}">
- - <input type="checkbox" name="feature_intertiki_import_preferences" {if $prefs.feature_intertiki_import_preferences eq 'y'}checked="checked"{/if}/>
- - {tr}Import user preferences{/tr}<br>
- -
- - <input type="checkbox" name="feature_intertiki_import_groups" {if $prefs.feature_intertiki_import_groups eq 'y'}checked="checked"{/if}/>
- - {tr}Import user groups{/tr}
- - <br>
- - {tr}Limit group import (comma-separated list of imported groups, leave empty to avoid limitation){/tr}
- - <br>
- - <input type="text" name="feature_intertiki_imported_groups" value="{$prefs.feature_intertiki_imported_groups}" />
- - </div>
- - </td>
- - </tr>
- - <tr>
- - <td>
- - {tr}Intertiki shared cookie for sliding auth under same domain:{/tr}
- - </td>
- - <td>
- - <input type="checkbox" name="feature_intertiki_sharedcookie" {if $prefs.feature_intertiki_sharedcookie eq 'y'}checked="checked"{/if}/>
- - </td>
- - </tr>
- - {if $prefs.interlist}
- - {foreach key=k item=i from=$prefs.interlist}
- - <tr>
- - <td colspan="2">
- - <a href="tiki-admin.php?page=intertiki&del={$k|escape:'url'}" class="tips" title=":{tr}Delete{/tr}">{icon name='delete'}</a>
- - {tr}InterTiki Server{/tr} <b>{$k}</b>
- - </td>
- - </tr>
- - <tr>
- - <td>{tr}Name{/tr}</td>
- - <td><input type="text" name="interlist[{$k}][name]" value="{$i.name}" /></td>
- - </tr>
- - <tr>
- - <td>{tr}host{/tr}</td>
- - <td><input type="text" name="interlist[{$k}][host]" value="{$i.host}" /></td>
- - </tr>
- - <tr>
- - <td>{tr}port{/tr}</td>
- - <td><input type="text" name="interlist[{$k}][port]" value="{$i.port}" /></td>
- - </tr>
- - <tr>
- - <td>{tr}Path{/tr}</td>
- - <td><input type="text" name="interlist[{$k}][path]" value="{$i.path}" /></td>
- - </tr>
- - <tr>
- - <td>{tr}Groups{/tr}</td>
- - <td>
- - <input type="text" name="interlist[{$k}][groups]" value="{foreach item=g from=$i.groups name=f}{$g}{if !$smarty.foreach.f.last},{/if}{/foreach}" />
- - </td>
- - </tr>
- - {/foreach}
- - {/if}
- - <tr>
- - <td colspan="2">{tr}Add new server{/tr}</td>
- - </tr>
- - <tr>
- - <td>{tr}Name{/tr}</td>
- - <td><input type="text" name="new[name]" value="" /></td>
- - </tr>
- - <tr>
- - <td>{tr}host{/tr}</td>
- - <td><input type="text" name="new[host]" value="" /></td>
- - </tr>
- - <tr>
- - <td>{tr}port{/tr}</td>
- - <td><input type="text" name="new[port]" value="" /></td>
- - </tr>
- - <tr>
- - <td>{tr}Path{/tr}</td>
- - <td><input type="text" name="new[path]" value="" /></td>
- - </tr>
- - <tr>
- - <td>{tr}Groups{/tr}</td>
- - <td><input type="text" name="new[groups]" value="" /></td>
- - </tr>
- - </table>
- + }
- + {/literal}
- + {/jq}
- + </div>
- + </div>
- + <div id="admin-slavemode-options" style="display: {if $prefs.feature_intertiki_mymaster eq ''}none{else}block{/if}">
- + <div class="form-group">
- + <label class="col-sm-3 control-label">Import user preferences</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="checkbox" name="feature_intertiki_import_preferences" {if $prefs.feature_intertiki_import_preferences eq 'y'}checked="checked"{/if} class="form-control" />
- + </div>
- + <label class="col-sm-3 control-label">Import user groups</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="checkbox" name="feature_intertiki_import_groups" {if $prefs.feature_intertiki_import_groups eq 'y'}checked="checked"{/if} class="form-control" />
- + </div>
- + <label class="col-sm-3 control-label">Limit group import (comma-separated list of imported groups, leave empty to avoid limitation)</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="text" name="feature_intertiki_imported_groups" value="{$prefs.feature_intertiki_imported_groups}" class="form-control" />
- + </div>
- + </div>
- + </div>
- + <div class="form-group">
- + <label class="col-sm-3 control-label">Intertiki shared cookie for sliding auth under same domain</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="checkbox" name="feature_intertiki_sharedcookie" {if $prefs.feature_intertiki_sharedcookie eq 'y'}checked="checked"{/if} class="form-control" />
- + </div>
- + </div>
- + <div class="form-group">
- + <label class="col-sm-3 control-label">Add new server</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="text" name="new[name]" value="" class="form-control text-center"
- + placeholder="Server Name"/>
- + </div>
- + <div class="col-sm-7 col-sm-offset-5">
- + <input type="text" name="new[port]" value="" class="form-control text-center"
- + placeholder="Server Port"/>
- + </div>
- + <div class="col-sm-7 col-sm-offset-5">
- + <input type="text" name="new[path]" value="" class="form-control text-center"
- + placeholder="Server Path"/>
- + </div>
- + <div class="col-sm-7 col-sm-offset-5">
- + <input type="text" name="new[groups]" value="" class="form-control text-center"
- + placeholder="Server Groups"/>
- + </div>
- + </div>
- + <div class="form-group">
- + <label class="col-sm-3 text-left control-label ">InterTiki Servers</label>
- + <div class="col-sm-9"></div>
- + </div>
- + {if $prefs.interlist}
- + </br>
- + <div class="form-group">
- + <div class="col-sm-12">
- + <table class="table table-responsive table-bordered">
- + <thead>
- + <tr>
- + <td>Name</td>
- + <td>Host</td>
- + <td>Port</td>
- + <td>Path</td>
- + <td>Group</td>
- + <td>Remove</td>
- + </tr>
- + </thead>
- + <tbody>
- + {foreach key=k item=i from=$prefs.interlist}
- + <tr>
- + <td><input type="text" class="form-control" name="interlist[{$k}][name]" value="{$i.name}" /></td>
- + <td><input type="text" class="form-control" name="interlist[{$k}][host]" value="{$i.host}" /></td>
- + <td><input type="text" class="form-control" name="interlist[{$k}][port]" value="{$i.port}" /></td>
- + <td><input type="text" class="form-control" name="interlist[{$k}][path]" value="{$i.path}" /></td>
- + <td><input type="text" class="form-control" name="interlist[{$k}][groups]" value="{foreach item=g from=$i.groups name=f}{$g}{if !$smarty.foreach.f.last},{/if}{/foreach}" /></td>
- + <td>
- + <a href="tiki-admin.php?page=intertiki&del={$k|escape:'url'}" class="tips" title=":{tr}Delete{/tr}">{icon name='delete'}</a>
- + {tr}InterTiki Server{/tr} <b>{$k}</b>
- + </td>
- + </tr>
- + {/foreach}
- + <tbody>
- + </table>
- + </div>
- + </div>
- + {/if}
- + </br>
- <div class="heading input_submit_container" style="text-align: center">
- - <input type="submit" class="btn btn-default btn-sm" name="intertikiclient" value="{tr}Save{/tr}" />
- + <input type="submit" class="btn btn-primary btn-block" name="intertikiclient" value="{tr}Save{/tr}" />
- </div>
- </form>
- {/tab}
- -
- {if $prefs.feature_intertiki_mymaster eq ''}
- {tab name="{tr}Intertiki server{/tr}"}
- <h2>{tr}Intertiki server{/tr}</h2>
- - <form action="tiki-admin.php?page=intertiki" method="post" name="intertiki">
- + <form action="tiki-admin.php?page=intertiki" method="post" name="intertiki" class="form-horizontal">
- <input type="hidden" name="ticket" value="{$ticket|escape}">
- - <table class="table">
- - <tr>
- - <td>
- - {tr}Intertiki shared cookie for sliding auth under same domain:{/tr}</td>
- - <td>
- - <input type="checkbox" name="feature_intertiki_sharedcookie" {if $prefs.feature_intertiki_sharedcookie eq 'y'}checked="checked"{/if}/>
- - </td>
- - </tr>
- - <tr>
- - <td>
- - {tr}Intertiki Server enabled:{/tr}
- - </td>
- - <td>
- - <input type="checkbox" name="feature_intertiki_server" {if $prefs.feature_intertiki_server eq 'y'}checked="checked"{/if}/>
- - </td>
- - </tr>
- - <tr>
- - <td>
- - {tr}Access Log file:{/tr}
- - </td>
- - <td>
- - <input type="text" name="intertiki_logfile" value="{$prefs.intertiki_logfile}" size="42" />
- - </td>
- - </tr>
- - <tr>
- - <td>
- - {tr}Errors Log file:{/tr}
- - </td>
- - <td>
- - <input type="text" name="intertiki_errfile" value="{$prefs.intertiki_errfile}" size="42" />
- - </td>
- - </tr>
- - <tr>
- - <td colspan="2" class="input_submit_container">
- - {tr}Known hosts{/tr}
- - </td>
- - </tr>
- - <tr>
- - <td colspan="2">
- - <table>
- + <div class="form-group">
- + <label class="col-sm-3 control-label">Intertiki shared cookie for sliding auth under same domain</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="checkbox" name="feature_intertiki_sharedcookie" {if $prefs.feature_intertiki_sharedcookie eq 'y'}checked="checked"{/if} class="form-control" />
- + </div>
- + </div>
- + <div class="form-group">
- + <label class="col-sm-3 control-label">Intertiki Server enabled</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="checkbox" name="feature_intertiki_sharedcookie" {if $prefs.feature_intertiki_sharedcookie eq 'y'}checked="checked"{/if} class="form-control" />
- + </div>
- + </div>
- + <div class="form-group">
- + <label class="col-sm-3 control-label">Access Log file</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="text" name="intertiki_logfile" value="{$prefs.intertiki_logfile}" size="42" class="form-control" />
- + </div>
- + </div>
- + <div class="form-group">
- + <label class="col-sm-3 control-label">Access Log file</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="text" name="intertiki_logfile" value="{$prefs.intertiki_logfile}" size="42" class="form-control" />
- + </div>
- + </div>
- + <div class="form-group">
- + <label class="col-sm-3 control-label">Errors Log file</label>
- + <div class="col-sm-7 col-sm-offset-2">
- + <input type="text" name="intertiki_errfile" value="{$prefs.intertiki_errfile}" size="42" class="form-control" />
- + </div>
- + </div>
- + <div class="form-group">
- + <label class="col-sm-3 text-left control-label ">Known Hosts</label>
- + <div class="col-sm-9"></div>
- + </div>
- + <div class="form-group">
- + <div class="col-sm-12">
- + <table class="table table-responsive table-bordered">
- + <thead>
- <tr>
- <td> </td>
- - <td>{tr}Name{/tr}</td>
- - <td>{tr}Key{/tr}</td>
- - <td>{tr}IP{/tr}</td>
- - <td>{tr}Contact{/tr}</td>
- - <td>{tr}Can register{/tr}</td>
- + <td class="text-center">{tr}Name{/tr}</td>
- + <td class="text-center">{tr}Key{/tr}</td>
- + <td class="text-center">{tr}IP{/tr}</td>
- + <td class="text-center">{tr}Contact{/tr}</td>
- + <td class="text-center">{tr}Can register{/tr}</td>
- </tr>
- - {if $prefs.known_hosts}
- - {foreach key=k item=i from=$prefs.known_hosts}
- - <tr>
- - <td>
- - <a href="tiki-admin.php?page=intertiki&delk={$k|escape:'url'}" class="tips" title=":{tr}Delete{/tr}">{icon name='delete'}</a>
- - </td>
- - <td>
- - <input type="text" name="known_hosts[{$k}][name]" value="{$i.name}" size="12" />
- - </td>
- - <td>
- - <input type="text" name="known_hosts[{$k}][key]" value="{$i.key}" size="32" />
- - </td>
- - <td>
- - <input type="text" name="known_hosts[{$k}][ip]" value="{$i.ip}" size="12" />
- - </td>
- - <td>
- - <input type="text" name="known_hosts[{$k}][contact]" value="{$i.contact}" size="22" />
- - </td>
- - <td>
- - <input type="checkbox" name="known_hosts[{$k}][allowusersregister]" {if $i.allowusersregister eq 'y'}checked="checked"{/if} />
- - </td>
- - </tr>
- - {/foreach}
- - {/if}
- - <tr class="formrow">
- - <td>{tr}New:{/tr}</td>
- - <td><input type="text" name="newhost[name]" value="" size="12" /></td>
- - <td><input type="text" name="newhost[key]" value="" size="32" /></td>
- - <td><input type="text" name="newhost[ip]" value="" size="12" /></td>
- - <td><input type="text" name="newhost[contact]" value="" size="22" /></td>
- - <td><input type="checkbox" name="newhost[allowusersregister]" /></td>
- - </tr>
- - </table>
- - </td>
- - </tr>
- - </table>
- + </thead>
- + <tbody>
- + {if $prefs.known_hosts}
- + {foreach key=k item=i from=$prefs.known_hosts}
- + <tr>
- + <td>
- + <a href="tiki-admin.php?page=intertiki&delk={$k|escape:'url'}" class="tips" title=":{tr}Delete{/tr}">{icon name='delete'}</a>
- + </td>
- + <td>
- + <input type="text" class="form-control" name="known_hosts[{$k}][name]" value="{$i.name}" />
- + </td>
- + <td>
- + <input type="text" class="form-control" name="known_hosts[{$k}][key]" value="{$i.key}" />
- + </td>
- + <td>
- + <input type="text" class="form-control" name="known_hosts[{$k}][ip]" value="{$i.ip}" />
- + </td>
- + <td>
- + <input type="text" class="form-control" name="known_hosts[{$k}][contact]" value="{$i.contact}" />
- + </td>
- + <td>
- + <input type="checkbox" class="form-control" name="known_hosts[{$k}][allowusersregister]" {if $i.allowusersregister eq 'y'}checked="checked"{/if} />
- + </td>
- + </tr>
- + {/foreach}
- + {/if}
- + <tr>
- + <td>{tr}New:{/tr}</td>
- + <td><input type="text" class="form-control" name="newhost[name]" value="" /></td>
- + <td><input type="text" class="form-control" name="newhost[key]" value="" /></td>
- + <td><input type="text" class="form-control" name="newhost[ip]" value="" /></td>
- + <td><input type="text" class="form-control" name="newhost[contact]" value="" /></td>
- + <td><input type="checkbox" class="form-control" name="newhost[allowusersregister]" /></td>
- + </tr>
- + </tbody>
- + </table>
- + </div>
- + </div>
- <div class="heading input_submit_container" style="text-align: center">
- - <input type="submit" class="btn btn-default btn-sm" name="intertikiserver" value="{tr}Save{/tr}" />
- + <input type="submit" class="btn btn-primary btn-block" name="intertikiserver" value="{tr}Save{/tr}" />
- </div>
- + </br>
- </form>
- {/tab}
- {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement