Changeset 68 for trunk/dns.cgi
- Timestamp:
- 02/16/11 11:29:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r67 r68 41 41 # persistent stuff needed on most/all pages 42 42 my $sid = ($webvar{sid} ? $webvar{sid} : undef); 43 my $session = new CGI::Session("driver:File", $sid, {Directory => $sessiondir}); 43 my $session = new CGI::Session("driver:File", $sid, {Directory => $sessiondir}) 44 or die CGI::Session->errstr(); 44 45 #$sid = $session->id() if !$sid; 45 46 if (!$sid) { … … 73 74 $session->param($webvar{page}.'searchsubs', $webvar{searchsubs}) if defined($webvar{searchsubs}); 74 75 76 # decide which page to spit out... 77 # also set $webvar{page} before we try to use it. 78 $webvar{page} = 'login' if !$webvar{page}; 79 75 80 my $startwith = $session->param($webvar{page}.'startwith'); 76 81 my $filter = $session->param($webvar{page}.'filter'); … … 91 96 my $sortorder = "ASC"; 92 97 93 my ($dbh,$msg) = connectDB("dnsdb","dnsdb","secret"," dbhost");98 my ($dbh,$msg) = connectDB("dnsdb","dnsdb","secret","newdbhost"); 94 99 #my $dbh = DBI->connect("DBI:mysql:database=vegadns","vegadns","secret", 95 100 # { AutoCommit => 0 }) or die $DBI::errstr; … … 147 152 148 153 149 # decide which page to spit out...150 $webvar{page} = 'login' if !$webvar{page};151 154 #if (!$webvar{page}) { 152 155 # $page = HTML::Template->new(filename => "$templatedir/login.tmpl"); … … 649 652 changepage(page => "useradmin"); 650 653 } 651 id => $webvar{id}, defrec => $webvar{defrec}652 654 } else { 653 655 # oddity - apparently, xhtml 1.0 strict swallows username as an HTML::Template var. O_o
Note:
See TracChangeset
for help on using the changeset viewer.