Changeset 27560 for extensions/Force_HTTPS/main.inc.php
- Timestamp:
- Mar 5, 2014, 9:52:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Force_HTTPS/main.inc.php
r22560 r27560 2 2 /* 3 3 Plugin Name: Force HTTPS 4 Version: 1. 2.04 Version: 1.3.0 5 5 Description: Gives the capacity to force https connections on https enabled servers. 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=697 … … 9 9 10 10 Changelog : 11 1.3.0 (05.03.2014) : Upgrade for Piwigo 2.6 compatibility 11 12 1.2.0 (05.05.2013) : Fixed unicity of strbool function (renamed to piwigo_force_https_strbool) 12 13 Caused unicity issue with video-js plugin … … 26 27 define('FORCE_HTTPS_ID', basename(dirname(__FILE__))); 27 28 define('FORCE_HTTPS_PATH' , PHPWG_PLUGINS_PATH . FORCE_HTTPS_ID . '/'); 28 define('FORCE_HTTPS_VERSION', '1. 2.0');29 define('FORCE_HTTPS_VERSION', '1.3.0'); 29 30 // this is automatically updated by PEM if you publish your plugin with SVN, otherwise you musn't forget to change it, as well as "Version" in the plugin header 30 31 … … 94 95 } 95 96 } 96 97 // prepare plugin configuration98 //$conf['piwigo_force_https'] = unserialize($conf['piwigo_force_https']);99 }100 101 /**102 * SSL availability check103 * - function checks if ssl is available on domain104 */105 function piwigo_force_https_checkssl() {106 global $conf;107 108 $mylinks="http://www.petitssuisses.com";109 $handlerr = curl_init($mylinks);110 curl_setopt($handlerr, CURLOPT_RETURNTRANSFER, TRUE);111 $resp = curl_exec($handlerr);112 $ht = curl_getinfo($handlerr, CURLINFO_HTTP_CODE);113 114 if ($ht == '404')115 { echo 'OK';}116 else { echo 'NO';117 }118 97 } 119 98
Note: See TracChangeset
for help on using the changeset viewer.