2007-10-11 19:12:59 +00:00
#!/usr/bin/perl
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-03-07 13:40:54 +00:00
use CGI::Carp qw( fatalsToBrowser set_message ) ;
2008-04-09 12:23:14 +00:00
use File::Copy ;
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
#set global variables
2007-10-29 21:26:39 +00:00
$ database = 'yolanda' ;
2007-10-10 21:48:12 +00:00
$ dbhost = 'localhost' ;
$ dbuser = 'root' ;
$ dbpass = '' ;
2007-10-24 12:56:56 +00:00
$ domain = 'http://localhost' ;
2007-10-10 21:48:12 +00:00
$ session_name = 'sid' ;
2007-10-12 11:04:34 +00:00
$ locale = "en-US" ;
2007-10-29 21:26:39 +00:00
$ stylesheet = "/style/default.css" ;
2007-10-12 11:18:13 +00:00
$ xmlns_dc = "http://purl.org/dc/elements/1.1/" ;
$ xmlns_cc = "http://web.resource.org/cc/" ;
$ xmlns_rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ;
2007-12-21 17:39:49 +00:00
$ defaultpagesize = 20 ;
$ maxpagesize = 500 ;
2007-12-17 12:38:02 +00:00
$ dbh = DBI - > connect ( "DBI:mysql:$database:$dbhost" , $ dbuser , $ dbpass ) ;
2007-10-10 21:48:12 +00:00
1 ;