Jump to content

Recommended Posts

<?php

    session_start();

    session_register("CRMMERCHANT");

    session_register("ADMIN");

    session_register("ADMINNAME");

    session_register("MAIL");

    session_register("MERCHANT");

    session_register("AFFILIATE") ;

    session_register("HEADER") ;

    session_register("BODY") ;

    session_register("FOOTER") ;

    session_register("msg") ;

    session_register("res") ;

    session_register("SESSIONSTATUS");

    session_register("JOINSTATUS");

    session_register("MERCHANTID");

    session_register("AFFILIATEID") ;

    session_register("PROGRAMID") ;

    session_register("DES") ;

    session_register("LINKS") ;

    session_register("PGMID") ;

    session_register("MAILAMNT") ;

    session_register("MAILHEADER") ;

    session_register("MAILFOOTER") ;

    session_register("TRANS_MERCHANTID");

 

    session_register("BANNERCODE") ;

    session_register("VAR");

 

  session_register("SORTINGTABLE") ;

  session_register("MER_SORTINGTABLE") ;

  session_register("CAT_SORTING") ;

  session_register("LANGUAGE") ;

  session_register("MERCHANTNAME") ;

  session_register("PAYMODE") ;

  session_register("MERCHANTBALANCE");

 

  session_register("AFFILIATENAME") ;

 

  session_register("AFFILIATEBALANCE");

 

  session_register("ADMINLASTLOGGEDIP");

  session_register("USERRETRIEDCOUNT");

  session_register("ADMINUSERID");

 

  session_register("DEFAULTCURRENCYSYMBOL");

 

  session_register("AFF_ADDRESS");

  session_register("MER_ADDRESS");

 

  session_register("AFFILIATE_REFERER_ID");

 

 

  $USERCOOKIE_FOR_TRACKING = array();

 

//to get all session variables

    foreach ($_SESSION as $key => $value)

    {

          $value=stripslashes(trim($value));

          $$key=$value;         

    } 

?>

Link to comment
https://forums.phpfreaks.com/topic/253146-what-this-code-do/
Share on other sites

what this line means:

 

  $USERCOOKIE_FOR_TRACKING = array();

 

does it create a new empty array?

 

 

Yes. The rest of the code just registers keys within the session. session_register has been deprecated for some time though so that code is pretty old. There is no need fo rit anymore.

Link to comment
https://forums.phpfreaks.com/topic/253146-what-this-code-do/#findComment-1297800
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.