2008-04-15 13:22:47 +00:00
#!/usr/bin/perl -w
2007-10-11 19:17:47 +00:00
2007-10-10 21:48:12 +00:00
use CGI qw( :standard ) ;
use CGI::Session ;
use DBI ;
use XML::Simple qw( :strict ) ;
2007-10-12 11:04:34 +00:00
use Digest::SHA qw( sha256_hex ) ;
2007-10-27 09:17:30 +00:00
use LWPx::ParanoidAgent ;
use Net::OpenID::Consumer ;
2008-04-09 12:23:14 +00:00
use File::Copy ;
2008-04-22 20:08:02 +00:00
use XML::LibXSLT ;
use XML::LibXML ;
use LWP::UserAgent ;
use HTTP::Request ;
use CGI::Carp qw( fatalsToBrowser set_message ) ;
2008-03-07 13:40:54 +00:00
set_message ( "It's not a bug, it's a feature!!<br />(include this error message in your bugreport here: <a href=\"http://yolanda.mister-muffin.de/newticket\">Yolanda bugtracker</a>)" ) ;
2007-10-11 17:06:08 +00:00
2007-10-15 00:25:23 +00:00
# change this as you install it somewhere else
2007-10-29 21:26:39 +00:00
$ root = '/var/www/yolanda' ;
2007-10-11 17:06:08 +00:00
2007-10-29 21:26:39 +00:00
use lib qw( /var/www/yolanda ) ;
2007-10-10 21:48:12 +00:00
2008-04-15 13:22:47 +00:00
#set global config variable
$ config = XMLin ( "$root/config/backend.xml" , KeyAttr = > { string = > 'id' } , ForceArray = > [ 'string' ] , ContentKey = > '-content' ) ;
$ config = $ config - > { "strings" } - > { "string" } ;
$ dbh = DBI - > connect ( "DBI:mysql:" . $ config - > { "database_name" } . ":" . $ config - > { "database_host" } , $ config - > { "database_username" } , $ config - > { "database_password" } ) or die $ DBI:: errstr ;
2007-10-10 21:48:12 +00:00
1 ;