News:

Join the Facebook Fan Page.

Main Menu

login with SSI..

Started by SleePy, October 10, 2006, 07:24:02 PM

Previous topic - Next topic

SleePy

How can I have a script log me in with SSI? without displaying the login page and such?

so like

$username = 'myname';
$password = 'mypass';

require_once('SSI.php');
//Missing code for admin login

$_GET['fixErrors'] = 1;
include($sourcedir . '/RepairBoards.php');
RepairBoards();


Then what?
I know it must be possible in SSI.php to do this without sending me to the login page.

The reason I want to do this because If I can do this I can include the repairboards file and then have it repair all errors. Once that is done my Tables will be optimized and then a backup sent to me.. Truly Automated Form..
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Remaker

use smf_api.php functions ;)

example code:

smf_setLoginCookie(3600,addslashes($_POST['user']),$_POST['passwrd'],false);
smf_authenticateUser();
Remaker - My blog

SleePy

interesting...

can the api and ssi be included both without errors?

require_once("SSI.php");
require_once("smf_api.php");
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Remaker

Quote from: SleePy on October 12, 2006, 02:45:25 PM
interesting...

can the api and ssi be included both without errors?

require_once("SSI.php");
require_once("smf_api.php");

Yeah... I'm using them like that and I've never encountered any problems... so it's ok.
Remaker - My blog

SleePy

Hmm...

How would I go about fixing my session?
I get this error..
Session verification failed. Please try logging out and back in again, and then try again.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: