0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
tikiwiki
/
1.9.7-31
/
htdocs
/
templates
/
[
Home
]
File: tiki-admin-include-intertiki.tpl
{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-admin-include-intertiki.tpl,v 1.1.2.11 2006/11/09 16:23:16 mose Exp $ *} <div class="cbox"> <div class="cbox-title">{tr}InterTiki{/tr} {help url="Intertiki" desc="{tr}Intertiki exchange feature{/tr}"} </div> </div> <div class="cbox"> <div class="cbox-title"> {tr}Important{/tr} </div> <div class="cbox-data"> <form action="tiki-admin.php?page=intertiki" method="post" name="intertiki"> <table class="admin"> <tr> <td class="form" colspan="2"><label for="alter_tiki_prefs_table"> {tr}Tiki preferences value field in db is set to be max. 250 characters long by default until now. That applies for the custom code content too. Check this field if you want to update your preferences database table to support more than 250 chars (although it was tested and works fine with mysql, it's recommended to backup your data manually before any database update){/tr}:</label> <input type="checkbox" name="alter_tiki_prefs_table" id="alter_tiki_prefs_table" /></td> </tr> <tr><td colspan="2" class="button"><input type="submit" name="alter_tiki_prefs_table" value="{tr}Save{/tr}" /></td></tr> </table> </form> </div> </div> <div class="cbox"> <div class="cbox-title"> {tr}Intertiki client{/tr} </div> <div class="cbox-data"> <form action="tiki-admin.php?page=intertiki" method="post" name="intertiki"> <table class="admin"> <tr><td class="form">{tr}Tiki Unique key{/tr}</td><td><input type="text" name="tiki_key" value="{$tiki_key}" size="32" /></td></tr> <tr> <td class="form"> {tr}InterTiki Slave mode{/tr}<br /> <small>{tr}Warning: overrides manually registered local users{/tr}</small> </td> <td> {literal} <script type="text/javascript"> 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'; } } </script> {/literal} <select name="feature_intertiki_mymaster" onChange="check_server_visibility(this);"> <option value="">{tr}No{/tr}</option> {foreach from=$interlist key=k item=i} <option value="{$k|escape:'url'}"{if $feature_intertiki_mymaster eq $k} selected{/if}>{$i.name} {tr} as master{/tr}</option> {/foreach} </select> <div id="admin-slavemode-options" style="display: {if $feature_intertiki_mymaster eq ''}none{else}block{/if}"> <input type="checkbox" name="feature_intertiki_import_preferences" {if $feature_intertiki_import_preferences eq 'y'}checked="checked"{/if}/> {tr}Import user preferences{/tr}<br /> <input type="checkbox" name="feature_intertiki_import_groups" {if $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="{$feature_intertiki_imported_groups}" /> </div> </td> </tr> {if $interlist} {foreach key=k item=i from=$interlist} <tr><td class="button" colspan="2"> <a href="tiki-admin.php?page=intertiki&del={$k|escape:'url'}"><img src="img/icons2/delete.gif" width="16" height="16" border="0" alt="{tr}delete{/tr}" /></a> {tr}InterTiki Server{/tr} <b>{$k}</b></td></tr> <tr><td class="form">{tr}name{/tr}</td><td><input type="text" name="interlist[{$k}][name]" value="{$i.name}" /></td></tr> <tr><td class="form">{tr}host{/tr}</td><td><input type="text" name="interlist[{$k}][host]" value="{$i.host}" /></td></tr> <tr><td class="form">{tr}port{/tr}</td><td><input type="text" name="interlist[{$k}][port]" value="{$i.port}" /></td></tr> <tr><td class="form">{tr}path{/tr}</td><td><input type="text" name="interlist[{$k}][path]" value="{$i.path}" /></td></tr> <tr><td class="form">{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 class="button" colspan="2">{tr}Add new server{/tr}</td></tr> <tr><td class="form">{tr}name{/tr}</td><td><input type="text" name="new[name]" value="" /></td></tr> <tr><td class="form">{tr}host{/tr}</td><td><input type="text" name="new[host]" value="" /></td></tr> <tr><td class="form">{tr}port{/tr}</td><td><input type="text" name="new[port]" value="" /></td></tr> <tr><td class="form">{tr}path{/tr}</td><td><input type="text" name="new[path]" value="" /></td></tr> <tr><td class="form">{tr}groups{/tr}</td><td><input type="text" name="new[groups]" value="" /></td></tr> <tr><td colspan="2" class="button"><input type="submit" name="intertikiclient" value="{tr}Save{/tr}" /></td></tr> </table> </form> </div> </div> <div class="cbox" id="admin-server-options" style="display: {if $feature_intertiki_mymaster eq ''}block{else}none{/if}"> <div class="cbox-title"> {tr}Intertiki server{/tr} </div> <div class="cbox-data"> <form action="tiki-admin.php?page=intertiki" method="post" name="intertiki"> <table class="admin"> <tr><td class="form">{tr}Intertiki Server enabled{/tr}:</td><td><input type="checkbox" name="feature_intertiki_server" {if $feature_intertiki_server eq 'y'}checked="checked"{/if}/></td></tr> <tr><td class="form">{tr}Access Log file{/tr}:</td><td><input type="text" name="intertiki_logfile" value="{$intertiki_logfile}" size="42" /></td></tr> <tr><td class="form">{tr}Errors Log file{/tr}:</td><td><input type="text" name="intertiki_errfile" value="{$intertiki_errfile}" size="42" /></td></tr> <tr><td colspan="2" class="button">{tr}Known hosts{/tr}</td></tr> <tr><td colspan="2" class="form"> <table> <tr><td> </td><td>{tr}Name{/tr}</td><td>{tr}Key{/tr}</td><td>{tr}IP{/tr}</td><td>{tr}Contact{/tr}</td></tr> {if $known_hosts} {foreach key=k item=i from=$known_hosts} <tr><td><a href="tiki-admin.php?page=intertiki&delk={$k|escape:'url'}"><img src="img/icons2/delete.gif" width="16" height="16" border="0" alt="{tr}delete{/tr}" /></a></td> <td class="form"><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></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></tr> </table> </td></tr> <tr><td colspan="2" class="button"><input type="submit" name="intertikiserver" value="{tr}Save{/tr}" /></td></tr> </table> </form> </div> </div>