[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_plugins/blogcalendar_menu/ -> config.php (source)

   1  <?php
   2  /*
   3  + ----------------------------------------------------------------------------+
   4  |     e107 website system
   5  |
   6  |     ©Steve Dunstan 2001-2002
   7  |     http://e107.org
   8  |     jalist@e107.org
   9  |
  10  |     Released under the terms and conditions of the
  11  |     GNU General Public License (http://gnu.org).
  12  |
  13  |     $Source: /cvsroot/e107/e107_0.7/e107_plugins/blogcalendar_menu/config.php,v $
  14  |     $Revision: 1.4 $
  15  |     $Date: 2005/05/25 09:43:25 $
  16  |     $Author: sweetas $
  17  +----------------------------------------------------------------------------+
  18  */
  19  $eplug_admin = TRUE;
  20  require_once ("../../class2.php");
  21  require_once(e_HANDLER."userclass_class.php");
  22      
  23  $lan_file = e_PLUGIN."blogcalendar_menu/languages/".e_LANGUAGE.".php";
  24  if (file_exists($lan_file)) {
  25      require_once($lan_file);
  26  } else {
  27      require_once(e_PLUGIN."blogcalendar_menu/languages/English.php");
  28  }
  29  if (!getperms("1")) {
  30      header("location:".e_BASE."index.php");
  31       exit ;
  32  }
  33  require_once(e_ADMIN."auth.php");
  34      
  35  if (isset($_POST['update_menu'])) {
  36      while (list($key, $value) = each($_POST)) {
  37          if ($value != BLOGCAL_CONF3) {
  38              $pref[$key] = $value;
  39          }
  40      }
  41      save_prefs();
  42      $ns->tablerender("", "<div style='text-align:center'><b>".BLOGCAL_CONF5."</b></div>");
  43  }
  44      
  45  $text = "<div style='text-align:center'>
  46      <form method='post' action='".e_SELF."?".e_QUERY."' name='menu_conf_form'>
  47      <table style='width:85%' class='fborder' >
  48       
  49      <tr>
  50      <td style='width:40%' class='forumheader3'>".BLOGCAL_CONF1.": </td>
  51      <td style='width:60%' class='forumheader3'>
  52      <select class='tbox' name='blogcal_mpr'>";
  53      
  54  // if the nr of months per row is undefined, default to 3
  55  $months_per_row = $pref['blogcal_mpr']?$pref['blogcal_mpr']:
  56  "3";
  57  for($i = 1; $i <= 12; $i++) {
  58      $text .= "<option value='$i'";
  59      $text .= $months_per_row == $i?"selected":
  60      "";
  61      $text .= ">$i</option>";
  62  }
  63      
  64  $text .= "</select>
  65      </td>
  66      </tr>
  67       
  68      <tr>
  69      <td style='width:40%' class='forumheader3'>".BLOGCAL_CONF2.": </td>
  70      <td style='width:60%' class='forumheader3'>
  71      <input class='tbox' type='text' name='blogcal_padding' size='20' value='";
  72  // if the cellpadding isn't defined
  73  $padding = $pref['blogcal_padding']?$pref['blogcal_padding']:
  74  "2";
  75  $text .= $padding;
  76  $text .= "' maxlength='100' />
  77      </td>
  78      </tr>
  79       
  80      <tr>
  81      <td colspan='2' class='forumheader' style='text-align:center'>
  82      <input class='button' type='submit' name='update_menu' value='".BLOGCAL_CONF3."' />
  83      </td>
  84      </tr>
  85      </table>
  86      </form>
  87      </div>";
  88  $ns->tablerender(BLOGCAL_CONF4, $text);
  89      
  90  require_once(e_ADMIN."footer.php");
  91  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7