CC-2652: The class was missing functions

- fixed
This commit is contained in:
James 2011-08-08 15:12:52 -04:00
parent 349e26dcee
commit e73061e181
1 changed files with 28 additions and 0 deletions

View File

@ -352,6 +352,34 @@ class AirtimeInstall{
echo "* Inserting data into country table".PHP_EOL;
Airtime190Upgrade::execSqlQuery($sql);
}
public static function SetUniqueId()
{
global $CC_DBC;
$uniqueId = md5(uniqid("", true));
$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('uniqueId', '$uniqueId')";
$result = $CC_DBC->query($sql);
if (PEAR::isError($result)) {
return false;
}
return true;
}
public static function SetImportTimestamp()
{
global $CC_DBC;
$now = time();
$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('import_timestamp', '$now')";
$result = $CC_DBC->query($sql);
if (PEAR::isError($result)) {
return false;
}
return true;
}
}
class AirtimeIni{