1
aamjad2001
Protector module in 2.0.16
  • 2006/12/19 20:22

  • aamjad2001

  • Just popping in

  • Posts: 64

  • Since: 2006/6/20


i am trying to install protecter module in XOOPS 2.0.16 the moment i make the changes to mainfile.php this message then appears and there is no access to any page of the site. because instead of the site this appears when i restore the old mainfile.php then site comes back but then mainfile.php remains unsecure .

the error is like this Quote:
Parse error: syntax error, unexpected T_INCLUDE in /home/look8me/public_html/domain/mainfile.php on line 2

2
vaughan
Re: Protector module in 2.0.16
  • 2006/12/19 20:28

  • vaughan

  • Friend of XOOPS

  • Posts: 680

  • Since: 2005/11/26


make sure you have edited mainfile.php properly

it does work with 2.0.16, as i use it on my site.

3
aamjad2001
Re: Protector module in 2.0.16
  • 2006/12/19 20:48

  • aamjad2001

  • Just popping in

  • Posts: 64

  • Since: 2006/6/20


voughan which version did u use ?

i tried 2.57

4
irmtfan
Re: Protector module in 2.0.16
  • 2006/12/19 21:02

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


you must patch the mainfile.php correctly.

define('XOOPS_GROUP_ADMIN''1');
    
define('XOOPS_GROUP_USERS''2');
    
define('XOOPS_GROUP_ANONYMOUS''3');

    [
color=ff0000]include( XOOPS_ROOT_PATH '/modules/protector/include/precheck.inc.php' ) ;[/color]
    if (!isset(
$xoopsOption['nocommon']) [color=0000ff]&& XOOPS_ROOT_PATH != ''[/color] ) {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }
    [
color=ff0000]include( XOOPS_ROOT_PATH '/modules/protector/include/postcheck.inc.php' ) ;[/color]



i use 2.57 in 2.0.16 without any problem

5
aamjad2001
[Resolved]: Protector module in 2.0.16
  • 2006/12/19 22:09

  • aamjad2001

  • Just popping in

  • Posts: 64

  • Since: 2006/6/20


i got the problem.

actually i was editting it in notepad.

what notepad did was that after saving it junked the data into each other that what was causing the error.

this time i editted it thru the edit file option in filmanager in Cpanel.

how i got it was that the file size before editing in notepad was 5.30kb and after i added the line and saved it , instead of increase in file size , it decreased, that clicked me.

6
aamjad2001
Protector module in 2.0.16
  • 2006/12/19 22:13

  • aamjad2001

  • Just popping in

  • Posts: 64

  • Since: 2006/6/20


now comming to the second problem.

there is no .htaccess file in the root.

should i create it myself ? if yes then what does it look like ?

what should it contain apart from the register global things etc.?

7
MadFish
Re: Protector module in 2.0.16
  • 2006/12/20 3:01

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


You can create the file yourself, it is just a text file. Just include the lines that Protector suggests and it will work.

Login

Who's Online

455 user(s) are online (396 user(s) are browsing Support Forums)


Members: 0


Guests: 455


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits