[Pmwiki-users] Re: Edit via https only

Albi Rebmann albi
Sun Apr 18 17:18:17 CDT 2004


>> if ($action=='edit' || $action=='post') {
>>   $ScriptUrl = 'https://your/secure/path/to/pmwiki.php';
>>   $PubDirUrl = 'https://your/secure/path/to/pub';
>>   if (!@$_SERVER['HTTPS']) Redirect($pagename,'\$PageUrl?action=edit');
>> }
>>
>> I haven't tried this but it might work.
> 
> 
> Thanks very much! It works with one little change:
>     Redirect($pagename,'$PageUrl?action=edit');

And one more small change:
if ($action=='edit' || $action=='post' || $action=='postattr' || 
$action=='attr' || $action=='upload') {


So upload, and attr are https too.


ALBI...




More information about the pmwiki-users mailing list