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
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!
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!