Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP]Kod PHP Pomocy
Forum PHP.pl > Forum > Przedszkole
demboo
Parse error: syntax error, unexpected $end in D:\xampp\htdocs\config.php on line 233


  1. <?PHP
  2. if (!isset($_SESSION)) {session_start();}
  3. /*********************************************
  4. <!--
  5. * DOTA OPENSTATS
  6. *
  7. * Developers: Ivan.
  8. * Contact: ivan.anta@gmail.com - Ivan
  9. *
  10. *
  11. * and post your webpage there, so I know who's using it.
  12. *
  13. * Files downloaded from http://openstats.iz.rs
  14. *
  15. * Copyright (C) 2010 Ivan
  16. *
  17. *
  18. * This file is part of DOTA OPENSTATS.
  19. *
  20. *
  21. * DOTA OPENSTATS is free software: you can redistribute it and/or modify
  22. * it under the terms of the GNU General Public License as published by
  23. * the Free Software Foundation, either version 3 of the License, or
  24. * (at your option) any later version.
  25. *
  26. * DOTA OPEN STATS is distributed in the hope that it will be useful,
  27. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29. * GNU General Public License for more details.
  30. *
  31. * You should have received a copy of the GNU General Public License
  32. * along with DOTA OPENSTATS. If not, see <http://www.gnu.org/licenses/>
  33. *
  34. -->
  35. **********************************************/
  36.  
  37. $server = 'localhost:85';
  38. $username = 'root';
  39. $password = 'smoczek00';
  40. $database = "Ghost';
  41.  
  42. $default_style = 'silverbullet';
  43. $default_language = 'english';
  44.  
  45. $bans_per_page = '20';
  46. $games_per_page = '20';
  47. $heroes_per_page = '30';
  48. $top_players_per_page = '30';
  49. $news_per_page = '5';
  50. $search_limit = '50';
  51.  
  52. //Enable SEO meta description
  53. $EnableSEODesc = '1';
  54.  
  55. //This option will enable timed bans and warns (GhostOne feature).
  56. //Disable it if you dont use this feature or you will get error.
  57. $WarnAndExpireDate = '1';
  58.  
  59. //Display fastest and longest game time win on User page
  60. $FastGameWon = '0';
  61. //Show frequently used items for every hero (2 for each slot)
  62. $ShowHeroMostUsedItems = '1';
  63. //Show most used heroes for every item. (Note: this can take up much more resources. Care with huge database)
  64. $ShowItemsMostUsedByHero = '1';
  65. //Show Items button on Menu buttons
  66.  
  67. $enableItemsPage = '1';
  68. //Only for GhostOne
  69. $enableSafeListPage = '1';
  70.  
  71. //All slots are shown on Game page (Although they play 2v2, 3v3...)
  72. //If this option is disabled then you can not see the exact slot of player. It will hide empty slots.
  73. $ShowAllSlotsInGame = '0';
  74.  
  75. //Show total summary of all games (sentinel and scourge: wins, kills, creeps...)
  76. $ShowSentinelScourgeWon = '1';
  77.  
  78. //Show Country Flags
  79. $CountryFlags = '1';
  80.  
  81. //Show All Time Stats on Top page
  82. $AllTimeStats = '1';
  83. //All time stats. How many results to show for All time stats on Top page.
  84. $top_stats = '5';
  85.  
  86. //Hide banned users on Top and Monthly page.
  87. $HideBannedUsersOnTop = '1';
  88.  
  89. $displayUsersDisconnects = '1';
  90.  
  91. //Filter the results on the game page by years, months and days
  92. $FiltersOnGamePage = '1';
  93.  
  94. //Replay Location:
  95. $replayLocation = 'replays';
  96. //You can use timeoffset to match replay date (from -12 to 13 hours)
  97. //If replays working fine dont change this value (default 0).
  98. $replayTimeOffset = '0';
  99.  
  100. //If Smart Parsing enabled replay will be saved into HTML output after first parsing.
  101. //There is no need to parse same replay anymore.
  102. //If you disable this option replays will parse always
  103. $SmartParsing = '1';
  104.  
  105. //Max. page links before and after current page
  106. $max_pagination_link = '5';
  107.  
  108. //(Experimental) Get heroes data from playdota.com instead from database
  109. $ParsePDHeroes = '1';
  110.  
  111. //Score Method 1. This method use score formula (see $scoreFormula below) to calucate users score.
  112. //Score Method 2. This method use league system to calculate user score. Eg. wins*5 - losses*3 - disconnects*10
  113. //On game page winner will receive 5 points, loosers will loose 3 points by default.
  114. $ScoreMethod = '2';
  115. //Here you can setup how many points user receive when he win, lose or disconnect.
  116. $ScoreStart = '1000';
  117. $ScoreWins = '5';
  118. $ScoreLosses = '-3';
  119. $ScoreDisc = '-10';
  120.  
  121.  
  122. //Score Method 1
  123. //(Only used if $DBScore = '0')
  124. $scoreFormula = '((((kills-deaths+assists*0.5+towerkills*0.5+raxkills*0.2+(courierkills+creepdenies)*0.1+neutralkills*0.03+creepkills*0.03) * .2)+(wins-losses)))*10';
  125.  
  126. //Pre-Calculate score
  127. //If enabled: Player scores will be taken from the score table in your MySQL database. You must populate this table through your own methods.
  128. $DBScore = '0';
  129.  
  130. //Minimal ratio (lefttime/duration) that a player/hero has to complete a game to be counted as win/loss. otherwise game is ignored.
  131. $minPlayedRatio = '0.8';
  132. $minGamesPlayed = '0';
  133.  
  134. $date_format = 'd.m.Y H:i';
  135.  
  136. //How many records to show for each month row
  137. $monthly_stats = '5';
  138.  
  139. //Enable month rows. 1 - ENABLED, 0 - DISABLED
  140.  
  141. //Top Kills,Top Assists,Top Deaths,Top Creep Kills,Top Creep Denies
  142. $monthRow1 = '1';
  143. //Top Gold,Top Neutrals,Top Towers,Top Rax,Top Couriers Kills
  144. $monthRow2 = '1';
  145. //Best K/D,Best A/D Ratio,Most games,Best Win %,Top Stay %
  146. $monthRow3 = '1';
  147. //Most Kills,Assists,Deaths,Creeps,Denies
  148. $monthRow4 = '0';
  149. //AVG Kills,Assists,Deaths,Creeps,Denies
  150. $monthRow5 = '0';
  151.  
  152. $DaysOnMonthlyStats = '1';
  153. $TopRanksOnMonthly = '0';
  154.  
  155. //Show Points gained for each game for all users on game page
  156. $UserPointsOnGamePage = '1';
  157.  
  158. //If this option above is enabled, points will be calculated accurately (from database)
  159. //It will calculate total score before and after selected game. (SCORE BEFORE)-(SCORE AFTER) = POINTS per game
  160. //This will also take up much more resources (queries)
  161. $AccuratePointsCalculation = '0';
  162.  
  163. $head_admin = 'Neubivljiv';
  164. $bot_name = 'Ghost bot';
  165.  
  166. $LEAVER = 'LEAVER';
  167.  
  168. // Achievements plugin
  169. //Enable/disable User Achievements
  170. $UserAchievements = '1';
  171. // Configuration
  172.  
  173. $KillsMedal = '500'; //Kill 500 enemy heroes!
  174. $AssistMedal = '200'; //Assist in 200 kills. How many kills to achieve this medal (default 200).
  175. $WinPercentMedal = '85'; //Achieve 85 % victory
  176. $KillsPercentMedal = '60'; //Achieve 60 % of kills.
  177. $GamesMedal = '50'; //Play 50 games!
  178. $WinsMedal = '50'; //Win 50 games!
  179. $CreepsMedal = '5000'; //Kill 5000 creeps!
  180. $DeniesMedal = '500'; //Deny 500 creeps!
  181. $TowersMedal = '50'; //Destroy 50 towers!
  182. $CouriersMedal = '30'; //Kill 30 enemy couriers!
  183. $NeutralsMedal = '500'; //Kill 500 neutrals!
  184. $PlayDurationMedal = '30'; //Play at least 30 hours!
  185.  
  186. //*** SIGNATURES ***
  187. //Users can create signatures?
  188. $enableSignatures = '1';
  189. //Minimum number of games played to create signature
  190. $sigMinGames = '2';
  191. //Cache time of signature (in minutes)
  192. $sigCacheTime = '120';
  193. //Signature image quality ( 0 - 100 )
  194. $sigImageQuality = '90';
  195. //Show country flags on signature
  196. $sigCountryFlags = '1';
  197.  
  198. //*** SETUP CACHING ***
  199. //Enable page caching
  200. $cachePages = '0';
  201. //Caching directory (you must create this directory)
  202. $cacheDir = 'cache';
  203. //Cache time in minutes (default 30 min)
  204. $cachetime = 60 * 30;
  205.  
  206. //*** CACHE CONTROL ***
  207. //Show Last cached time and Next update time in footer
  208. $showUpdate = '0';
  209. //Cache all game pages
  210. $cacheAllGames = '0';
  211. //Cache all users
  212. $cacheAllUsers = '0';
  213.  
  214. //*** CHAT ***
  215. $enable_chat = '1';
  216. //File to store all chats
  217. $chat_file = 'chat.txt';
  218. //Show date with username - NOTE: this is only for new messages
  219. $chat_show_date = '1';
  220. //How long user must wait before he can write a new message (default 3 sec.)
  221. $wait_time = 1000 * 3;
  222. //Check for new messages (default 5 sec.)
  223. $refresh_messages = 1000 * 5;
  224. //How many lines to store in text file
  225. $maxlines = 20;
  226. //Max. nick length
  227. $nick_length = 20;
  228.  
  229. $pageGen = '1';
  230. $_debug = '1';
  231. ?>


Pomocy sad.gif
Sagnitor
W tym kodzie co podałeś:

  1. $database = "Ghost';


Zastosowany cudzysłów i apostrofa. Brak zakończenia cudzysłowa!

  1. $database = 'Ghost';


Powinno zadziałać.
demboo
DZIEKI exclamation.gif 10x
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.