travian script problem

hey , my name is Nart
first of all excuse me for my bad English
i found a free script online call speed travi , released by its owner
and i tried on on my web site , i solved a lot of problems , but i have 1 last problem
when i sign in , the script wont enter the game , and i should change 1 word in the address to continue

to see the problem please go to this link :
http://travian-sy.com/s00100/s1/index.php

user name : test
password : test1234

now you should change the world “index” in the link to “village1” and it will work fine

dear programmers , help me please :slight_smile:
thank you a lot

Hello, Nart,

First, you did not show us any code, so it is hard to help fix it for you.
Also, I could not get the village1 part to come up. After logging in, it just stops at the index.

Normally, you have a login page as you already do. Next, you have the user enter the username and
their password. You already have that. When the user presses the SUBMIT button which is the LOGIN
button, their is code in that section of the PHP file that verifies that it is a valid user and that their password
is correct. After that, you normally switch them to the correct page such as your village1 page. To do that,
you would normally use the “header” function of PHP. I is used like this:
header (“Location: some-page-on-your-site.php”);
In your case, you would want it to be something like:
header(“Location: village1.php”);
Or, if you have different pages for different groups, you would insert the correct page from the user’s profile
database table and send them to where they should be. I would guess that in your login code are of the
script you downloaded, you should be able to find where the inputs for the username and password are
and add after those are checked out, if they are valid, then use a header function to switch pages.

Hope that helps! Good luck!

Sponsor our Newsletter | Privacy Policy | Terms of Service