Changeset 27560 for extensions/Force_HTTPS/maintain.inc.php
- Timestamp:
- Mar 5, 2014, 9:52:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Force_HTTPS/maintain.inc.php
r22560 r27560 6 6 * 7 7 * Created : 02.05.2013 8 * Updated : 0 3.05.20138 * Updated : 05.03.2014 9 9 * Author : bonhommedeneige 10 10 * … … 26 26 /** 27 27 Changelog : 28 1.3.0 (05.03.2014) : Renamed deltree function to force_https_deltree to avoid multiple declarations of 29 function accross multiple plugins. Piwigo 2.6 compatibility 28 30 1.2.0 (05.05.2013) : No change 29 31 1.1.0 (04.05.2013) : Added HSTS security settings … … 33 35 34 36 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 35 define('FORCE_HTTPS_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');37 if (!defined('FORCE_HTTPS_PATH')) define('FORCE_HTTPS_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 36 38 37 39 function plugin_install() … … 54 56 if (is_dir(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'piwigo-force-https')) 55 57 { 56 deltree(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'piwigo-force-https');58 force_https_deltree(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'piwigo-force-https'); 57 59 } 58 60 $q = 'DELETE FROM '.CONFIG_TABLE.' WHERE param LIKE "fhp_%" LIMIT 6;'; … … 70 72 } 71 73 72 function deltree($path)74 function force_https_deltree($path) 73 75 { 74 76 if (is_dir($path)) … … 82 84 if (is_dir($pathfile)) 83 85 { 84 deltree($pathfile);86 force_https_deltree($pathfile); 85 87 } 86 88 else
Note: See TracChangeset
for help on using the changeset viewer.