source: extensions/db_backup/main.inc.php @ 23128

Last change on this file since 23128 was 3698, checked in by repie38, 15 years ago

create db_backup extension for repie38

File size: 1.4 KB
Line 
1<?php
2/*
3Plugin Name: db backup
4Version: 2.0.1
5Description: Backup your database (piwigo version)
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=240
7Author: Repié38
8Author URI: http://www.pierre-b.com
9*/
10
11/*
12Changelog :
13
14v1.0 : initial release
15
16v1.1 :  -bugs fix (thanks to P@t)
17                -.htaccess protection for /backups/ folder
18                -add checkbox to exclude or isolate history table, and to backup the whole db or just piwigo tables
19                -add infos in the filename (according to precendent point)
20                -moved down output field for readability
21
22v1.2 :  -Code cleaning (thanks to P@t)
23                -bug fix with history (now, history means *history and *history_summary)
24                -little corrections in filenames (and $page['infos'])
25                -javascript to avoid "only history + whole database" -> no more possible with code simplification
26
27v1.3 :  -admin tpl fix
28
29v2.0 :  -new name for 1.3 for piwigo
30
31v2.0.a: -italian translation (thanks to rio)
32
33v2.0.1 : -new feature : step by step backup
34
35
36*/
37
38if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
39define('DB_BACKUP_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
40
41
42function db_backup_menu($menu)
43{
44        array_push($menu,
45                array(
46                        'NAME' => 'db backup',
47                        'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/db_backup_admin.php')
48                )
49        );
50        return $menu;
51}
52
53
54add_event_handler('get_admin_plugin_menu_links', 'db_backup_menu' );
55
56
57?>
Note: See TracBrowser for help on using the repository browser.