CC-1724:phone-home-statistics
Rebase from devel into this branch
This commit is contained in:
parent
11b601308e
commit
cf654f1a45
18 changed files with 656 additions and 193 deletions
|
@ -262,6 +262,19 @@ class AirtimeInstall
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
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 GetAirtimeVersion()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue