[ PHPXref.com ] [ Generated: Sun Jul 20 20:50:48 2008 ] [ United-Nuke 4.2.04ms2 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/www/ -> config.php (source)

   1  <?php
   2  
   3  /**
   4    * UNITED-NUKE CMS: Just Manage!
   5    * http://united-nuke.openland.cz/
   6    * http://united-nuke.openland.cz/forums/
   7    *
   8    * 2002 - 2005, (c) Jiri Stavinoha
   9    * http://united-nuke.openland.cz/weblog/
  10    *
  11    * Portions of this software are based on PHP-Nuke
  12    * http://phpnuke.org - 2002, (c) Francisco Burzi
  13    *
  14    * This program is free software; you can redistribute it and/or
  15    * modify it under the terms of the GNU General Public License
  16    * as published by the Free Software Foundation; either version 2
  17    * of the License, or (at your option) any later version.
  18  **/
  19  
  20  ######################################################################
  21  # Database & System Config (for english users)
  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,
  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 (not used, reserved)
  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  ######################################################################
  55  
  56  $dbhost = "localhost";
  57  $dbuname = "root";
  58  $dbpass = "";
  59  $dbname = "nuke";
  60  $prefix = "unnuke";
  61  $user_prefix = "unnuke";
  62  $dbtype = "MySQL";
  63  $sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";
  64  $gfx_chk = 7;
  65  $subscription_url = "";
  66  $admin_file = "admin";
  67  
  68  /*********************************************************************/
  69  /* You finished to configure the Database. Now you can change what   */
  70  /* ever you want in the Administration. To enter launch your web     */
  71  /* browser pointing to http://yourdomain.com/admin.php               */
  72  /*                                                                   */
  73  /* Remeber to go to Settings section where you can configure your    */
  74  /* new site.                                                         */
  75  /*                                                                   */
  76  /* Congratulations! Now you have an automated news portal!           */
  77  /* Thanks for choosing UNITED-NUKE: Just manage!                     */
  78  /*********************************************************************/
  79  
  80  $reasons = array("As Is",
  81              "Offtopic",
  82              "Flamebait",
  83              "Troll",
  84              "Redundant",
  85              "Insighful",
  86              "Interesting",
  87              "Informative",
  88              "Funny",
  89              "Overrated",
  90              "Underrated");
  91  $badreasons = 4;
  92  $AllowableHTML = array("b"=>1,
  93              "i"=>1,
  94              "strike"=>1,
  95              "div"=>2,
  96              "u"=>1,
  97              "a"=>2,
  98              "em"=>1,
  99              "br"=>1,
 100              "strong"=>1,
 101              "blockquote"=>1,
 102                      "tt"=>1,
 103                      "li"=>1,
 104                      "ol"=>1,
 105                      "ul"=>1);
 106  $CensorList = array("fuck",
 107              "cunt",
 108              "fucker",
 109              "fucking",
 110              "pussy",
 111              "cock",
 112              "c0ck",
 113              "cum",
 114              "twat",
 115              "clit",
 116              "bitch",
 117              "fuk",
 118              "fuking",
 119              "motherfucker");
 120  
 121  $tipath = "images/topics/";
 122  if (stristr($_SERVER['SCRIPT_NAME'], basename(__FILE__))) {
 123      Header("Location: index.php");
 124      die();
 125  }
 126  
 127  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]