FsPassengers Forums
[Solved] Support Requested: Adding a User VA Script - Printable Version

+- FsPassengers Forums (http://www.fspassengers.com/forum)
+-- Forum: FsPassengers (http://www.fspassengers.com/forum/forumdisplay.php?fid=3)
+--- Forum: FsPassengers Support (http://www.fspassengers.com/forum/forumdisplay.php?fid=5)
+--- Thread: [Solved] Support Requested: Adding a User VA Script (/showthread.php?tid=4927)



[Solved] Support Requested: Adding a User VA Script - crazypilot3 - 04-08-2005

Hello all. I am pretty good with php, but cant figure out why nothing happens when i click add user. I am running IIS
server, and when I
click add user, it basically refreshes the page, and I cant add any users.

What is the problem?



Post Edited ( 08-04-05 16:19 )


Re: Support Requested: Adding a User VA Script - DanSteph - 04-08-2005

you have APACHE "registerglobal" set to OFF, there was a solution posted in this forum
already... else if your confident with php you just need to get the value as when register.. is off.

Next script version will take care of register global off...

hope it help ?

Dan




Re: Support Requested: Adding a User VA Script - crazypilot3 - 04-08-2005

Well, when I read that other post, I thought it was only for APACHE servers. I must have missed the point. Let me test it tomorrow and I
will get back to you if it works or not.

Thanks




Re: Support Requested: Adding a User VA Script - DanSteph - 04-08-2005

it is for apache (php) but in apache there is dozen parameters in php.ini, one of it "registerglobal"
forbid URL value when set to off...

fake example:

http:www.hello.com/index.php?value=1

$value will be set to 1 if "registerglobal" is ON
but will not be set at all if "registerglobal" is OFF...

in this case at top of script you might make something like that to catch the value:

$value=$_GET["value"];

Hope it help ?

Dan




Re: Support Requested: Adding a User VA Script - eazy - 04-08-2005

... and have a look at this topic too: http://www.fspassengers.com/forum/showthread.php?tid=4923




Re: Support Requested: Adding a User VA Script - crazypilot3 - 05-08-2005

Ok. I didnt know it was in php.ini. Will this have any effect to my whole website?




Re: Support Requested: Adding a User VA Script - eazy - 05-08-2005

in former php versions the default setting was "register_globals=on" but php developpers regarded it as a security threat (which it is),
that's why it now defaults to "off". So, the better solution is to read header variables as in the example Dan gives above.


Re: Support Requested: Adding a User VA Script - DanSteph - 05-08-2005

Quote:crazypilot3 wrote:
Ok. I didnt know it was in php.ini. Will this have any effect to my whole website?

Don't change this value, it's better to have it to OFF if your site is already compatible,
the php script just need some adjustement...

Dan




Re: Support Requested: Adding a User VA Script - crazypilot3 - 05-08-2005

OK. Thankyou for the support. This worked:

Hi Iberia, answering twice now, but I'm not sure if I get your problem right. If you say that fspAdmin says everything's alright and the
database connection is established, so maybe you cannot create a user, which would be the next step. In this case it should be
the "register_globals" problem (there are other threads in this forum dealing with this). If you can configure the webserver where your site
is hosted, search for file "php.ini" and a line there sayin "register_globals = off" (if it's not, forget this advice). Change that line
to "register_globals = on" and see if that works.

Or you put this line somewhere at the top of /FsPadmin/index.php :

$action = $_GET['action'];

and this line at the top of /FsPlistflight.php :

$flightid = $_GET['flightid'];

(I hope that's ok because I don't have the script at hand right now)

Or you just wait until next week, there'll be an updated version which corrects the problem.




Re: Support Requested: Adding a User VA Script - crazypilot3 - 05-08-2005

ok this is getting awckward (i cant even spell it right). Now, I created a user. It will not let me edit one, it says something like invalid entry.
Though i set up the user, when I try to connect in FS, it says:

Attempt To connect to website...
Connection failed !

Error - Username don't exist or wrong password




But, I set up the config as follows:

My FSP folder is located here:

http://www.my-website.net/AnthonySite/FSPVA/

Here is my config:

menu_name=Anthony Airways Online;
base_url=http://www.my-website.net;
path_stats=AnthonySite/FSPVA/FsPlistflight.php;
path_export=AnthonySite/FSPVA/FsPgetflight.php;
username=user;
password=password;

Is there anything wrong with this?




Re: Support Requested: Adding a User VA Script - DanSteph - 05-08-2005

A new version is available here that take care about register global and such:

http://www.fspassengers.com/?action=download&cat=All&search=179&searchtype=Id

Dan




Re: Support Requested: Adding a User VA Script - crazypilot3 - 05-08-2005

<Post Deleted>



Post Edited ( 07-14-10 02:46 )


Re: Support Requested: Adding a User VA Script - DanSteph - 05-08-2005

You welcome

Dan