Advertisement
Guest User

Untitled

a guest
Apr 21st, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.36 KB | None | 0 0
  1. <?php
  2. /*********************************************************************************************************
  3. This code is part of the ShoutBox software (www.gerd-tentler.de/tools/shoutbox), copyright by
  4. Gerd Tentler. Obtain permission before selling this code or hosting it on a commercial website or
  5. redistributing it over the Internet or in any other medium. In all cases copyright must remain intact.
  6. *********************************************************************************************************/
  7.  
  8. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  9. // This is the MAIN configuration file
  10. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. //========================================================================================================
  13. // Database settings
  14. //========================================================================================================
  15.  
  16. // leave these fields empty if you don't want to use a database:
  17. $db_server = "localhost"; // server name
  18. $db_user = "root"; // user name
  19. $db_pass = ""; // user password
  20. $db_name = ""; // database name
  21.  
  22. // don't change unless you know what you're doing:
  23. $tbl_name = "Shoutbox"; // table name
  24. $fld_id = "ID"; // field name: ID
  25. $fld_timestamp = "Timestamp"; // field name: timestamp
  26. $fld_name = "Name"; // field name: name
  27. $fld_email = "EMail"; // field name: e-mail
  28. $fld_text = "Text"; // field name: text
  29.  
  30. //========================================================================================================
  31. // Other settings
  32. //========================================================================================================
  33.  
  34. // shout-box language: ar, cs, de, en, es, fi, fr, he, it, nl, pl, pt-BR, sl, sv
  35. $language = "en";
  36.  
  37. // date format setting (Y = year, m = month, d = day), e.g. "Y-m-d", "d.m.Y", "m/d/Y"
  38. $dateFormat = "Y-m-d";
  39.  
  40. // administrator password (can delete entries; needs PHP >= 4.1.0)
  41. $adminPass = "network99";
  42.  
  43. // shout-box folder (WEB path, e.g. /webtools/shoutbox)
  44. $boxFolder = "";
  45.  
  46. // shout-box width (pixels)
  47. $boxWidth = 180;
  48.  
  49. // shout-box height (pixels)
  50. $boxHeight = 300;
  51.  
  52. // maximum entries in shout-box (higher values = more traffic!)
  53. $boxEntries = 20;
  54.  
  55. // refresh shout-box every .. seconds (lower values = more traffic!)
  56. $boxRefresh = 20;
  57.  
  58. // input fields position (left, right, top, bottom)
  59. $inputsPosition = "bottom";
  60.  
  61. // message order: ASC (new at bottom) or DESC (new on top)
  62. $messageOrder = "DESC";
  63.  
  64. // message background colors (must be 2 colors)
  65. $messageBGColors = array("#FFFFFF", "#F6F6F6");
  66.  
  67. // maximum word length (0 = no limit)
  68. // NOTE: should be 0 for non-European languages (Asian, Arabic, etc.)
  69. $wordLength = 30;
  70.  
  71. // maximum text length (0 = no limit)
  72. $textLength = 300;
  73.  
  74. // adjust hour of server time (e.g. 1, 2, -1, -2, etc.)
  75. $timeOffset = 0;
  76.  
  77. // allow URLs (true = yes, false = no)
  78. $allowURLs = false;
  79.  
  80. // allow HTML tags (true = yes, false = no)
  81. $allowHTML = false;
  82.  
  83. // allow UBB codes (true = yes, false = no)
  84. $allowUBBs = true;
  85.  
  86. // enable message IDs against spam bots (true = yes, false = no; needs PHP >= 4.1.0)
  87. // NOTE: if enabled, you must start a session in your PHP script (see readme.txt)
  88. $enableIDs = true;
  89.  
  90. // enable link check against spam bots (true = yes, false = no)
  91. // NOTE: works only if $allowURLs is false
  92. $enableLinkCheck = true;
  93.  
  94. // enable user agent check against spam bots (true = yes, false = no)
  95. // NOTE: if enabled, some browsers might be mistaken for spam bots
  96. $enableAgentCheck = true;
  97.  
  98. // valid user agents; don't change unless you know what you're doing
  99. $agents = array("Mozilla", "Opera", "Lynx", "Mosaic", "amaya", "WebExplorer", "IBrowse", "iCab");
  100.  
  101. // bad words
  102. $nonos = array("fuck", "asshole");
  103.  
  104. // reserved user names (must be lower-case!)
  105. $reservedNames = array("administrator", "admin");
  106.  
  107. // pressing ENTER key sends message
  108. $sendWithEnterKey = true;
  109.  
  110. // hide e-mail address field
  111. $hideEmail = true;
  112.  
  113. //========================================================================================================
  114. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement