Project

General

Profile

« Previous | Next » 

Revision 1072

Added by Matthias over 15 years ago

replaced all remaining mktime() with time(), except from third party scripts

View differences:

backup-sql.php
24 24
*/
25 25

  
26 26
// Filename to use
27
$filename = $_SERVER['HTTP_HOST'].'-backup-'.gmdate('Y-m-d', mktime()+TIMEZONE).'.sql';
27
$filename = $_SERVER['HTTP_HOST'].'-backup-'.gmdate('Y-m-d', time()+TIMEZONE).'.sql';
28 28

  
29 29
// Check if user clicked on the backup button
30 30
if(!isset($_POST['backup'])){ 
......
40 40
"#\n".
41 41
"# Website Baker ".WB_VERSION." Database Backup\n".
42 42
"# ".WB_URL."\n".
43
"# ".gmdate(DATE_FORMAT, mktime()+TIMEZONE).", ".gmdate(TIME_FORMAT, mktime()+TIMEZONE)."\n".
43
"# ".gmdate(DATE_FORMAT, time()+TIMEZONE).", ".gmdate(TIME_FORMAT, time()+TIMEZONE)."\n".
44 44
"#".
45 45
"\n";
46 46

  

Also available in: Unified diff