[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

/admin/modules/ -> settings.php (source)

   1  <?php
   2  
   3  /************************************************************************/

   4  /* PHP-NUKE: Web Portal System                                          */

   5  /* ===========================                                          */

   6  /*                                                                      */

   7  /* Copyright (c) 2005 by Francisco Burzi                                */

   8  /* http://phpnuke.org                                                   */

   9  /*                                                                      */

  10  /* This program is free software. You can redistribute it and/or modify */

  11  /* it under the terms of the GNU General Public License as published by */

  12  /* the Free Software Foundation; either version 2 of the License.       */

  13  /************************************************************************/

  14  
  15  if (!defined('ADMIN_FILE')) {
  16      die ("Access Denied");
  17  }
  18  
  19  global $prefix, $db, $admin_file;
  20  $aid = substr("$aid", 0,25);
  21  $row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
  22  if ($row['radminsuper'] == 1) {
  23  
  24      /*********************************************************/

  25      /* Configuration Functions to Setup all the Variables    */

  26      /*********************************************************/

  27  
  28  	function Configure() {
  29          global $prefix, $db, $admin_file;
  30          include  ("header.php");
  31          GraphicAdmin();
  32          $row = $db->sql_fetchrow($db->sql_query("SELECT sitename, nukeurl, site_logo, slogan, startdate, adminmail, anonpost, Default_Theme, foot1, foot2, foot3, commentlimit, anonymous, minpass, pollcomm, articlecomm, broadcast_msg, my_headlines, top, storyhome, user_news, oldnum, ultramode, banners, backend_title, backend_language, language, locale, multilingual, useflags, notify, notify_email, notify_subject, notify_message, notify_from, moderate, admingraphic, httpref, httprefmax, CensorMode, CensorReplace from ".$prefix."_config"));
  33          $sitename = filter($row['sitename'], "nohtml", 0, preview);
  34          $nukeurl = filter($row['nukeurl'], "nohtml");
  35          $site_logo = filter($row['site_logo'], "nohtml");
  36          $slogan = filter($row['slogan'], "nohtml", 0, preview);
  37          $startdate = filter($row['startdate'], "nohtml", 0, preview);
  38          $adminmail = filter($row['adminmail'], "nohtml");
  39          $anonpost = intval($row['anonpost']);
  40          $Default_Theme = filter($row['Default_Theme'], "nohtml");
  41          $foot1 = filter($row['foot1']);
  42          $foot2 = filter($row['foot2']);
  43          $foot3 = filter($row['foot3']);
  44          $commentlimit = intval($row['commentlimit']);
  45          $anonymous = filter($row['anonymous'], "nohtml", 0, preview);
  46          $minpass = intval($row['minpass']);
  47          $pollcomm = intval($row['pollcomm']);
  48          $articlecomm = intval($row['articlecomm']);
  49          $broadcast_msg = intval($row['broadcast_msg']);
  50          $my_headlines = intval($row['my_headlines']);
  51          $top = intval($row['top']);
  52          $storyhome = intval($row['storyhome']);
  53          $user_news = intval($row['user_news']);
  54          $oldnum = intval($row['oldnum']);
  55          $ultramode = intval($row['ultramode']);
  56          $banners = intval($row['banners']);
  57          $backend_title = filter($row['backend_title'], "nohtml", 0, preview);
  58          $backend_language = filter($row['backend_language'], "nohtml");
  59          $language = filter($row['language'], "nohtml");
  60          $locale = filter($row['locale'], "nohtml");
  61          $multilingual = intval($row['multilingual']);
  62          $useflags = intval($row['useflags']);
  63          $notify = intval($row['notify']);
  64          $notify_email = filter($row['notify_email'], "nohtml");
  65          $notify_subject = filter($row['notify_subject'], "nohtml", 0, preview);
  66          $notify_message = filter($row['notify_message'], "nohtml", 0, preview);
  67          $notify_from = filter($row['notify_from'], "nohtml");
  68          $moderate = intval($row['moderate']);
  69          $admingraphic = intval($row['admingraphic']);
  70          $httpref = intval($row['httpref']);
  71          $httprefmax = intval($row['httprefmax']);
  72          $CensorMode = intval($row['CensorMode']);
  73          $CensorReplace = filter($row['CensorReplace'], "nohtml");
  74          OpenTable();
  75          echo "<center><font class='title'><b>" . _SITECONFIG . "</b></font></center>";
  76          CloseTable();
  77          echo "<br>";
  78          OpenTable();
  79          echo "<center><font class='option'><b>" . _GENSITEINFO . "</b></font></center>"
  80          ."<form action='".$admin_file.".php' method='post'>"
  81          ."<table border='0'><tr><td>"
  82          ."" . _SITENAME . ":</td><td><input type='text' name='xsitename' value='$sitename' size='40' maxlength='255'>"
  83          ."</td></tr><tr><td>"
  84          ."" . _SITEURL . ":</td><td><input type='text' name='xnukeurl' value='$nukeurl' size='40' maxlength='255'>"
  85          ."</td></tr><tr><td>"
  86          ."" . _SITELOGO . ":</td><td><input type='text' name='xsite_logo' value='$site_logo' size='20' maxlength='255'> <font class='tiny'>[ " . _MUSTBEINIMG . " ]</font>"
  87          ."</td></tr><tr><td>"
  88          ."" . _SITESLOGAN . ":</td><td><input type='text' name='xslogan' value='$slogan' size='40' maxlength='255'>"
  89          ."</td></tr><tr><td>"
  90          ."" . _STARTDATE . ":</td><td><input type='text' name='xstartdate' value='$startdate' size='20' maxlength='50'>"
  91          ."</td></tr><tr><td>"
  92          ."" . _ADMINEMAIL . ":</td><td><input type='text' name='xadminmail' value='$adminmail' size='30' maxlength='255'>"
  93          ."</td></tr><tr><td>"
  94          ."" . _ITEMSTOP . ":</td><td><select name='xtop'>"
  95          ."<option name='xtop'>$top</option>"
  96          ."<option name='xtop'>5</option>"
  97          ."<option name='xtop'>10</option>"
  98          ."<option name='xtop'>15</option>"
  99          ."<option name='xtop'>20</option>"
 100          ."<option name='xtop'>25</option>"
 101          ."<option name='xtop'>30</option>"
 102          ."</select>"
 103          ."</td></tr><tr><td>"
 104          ."" . _STORIESHOME . ":</td><td><select name='xstoryhome'>"
 105          ."<option name='xstoryhome'>$storyhome</option>"
 106          ."<option name='xstoryhome'>5</option>"
 107          ."<option name='xstoryhome'>10</option>"
 108          ."<option name='xstoryhome'>15</option>"
 109          ."<option name='xstoryhome'>20</option>"
 110          ."<option name='xstoryhome'>25</option>"
 111          ."<option name='xstoryhome'>30</option>"
 112          ."</select>"
 113          ."</td></tr><tr><td>"
 114          ."" . _OLDSTORIES . ":</td><td><select name='xoldnum'>"
 115          ."<option name='xoldnum'>$oldnum</option>"
 116          ."<option name='xoldnum'>10</option>"
 117          ."<option name='xoldnum'>20</option>"
 118          ."<option name='xoldnum'>30</option>"
 119          ."<option name='xoldnum'>40</option>"
 120          ."<option name='xoldnum'>50</option>"
 121          ."</select>"
 122          ."</td></tr><tr><td>"
 123          ."" . _ACTULTRAMODE . "</td><td>";
 124          if ($ultramode==1) {
 125              echo "<input type='radio' name='xultramode' value='1' checked>" . _YES . " &nbsp;
 126      <input type='radio' name='xultramode' value='0'>" . _NO . "";
 127          } else {
 128              echo "<input type='radio' name='xultramode' value='1'>" . _YES . " &nbsp;
 129      <input type='radio' name='xultramode' value='0' checked>" . _NO . "";
 130          }
 131          echo "</td></tr><tr><td>
 132      " . _ALLOWANONPOST . " </td><td>";
 133          if ($anonpost==1) {
 134              echo "<input type='radio' name='xanonpost' value='1' checked>" . _YES . " &nbsp;
 135      <input type='radio' name='xanonpost' value='0'>" . _NO . "";
 136          } else {
 137              echo "<input type='radio' name='xanonpost' value='1'>" . _YES . " &nbsp;
 138      <input type='radio' name='xanonpost' value='0' checked>" . _NO . "";
 139          }
 140          echo "</td></tr><tr><td>"
 141          ."" . _DEFAULTTHEME . ":</td><td><select name='xDefault_Theme'>";
 142          $handle=opendir('themes');
 143          while ($file = readdir($handle)) {
 144              if ( (!ereg("[.]",$file)) ) {
 145                  $themelist .= "$file ";
 146              }
 147          }
 148          closedir($handle);
 149          $themelist = explode(" ", $themelist);
 150          sort($themelist);
 151          for ($i=0; $i < sizeof($themelist); $i++) {
 152              if(!empty($themelist[$i])) {
 153                  echo "<option name='xDefault_Theme' value='$themelist[$i]' ";
 154                  if($themelist[$i]==$Default_Theme) echo "selected";
 155                  echo ">$themelist[$i]\n";
 156              }
 157          }
 158          echo "</select>"
 159          ."</td></tr><tr><td>"
 160          ."" . _SELLANGUAGE . ":</td><td>"
 161          ."<select name='xlanguage'>";
 162          $handle=opendir('language');
 163          while ($file = readdir($handle)) {
 164              if (ereg("^lang\-(.+)\.php", $file, $matches)) {
 165                  $langFound = $matches[1];
 166                  $languageslist .= "$langFound ";
 167              }
 168          }
 169          closedir($handle);
 170          $languageslist = explode(" ", $languageslist);
 171          sort($languageslist);
 172          for ($i=0; $i < sizeof($languageslist); $i++) {
 173              if(!empty($languageslist[$i])) {
 174                  echo "<option name='xlanguage' value='$languageslist[$i]' ";
 175                  if($languageslist[$i]==$language) echo "selected";
 176                  echo ">".ucfirst($languageslist[$i])."\n";
 177              }
 178          }
 179          echo "</select>"
 180          ."</td></tr><tr><td>"
 181          ."" . _LOCALEFORMAT . ":</td><td><input type='text' name='xlocale' value='$locale' size='20' maxlength='40'>"
 182          ."</td></tr></table>";
 183          CloseTable();
 184          echo "<br>";
 185          OpenTable();
 186          echo "<center><font class='option'><b>" . _MULTILINGUALOPT . "</b></font></center>"
 187          ."<table border='0'><tr><td>"
 188          ."" . _ACTMULTILINGUAL . "</td><td>";
 189          if ($multilingual==1) {
 190              echo "<input type='radio' name='xmultilingual' value='1' checked>" . _YES . " &nbsp;"
 191              ."<input type='radio' name='xmultilingual' value='0'>" . _NO . "";
 192          } else {
 193              echo "<input type='radio' name='xmultilingual' value='1'>" . _YES . " &nbsp;"
 194              ."<input type='radio' name='xmultilingual' value='0' checked>" . _NO . "";
 195          }
 196          echo "</td></tr><tr><td>"
 197          ."" . _ACTUSEFLAGS . "</td><td>";
 198          if ($useflags==1) {
 199              echo "<input type='radio' name='xuseflags' value='1' checked>" . _YES . " &nbsp;"
 200              ."<input type='radio' name='xuseflags' value='0'>" . _NO . "";
 201          } else {
 202              echo "<input type='radio' name='xuseflags' value='1'>" . _YES . " &nbsp;"
 203              ."<input type='radio' name='xuseflags' value='0' checked>" . _NO . "";
 204          }
 205          echo "</td></tr></table>";
 206          echo "<br>";
 207          echo "<input type='hidden' name='xbanners' value='1'>";
 208          CloseTable();
 209          echo "<br>";
 210          OpenTable();
 211          echo "<center><font class='option'><b>" . _FOOTERMSG . "</b></font></center>"
 212          ."<table border='0'><tr><td>"
 213          ."" . _FOOTERLINE1 . ":</td><td><textarea name='xfoot1' cols='70' rows='15'>" . stripslashes($foot1) . "</textarea>"
 214          ."</td></tr><tr><td>"
 215          ."" . _FOOTERLINE2 . ":</td><td><textarea name='xfoot2' cols='70' rows='15'>" . stripslashes($foot2) . "</textarea>"
 216          ."</td></tr><tr><td>"
 217          ."" . _FOOTERLINE3 . ":</td><td><textarea name='xfoot3' cols='70' rows='15'>" . stripslashes($foot3) . "</textarea>"
 218          ."</td></tr></table>";
 219          CloseTable();
 220          echo "<br>";
 221          OpenTable();
 222          echo "<center><font class='option'><b>" . _BACKENDCONF . "</b></font></center>"
 223          ."<table border='0'><tr><td>"
 224          ."" . _BACKENDTITLE . ":</td><td><input type='text' name='xbackend_title' value='$backend_title' size='40' maxlength='100'>"
 225          ."</td></tr><tr><td>"
 226          ."" . _BACKENDLANG . ":</td><td><input type='text' name='xbackend_language' value='$backend_language' size='10' maxlength='10'>"
 227          ."</td></tr></table>";
 228          CloseTable();
 229          echo "<br>";
 230          OpenTable();
 231          echo "<center><font class='option'><b>" . _MAIL2ADMIN . "</b></font></center>"
 232          ."<table border='0'><tr><td>"
 233          ."" . _NOTIFYSUBMISSION . "</td><td>";
 234          if ($notify==1) {
 235              echo "<input type='radio' name='xnotify' value='1' checked>" . _YES . " &nbsp;
 236      <input type='radio' name='xnotify' value='0'>" . _NO . "";
 237          } else {
 238              echo "<input type='radio' name='xnotify' value='1'>" . _YES . " &nbsp;
 239      <input type='radio' name='xnotify' value='0' checked>" . _NO . "";
 240          }
 241          echo "</td></tr><tr><td>"
 242          ."" . _EMAIL2SENDMSG . ":</td><td><input type='text' name='xnotify_email' value='$notify_email' size='30' maxlength='100'>"
 243          ."</td></tr><tr><td>"
 244          ."" . _EMAILSUBJECT . ":</td><td><input type='text' name='xnotify_subject' value='$notify_subject' size='40' maxlength='100'>"
 245          ."</td></tr><tr><td>"
 246          ."" . _EMAILMSG . ":</td><td><textarea name='xnotify_message' cols='70' rows='15'>$notify_message</textarea>"
 247          ."</td></tr><tr><td>"
 248          ."" . _EMAILFROM . ":</td><td><input type='text' name='xnotify_from' value='$notify_from' size='15' maxlength='25'>"
 249          ."</td></tr></table>";
 250          CloseTable();
 251          echo "<br>";
 252          OpenTable();
 253          echo "<center><font class='option'><b>" . _COMMENTSMOD . "</b></font></center>"
 254          ."<table border='0'><tr><td>"
 255          ."" . _MODTYPE . ":</td><td>"
 256          ."<select name='xmoderate'>";
 257          if ($moderate==1) {
 258              $sel1 = "selected";
 259              $sel2 = "";
 260              $sel3 = "";
 261          } elseif ($moderate==2) {
 262              $sel1 = "";
 263              $sel2 = "selected";
 264              $sel3 = "";
 265          } elseif ($moderate==0) {
 266              $sel1 = "";
 267              $sel2 = "";
 268              $sel3 = "selected";
 269          }
 270          echo "<option name='xmoderate' value='1' $sel1>" . _MODADMIN . "</option>"
 271          ."<option name='xmoderate' value='2' $sel2>" . _MODUSERS . "</option>"
 272          ."<option name='xmoderate' value='0' $sel3>" . _NOMOD . "</option>"
 273          ."</select></td></tr></table>";
 274          CloseTable();
 275          echo "<br>";
 276          OpenTable();
 277          echo "<center><font class='option'><b>" . _COMMENTSOPT . "</b></font></center>"
 278          ."<table border='0'><tr><td>"
 279          ."" . _COMMENTSLIMIT . ":</td><td><input type='text' name='xcommentlimit' value='$commentlimit' size='11' maxlength='10'>"
 280          ."</td></tr><tr><td>"
 281          ."" . _ANONYMOUSNAME . ":</td><td><input type='text' name='xanonymous' value='$anonymous'>"
 282          ."</td></tr></table>";
 283          CloseTable();
 284          echo "<br>";
 285          OpenTable();
 286          echo "<center><font class='option'><b>" . _GRAPHICOPT . "</b></font></center>"
 287          ."<table border='0'><tr><td>"
 288          ."" . _ADMINGRAPHIC . "</td><td>";
 289          if ($admingraphic==1) {
 290              echo "<input type='radio' name='xadmingraphic' value='1' checked>" . _YES . " &nbsp;
 291      <input type='radio' name='xadmingraphic' value='0'>" . _NO . "";
 292          } else {
 293              echo "<input type='radio' name='xadmingraphic' value='1'>" . _YES . " &nbsp;
 294      <input type='radio' name='xadmingraphic' value='0' checked>" . _NO . "";
 295          }
 296          echo "</td></tr></table>";
 297          CloseTable();
 298          echo "<br>";
 299          OpenTable();
 300          echo "<center><font class='option'><b>" . _MISCOPT . "</b></font></center>"
 301          ."<table border='0'><tr><td>"
 302          ."" . _ACTIVATEHTTPREF . "</td><td>";
 303          if ($httpref==1) {
 304              echo "<input type='radio' name=xhttpref value='1' checked>" . _YES . " &nbsp;
 305      <input type='radio' name=xhttpref value='0'>" . _NO . "";
 306          } else {
 307              echo "<input type='radio' name='xhttpref' value='1'>" . _YES . " &nbsp;
 308      <input type='radio' name='xhttpref' value='0' checked>" . _NO . "";
 309          }
 310          echo "</td></tr><tr><td>"
 311          ."" . _MAXREF . "</td><td>"
 312          ."<select name='xhttprefmax'>"
 313          ."<option name='xhttprefmax' value='$httprefmax'>$httprefmax</option>"
 314          ."<option name='xhttprefmax' value='100'>100</option>"
 315          ."<option name='xhttprefmax' value='250'>250</option>"
 316          ."<option name='xhttprefmax' value='500'>500</option>"
 317          ."<option name='xhttprefmax' value='1000'>1000</option>"
 318          ."<option name='xhttprefmax' value='2000'>2000</option>"
 319          ."</select>"
 320          ."</td></tr><tr><td>"
 321          ."" . _COMMENTSPOLLS . "</td><td>";
 322          if ($pollcomm==1) {
 323              echo "<input type='radio' name='xpollcomm' value='1' checked>" . _YES . " &nbsp;
 324      <input type='radio' name='xpollcomm' value='0'>" . _NO . "";
 325          } else {
 326              echo "<input type='radio' name='xpollcomm' value='1'>" . _YES . " &nbsp;
 327      <input type='radio' name='xpollcomm' value='0' checked>" . _NO . "";
 328          }
 329          echo "</td></tr><tr><td>"
 330          ."" . _COMMENTSARTICLES . "</td><td>";
 331          if ($articlecomm==1) {
 332              echo "<input type='radio' name='xarticlecomm' value='1' checked>" . _YES . " &nbsp;
 333      <input type='radio' name='xarticlecomm' value='0'>" . _NO . "";
 334          } else {
 335              echo "<input type='radio' name='xarticlecomm' value='1'>" . _YES . " &nbsp;
 336      <input type='radio' name='xarticlecomm' value='0' checked>" . _NO . "";
 337          }
 338          echo "</td></tr></table><br><br>";
 339          CloseTable();
 340          echo "<br>";
 341          OpenTable();
 342          echo "<center><font class='option'><b>" . _USERSOPTIONS . "</b></font></center>"
 343          ."<table border='0'><tr><td>"
 344          ."" . _PASSWDLEN . ":</td><td>"
 345          ."<select name='xminpass'>"
 346          ."<option name='xminpass' value='$minpass'>$minpass</option>"
 347          ."<option name='xminpass' value='3'>3</option>"
 348          ."<option name='xminpass' value='5'>5</option>"
 349          ."<option name='xminpass' value='8'>8</option>"
 350          ."<option name='xminpass' value='10'>10</option>"
 351          ."</select>"
 352          ."</td></tr><tr><td>" . _BROADCASTMSG . "</td><td>";
 353          if ($broadcast_msg == 1) {
 354              echo "<input type='radio' name='xbroadcast_msg' value='1' checked>" . _YES . " &nbsp;
 355      <input type='radio' name='xbroadcast_msg' value='0'>" . _NO . "";
 356          } else {
 357              echo "<input type='radio' name='xbroadcast_msg' value='1'>" . _YES . " &nbsp;
 358      <input type='radio' name='xbroadcast_msg' value='0' checked>" . _NO . "";
 359          }
 360          echo "</td></tr><tr><td>" . _MYHEADLINES . "</td><td>";
 361          if ($my_headlines == 1) {
 362              echo "<input type='radio' name='xmy_headlines' value='1' checked>" . _YES . " &nbsp;
 363      <input type='radio' name='xmy_headlines' value='0'>" . _NO . "";
 364          } else {
 365              echo "<input type='radio' name='xmy_headlines' value='1'>" . _YES . " &nbsp;
 366      <input type='radio' name='xmy_headlines' value='0' checked>" . _NO . "";
 367          }
 368          echo "</td></tr><tr><td>" . _USERSHOMENUM . "</td><td>";
 369          if ($user_news == 1) {
 370              echo "<input type='radio' name='xuser_news' value='1' checked>" . _YES . " &nbsp;
 371      <input type='radio' name='xuser_news' value='0'>" . _NO . "";
 372          } else {
 373              echo "<input type='radio' name='xuser_news' value='1'>" . _YES . " &nbsp;
 374      <input type='radio' name='xuser_news' value='0' checked>" . _NO . "";
 375          }
 376          echo "</td></tr></table>";
 377          CloseTable();
 378          echo "<br>";
 379          OpenTable();
 380          echo "<center><font class='option'><b>" . _CENSOROPTIONS . "</b></font></center>"
 381          ."<table border='0'><tr><td>"
 382          ."" . _CENSORMODE . "</td><td>";
 383          if ($CensorMode == 0) {
 384              $sel0 = "selected";
 385              $sel1 = "";
 386              $sel2 = "";
 387              $sel3 = "";
 388          } elseif ($CensorMode == 1) {
 389              $sel0 = "";
 390              $sel1 = "selected";
 391              $sel2 = "";
 392              $sel3 = "";
 393          } elseif ($CensorMode == 2) {
 394              $sel0 = "";
 395              $sel1 = "";
 396              $sel2 = "selected";
 397              $sel3 = "";
 398          } elseif ($CensorMode == 3) {
 399              $sel0 = "";
 400              $sel1 = "";
 401              $sel2 = "";
 402              $sel3 = "selected";
 403          }
 404          echo "<select name='xCensorMode'>"
 405          ."<option name='xCensorMode' value='0' $sel0>" . _NOFILTERING . "</option>"
 406          ."<option name='xCensorMode' value='1' $sel1>" . _EXACTMATCH . "</option>"
 407          ."<option name='xCensorMode' value='2' $sel2>" . _MATCHBEG . "</option>"
 408          ."<option name='xCensorMode' value='3' $sel3>" . _MATCHANY . "</option>"
 409          ."</select>"
 410          ."</td></tr><tr><td>" . _CENSORREPLACE . "</td><td>"
 411          ."<input type='text' name='xCensorReplace' value='$CensorReplace' size='10' maxlength='10'>"
 412          ."</td></tr></table><br><br>";
 413          echo "<input type='hidden' name='op' value='ConfigSave'>"
 414          ."<center><input type='submit' value='" . _SAVECHANGES . "'></center>"
 415          ."</form>";
 416          CloseTable();
 417          include  ("footer.php");
 418      }
 419  
 420      switch($op) {
 421  
 422          case "Configure":
 423          Configure();
 424          break;
 425  
 426          case "ConfigSave":
 427          global $prefix, $db, $admin_file;
 428          /*

 429          $xsitename = htmlentities($xsitename, ENT_QUOTES);

 430          $xslogan = htmlentities($xslogan, ENT_QUOTES);

 431          $xbackend_title = htmlentities($xbackend_title, ENT_QUOTES);

 432          $xnotify_subject = htmlentities($xnotify_subject, ENT_QUOTES);

 433          $xsingleaccountname = htmlentities($xsingleaccountname, ENT_QUOTES);

 434          */
 435          $sitename = filter($row['sitename'], "nohtml", 1);
 436          $nukeurl = filter($row['nukeurl'], "nohtml", 1);
 437          $site_logo = filter($row['site_logo'], "nohtml", 1);
 438          $slogan = filter($row['slogan'], "nohtml", 1);
 439          $startdate = filter($row['startdate'], "nohtml", 1);
 440          $adminmail = filter($row['adminmail'], "nohtml", 1);
 441          $anonpost = intval($row['anonpost']);
 442          $Default_Theme = filter($row['Default_Theme'], "nohtml", 1);
 443          $foot1 = filter($row['foot1'], "", 1);
 444          $foot2 = filter($row['foot2'], "", 1);
 445          $foot3 = filter($row['foot3'], "", 1);
 446          $commentlimit = intval($row['commentlimit']);
 447          $anonymous = filter($row['anonymous'], "nohtml", 1);
 448          $minpass = intval($row['minpass']);
 449          $pollcomm = intval($row['pollcomm']);
 450          $articlecomm = intval($row['articlecomm']);
 451          $broadcast_msg = intval($row['broadcast_msg']);
 452          $my_headlines = intval($row['my_headlines']);
 453          $top = intval($row['top']);
 454          $storyhome = intval($row['storyhome']);
 455          $user_news = intval($row['user_news']);
 456          $oldnum = intval($row['oldnum']);
 457          $ultramode = intval($row['ultramode']);
 458          $banners = intval($row['banners']);
 459          $backend_title = filter($row['backend_title'], "nohtml", 1);
 460          $backend_language = filter($row['backend_language'], "nohtml", 1);
 461          $language = filter($row['language'], "nohtml", 1);
 462          $locale = filter($row['locale'], "nohtml", 1);
 463          $multilingual = intval($row['multilingual']);
 464          $useflags = intval($row['useflags']);
 465          $notify = intval($row['notify']);
 466          $notify_email = filter($row['notify_email'], "nohtml", 1);
 467          $notify_subject = filter($row['notify_subject'], "nohtml", 1);
 468          $notify_message = filter($row['notify_message'], "nohtml", 1);
 469          $notify_from = filter($row['notify_from'], "nohtml", 1);
 470          $moderate = intval($row['moderate']);
 471          $admingraphic = intval($row['admingraphic']);
 472          $httpref = intval($row['httpref']);
 473          $httprefmax = intval($row['httprefmax']);
 474          $CensorMode = intval($row['CensorMode']);
 475          $CensorReplace = filter($row['CensorReplace'], "nohtml", 1);
 476          $db->sql_query("UPDATE ".$prefix."_config SET sitename='$xsitename', nukeurl='$xnukeurl', site_logo='$xsite_logo', slogan='$xslogan', startdate='$xstartdate', adminmail='$xadminmail', anonpost='$xanonpost', Default_Theme='$xDefault_Theme', foot1='$xfoot1', foot2='$xfoot2', foot3='$xfoot3', commentlimit='$xcommentlimit', anonymous='$xanonymous', minpass='$xminpass', pollcomm='$xpollcomm', articlecomm='$xarticlecomm', broadcast_msg='$xbroadcast_msg', my_headlines='$xmy_headlines', top='$xtop', storyhome='$xstoryhome', user_news='$xuser_news', oldnum='$xoldnum', ultramode='$xultramode', banners='$xbanners', backend_title='$xbackend_title', backend_language='$xbackend_language', language='$xlanguage', locale='$xlocale', multilingual='$xmultilingual', useflags='$xuseflags', notify='$xnotify', notify_email='$xnotify_email', notify_subject='$xnotify_subject', notify_message='$xnotify_message', notify_from='$xnotify_from', moderate='$xmoderate', admingraphic='$xadmingraphic', httpref='$xhttpref', httprefmax='$xhttprefmax', CensorMode='$xCensorMode', CensorReplace='$xCensorReplace'");
 477          Header("Location: ".$admin_file.".php?op=Configure");
 478          break;
 479  
 480      }
 481  
 482  } else {
 483      echo "Access Denied";
 484  }
 485  
 486  ?>


Généré le : Sun Apr 1 11:11:59 2007 par Balluche grâce à PHPXref 0.7