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-11 14:59:55 +00:00
|
|
|
use Digest::SHA;
|
2007-10-11 17:06:08 +00:00
|
|
|
|
2007-10-11 18:43:51 +00:00
|
|
|
$gnutube_root = '/var/www/gnutube';
|
2007-10-11 17:06:08 +00:00
|
|
|
|
2007-10-11 19:09:37 +00:00
|
|
|
use lib qw(/var/www/gnutube);
|
2007-10-11 14:59:55 +00:00
|
|
|
#use Digest::SHA qw(sha256_hex);
|
2007-10-10 21:48:12 +00:00
|
|
|
|
|
|
|
#set global variables
|
|
|
|
$database = 'gnutube';
|
|
|
|
$dbhost = 'localhost';
|
|
|
|
$dbuser = 'root';
|
|
|
|
$dbpass = '';
|
|
|
|
$session_name = 'sid';
|
2007-10-11 23:47:13 +00:00
|
|
|
$XMLDecl = '<?xml version="1.0" encoding="UTF-8" ?><?xml-stylesheet type="text/xsl" href="./xsl/xhtml.xsl" ?>';
|
2007-10-10 21:48:12 +00:00
|
|
|
1;
|