vBulletin 3.0.3 Englisch Installationsproblem

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • vBulletin 3.0.3 Englisch Installationsproblem

    Hallo,

    ich muss bei der Installation des Board ja die MySQL Datnebankdaten eingeben er sagt in der Datei db_mysql.php muss es sein ;) Hier ma der Inhalt der Datei:

    PHP-Quellcode

    1. <?php
    2. /*======================================================================*\
    3. || #################################################################### ||
    4. || # vBulletin 3.0.3
    5. || # ---------------------------------------------------------------- # ||
    6. || # Copyright ©2000–2004 Jelsoft Enterprises Ltd. All Rights Reserved. ||
    7. || # This file may not be redistributed in whole or significant part. # ||
    8. || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
    9. || # Nullified by WDYL-WTN Team # ||
    10. || #################################################################### ||
    11. \*======================================================================*/
    12. error_reporting(E_ALL & ~E_NOTICE);
    13. // db class for mysql
    14. // this class is used in all scripts
    15. // do NOT fiddle unless you know what you are doing
    16. define('DBARRAY_NUM', MYSQL_NUM);
    17. define('DBARRAY_ASSOC', MYSQL_ASSOC);
    18. define('DBARRAY_BOTH', MYSQL_BOTH);
    19. if (!defined('DB_EXPLAIN'))
    20. {
    21. define('DB_EXPLAIN', false);
    22. }
    23. if (!defined('DB_QUERIES'))
    24. {
    25. define('DB_QUERIES', false);
    26. }
    27. class DB_Sql_vb
    28. {
    29. var $database = '';
    30. var $link_id = 0;
    31. var $errdesc = '';
    32. var $errno = 0;
    33. var $reporterror = 1;
    34. var $appname = 'vBulletin';
    35. var $appshortname = 'vBulletin (cp)';
    36. function connect($server, $user, $password, $usepconnect)
    37. {
    38. // connect to db server
    39. global $querytime;
    40. // do query
    41. if (DB_QUERIES)
    42. {
    43. echo "Connecting to database\n";
    44. global $pagestarttime;
    45. $pageendtime = microtime();
    46. $starttime = explode(' ', $pagestarttime);
    47. $endtime = explode(' ', $pageendtime);
    48. $beforetime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
    49. echo "Time before: $beforetime\n";
    50. if (function_exists('memory_get_usage'))
    51. {
    52. echo "Memory Before: " . number_format((memory_get_usage() / 1024)) . 'KB' . " \n";
    53. }
    54. }
    55. if (0 == $this->link_id)
    56. {
    57. if (empty($password))
    58. {
    59. if ($usepconnect == 1)
    60. {
    61. $this->link_id = @mysql_pconnect($server, $user);
    62. }
    63. else
    64. {
    65. $this->link_id = @mysql_connect($server, $user);
    66. }
    67. }
    68. else
    69. {
    70. if ($usepconnect == 1)
    71. {
    72. $this->link_id = @mysql_pconnect($server, $user, $password);
    73. }
    74. else
    75. {
    76. $this->link_id = @mysql_connect($server, $user, $password);
    77. }
    78. }
    79. if (!$this->link_id)
    80. {
    81. $this->halt('Link-ID == false, connect failed');
    82. return false;
    83. }
    84. $this->select_db($this->database);
    85. if (DB_QUERIES)
    86. {
    87. $pageendtime = microtime();
    88. $starttime = explode(' ', $pagestarttime);
    89. $endtime = explode(' ', $pageendtime);
    90. $aftertime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
    91. $querytime += $aftertime - $beforetime;
    92. echo "Time after: $aftertime\n";
    93. echo "Time taken: " . ($aftertime - $beforetime) . "\n";
    94. if (function_exists('memory_get_usage'))
    95. {
    96. echo "Memory After: " . number_format((memory_get_usage() / 1024)) . 'KB' . " \n";
    97. }
    98. echo "\n<hr />\n\n";
    99. }
    100. return true;
    101. }
    102. }
    103. function affected_rows()
    104. {
    105. $this->rows = mysql_affected_rows($this->link_id);
    106. return $this->rows;
    107. }
    108. function geterrdesc()
    109. {
    110. $this->error = mysql_error($this->link_id);
    111. return $this->error;
    112. }
    113. function geterrno()
    114. {
    115. $this->errno = mysql_errno($this->link_id);
    116. return $this->errno;
    117. }
    118. function select_db($database = '')
    119. {
    120. // select database
    121. if (!empty($database))
    122. {
    123. $this->database = $database;
    124. }
    125. $connectcheck = @mysql_select_db($this->database, $this->link_id);
    126. if($connectcheck)
    127. {
    128. return true;
    129. }
    130. else
    131. {
    132. $this->halt('cannot use database ' . $this->database);
    133. return false;
    134. }
    135. }
    136. function query_unbuffered($query_string)
    137. {
    138. return $this->query($query_string, 'mysql_unbuffered_query');
    139. }
    140. function shutdown_query($query_string, $arraykey = 0)
    141. {
    142. global $shutdownqueries;
    143. if (NOSHUTDOWNFUNC)
    144. {
    145. return $this->query($query_string);
    146. }
    147. elseif ($arraykey)
    148. {
    149. $shutdownqueries['$arraykey'] = $query_string;
    150. }
    151. else
    152. {
    153. $shutdownqueries[] = $query_string;
    154. }
    155. }
    156. function query($query_string, $query_type = 'mysql_query')
    157. {
    158. global $query_count, $querytime;
    159. if (DB_QUERIES)
    160. {
    161. echo 'Query' . ($query_type == 'mysql_unbuffered_query' ? ' (UNBUFFERED)' : '') . ":\n<i>" . htmlspecialchars($query_string) . "</i>\n";
    162. global $pagestarttime;
    163. $pageendtime = microtime();
    164. $starttime = explode(' ', $pagestarttime);
    165. $endtime = explode(' ', $pageendtime);
    166. $beforetime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
    167. echo "Time before: $beforetime\n";
    168. if (function_exists('memory_get_usage'))
    169. {
    170. echo "Memory Before: " . number_format((memory_get_usage() / 1024)) . 'KB' . " \n";
    171. }
    172. }
    173. // do query
    174. $query_id = $query_type($query_string, $this->link_id);
    175. $this->lastquery = $query_string;
    176. if (!$query_id)
    177. {
    178. $this->halt('Invalid SQL: ' . $query_string);
    179. }
    180. $query_count++;
    181. if (DB_QUERIES)
    182. {
    183. $pageendtime = microtime();
    184. $starttime = explode(' ', $pagestarttime);
    185. $endtime = explode(' ', $pageendtime);
    186. $aftertime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
    187. $querytime += $aftertime - $beforetime;
    188. echo "Time after: $aftertime\n";
    189. echo "Time taken: " . ($aftertime - $beforetime) . "\n";
    190. if (function_exists('memory_get_usage'))
    191. {
    192. echo "Memory After: " . number_format((memory_get_usage() / 1024)) . 'KB' . " \n";
    193. }
    194. if (DB_EXPLAIN AND preg_match('#(^|\s)SELECT\s+#si', $query_string))
    195. {
    196. $explain_id = mysql_query("EXPLAIN " . $query_string, $this->link_id);
    197. echo "</pre>\n";
    198. echo '
    199. <table width="100%" border="1" cellpadding="2" cellspacing="1">
    200. <tr>
    201. <td><b>table</b></td>
    202. <td><b>type</b></td>
    203. <td><b>possible_keys</b></td>
    204. <td><b>key</b></td>
    205. <td><b>key_len</b></td>
    206. <td><b>ref</b></td>
    207. <td><b>rows</b></td>
    208. <td><b>Extra</b></td>
    209. </tr>
    210. ';
    211. while($array = mysql_fetch_assoc($explain_id))
    212. {
    213. echo "
    214. <tr>
    215. <td>$array[table]&nbsp;</td>
    216. <td>$array[type]&nbsp;</td>
    217. <td>$array[possible_keys]&nbsp;</td>
    218. <td>$array[key]&nbsp;</td>
    219. <td>$array[key_len]&nbsp;</td>
    220. <td>$array[ref]&nbsp;</td>
    221. <td>$array[rows]&nbsp;</td>
    222. <td>$array[Extra]&nbsp;</td>
    223. </tr>
    224. ";
    225. }
    226. echo "</table>\n<br /><hr />\n";
    227. echo "\n<pre>";
    228. }
    229. else
    230. {
    231. echo "\n<hr />\n\n";
    232. }
    233. }
    234. return $query_id;
    235. }
    236. function fetch_array($query_id, $type = DBARRAY_ASSOC)
    237. {
    238. // retrieve row
    239. return @mysql_fetch_array($query_id, $type);
    240. }
    241. function free_result($query_id)
    242. {
    243. // retrieve row
    244. return @mysql_free_result($query_id);
    245. }
    246. function query_first($query_string, $type = DBARRAY_ASSOC)
    247. {
    248. // does a query and returns first row
    249. $query_id = $this->query($query_string);
    250. $returnarray = $this->fetch_array($query_id, $type);
    251. $this->free_result($query_id);
    252. $this->lastquery = $query_string;
    253. return $returnarray;
    254. }
    255. function data_seek($pos, $query_id)
    256. {
    257. // goes to row $pos
    258. return @mysql_data_seek($query_id, $pos);
    259. }
    260. function num_rows($query_id)
    261. {
    262. // returns number of rows in query
    263. return mysql_num_rows($query_id);
    264. }
    265. function num_fields($query_id)
    266. {
    267. // returns number of fields in query
    268. return mysql_num_fields($query_id);
    269. }
    270. function field_name($query_id, $columnnum)
    271. {
    272. // returns the name of a field in a query
    273. return mysql_field_name($query_id, $columnnum);
    274. }
    275. function insert_id()
    276. {
    277. // returns last auto_increment field number assigned
    278. return mysql_insert_id($this->link_id);
    279. }
    280. function close()
    281. {
    282. // closes connection to the database
    283. return mysql_close($this->link_id);
    284. }
    285. function print_query($htmlize = true)
    286. {
    287. // prints out the last query executed in <pre> tags
    288. $querystring = $htmlize ? htmlspecialchars($this->lastquery) : $this->lastquery;
    289. echo "<pre>$querystring</pre>";
    290. }
    291. function escape_string($string)
    292. {
    293. // escapes characters in string depending on Characterset
    294. return mysql_escape_string($string);
    295. }
    296. function halt($msg)
    297. {
    298. if ($this->link_id)
    299. {
    300. $this->errdesc = mysql_error($this->link_id);
    301. $this->errno = mysql_errno($this->link_id);
    302. }
    303. // prints warning message when there is an error
    304. global $technicalemail, $bbuserinfo, $vboptions, $_SERVER;
    305. if ($this->reporterror == 1)
    306. {
    307. $sendmail_path = @ini_get('sendmail_path');
    308. if ($sendmail_path === '')
    309. {
    310. // no sendmail, so we're using SMTP to send mail
    311. $delimiter = "\r\n";
    312. }
    313. else
    314. {
    315. $delimiter = "\n";
    316. }
    317. $msg = preg_replace("#(\r\n|\r|\n)#s", $delimiter, $msg);
    318. $message = 'Database error in ' . $this->appname . ' ' . $vboptions['templateversion'] . ":$delimiter$delimiter$msg$delimiter";
    319. $message .= 'mysql error: ' . $this->errdesc . "$delimiter$delimiter";
    320. $message .= 'mysql error number: ' . $this->errno . "$delimiter$delimiter";
    321. $message .= 'Date: ' . date('l dS of F Y h:i:s A') . $delimiter;
    322. $message .= "Script: http://$_SERVER[HTTP_HOST]" . SCRIPTPATH . $delimiter;
    323. $message .= 'Referer: ' . REFERRER . $delimiter;
    324. if ($bbuserinfo['username'])
    325. {
    326. $message .= 'Username: ' . $bbuserinfo['username'] . $delimiter;
    327. }
    328. $message .= 'IP Address: ' . IPADDRESS . $delimiter;
    329. include_once('./includes/functions_log_error.php');
    330. if (function_exists('log_vbulletin_error'))
    331. {
    332. log_vbulletin_error($message, 'database');
    333. }
    334. if (!empty($technicalemail) and empty($vboptions['disableerroremail']))
    335. {
    336. @mail ($technicalemail, $this->appshortname . ' Database error!', $message, "From: $technicalemail");
    337. }
    338. echo "<html><head><title>$vboptions[bbtitle] Database Error</title>";
    339. echo "<style type=\"text/css\"><!--.error { font: 11px tahoma, verdana, arial, sans-serif; }--></style></head>\r\n";
    340. echo "<body></table></td></tr></table></form>\r\n";
    341. echo "<blockquote><p class=\"error\">&nbsp;</p><p class=\"error\"><b>There seems to have been a slight problem with the $vboptions[bbtitle] database.</b><br />\r\n";
    342. echo "Please try again by pressing the <a href=\"javascript:window.location=window.location;\">refresh</a> button in your browser.</p>";
    343. echo "<p class=\"error\">An E-Mail has been dispatched to our <a href=\"mailto:$technicalemail\">Technical Staff</a>, who you can also contact if the problem persists.</p>";
    344. echo "<p class=\"error\">We apologise for any inconvenience.</p>";
    345. if ($bbuserinfo['usergroupid'] == 6 or ($permissions['adminpermissions'] & CANCONTROLPANEL))
    346. {
    347. // display error message on screen
    348. echo "<form><textarea class=\"error\" rows=\"15\" cols=\"100\" wrap=\"off\">" . htmlspecialchars($message) . "</textarea></form></blockquote>";
    349. }
    350. else
    351. {
    352. // display hidden error message
    353. echo "</blockquote>\r\n\r\n<!--\r\n" . htmlspecialchars($message) . " -->";
    354. }
    355. echo "\r\n\r\n</body></html>";
    356. exit;
    357. }
    358. }
    359. }
    360. /*======================================================================*\
    361. || ####################################################################
    362. || # Supplied/Nullified/Tested/Packaged by WDYL-WTN Team
    363. || # CVS: $RCSfile: db_mysql.php,v $ - $Revision: 1.83 $
    364. || ####################################################################
    365. \*======================================================================*/
    366. ?>
    Alles anzeigen



    So nun weiss ich net wo ich die Daten reintragen soll.

    Wer weiss rat ??
  • Ich wette darauf dass du bei vb die db-Daten nicht in irgendeine Datei eintragen musst, sondern dass es dafür eine extra PHP-Datei gibt (beim Invision z.B. gibts ne install.php). Ich würde dir vorschlagen mal die readme zu lesen … :rolleyes: