1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Deprecated functions. Urgent, need help ASAP.

Discussion in 'PHP' started by Mr Escobar, Oct 16, 2011.

  1. #1
    Hey.

    Im about to set up an old script I found.
    When I ran the installer I got an error when importing the db, some error about "TYPE=MyISAM", I managed it by replacing "TYPE" with "ENGINE" and it imported the db fine. Anyways, now when I go to the logon and after auth I get this.

    [B]Deprecated[/B]: Function session_is_registered() is deprecated in [B]/opt/lampp/htdocs/xxx/admin/auth.php[/B] on line [B]4[/B]
    Code (markup):
    Heres the PHP code.

    <?include("../var.php");session_start();if(!session_is_registered("logon")){        header("Location:log.php");        exit;
    }?>
    PHP:
    Im no good with PHP at all, any ideas? I need this setup ASAP, so I am very greatful for any help.

    Best regards.
     
    Mr Escobar, Oct 16, 2011 IP
  2. wing

    wing Active Member

    Messages:
    210
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    58
    #2
    You can use isset:

    
    <? include("../var.php");session_start();if(!isset($_SESSION["logon"])){        header("Location:log.php");        exit;}?>
    
    PHP:

    :)
     
    wing, Oct 16, 2011 IP
  3. Mr Escobar

    Mr Escobar Greenhorn

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #3
    Thanks, that got it working. However, now im stuck with a bunch of other errors.
     
    Mr Escobar, Oct 16, 2011 IP
  4. Mr Escobar

    Mr Escobar Greenhorn

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #4
    Ok, im in a big hurry.

    I need someone that can set this up for me asap.
    So if anyone's bored and feel like being a hero and save my day, shoot me a PM.

    I need a TDS script setup that uses Zend Optimizer, or Guard for php 5.3 I think.

    If you need to get paid, thats fine. If you feel like doing it for free thats fine to.
     
    Mr Escobar, Oct 16, 2011 IP
  5. Mr Escobar

    Mr Escobar Greenhorn

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #5
    Look at publictest.simpletds.com when you click "out" on a scheme it.opens a new menu to the right. For me it doesnt. Any ideas? All my php.ini is default.
     
    Mr Escobar, Oct 16, 2011 IP
  6. Mr Escobar

    Mr Escobar Greenhorn

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #6
    pw is test for the demo.
     
    Mr Escobar, Oct 16, 2011 IP
  7. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #7
    That's Javascript (onclick='showout(1012)'), not PHP. (Disable Javascript and you'll see that it doesn't happen.)
     
    Rukbat, Oct 16, 2011 IP
  8. Mr Escobar

    Mr Escobar Greenhorn

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #8
    So.. How do I fix it?
     
    Mr Escobar, Oct 16, 2011 IP