<?php
/*
 * To fix issues 168 & 169 in a running copy of Bitsand v5.0:
 * Put this file in the root directory (the directory containing the start.php file)
 * Go to http://www.bitsand.org/v5-0_168-169-fix.php
 *  (where http://www.bitsand.org/ is the URL of your Bitsand installation)
 * Delete this file
*/

//Do not check that user is logged in
$bLoginCheck = False;

include ('inc/inc_head_db.php');
//Report all errors except E_NOTICE
error_reporting (E_ALL ^ E_NOTICE);

$db_prefix = DB_PREFIX;

if (ba_db_query ($link, "insert into `{$db_prefix}osps` (`ospName`, `ospShortName`) VALUES ('Immune to Paralysis', 'Immune Paralysis');" === False))
	echo "<span class = 'sans-warn'>Error creating 'Immune to Paralysis' OS</span><br />\n";
else
	echo "'Immune to Paralysis' OS created<br />\n";

	if (ba_db_query ($link, "insert into `{$db_prefix}guilds` (`guID`, `guName`) VALUES (11, ' Armourers');" === False))
		echo "<span class = 'sans-warn'>Error adding Armourers guild</span><br />\n";
	else
		echo "Added armourers guild<br />\n";

include ('inc/inc_foot.php');
?>
