Last change
on this file since 24146 was
3698,
checked in by repie38, 15 years ago
|
create db_backup extension for repie38
|
File size:
1.4 KB
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: db backup |
---|
4 | Version: 2.0.1 |
---|
5 | Description: Backup your database (piwigo version) |
---|
6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=240 |
---|
7 | Author: Repié38 |
---|
8 | Author URI: http://www.pierre-b.com |
---|
9 | */ |
---|
10 | |
---|
11 | /* |
---|
12 | Changelog : |
---|
13 | |
---|
14 | v1.0 : initial release |
---|
15 | |
---|
16 | v1.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 | |
---|
22 | v1.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 | |
---|
27 | v1.3 : -admin tpl fix |
---|
28 | |
---|
29 | v2.0 : -new name for 1.3 for piwigo |
---|
30 | |
---|
31 | v2.0.a: -italian translation (thanks to rio) |
---|
32 | |
---|
33 | v2.0.1 : -new feature : step by step backup |
---|
34 | |
---|
35 | |
---|
36 | */ |
---|
37 | |
---|
38 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
39 | define('DB_BACKUP_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); |
---|
40 | |
---|
41 | |
---|
42 | function 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 | |
---|
54 | add_event_handler('get_admin_plugin_menu_links', 'db_backup_menu' ); |
---|
55 | |
---|
56 | |
---|
57 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.