2009-09-19 06:12:48 +00:00
|
|
|
<?
|
|
|
|
|
|
|
|
function db_update_136_pre()
|
|
|
|
{
|
2025-01-29 03:30:48 +00:00
|
|
|
global $config, $pdo;
|
2024-12-10 19:40:23 -05:00
|
|
|
$stmt = $pdo->prepare("UPDATE fairs SET `name` = 'Youth Science Canada',
|
2009-09-19 06:12:48 +00:00
|
|
|
`abbrv` = 'YSC',
|
|
|
|
`website` = 'http://apps.ysf-fsj.ca/awarddownloader/help.php',
|
|
|
|
`enable_stats` = 'yes',
|
|
|
|
`enable_awards` = 'yes',
|
|
|
|
`enable_winners` = 'yes',
|
2025-02-05 02:25:53 +00:00
|
|
|
`username` =?,
|
|
|
|
`password` =?
|
2009-09-19 06:12:48 +00:00
|
|
|
|
|
|
|
WHERE
|
|
|
|
`url`='https://secure.ysf-fsj.ca/awarddownloader/index.php'");
|
2025-02-05 02:25:53 +00:00
|
|
|
$stmt->execute([$config['ysf_region_id'],$config['ysf_region_password']]);
|
2009-09-19 06:12:48 +00:00
|
|
|
|
2024-12-10 19:40:23 -05:00
|
|
|
$stmt = $pdo->prepare("UPDATE fairs SET `abbrv` = 'STO',
|
2009-09-19 06:12:48 +00:00
|
|
|
`website` = 'http://www.scitechontario.org/awarddownloader/help.php',
|
|
|
|
`enable_stats` = 'yes',
|
|
|
|
`enable_awards` = 'yes',
|
|
|
|
`enable_winners` = 'yes'
|
|
|
|
WHERE
|
|
|
|
`url`='http://www.scitechontario.org/awarddownloader/index.php'");
|
2024-12-10 19:40:23 -05:00
|
|
|
$stmt->execute();
|
2009-09-19 06:12:48 +00:00
|
|
|
}
|
|
|
|
|
2025-01-29 03:30:48 +00:00
|
|
|
function db_update_136_post() {}
|
2009-09-19 06:12:48 +00:00
|
|
|
|
|
|
|
?>
|