Jump to content

Page Control


OldManRiver

Recommended Posts

[quote author=HuggieBear link=topic=109870.msg443374#msg443374 date=1159485582]
Your code looks ok, if you added session_start() to the top of login.php you can remove it.  I know I said the top of everypage, but as your including it into cleanpcr.php, there's no need to have it twice.

Huggie
[/quote]

H,

Obviously I can't write any output now, so if I figure this out, I think I'm good.

What do you think is my problem now?  I even tried putting all the HTML into a var so I could
use an echo, as you suggested, but now have blank screen!

OMR

[attachment deleted by admin]
Link to comment
Share on other sites

H,

Sorry, was coding like mad and found the "exit" so knocked it.

However went back to non-echo codes so here is where I'm at:

Was having problems with the "header" and realized it can not be called on the "require" so moved it.

That stopped the endless loop.  Took it out but that doesn't work.  Right now the code is working, sort of, because the new values for $_SESSION['display_block'] don't get set or displayed.

Just put some [b]echo[/b] traps in the login.php file to show it is processing OK!  The incorrect login has a problem, but everything else works!  (Edit)Even got that fixed now!

OMR

[attachment deleted by admin]
Link to comment
Share on other sites

[quote author=HuggieBear link=topic=109870.msg443388#msg443388 date=1159486909]
Get rid of the exit; at the bottom of login.php

and where you have $html_str .= $_SESSION['display_block']; change it to:

$html_str .= {$_SESSION['display_block']};

Regards
Huggie
[/quote]

H,

Tried the var assignment with the "{}'s" and got errors!  Any other suggestions?

OMR
Link to comment
Share on other sites

Huggie,

Got it fixed late last night with this code in each file:

[code]    if (!isset($sess_id)) {
          session_start();
          $started = true;
          $sess_id = session_id();
    }[/code]

Added the processing to logout, etc., since.  Still working on some of the DB backend, like "lastlogin", etc.

Now trying to get it to transfer to the secondary pages.  Not having much luck with that.

Do I need to add a "globals" for the vars to pass?

OMR
Link to comment
Share on other sites

[quote author=scottybwoy link=topic=109870.msg443574#msg443574 date=1159522535]
Theres another bug in your site E-Worldpeace.com great ideas, keep it up:

Could not delete old search id sessions

DEBUG MODE

SQL Error : 1054 Unknown column 'search_time' in 'where clause'

DELETE FROM phpbb_search_results WHERE search_time < 1159518767

Line : 657
File : search.php
[/quote]

Did you like the default topics?  Would you have more to suggest?

OMR
Link to comment
Share on other sites

[quote author=OldManRiver link=topic=109870.msg443834#msg443834 date=1159551629]
Now trying to get it to transfer to the secondary pages.  Not having much luck with that.  Do I need to add a "globals" for the vars to pass?
[/quote]

No, there's no need for 'globals' you should just be able to use any of those $_SESSION variables on any of your pages where you've started the session.

Regards
Huggie
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.