Skip to content

Commit

Permalink
CC-2652: The class was missing functions
Browse files Browse the repository at this point in the history
- fixed
  • Loading branch information
James authored and James committed Aug 8, 2011
1 parent 753ace3 commit c53aca4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions install_minimal/upgrades/airtime-1.9.0/airtime-upgrade.php
Expand Up @@ -352,6 +352,34 @@ public static function InsertCountryDataIntoDatabase(){
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{
Expand Down

0 comments on commit c53aca4

Please sign in to comment.