Gossamer Forum
Quote Reply
Mmm, what the heck!
Hi,

Man, this is a REALLY odd one. Never ever come across this :/

The following code:

Code:
use strict;
use lib '/home/domain.com/cgi-bin/art/admin';
use Links qw/$IN $DB $CFG $USER/;
use GT::SQL;
use Links::SiteHTML;
use Links::Plugins;
use CGI::Carp qw(fatalsToBrowser);

local $SIG{__DIE__} = \&Links::fatal;

Links::init('/home/domain.com/cgi-bin/art/admin');

Links::init_user();


print $IN->header;
use Data::Dumper;
print Dumper($USER);

# no point in letting them past if they are not logged in... so check here...
if (!$USER->{Username}) {
print "WHY ARE WE HERE!!!!";
print $IN->redirect( );
exit;
}


This script is in 2 stages ;

Code:
if ($IN->param('action')) { &do_update; } else { &show_form; }

The "show_form()" works fine - and $USER is populated , but once you click the submit button, $USER is blank - and just prints out:

Quote:
$VAR1 = undef; WHY ARE WE HERE!!!!

..anyone got any ideas? (its not just my PC, as it was reported as a bug by someone else)

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Mmm, what the heck! Andy 5127 Mar 2, 2009, 1:30 AM
Thread Re: [Andy] Mmm, what the heck!
el noe 4863 Mar 25, 2009, 10:30 AM
Thread Re: [el noe] Mmm, what the heck!
Andy 4867 Mar 25, 2009, 10:44 AM
Post Re: [Andy] Mmm, what the heck!
Wychwood 4819 Mar 25, 2009, 11:01 AM