Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:
The statistics have been successfully reset
Notice: Undefined index: top_posting_user in /home/greenbui/public_html/newforum/extensions/Statistics/default.php on line 117
Notice: Undefined index: top_discussion_starter in /home/greenbui/public_html/newforum/extensions/Statistics/default.php on line 118
Notice: Undefined index: most_active_users in /home/greenbui/public_html/newforum/extensions/Statistics/default.php on line 121
1179487368 => 0
function SaveStatistics($Update) {
$this->StatisticsFile = ($this->Now+300)."\n";
foreach($this->Statistics AS $key => $data) {
if($Update == true) $data[0] = (ForceIncomingString("chkStatistic_".$key, "") == 0) ? "0" : "1";
if($data != $this->Statistics[0] && is_Array($data)) $this->StatisticsFile .= str_replace("\n", "", $key." => ".implode(" => ", $data))."\n";
}
/* New code */
$File = $this->Context->Configuration['EXTENSIONS_PATH']."Statistics/options.inc"
// write the contents to a temporary file
$rand = $this->Context->Configuration['EXTENSIONS_PATH'].'Statistics/' . DefineVerificationKey() . '.tmp';
$temp = @fopen($rand, 'w');
if ($temp) {
if (!@fwrite($temp, $this->StatisticsFile)) $this->Context->WarningCollector->Add($this->Context->GetDefinition("ErrWriteFile"));
} else {
$this->Context->WarningCollector->Add(str_replace("//1", $File, $this->Context->GetDefinition("ErrOpenFile")));
}
fclose($temp);
// If no errors, copy the temporary file over top of the existing file, otherwise delete the temp file.
if ($this->Context->WarningCollector->Iif()) {
@rename($rand, $File);
} else {
@unlink($rand);
}
/* /New code */
@chmod($this->Context->Configuration['EXTENSIONS_PATH']."Statistics/options.inc", 0666);
unset($this->StatisticsFile);
}1 to 13 of 13