Index: trunk/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -234,7 +234,7 @@ |
235 | 235 | $PGMINVER = '8.1'; |
236 | 236 | if ( $version < $PGMINVER ) { |
237 | 237 | print "<b>FAILED</b>. Required version is $PGMINVER. You have " . htmlspecialchars( $version ) . "</li>\n"; |
238 | | - dieout( '</ul>' ); |
| 238 | + dieout( '' ); |
239 | 239 | } |
240 | 240 | print 'version ' . htmlspecialchars( $this->numeric_version ) . " is OK.</li>\n"; |
241 | 241 | |
— | — | @@ -251,7 +251,7 @@ |
252 | 252 | $rows = $this->numRows( $res = $this->doQuery( $SQL ) ); |
253 | 253 | if ( !$rows ) { |
254 | 254 | print '<li>ERROR: Could not read permissions for user "' . htmlspecialchars( $superuser ) . "\"</li>\n"; |
255 | | - dieout( '</ul>' ); |
| 255 | + dieout( '' ); |
256 | 256 | } |
257 | 257 | $perms = pg_fetch_result( $res, 0, 0 ); |
258 | 258 | |
— | — | @@ -263,7 +263,7 @@ |
264 | 264 | if ( $perms != 1 && $perms != 3 ) { |
265 | 265 | print '<li>ERROR: the user "' . htmlspecialchars( $superuser ) . '" cannot create other users. '; |
266 | 266 | print 'Please use a different Postgres user.</li>'; |
267 | | - dieout( '</ul>' ); |
| 267 | + dieout( '' ); |
268 | 268 | } |
269 | 269 | print '<li>Creating user <b>' . htmlspecialchars( $wgDBuser ) . '</b>...'; |
270 | 270 | $safepass = $this->addQuotes( $wgDBpassword ); |
— | — | @@ -281,7 +281,7 @@ |
282 | 282 | if ( $perms < 1 ) { |
283 | 283 | print '<li>ERROR: the user "' . htmlspecialchars( $superuser ) . '" cannot create databases. '; |
284 | 284 | print 'Please use a different Postgres user.</li>'; |
285 | | - dieout( '</ul>' ); |
| 285 | + dieout( '' ); |
286 | 286 | } |
287 | 287 | print '<li>Creating database <b>' . htmlspecialchars( $wgDBname ) . '</b>...'; |
288 | 288 | $safename = $this->quote_ident( $wgDBname ); |
— | — | @@ -309,7 +309,7 @@ |
310 | 310 | @$this->mConn = pg_connect( $this->makeConnectionString( $connectVars ) ); |
311 | 311 | if ( !$this->mConn ) { |
312 | 312 | print "<b>FAILED TO CONNECT!</b></li>"; |
313 | | - dieout( '</ul>' ); |
| 313 | + dieout( '' ); |
314 | 314 | } |
315 | 315 | print "OK</li>\n"; |
316 | 316 | } |
— | — | @@ -323,7 +323,7 @@ |
324 | 324 | htmlspecialchars( $wgDBname ) . '".'; |
325 | 325 | print 'Please see <a href="http://www.devx.com/opensource/Article/21674/0/page/2">this article</a>'; |
326 | 326 | print " for instructions or ask on #postgresql on irc.freenode.net</li>\n"; |
327 | | - dieout( '</ul>' ); |
| 327 | + dieout( '' ); |
328 | 328 | } |
329 | 329 | print "OK</li>\n"; |
330 | 330 | print '<li>Ensuring that user "' . htmlspecialchars( $wgDBuser ) . |
— | — | @@ -343,7 +343,7 @@ |
344 | 344 | $result = $this->doQuery( "CREATE SCHEMA $safeschema AUTHORIZATION $safeuser" ); |
345 | 345 | if ( !$result ) { |
346 | 346 | print "<b>FAILED</b>.</li>\n"; |
347 | | - dieout( '</ul>' ); |
| 347 | + dieout( '' ); |
348 | 348 | } |
349 | 349 | print "OK</li>\n"; |
350 | 350 | } else { |
— | — | @@ -361,7 +361,7 @@ |
362 | 362 | $res = $this->doQuery( $SQL ); |
363 | 363 | if ( !$res ) { |
364 | 364 | print "<b>FAILED</b>. Could not set rights for the user.</li>\n"; |
365 | | - dieout( '</ul>' ); |
| 365 | + dieout( '' ); |
366 | 366 | } |
367 | 367 | $this->doQuery( "SET search_path = $safeschema" ); |
368 | 368 | $rows = $this->numRows( $res ); |
— | — | @@ -388,7 +388,7 @@ |
389 | 389 | print '<b>FAILED</b>. Make sure tsearch2 is installed. See <a href="'; |
390 | 390 | print 'http://www.devx.com/opensource/Article/21674/0/page/2">this article</a>'; |
391 | 391 | print " for instructions.</li>\n"; |
392 | | - dieout( '</ul>' ); |
| 392 | + dieout( '' ); |
393 | 393 | } |
394 | 394 | print "OK</li>\n"; |
395 | 395 | |
— | — | @@ -406,7 +406,7 @@ |
407 | 407 | print "<b>FAILED</b> to access " . htmlspecialchars( "pg_ts_$tname" ) . |
408 | 408 | ". Make sure that the user \"". htmlspecialchars( $wgDBuser ) . |
409 | 409 | "\" has SELECT access to all four tsearch2 tables</li>\n"; |
410 | | - dieout( '</ul>' ); |
| 410 | + dieout( '' ); |
411 | 411 | } |
412 | 412 | } |
413 | 413 | $SQL = "SELECT ts_name FROM $safetsschema.pg_ts_cfg WHERE locale = " . $this->addQuotes( $ctype ) ; |
— | — | @@ -443,7 +443,7 @@ |
444 | 444 | print '<b>FAILED</b>. '; |
445 | 445 | print 'Please make sure that the locale in pg_ts_cfg for "default" is set to "' . |
446 | 446 | htmlspecialchars( $ctype ) . "\"</li>\n"; |
447 | | - dieout( '</ul>' ); |
| 447 | + dieout( '' ); |
448 | 448 | } |
449 | 449 | print 'OK</li>'; |
450 | 450 | } |
— | — | @@ -453,7 +453,7 @@ |
454 | 454 | $res = $this->doQuery( $SQL ); |
455 | 455 | if ( !$res ) { |
456 | 456 | print '<b>FAILED</b>. Specifically, "' . htmlspecialchars( $SQL ) . '" did not work.</li>'; |
457 | | - dieout( '</ul>' ); |
| 457 | + dieout( '' ); |
458 | 458 | } |
459 | 459 | print 'OK</li>'; |
460 | 460 | } |
— | — | @@ -475,7 +475,7 @@ |
476 | 476 | 'You can try making them the owner of the database, or try creating the schema with a '. |
477 | 477 | 'different user, and then grant access to the "' . |
478 | 478 | htmlspecialchars( $wgDBuser ) . "\" user.</li>\n"; |
479 | | - dieout( '</ul>' ); |
| 479 | + dieout( '' ); |
480 | 480 | } |
481 | 481 | print "OK</li>\n"; |
482 | 482 | } elseif ( $result != $wgDBuser ) { |
— | — | @@ -492,7 +492,7 @@ |
493 | 493 | $result = pg_query( $this->mConn, $SQL ); |
494 | 494 | if ( !$result ) { |
495 | 495 | print "<b>FAILED</b>.</li>\n"; |
496 | | - dieout( '</ul>' ); |
| 496 | + dieout( '' ); |
497 | 497 | } |
498 | 498 | print "OK</li>\n"; |
499 | 499 | // Set for the rest of this session |
— | — | @@ -500,7 +500,7 @@ |
501 | 501 | $result = pg_query( $this->mConn, $SQL ); |
502 | 502 | if ( !$result ) { |
503 | 503 | print "<li>Failed to set timezone</li>\n"; |
504 | | - dieout( '</ul>' ); |
| 504 | + dieout( '' ); |
505 | 505 | } |
506 | 506 | |
507 | 507 | print '<li>Setting the datestyle to ISO, YMD for user "' . htmlspecialchars( $wgDBuser ) . '" ...'; |
— | — | @@ -508,7 +508,7 @@ |
509 | 509 | $result = pg_query( $this->mConn, $SQL ); |
510 | 510 | if ( !$result ) { |
511 | 511 | print "<b>FAILED</b>.</li>\n"; |
512 | | - dieout( '</ul>' ); |
| 512 | + dieout( '' ); |
513 | 513 | } |
514 | 514 | print "OK</li>\n"; |
515 | 515 | // Set for the rest of this session |
— | — | @@ -516,7 +516,7 @@ |
517 | 517 | $result = pg_query( $this->mConn, $SQL ); |
518 | 518 | if ( !$result ) { |
519 | 519 | print "<li>Failed to set datestyle</li>\n"; |
520 | | - dieout( '</ul>' ); |
| 520 | + dieout( '' ); |
521 | 521 | } |
522 | 522 | |
523 | 523 | // Fix up the search paths if needed |
— | — | @@ -532,7 +532,7 @@ |
533 | 533 | $result = pg_query( $this->mConn, $SQL ); |
534 | 534 | if ( !$result ) { |
535 | 535 | print "<b>FAILED</b>.</li>\n"; |
536 | | - dieout( '</ul>' ); |
| 536 | + dieout( '' ); |
537 | 537 | } |
538 | 538 | print "OK</li>\n"; |
539 | 539 | // Set for the rest of this session |
— | — | @@ -540,7 +540,7 @@ |
541 | 541 | $result = pg_query( $this->mConn, $SQL ); |
542 | 542 | if ( !$result ) { |
543 | 543 | print "<li>Failed to set search_path</li>\n"; |
544 | | - dieout( '</ul>' ); |
| 544 | + dieout( '' ); |
545 | 545 | } |
546 | 546 | define( 'POSTGRES_SEARCHPATH', $path ); |
547 | 547 | } |
— | — | @@ -565,12 +565,12 @@ |
566 | 566 | if ( !$result ) { |
567 | 567 | print '<b>FAILED</b>. You need to install the language PL/pgSQL in the database <tt>' . |
568 | 568 | htmlspecialchars( $wgDBname ) . '</tt></li>'; |
569 | | - dieout( '</ul>' ); |
| 569 | + dieout( '' ); |
570 | 570 | } |
571 | 571 | } else { |
572 | 572 | print '<b>FAILED</b>. You need to install the language PL/pgSQL in the database <tt>' . |
573 | 573 | htmlspecialchars( $wgDBname ) . '</tt></li>'; |
574 | | - dieout( '</ul>' ); |
| 574 | + dieout( '' ); |
575 | 575 | } |
576 | 576 | } |
577 | 577 | print "OK</li>\n"; |
Index: trunk/phase3/includes/db/DatabaseMssql.php |
— | — | @@ -824,7 +824,7 @@ |
825 | 825 | $res = $this->doQuery( $SQL ); |
826 | 826 | if ( !$res ) { |
827 | 827 | print "<b>FAILED</b>. Make sure that the user " . htmlspecialchars( $wgDBuser ) . " can write to the database</li>\n"; |
828 | | - dieout( "</ul>" ); |
| 828 | + dieout( "" ); |
829 | 829 | } |
830 | 830 | $this->doQuery( "DROP TABLE $ctest" ); |
831 | 831 | |