11
mpowell
Re: Auto login hack and mainfile.php modification
  • 2005/1/12 4:11

  • mpowell

  • Friend of XOOPS

  • Posts: 119

  • Since: 2004/2/10


Thanks for your help. But I'm still unsure if it needs to go at some specific place in the mainfile.php?

mpowell

12
sudhaker
Re: Auto login hack and mainfile.php modification
  • 2005/1/12 18:18

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


I would place it after this block

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


Anywhere inside outer if but before 'common.php' include will work fine.

13
Falcon22
Re: Auto login hack + Login using email.
  • 2005/2/15 4:09

  • Falcon22

  • Just popping in

  • Posts: 58

  • Since: 2003/12/26


HELP!
I tried installing this remember me hack, all I did was upload the files then I get this on my homepage and nothing else:


Warning: main(XOOPS_ROOT_PATH/class/xoopsblock.php): failed to open stream: No such file or directory in /home/jclistc/public_html/header.php on line 28

Warning: main(): Failed opening 'XOOPS_ROOT_PATH/class/xoopsblock.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jclistc/public_html/header.php on line 28

Warning: main(XOOPS_ROOT_PATH/class/template.php): failed to open stream: No such file or directory in /home/jclistc/public_html/header.php on line 62

Fatal error: main(): Failed opening required 'XOOPS_ROOT_PATH/class/template.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jclistc/public_html/header.php on line 62


MY ENTIRE SITE IS DOWN; The only problem that I can think of is that I already installed the other auto login hack from the japanese site a month ago but it never worked for me. Is there any solution???

14
sudhaker
Re: Auto login hack + Login using email.
  • 2005/2/15 6:13

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


U sure you applied it over XOOPS 2.0.9.2 ?

XOOPS_ROOT_PATH is not getting translated, this smells like real problem.

Can you post your mainfile.php here (obviously after masking your db password, if problem is still there)

15
Falcon22
Re: Auto login hack + Login using email.
  • 2005/2/15 6:32

  • Falcon22

  • Just popping in

  • Posts: 58

  • Since: 2003/12/26


I am almost positive I applied the upgrade to 2.0.9.2 correctly but how can I be sure? Here is my mainfile.php:






if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {

define("XOOPS_MAINFILE_INCLUDED",1);



// XOOPS Physical Path

// Physical path to your main XOOPS directory WITHOUT trailing slash

define('XOOPS_ROOT_PATH', '/home/jclistc/public_html');



// XOOPS Virtual Path (URL)

// Virtual path to your main XOOPS directory WITHOUT trailing slash

define('XOOPS_URL', 'http://jclist.com');

define('XOOPS_CHECK_PATH', 1);
// Protect against external scripts execution if safe mode is not enabled
if ( XOOPS_CHECK_PATH && !@ini_get('safe_mode') ) {
if ( function_exists('debug_backtrace') ) {
$xoopsScriptPath = debug_backtrace();
if ( !count($xoopsScriptPath) ) {
die("XOOPS path check: this file cannot be requested directly");
}
$xoopsScriptPath = $xoopsScriptPath[0]['file'];
} else {
$xoopsScriptPath = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] : $_SERVER['SCRIPT_FILENAME'];
}
if ( DIRECTORY_SEPARATOR != '/' ) {
// IIS6 may double the \ chars
$xoopsScriptPath = str_replace( strpos( $xoopsScriptPath, '\\\\', 2 ) ? '\\\\' : DIRECTORY_SEPARATOR, '/', $xoopsScriptPath);
}
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.");
}
}


// Database

// Choose the database to be used

define('XOOPS_DB_TYPE', 'mysql');



// Table Prefix

// This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.

define('XOOPS_DB_PREFIX', 'xoops');



// Database Hostname

// Hostname of the database server. If you are unsure, 'localhost' works in most cases.

define('XOOPS_DB_HOST', 'localhost');



// Database Username

// Your database user account on the host

define('XOOPS_DB_USER', 'jclistc_dan');



// Database Password

// Password for your database user account

define('XOOPS_DB_PASS', 'dangxxxx');



// Database Name

// The name of database on the host. The installer will attempt to create the database if not exist

define('XOOPS_DB_NAME', 'jclistc_xoops');



// Use persistent connection? (Yes=1 No=0)

// Default is 'Yes'. Choose 'Yes' if you are unsure.

define('XOOPS_DB_PCONNECT', 0);



define('XOOPS_GROUP_ADMIN', '1');

define('XOOPS_GROUP_USERS', '2');

define('XOOPS_GROUP_ANONYMOUS', '3');



if (!isset($xoopsOption['nocommon'])) {

include XOOPS_ROOT_PATH."/include/common.php";

}

}

?>

16
sudhaker
Re: Auto login hack + Login using email.
  • 2005/2/15 14:16

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


Check include/version.php

Feel gfree to message me on YM - my id is 'sudhaker' (if you seek any quick help).

Thanks,

17
Falcon22
Re: Auto login hack + Login using email.
  • 2005/2/16 2:18

  • Falcon22

  • Just popping in

  • Posts: 58

  • Since: 2003/12/26


Thanks so much sudhaker I believe it was my stupid PHP editing program that oorrupted my file and not your hack.

Thanks for all your assistance.

18
jaat665
Re: Auto login hack + Login using email.
  • 2005/2/21 17:25

  • jaat665

  • Just popping in

  • Posts: 10

  • Since: 2004/12/11


pardon me for being the noob here but i installed the hack. is there any way to get the remember me checkbox to the login block?

19
toddherrold
Re: Auto login hack + Login using email.

My understanding is the remember me check box should be automatic after you upload the hack. . try refreshing your system module after upload the hack files.

Question: for my 2.0.10 site, it works great for Netscape and IE, but I have never been able to get it to work for Firefox. Is there perhaps some setting that I can tweak in the Firefox browser? I'm stumped as to why not with Firefox and I know that it works for other sites and their FF users.

Login

Who's Online

237 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 237


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