run sms carrier script on install

This commit is contained in:
Evan Prodromou 2009-03-04 05:42:03 -08:00
parent c0115bf3bc
commit 18f7749995

View File

@ -152,6 +152,13 @@ function handlePost()
showForm();
return;
}
updateStatus("Adding SMS carrier data to database...");
$res = runDbScript(INSTALLDIR.'/db/sms_carrier.sql', $conn);
if ($res === false) {
updateStatus("Can't run SMS carrier script.", true);
showForm();
return;
}
updateStatus("Writing config file...");
$sqlUrl = "mysqli://$username:$password@$host/$database";
$res = writeConf($sitename, $sqlUrl);