11
peterr
Re: is my xoops being hacks?
  • 2006/3/24 23:53

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


What MadNav means (I think) is find this line in mainfile.php

Quote:

define('XOOPS_ROOT_PATH', '');


it should be around ine 34; the define should have your path defined.

Sometimes rather than an echo to see what the values are (and to avoid "headers already sent" messages), you can send yourself an email, find these lines in mainfile.php

Quote:

if ( strcasecmp( substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace( DIRECTORY_SEPARATOR, '/', XOOPS_ROOT_PATH)) ) {
exit("XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
}


and before those lines add this code ..

$to "isronax@exmple.com";
$from "isronax@example.com";
$subject "Script is not inside error message";
$message "$xoopsScriptPath = " $xoopsScriptPathn";
$message .= "XOOPS_ROOT_PATH " . XOOPS_ROOT_PATHn";
$headers "From: $fromn"
mail$to$subject$message$headers);


you will need to change the vars $to and $from to your email address. I _think_ the syntax is okay ??

BEFORE you do any mods to mainfile.php, backup it up.

P
NO to the Microsoft Office format as an ISO standard.
Sign the petition

12
MadNav
Re: is my xoops being hacks?
  • 2006/3/25 5:12

  • MadNav

  • Just popping in

  • Posts: 12

  • Since: 2003/8/12


Isronax,

We had the exact same problem .. see this Link to get your specifics from your hosting service.

To expand on my last post:

look to this line in mainfile.php: (see that web_3 is right) this is what you need to fix.

Quote:

// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_ROOT_PATH', '/mnt/web_3/d42/s20/b01f5598
/www');
define('XOOPS_ROOT_PATH', '/mnt/web_3/d42/s20/b01f5598
/www');


PM me if you need more help .. but this should solve your problem.


Oh, and Peterr had some nice how tos in his last post that may come in handy later. Didn't mean to stir that water up but sleep deprevation gets the best of me at times. And well, forums drive me nuts when they get out of hand. I like the kind of forums that give points for answers and helpful hints to smooth this out. Good example is VMware

13
isronax
Re: is my xoops being hacks?
  • 2006/3/25 9:39

  • isronax

  • Just popping in

  • Posts: 100

  • Since: 2005/4/26


Great help... from you all
now my web site is back online

many thanks special to you all.
The Greats Xoops ... Go Ahead.
www.xoopsindonesia.com
www.indonesianschool.org

Login

Who's Online

214 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

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

Latest GitHub Commits