[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_plugins/comment_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/comment_menu/config.php,v $
  14  |     $Revision: 1.5 $
  15  |     $Date: 2006/10/24 13:41:56 $
  16  |     $Author: mrpete $
  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."comment_menu/languages/".e_LANGUAGE.".php";
  24  if (file_exists($lan_file)) {
  25      require_once($lan_file);
  26  } else {
  27      require_once(e_PLUGIN."comment_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 != CM_L9) {
  38              $menu_pref[$key] = $value;
  39          }
  40      }
  41      if (!$_POST['comment_title']) {
  42          $menu_pref['comment_title'] = 0;
  43      }
  44      $tmp = addslashes(serialize($menu_pref));
  45      $sql->db_Update("core", "e107_value='$tmp' WHERE e107_name='menu_pref' ");
  46      $ns->tablerender("", "<div style=\"text-align:center\"><b>".CM_L10."</b></div>");
  47  }
  48      
  49  $text = "<div style='text-align:center'>
  50      <form method=\"post\" action=\"".e_SELF."?".e_QUERY."\" name=\"menu_conf_form\">
  51      <table style=\"width:85%\" class=\"fborder\" >
  52       
  53      <tr>
  54      <td style=\"width:40%\" class='forumheader3'>".CM_L3.": </td>
  55      <td style=\"width:60%\" class='forumheader3'>
  56      <input class=\"tbox\" type=\"text\" name=\"comment_caption\" size=\"20\" value=\"".$menu_pref['comment_caption']."\" maxlength=\"100\" />
  57      </td>
  58      </tr>
  59       
  60      <tr>
  61      <td style=\"width:40%\" class='forumheader3'>".CM_L4.": </td>
  62      <td style=\"width:60%\" class='forumheader3'>
  63      <input class=\"tbox\" type=\"text\" name=\"comment_display\" size=\"20\" value=\"".$menu_pref['comment_display']."\" maxlength=\"2\" />
  64      </td>
  65      </tr>
  66       
  67      <tr>
  68      <td style=\"width:40%\" class='forumheader3'>".CM_L5.": </td>
  69      <td style=\"width:60%\" class='forumheader3'>
  70      <input class=\"tbox\" type=\"text\" name=\"comment_characters\" size=\"20\" value=\"".$menu_pref['comment_characters']."\" maxlength=\"4\" />
  71      </td>
  72      </tr>
  73       
  74      <tr>
  75      <td style=\"width:40%\" class='forumheader3'>".CM_L6.": </td>
  76      <td style=\"width:60%\" class='forumheader3'>
  77      <input class=\"tbox\" type=\"text\" name=\"comment_postfix\" size=\"30\" value=\"".$menu_pref['comment_postfix']."\" maxlength=\"200\" />
  78      </td>
  79      </tr>
  80       
  81      <tr>
  82      <td style=\"width:40%\" class='forumheader3'>".CM_L7.": </td>
  83      <td style=\"width:60%\" class='forumheader3'>
  84      <input type=\"checkbox\" name=\"comment_title\" value=\"1\"";
  85  if ($menu_pref['comment_title']) {
  86      $text .= " checked ";
  87  }
  88  $text .= " />
  89      </td>
  90      </tr>
  91       
  92      <tr>
  93      <td colspan=\"2\" class='forumheader' style=\"text-align:center\"><input class=\"button\" type=\"submit\" name=\"update_menu\" value=\"".CM_L9."\" /></td>
  94      </tr>
  95      </table>
  96      </form>
  97      </div>";
  98  $ns->tablerender(CM_L8, $text);
  99  require_once(e_ADMIN."footer.php");
 100  ?>


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