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

Eklenti geliştirme bölümü.

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

İleti sabri ünal 10.05.2006, 08:19

##############################################################
## 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
En son sabri ünal tarafından, 18.07.2006, 22:02 tarihinde değiştirildi, toplamda 5 değişiklik yapıldı.
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!
Kullanıcı avatarı
sabri ünal
Üye
Üye
 
İleti: 1325
Kayıt: 27.10.2005, 15:49
Konum: İstanbul

İleti tankaya61 15.05.2006, 19:34

ne iş yapar bu otomatık sql yedekleyıcı gıbı bısıymı
Kullanıcı avatarı
tankaya61
Üye
Üye
 
İleti: 233
Kayıt: 22.01.2006, 14:57

İleti sabri ünal 16.05.2006, 10:25

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)
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!
Kullanıcı avatarı
sabri ünal
Üye
Üye
 
İleti: 1325
Kayıt: 27.10.2005, 15:49
Konum: İstanbul

İleti sabri ünal 21.06.2006, 14:26

mod güncellendi. hata ürettiği şüphesiyle site adı özelliği çıkarıldı
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!
Kullanıcı avatarı
sabri ünal
Üye
Üye
 
İleti: 1325
Kayıt: 27.10.2005, 15:49
Konum: İstanbul


Eklenti Geliştirme



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron