Source for file config_admin.php

Documentation is available at config_admin.php

  1. <?php
  2. /**
  3.  * R.E. Login 2.0 - Admin - Beállítások - admin/config_admin.php
  4.  *
  5.  * Admin beállítások űrlap generálása. <br />
  6.  * <br />
  7.  * <b>Dátum:</b> 2010.04.02.
  8.  *
  9.  * <b>Szerző weboldala:</b> {@link http://rimelek.hu/}<br />
  10.  * <b>Login weblapja:</b> {@link http://rimelek.hu/meghivos-loginrendszer-r-e-login-v2-0 R.E. Login v2.0}
  11.  *
  12.  * @author Takács Ákos (Rimelek), programmer [at] rimelek [dot] hu
  13.  * @copyright Copyright (C) 2010, Takács Ákos
  14.  * @license http://www.gnu.org/licenses/gpl.html
  15.  * @package RELogin
  16.  * @version 2.0
  17.  */
  18.  
  19. if(!class_exists('System'))
  20. {
  21.     exit('Ez a fajl nem erheto el kozvetlenul. Reszletek a readme.txt-ben.');
  22. }
  23.  
  24. /**
  25.  * @ignore
  26.  */
  27. require_once System::getIncLoginDir().'includes/admin/config_admin.php';
  28. ?>
  29. <div align="center">
  30.     <?php print $msg ?>
  31. </div>
  32. <form action="" method="post">
  33.     <table align="center">
  34.     <?php foreach ($titles as $key => &$title{
  35.     $const $key;
  36.     $sign '';
  37.     if ($const[0== '-' or $const[0== '+')
  38.     {
  39.         $sign $const[0];
  40.         $const substr($const1);
  41.     }
  42.     if ($sign == '-'continue;
  43.     if (System::$user->rank('admin'and $sign != '+')
  44.     {
  45.         continue;
  46.     }
  47.  
  48.     $value $constants[$const];
  49.     $value_checked ' value = "'.htmlspecialchars($value).'" ';
  50.     $type "text";
  51.  
  52.     if (is_bool($value))
  53.     {
  54.         $type 'checkbox';
  55.         $value_checked ($value'checked = "checked"' '';
  56.     ?>
  57.     <tr>
  58.         <td valign="top"><?php print $title ?><td>
  59.         <td valign="top"><input type="<?php print $type ?>" name="admin[<?php print $const ?>]" <?php print $value_checked ?> /></td>
  60.     </tr>
  61.     <?php ?>
  62.     <tr><td colspan="2" align="center"><input type="submit" value="Küldés" /></td></tr>
  63.     </table>
  64. </form>

Documentation generated on Sun, 04 Apr 2010 22:43:39 +0200 by phpDocumentor 1.4.1