1 sayfadan 1. sayfa

[Yakusha] - date and backup type in backup filename - 1.0.3

İletiTarih: 10.05.2006, 08:19
sabri ünal
##############################################################
## MOD Title: date and backup type in backup filename [1.0.3]
## MOD Modified: yakusha < yakusha@tnn.net > (sabri ünal) < http://www.canver.net | turkei>
## MOD Author: Blijbol < software@blijbol.nl > (Jeroen van der Gun) N/A
## MOD Description: This MOD automatically adds the current date and backup type to the filename of database backup files
## MOD Version: 1.0.3
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: admin/admin_db_utilities.php
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## By default, a database backup has the filename "phpbb_db_backup.sql".
## This MOD changes it e.g. into "yedek_02-03-2006_05-39_structure.sql".
## - 02 March my birtday :)
##
##############################################################
## MOD History:
##
## 2006-05-20 - Version 1.0.3
## - added sitename, and substr fonk
## - deleted phpbb_backup prefix
## - renamed mod
##
## 2006-05-10 - Version 1.0.2
## - addes backup type option
## - renamed mod
##
## 2005-11-12 - Version 1.0.1
## - Replaced spaces with underscores (thanks to MOD Team)
##
## 2005-11-08 - Version 1.0.0
## - First release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_db_utilities.php


#
#-----[ FIND ]------------------------------------------
#
if($do_gzip_compress)
{
@ob_start();
@ob_implicit_flush(0);
header("Content-Type: application/x-gzip; name=\"phpbb_db_backup.sql.gz\"");
header("Content-disposition: attachment; filename=phpbb_db_backup.sql.gz");
}
else
{
header("Content-Type: text/x-delimtext; name=\"phpbb_db_backup.sql\"");
header("Content-disposition: attachment; filename=phpbb_db_backup.sql");
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

$gendate = create_date('d-m-Y_H-i', time(), $board_config['board_timezone'])."_".$backup_type;
if($do_gzip_compress)
{
@ob_start();
@ob_implicit_flush(0);
header("Content-Type: application/x-gzip; name=\"yedek_$gendate.sql.gz\"");
header("Content-disposition: attachment; filename=yedek_$gendate.sql.gz");
}
else
{
header("Content-Type: text/x-delimtext; name=\"yedek_$gendate.sql\"");
header("Content-disposition: attachment; filename=yedek_$gendate.sql");
}


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

İletiTarih: 15.05.2006, 19:34
tankaya61
ne iş yapar bu otomatık sql yedekleyıcı gıbı bısıymı

İletiTarih: 16.05.2006, 10:25
sabri ünal
tankaya61 yazdı:ne iş yapar bu otomatık sql yedekleyıcı gıbı bısıymı


hayır, sadece forumdan yedek alırken, yedek tarihini, site adını ve yedek türünü de yedek ismine ekliyor, özellikle bir den çok forum kullananlar ve sık sık yedek alanlar için birebir bir özellik 8)

İletiTarih: 21.06.2006, 14:26
sabri ünal
mod güncellendi. hata ürettiği şüphesiyle site adı özelliği çıkarıldı