<commit_before>{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-admin-include-intertiki.tpl,v 1.12.2.1 2007-10-30 13:38:10 pkdille 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="{$prefs.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=$prefs.interlist key=k item=i}
      <option value="{$k|escape:'url'}"{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>
{if $prefs.interlist}
{foreach key=k item=i from=$prefs.interlist}
<tr><td class="button" colspan="2">
<a href="tiki-admin.php?page=intertiki&amp;del={$k|escape:'url'}"><img src="pics/icons/cross.png" 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><commit_msg>[FIX]intertiki: une option needs only a html escape not an url escape - to have an option value like test/tiki<commit_after>{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-admin-include-intertiki.tpl,v 1.12.2.2 2007-12-01 21:50:22 sylvieg 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="{$prefs.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=$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>
{if $prefs.interlist}
{foreach key=k item=i from=$prefs.interlist}
<tr><td class="button" colspan="2">
<a href="tiki-admin.php?page=intertiki&amp;del={$k|escape:'url'}"><img src="pics/icons/cross.png" 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>
{'fraction_non_alphanumeric': 0.2122149650509912, 'fraction_numerical': 0.008250257820556892, 'mean_word_length': 5.81875, 'pattern_counts': {'":': 0, '<': 219, '<?xml version=': 0, '>': 219, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5928818', 'n_tokens_mistral': 3230, 'n_tokens_neox': 3094, 'n_words': 611}