only append time() to scripts when using dev. version

This commit is contained in:
Andrew Dolgov 2006-03-30 07:57:29 +01:00
parent 7f42331527
commit 1b758780aa
4 changed files with 11 additions and 3 deletions

View File

@ -83,7 +83,7 @@
10080 => "Weekly");
$script_started = getmicrotime();
$script_dt_add = time();
$script_dt_add = get_script_dt_add();
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);

View File

@ -1482,4 +1482,12 @@
}
}
function get_script_dt_add() {
if (strpos(VERSION, "99") === false) {
return VERSION;
} else {
return time();
}
}
?>

View File

@ -14,7 +14,7 @@
login_sequence($link);
$dt_add = time();
$dt_add = get_script_dt_add();
?>
<html>

View File

@ -14,7 +14,7 @@
login_sequence($link);
$dt_add = time();
$dt_add = get_script_dt_add();
?>
<html>