Reupload after bitbucket wipe
This commit is contained in:
31
web/updater/12.php
Normal file
31
web/updater/12.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
if ( !defined('IN_UPDATER') )
|
||||
{
|
||||
die('Do not access this file directly.');
|
||||
}
|
||||
|
||||
$db->query("
|
||||
INSERT INTO `hlstats_Options_Choices` (`keyname`, `value`, `text`, `isDefault`) VALUES
|
||||
('google_map_region', 'TAIWAN', 'Taiwan', 0)
|
||||
");
|
||||
|
||||
|
||||
$l4dgames = array();
|
||||
$result = "SELECT code FROM hlstats_Games WHERE realgame = 'l4d'";
|
||||
while ($rowdata = $db->fetch_row($result))
|
||||
{
|
||||
array_push($l4dgames, $db->escape($rowdata[0]));
|
||||
}
|
||||
|
||||
foreach($l4dgames as $game)
|
||||
{
|
||||
$db->query("
|
||||
UPDATE hlstats_Awards SET verb = 'teammate protections' WHERE game='$game' AND code = 'protect_teammate' AND verb = 'hunter punts'
|
||||
");
|
||||
}
|
||||
|
||||
$db->query("
|
||||
UPDATE hlstats_Options SET `value` = '12' WHERE `keyname` = 'dbversion'
|
||||
");
|
||||
?>
|
Reference in New Issue
Block a user