home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / wiki / template / prefs.php < prev    next >
PHP Script  |  2004-03-08  |  3KB  |  84 lines

  1. <?php
  2. // $Id: prefs.php,v 1.1 2004/01/12 22:14:05 comsubvie Exp $
  3.  
  4. require('parse/html.php');
  5. require_once(TemplateDir . '/common.php');
  6.  
  7. function template_prefs()
  8. {
  9.   global $PrefsScript, $HTTP_REFERER, $HistMax, $TimeZoneOff;
  10.   global $AuthorDiff, $EditRows, $EditCols, $UserName, $DayLimit, $MinEntries;
  11.  
  12.   template_common_prologue(array('norobots' => 1,
  13.                                  'title'    => TMPL_Prefs,
  14.                                  'heading'  => TMPL_Prefs,
  15.                                  'headlink' => '',
  16.                                  'headsufx' => '',
  17.                                  'toolbar'  => 0));
  18. ?>
  19. <div id="body">
  20. <form action="<?php print $PrefsScript; ?>" method="post">
  21. <div class="form">
  22.   <input type="hidden" name="referrer" value="<?php print $HTTP_REFERER; ?>" />
  23.  
  24.   <strong>User name</strong><br /><br />
  25.  
  26.   This feature displays your name on RecentChanges to the right
  27.   of pages you edit.  If left blank, your IP address will be
  28.   displayed instead.<br /><br />
  29.   <input type="text" name="user" value="<?php print $UserName; ?>" /><br />
  30.   <hr />
  31.  
  32.   <strong>Edit box</strong><br /><br />
  33.   Rows: <input type="text" name="rows" value="<?php print $EditRows; ?>" /><br />
  34.   Columns: <input type="text" name="cols" value="<?php
  35.     print $EditCols; ?>" /><br />
  36.   <hr />
  37.  
  38.   <strong>History lists</strong><br /><br />
  39.   Enter here the maximum number of entries to display in a document's history
  40.   list.<br /><br />
  41.   <input type="text" name="hist" value="<?php print $HistMax; ?>" /><br /><br />
  42.  
  43.   <strong>RecentChanges</strong><br /><br />
  44.   Choose your current time here, so the server may figure out what time zone
  45.   you are in.<br /><br />
  46.   <select name="tzoff">
  47. <?php
  48.   for($i = -23.5 * 60; $i <= 23.5 * 60; $i += 30)
  49.   {
  50. ?>
  51. <option value="<?php print $i; ?>"<?php if($i == $TimeZoneOff) { print ' selected="selected"'; } ?>><?php
  52.     print date('Y-m-d H:i', time() + $i * 60);
  53. ?></option>
  54. <?php
  55.   }
  56. ?>
  57.   </select><br /><br />
  58.   Enter here the number of days of edits to display on RecentChanges or any
  59.   other subscription list.  Set this to zero if you wish to see all pages in
  60.   RecentChanges, regardless of how recently they were edited.<br /><br />
  61.   <input type="text" name="days" value="<?php print $DayLimit; ?>" /><br /><br />
  62.   <em>But</em> display at least this many entries in RecentChanges and other
  63.   subscription lists:<br /><br />
  64.   <input type="text" name="min" value="<?php print $MinEntries; ?>" /><br /><br />
  65.   <input type="checkbox" name="auth"<?php
  66.     if($AuthorDiff) { print ' checked="checked"'; } ?> />
  67.   History display should show <em>all</em> changes made by the latest
  68.   author.  Otherwise, show only the last change made.<br />
  69.  
  70.   <hr /><br />
  71.   <input type="submit" name="Save" value="Save" />
  72. </div>
  73. </form>
  74. </div>
  75. <?php
  76.   template_common_epilogue(array('twin'      => '',
  77.                                  'edit'      => '',
  78.                                  'editver'   => 0,
  79.                                  'history'   => '',
  80.                                  'timestamp' => '',
  81.                                  'nosearch'  => 1));
  82. }
  83. ?>
  84.