Menu

#1 index.php file fixed

Version_0.2
open-fixed
raylu
3
2004-04-10
2004-04-10
raylu
No

There were a few errors in the index.php file. The
JavaScript syntax was not completely correct, and some
of the comments have been taken out.

IMPORTANT!
After downloading the attached index.php, replace it
with the one you currently have.

You will see three lines in the code like this:

setCookie("username", username,
now, "/worldrpg", "worldrpg", false);

You can use Find to search for it. Do not edit the first
three variables. /worldrpg (the 4th one) should be
changed to whatever folder WorldRPG is on your server,
worldrpg (the 5th one) should be changed to your
server, and false (the 6th one) should be changed to
wether your server requires secure transmission of
cookies. Edit all three to be like that. The third time you
see it it will look like this:

setCookie("<? echo $nomcookie;?>", visits,
now, "/worldrpg", "worldrpg", false);

This is the same except "username" has been replaced
with a PHP statement. Ignore that and continue editing
the last three variables.

For example, the setCookie function on the
http://raylu.zer0host.com/worldrpg looks like this:

setCookie("username", username,
now, "/worldrpg", "raylu.zer0host.com", false);

Discussion

  • raylu

    raylu - 2004-04-10

    index.php replacement

     
  • raylu

    raylu - 2004-04-10
    • status: open --> open-fixed
     
  • raylu

    raylu - 2004-04-10

    Logged In: YES
    user_id=1012965

    More updates in the CVS repository
    (http://cvs.sourceforge.net/viewcvs.py/worldrpg/WorldRPG/ind
    ex.php).
    File download at bottom. Instructions still remain the same.

     
  • raylu

    raylu - 2004-04-10

    index.php (CVS 1.6)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.