Changeset 19832 for extensions/pbase2piwigo/maintain.inc.php
- Timestamp:
- Jan 5, 2013, 11:28:38 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pbase2piwigo/maintain.inc.php
r17225 r19832 1 1 <?php 2 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 4 define(5 'pbase2piwigo_default_config',6 serialize(array(7 ))8 );9 3 10 4 … … 13 7 global $conf; 14 8 15 // conf_update_param('pbase2piwigo', pbase2piwigo_default_config); 16 17 mkdir($conf['data_location'].'pbase_cache/', 0755); 9 mkgetdir(PHPWG_ROOT_PATH . $conf['data_location'] . 'pbase_cache/', MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR); 18 10 } 19 11 … … 21 13 { 22 14 global $conf; 23 24 // if (empty($conf['pbase2piwigo']))25 // {26 // conf_update_param('pbase2piwigo', pbase2piwigo_default_config);27 // }28 15 29 if (!file_exists( $conf['data_location'].'pbase_cache/'))16 if (!file_exists(PHPWG_ROOT_PATH . $conf['data_location'] . 'pbase_cache/')) 30 17 { 31 mk dir($conf['data_location'].'pbase_cache/', 0755);18 mkgetdir(PHPWG_ROOT_PATH . $conf['data_location'] . 'pbase_cache/', MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR); 32 19 } 33 20 } … … 35 22 function plugin_uninstall() 36 23 { 37 // pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "pbase2piwigo" LIMIT 1;');24 global $conf; 38 25 39 rrmdir( $conf['data_location'].'pbase_cache/');26 rrmdir(PHPWG_ROOT_PATH . $conf['data_location'] . 'pbase_cache/'); 40 27 } 41 28
Note: See TracChangeset
for help on using the changeset viewer.