New guestbook CGI script
This commit is contained in:
parent
13924d7f61
commit
63d130d6b5
@ -29,11 +29,11 @@ my $dotfile = ".mmCreds.xml";
|
||||
# Create XML::LibXML object
|
||||
my $dom = XML::LibXML->load_xml(location => $dotfile);
|
||||
# Grab the values from creds file
|
||||
my $user = $dom->findnodes('/credentials/username')->to_literal();
|
||||
my $pass = $dom->findnodes('/credentials/password')->to_literal();
|
||||
my $url = $dom->findnodes('/credentials/base_url')->to_literal();
|
||||
my $chan = $dom->findnodes('/credentials/channel_id')->to_literal();
|
||||
my $spam = $dom->findnodes('/credentials/spam_chan_id')->to_literal();
|
||||
my $user = $dom->findvalue('/credentials/username');
|
||||
my $pass = $dom->findvalue('/credentials/password');
|
||||
my $url = $dom->findvalue('/credentials/base_url');
|
||||
my $chan = $dom->findvalue('/credentials/channel_id');
|
||||
my $spam = $dom->findvalue('/credentials/spam_chan_id');
|
||||
# Put the values into place
|
||||
my %conf = (
|
||||
authenticate => 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user