News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

i upgarde to 1.1.5 and ssi_login , ssi_logout redirect not working now...

Started by ircteknik, August 15, 2008, 03:12:16 AM

Previous topic - Next topic

ircteknik

i was using 1.1.4 smf and i update to 1.1.5 and now my ssi_login and my ssi_logout not working as redirect !
my ssi_login and logout codes is here

<?if ( $context['user']['is_guest'] ){ 
ssi_login('http://www.sitename.com');
}else{   echo "&nbsp;";   
ssi_logout('http://www.sitename.com');}?>


why redirect not working on my ssi? it was work in 1.1.4 version...when i upgrade to my forum 1.1.5 then ssi loging and logout redirect not work...


ircteknik

but php tag is right <? or <?php they are same...i try like <?php i still have problem about redirect...

Rumbaar

Yes correct <? and <?php are the same, though it's always best to use <?php

Now that being said the only difference from 1.1.4 SSI.php and 1.1.5 SSI.php is only a few additions and edits, that shouldn't affect redirection.
1.1.4
$ssi_magic_quotes_runtime = get_magic_quotes_runtime();
1.1.5
$ssi_magic_quotes_runtime = @get_magic_quotes_runtime();

Addition in 1.1.5
// Make sure some things simply do not exist.
foreach (array('db_character_set') as $variable)
if (isset($GLOBALS[$variable]))
unset($GLOBALS[$variable]);


1.1.4
if ((get_magic_quotes_gpc() ? addslashes($_REQUEST['ssi_layers']) : $_REQUEST['ssi_layers']) == htmlspecialchars($ssi_layers))
1.1.5
if ((@get_magic_quotes_gpc() ? addslashes($_REQUEST['ssi_layers']) : $_REQUEST['ssi_layers']) == htmlspecialchars($ssi_layers))

1.1.4
p.ID_POLL, p.question, p.votingLocked, p.hideResults, p.expireTime, p.maxVotes

...

elseif ($user_info['is_guest'] || !empty($row['votingLocked']) || !allowedTo('poll_vote'))

1.1.5
p.ID_POLL, p.question, p.votingLocked, p.hideResults, p.expireTime, p.maxVotes, b.ID_BOARD

...

elseif ($user_info['is_guest'] || !empty($row['votingLocked']) || !allowedTo('poll_vote', array($row['ID_BOARD'])))
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: