<! -- begin activate module -->
<?php
$file_path = $_SERVER['DOCUMENT_ROOT'] . '/admin/view/batch_editor/setting/option.ini';
if (file_exists($file_path)) {
$version = '0.4.8'; // set version module 0.4.6, 0.4.7, 0.4.8
$domain = preg_replace('/^www\\./', '', $_SERVER['HTTP_HOST']);
$request = '&module=batch_editor&version=' . $version . '&domain=' . $domain;
$file_ini = unserialize(file_get_contents($file_path));
$hash = sha1(sha1(sha1($request)));
if ($hash != $file_ini["hash"]) {
$file_ini["hash"] = $hash;
$file_ini = serialize($file_ini);
file_put_contents($file_path, $file_ini);
}
}
?>
<! -- end activate module -->