[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/include/inc_tmpl/content/ -> cnt28.inc.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
   6   
   7     This script is part of PHPWCMS. The PHPWCMS web content management system is
   8     free software; you can redistribute it and/or modify it under the terms of
   9     the GNU General Public License as published by the Free Software Foundation;
  10     either version 2 of the License, or (at your option) any later version.
  11    
  12     The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
  13     A copy is found in the textfile GPL.txt and important notices to the license 
  14     from the author is found in LICENSE.txt distributed with these scripts.
  15    
  16     This script is distributed in the hope that it will be useful, but WITHOUT ANY 
  17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18     PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  19   
  20     This copyright notice MUST APPEAR in all copies of the script!
  21  *************************************************************************************/
  22  
  23  // ----------------------------------------------------------------
  24  // obligate check for phpwcms constants
  25  if (!defined('PHPWCMS_ROOT')) {
  26     die("You Cannot Access This Script Directly, Have a Nice Day.");
  27  }
  28  // ----------------------------------------------------------------
  29  
  30  
  31  // frontend login
  32  
  33  
  34  if(!isset($content['felogin']['felogin_cookie_expire'])) {
  35      $content['felogin']['felogin_cookie_expire'] = 2592000;
  36  }
  37  if(empty($content['felogin']['felogin_date_format'])) {
  38      $content['felogin']['felogin_date_format']    = '%m/%d/%y';
  39  }
  40  if(empty($content['felogin']['felogin_locale'])) {
  41      $content['felogin']['felogin_locale']    = '';
  42  }
  43  if(!isset($content['felogin']['felogin_validate_backenduser'])) {
  44      $content['felogin']['felogin_validate_backenduser']    = 1;
  45  }
  46  if(!isset($content['felogin']['felogin_validate_userdetail'])) {
  47      $content['felogin']['felogin_validate_userdetail']    = 1;
  48  }
  49  if(!isset($content['felogin']['felogin_profile_registration'])) {
  50      $content['felogin']['felogin_profile_registration']    = 1;
  51  }
  52  if(!isset($content['felogin']['felogin_profile_manage'])) {
  53      $content['felogin']['felogin_profile_manage']    = 1;
  54  }
  55  if(!isset($content['felogin']['felogin_reminder_subject'])) {
  56      $content['felogin']['felogin_reminder_subject']    = '';
  57  }
  58  if(!isset($content['felogin']['felogin_reminder_body'])) {
  59      $content['felogin']['felogin_reminder_body']    = '';
  60  }
  61  
  62  
  63  ?>
  64  <tr>
  65      <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template'] ?>:&nbsp;</td>
  66      <td><select name="template" id="template" class="f11b">
  67  <?php
  68  
  69  // templates for frontend login
  70  $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/felogin');
  71  if(is_array($tmpllist) && count($tmpllist)) {
  72      foreach($tmpllist as $val) {
  73          $selected_val = (isset($content['felogin_template']) && $val == $content['felogin_template']) ? ' selected="selected"' : '';
  74          $val = html_specialchars($val);
  75          echo '    <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF;
  76      }
  77  }
  78  
  79  ?>                  
  80          </select></td>
  81  </tr>
  82  
  83  <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  84  
  85  <tr>
  86    <td align="right" class="chatlist tdtop3"><?php echo $BL['be_settings'] ?>:&nbsp;</td>
  87    <td><table border="0" cellpadding="0" cellspacing="0" summary="">
  88      <tr>
  89          <td align="right" class="chatlist"><?php echo $BL['be_cookie_runtime'] ?>:&nbsp;</td>
  90          <td><input name="cookie_expire" type="text" class="f11b width150" id="cookie_expire" size="10" maxlength="10" onkeyup="if(!parseInt(this.value*1))this.value='0';" value="<?php echo $content['felogin']['felogin_cookie_expire']; ?>" /></td>
  91          <td class="f10">&nbsp;<?php echo $BL['be_cnt_guestbook_seconds'] ?></td>
  92      </tr>
  93      <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
  94      <tr>
  95          <td align="right" class="chatlist"><?php echo $BL['be_date_format'] ?>:&nbsp;</td>
  96          <td><input name="date_format" type="text" class="f11b width150" id="date_format" value="<?php echo $content['felogin']['felogin_date_format']; ?>" /></td>
  97          <td>&nbsp;<a href="http://www.php.net/strftime" target="_blank" title="PHP strftime"><img src="img/famfamfam/icon_info.gif" alt="Info" border="0" align="absmiddle" /></a></td>
  98      </tr>
  99      <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 100      <tr>
 101          <td align="right" class="chatlist"><?php echo $BL['be_locale'] ?>:&nbsp;</td>
 102          <td><input name="locale" type="text" class="f11b width150" id="locale" value="<?php echo $content['felogin']['felogin_locale']; ?>" /></td>
 103          <td>&nbsp;<a href="http://www.php.net/setlocale" target="_blank" title="PHP setlocale"><img src="img/famfamfam/icon_info.gif" alt="Info" border="0" align="absmiddle" /></a> (en, de_DE)</td>
 104      </tr>
 105      <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 106      
 107      <tr>
 108          <td align="right" class="chatlist tdtop4"><?php echo $BL['be_check_login_against'] ?>:&nbsp;</td>
 109          <td colspan="2" class="inlineCheckbox"><input type="checkbox" name="validate_userdetail" id="validate_userdetail" value="1"<?php echo is_checked(1, $content['felogin']['felogin_validate_userdetail']); ?> />
 110          <label for="validate_userdetail"><?php echo $BL['be_userprofile_db'] ?></label></td>
 111        </tr>
 112      <tr>
 113          <td>&nbsp;</td>
 114          <td colspan="2" class="inlineCheckbox"><input type="checkbox" name="validate_backenduser" id="validate_backenduser" value="1"<?php echo is_checked(1, $content['felogin']['felogin_validate_backenduser']); ?> />
 115          <label for="validate_backenduser"><?php echo $BL['be_backenduser_db']?></label></td>
 116        </tr>
 117  
 118       <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 119  
 120      <tr>
 121          <td align="right" class="chatlist tdtop4 right"><?php echo $BL['be_check_feuser_profile'] ?>:&nbsp;</td>
 122          <td colspan="2" class="inlineCheckbox"><input type="checkbox" name="profile_registration" id="profile_registration" value="1"<?php echo is_checked(1, $content['felogin']['felogin_profile_registration']); ?> />
 123          <label for="profile_registration"><?php echo $BL['be_check_feuser_registration'] ?></label></td>
 124        </tr>
 125           <tr>
 126          <td align="right" class="chatlist">&nbsp;</td>
 127          <td colspan="2" class="inlineCheckbox"><input type="checkbox" name="profile_manage" id="profile_manage" value="1"<?php echo is_checked(1, $content['felogin']['felogin_profile_manage']); ?> />
 128          <label for="profile_manage"><?php echo $BL['be_check_feuser_manage'] ?></label></td>
 129        </tr>
 130  
 131      
 132      </table></td>
 133  </tr>
 134  
 135  <tr><td colspan="2" class="rowspacer7x0"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 136  
 137  


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7