Hi,
Man, this is a REALLY odd one. Never ever come across this :/
The following code:
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 ;
The "show_form()" works fine - and $USER is populated , but once you click the submit button, $USER is blank - and just prints out:
..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
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
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
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

