[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

/ -> config.php (source)

   1  <?php
   2  
   3  ######################################################################

   4  # PHP-NUKE: Advanced Content Management 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 (stristr(htmlentities($_SERVER['PHP_SELF']), "config.php")) {
  16      Header("Location: index.php");
  17      die();
  18  }
  19  
  20  ######################################################################

  21  # Database & System Config

  22  #

  23  # dbhost:       SQL Database Hostname

  24  # dbuname:      SQL Username

  25  # dbpass:       SQL Password

  26  # dbname:       SQL Database Name

  27  # $prefix:      Your Database table's prefix

  28  # $user_prefix: Your Users' Database table's prefix (To share it)

  29  # $dbtype:      Your Database Server type. Supported servers are:

  30  #               MySQL, mysql4, sqlite, postgres, mssql, oracle,

  31  #               msaccess, db2 and mssql-odbc

  32  #               Be sure to write it exactly as above, case SeNsItIvE!

  33  # $sitekey:    Security Key. CHANGE it to whatever you want, as long

  34  #               as you want. Just don't use quotes.

  35  # $gfx_chk:    Set the graphic security code on every login screen,

  36  #        You need to have GD extension installed:

  37  #        0: No check

  38  #        1: Administrators login only

  39  #        2: Users login only

  40  #        3: New users registration only

  41  #        4: Both, users login and new users registration only

  42  #        5: Administrators and users login only

  43  #        6: Administrators and new users registration only

  44  #        7: Everywhere on all login options (Admins and Users)

  45  #        NOTE: If you aren't sure set this value to 0

  46  # $subscription_url: If you manage subscriptions on your site, you

  47  #                    must write here the url of the subscription

  48  #                    information/renewal page. This will send by

  49  #                    email if set.

  50  # $admin_file: Administration panel filename. "admin" by default for

  51  #              "admin.php". To improve security please rename the file

  52  #              "admin.php" and change the $admin_file value to the

  53  #              new filename (without the extension .php)

  54  # $tipath: Path to where the topic images are stored. 

  55  # $nuke_editor: Turn On/Off the WYSIWYG text editor

  56  #               0: Off, textareas in forms will not show any editor

  57  #               1: On, all textarea in the forms will show the editor

  58  # $display_errors:  Debug control to see PHP generated errors.

  59  #                   false: Don't show errors

  60  #                   true: See all errors ( No notices )

  61  ######################################################################

  62  
  63  $dbhost = "localhost";
  64  $dbuname = "root";
  65  $dbpass = "";
  66  $dbname = "nuke";
  67  $prefix = "nuke";
  68  $user_prefix = "nuke";
  69  $dbtype = "MySQL";
  70  $sitekey = "SwSDsyrgF23$$5%*ddw3$D-2Df/%(-0394·$%/";
  71  $gfx_chk = 0;
  72  $subscription_url = "";
  73  $admin_file = "admin";
  74  $tipath = "images/topics/";
  75  $nuke_editor = 1;
  76  $display_errors = false;
  77  
  78  /**********************************************************************/

  79  /* You finished to configure the Database. Now you can change all     */

  80  /* you want in the Administration Section.   To enter just launch     */

  81  /* your web browser pointing it to http://xxxxxx.xxx/admin.php        */

  82  /* (Change xxxxxx.xxx to your domain name, for example: phpnuke.org)  *

  83  /*                                                                    */

  84  /* Remember to go to Preferences section where you can configure your */

  85  /* new site. In that menu you can change all you need to change.      */

  86  /*                                                                    */

  87  /* Congratulations! now you have an automated news portal!            */

  88  /* Thanks for choose PHP-Nuke: The Future of the Web                  */

  89  /**********************************************************************/

  90  

  91  // DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING

  92  

  93  $prefix = empty($user_prefix) ? $prefix : $user_prefix;

  94  $reasons = array("As Is","Offtopic","Flamebait","Troll","Redundant","Insighful","Interesting","Informative","Funny","Overrated","Underrated");

  95  $badreasons = 4;

  96  $AllowableHTML = array("b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);

  97  $CensorList = array("fuck","cunt","fucker","fucking","pussy","cock","c0ck","cum","twat","clit","bitch","fuk","fuking","motherfucker");

  98  

  99  //***************************************************************

 100  // IF YOU WANT TO LEGALY REMOVE ANY COPYRIGHT NOTICES PLAY FAIR AND CHECK: http://phpnuke.org/modules.php?name=Commercial_License

 101  // COPYRIGHT NOTICES ARE GPL SECTION 2(c) COMPLIANT AND CAN'T BE REMOVED WITHOUT PHP-NUKE'S AUTHOR WRITTEN AUTHORIZATION

 102  // THE USE OF COMMERCIAL LICENSE MODE FOR PHP-NUKE HAS BEEN APPROVED BY THE FSF (FREE SOFTWARE FOUNDATION)

 103  // YOU CAN REQUEST INFORMATION ABOUT THIS TO GNU.ORG REPRESENTATIVE. THE EMAIL THREAD REFERENCE IS #213080

 104  // YOU'RE NOT AUTHORIZED TO CHANGE THE FOLLOWING VARIABLE'S VALUE UNTIL YOU ACQUIRE A COMMERCIAL LICENSE

 105  // (http://phpnuke.org/modules.php?name=Commercial_License)

 106  //***************************************************************

 107  $commercial_license = 0;

 108  

 109  ?>


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