public function set_data_log($data)
{
$content_config = "<?php\n\n";
$content_config .= NV_FILEHEAD . "\n\n";
$content_config .= "if( ! defined( 'NV_IS_UPDATE' ) ) die( 'Stop!!!' );\n\n";
$content_config .= "\$nv_update_config['updatelog'] = " . var_export($data, true) . ";";
$content_config .= "\n\n";
$content_config .= "?>";
$return = file_put_contents(NV_ROOTDIR . '/' . NV_DATADIR . '/config_update_' . $this->config['packageID'] . '.php', $content_config, LOCK_EX);
if ($return === false) {
$message = sprintf($this->lang['update_error_log_data'], NV_DATADIR);
$contents = $this->call_error($message);
include NV_ROOTDIR . '/includes/header.php';
echo $this->template($contents);
include NV_ROOTDIR . '/includes/footer.php';
}
//Resets the contents of the opcode cache
if (function_exists('opcache_reset')) {
opcache_reset();
}
}