Reply New Topic
2009/9/29 16:01:59
#1
Offline
Home away from home

Protector Module Update - require clarification re mainfile.php patching, or not

Hi

I note there's a new stable release of Protector (http://xoops.peak.ne.jp/md/mydownloads/singlefile.php?lid=94&cid=1&easiestml_lang=xlang%3Aen)

I note secondly that ImpressCMS users are told they do not have to adjust their mainfile.php.

I just want to clarify before I do an upgrade (because I always run into problems with Protector) : my mainfile.php is currently patched from when I used Xoops - I didn't change it when I upgraded to ImpressCMS. So does that mean that if I simply do as the instructions state (You do not need to edit mainfile.php when using ImpressCMS, instead locate the ImpressCMS_Extras directory
inside the protector package, and copy the preload directory to your root ImpressCMS directory, so that your
ImpressCMS preload folder contains the file protector.php
), will it still work with my patched mainfile.php file, or not? Or do I have to change my mainfile.php to it's 'pre-protector' state?

Also, having just downloaded the package, there is no ImpressCMS_Extras directory. There's an empty preload directory, but not a ImpressCMS_Extras directory.

So I am confused now.

Ta

Ted


2009/9/29 16:15:16
#2
Offline
Home away from home

Re: Protector Module Update - require clarification re mainfile.php patching, or not

not in htdocs/ look in the package root.

/extras/preload/protector.php

I believe that the migration script will rewrite your mainfile.php file.

so you will need to move that file into the preload folder of your docroot.

If it doesn't then you don't need to worry about it,


2009/9/29 17:18:51
#3
Offline
Home away from home

Re: Protector Module Update - require clarification re mainfile.php patching, or not

You need to be sure you do not have both methods being used - it will lead to blank pages when you try to post anything! The best method is placing the protector.php file in the preloads directory.

Since your mainfile is already modified to load protector, you can leave it at that.

Upgrades from xoops to impresscms will rewrite the mainfile, but if I recall, it does not remove the lines to load protector.

_________________
Christian Web Resources
Facebook

2009/9/30 13:32:33
#4
Offline
Home away from home

Re: Protector Module Update - require clarification re mainfile.php patching, or not

Thanks for the clarification guys.

Yeah, I just overwrote the previous version and updated via modules admin, and it all seems to be working.

Many thanks

Ted


Reply New Topic extras
 Previous Topic   Next Topic
You can view topic.
You can start a new topic.
You can reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You can post without approval.