- Timestamp:
- 04/30/13 18:00:29 (12 years ago)
- Location:
- trunk
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r489 r493 65 65 $webvar{revrec} = 'n' if !$webvar{revrec}; # non-reverse (domain) records 66 66 67 # load some local system defaults (mainly DB connect info) 68 # note this is not *absolutely* fatal, since there's a default dbname/user/pass in DNSDB.pm 69 # we'll catch a bad DB connect string once we get to trying that 70 ##fixme: pass params to loadConfig, and use them there, to allow one codebase to support multiple sites 67 # create a DNSDB object. this loads some local system defaults and connects to the DB 68 # with the credentials configured 69 ##fixme: pass params for loadConfig, and use them there, to allow one codebase to support multiple sites 71 70 my $dnsdb = new DNSDB; 72 71 … … 75 74 $footer->param(version => $DNSDB::VERSION); 76 75 76 ##fixme: slim chance this could be triggered on errors other than DB failure? 77 77 if (!$dnsdb) { 78 78 print "Content-type: text/html\n\n"; … … 87 87 $header->param(orgname => $dnsdb->{orgname}) if $dnsdb->{orgname} ne 'Example Corp'; 88 88 89 # persistent stuff needed on most/all pages 90 my $sid = ($webvar{sid} ? $webvar{sid} : undef); 91 my $session = new CGI::Session("driver:File", $sid, {Directory => $dnsdb->{sessiondir}}) 89 my $logingroup; 90 my $curgroup; 91 my @viewablegroups; 92 93 # retrieve the session ID from our cookie, if possible 94 my $sid = $q->cookie('dnsadmin_session'); 95 96 # see if the session loads 97 my $session = CGI::Session->load("driver:File", $sid, {Directory => $dnsdb->{sessiondir}}) 92 98 or die CGI::Session->errstr(); 93 #$sid = $session->id() if !$sid; 99 94 100 if (!$sid) { 95 # init stuff. can probably axe this down to just above if'n'when user manipulation happens 96 $sid = $session->id(); 97 $session->expire($dnsdb->{timeout}); 98 # need to know the "upper" group the user can deal with; may as well 99 # stick this in the session rather than calling out to the DB every time. 100 $session->param('logingroup',1); 101 $session->param('curgroup',1); # yes, we *do* need to track this too. er, probably. 102 $session->param('domlistsortby','domain'); 103 $session->param('domlistorder','ASC'); 104 $session->param('revzonessortby','revnet'); 105 $session->param('revzonesorder','ASC'); 106 $session->param('useradminsortby','user'); 107 $session->param('useradminorder','ASC'); 108 $session->param('grpmansortby','group'); 109 $session->param('grpmanorder','ASC'); 110 $session->param('reclistsortby','host'); 111 $session->param('reclistorder','ASC'); 112 $session->param('loclistsortby','description'); 113 $session->param('loclistorder','ASC'); 114 $session->param('logsortby','stamp'); 115 $session->param('logorder','DESC'); 101 $webvar{page} = 'login'; 102 } else { 103 # we have a session to load from, maybe 104 $logingroup = ($session->param('logingroup') ? $session->param('logingroup') : 1); 105 $curgroup = ($session->param('curgroup') ? $session->param('curgroup') : $logingroup); 106 # security check - does the user have permission to view this entity? 107 # this is a prep step used "many" places 108 $dnsdb->getChildren($logingroup, \@viewablegroups, 'all'); 109 push @viewablegroups, $logingroup; 110 ##fixme: make sessions persist through closing the site? 111 # this even bridges browser close too. hmm... 112 $webvar{page} = 'domlist' if !$webvar{page}; 116 113 } 117 114 118 # Just In Case. Stale sessions should not be resurrectable. 119 if ($sid ne $session->id()) { 120 $sid = ''; 121 changepage(page=> "login", sessexpired => 1); 122 } 123 124 # normal expiry, more or less 125 if ($session->is_expired) { 126 $sid = ''; 127 changepage(page=> "login", sessexpired => 1); 128 } 129 130 my $logingroup = ($session->param('logingroup') ? $session->param('logingroup') : 1); 131 my $curgroup = ($session->param('curgroup') ? $session->param('curgroup') : $logingroup); 132 133 # decide which page to spit out... 134 # also set $webvar{page} before we try to use it. 115 # set $webvar{page} before we try to use it. 135 116 $webvar{page} = 'login' if !$webvar{page}; 136 117 137 # per-page startwith, filter, searchsubs118 ## per-page startwith, filter, searchsubs 138 119 139 120 ##fixme: complain-munge-and-continue with non-"[a-z0-9-.]" filter and startwith … … 163 144 push @filterargs, $filter if $filter; 164 145 165 ## set up "URL to self" 146 ## set up "URL to self" (whereami edition) 166 147 # @#$%@%@#% XHTML - & in a URL must be escaped. >:( 167 148 my $uri_self = $ENV{REQUEST_URI}; … … 181 162 182 163 # Fix up $uri_self so we don't lose the session/page 183 $uri_self .= "?sid=$sid&page=$webvar{page}" if $uri_self =~ m{/dns.cgi$}; 184 $uri_self = "$ENV{SCRIPT_NAME}?sid=$sid&page=$webvar{page}$1" if $uri_self =~ m{/dns.cgi\&(.+)$}; 164 $uri_self .= "?page=$webvar{page}" if $uri_self =~ m{/dns.cgi$}; 165 $uri_self = "$ENV{SCRIPT_NAME}?page=$webvar{page}$1" if $uri_self =~ m{/dns.cgi\&(.+)$}; 166 167 ## end uri_self monkeying 185 168 186 169 # pagination 187 my $perpage = 15; 170 my $perpage = 15; # Just In Case 188 171 $perpage = $dnsdb->{perpage} if $dnsdb->{perpage}; 189 172 my $offset = ($webvar{offset} ? $webvar{offset} : 0); 190 173 191 174 # NB: these must match the field name and SQL ascend/descend syntax respectively 175 # sortby is reset to a suitable "default", then re-reset to whatever the user has 176 # clicked on last in the record=listing subs, but best to put a default here. 192 177 my $sortby = "domain"; 193 178 my $sortorder = "ASC"; 194 179 195 # security check - does the user have permission to view this entity? 196 # this is a prep step used "many" places 197 my @viewablegroups; 198 $dnsdb->getChildren($logingroup, \@viewablegroups, 'all'); 199 push @viewablegroups, $logingroup; 200 180 # Create the page template object. Display a reasonable error page and whine if the template doesn't exist. 201 181 my $page; 202 182 eval { … … 217 197 } 218 198 219 # handle login redirect 199 my $sesscookie; 200 201 # handle can-happen-on-(almost)-any-page actions 220 202 if ($webvar{action}) { 203 221 204 if ($webvar{action} eq 'login') { 222 205 # Snag ACL/permissions here too … … 226 209 if ($userdata) { 227 210 211 # (re)create the session 212 $session = new CGI::Session("driver:File", $sid, {Directory => $dnsdb->{sessiondir}}) 213 or die CGI::Session->errstr(); 214 $sid = $session->id(); 215 216 $sesscookie = $q->cookie( -name => 'dnsadmin_session', 217 -value => $sid, 218 -expires => "+".$dnsdb->{timeout}, 219 -secure => 0, 220 ## fixme: need to extract root path for cookie, so as to limit cookie to dnsadmin instance 221 # -path => $url 222 ); 223 228 224 # set session bits 225 $session->expire($dnsdb->{timeout}); 229 226 $session->param('logingroup',$userdata->{group_id}); 230 227 $session->param('curgroup',$userdata->{group_id}); … … 232 229 $session->param('username',$webvar{username}); 233 230 234 changepage(page => "domlist"); 231 # for reference. seems we don't need to set these on login any more. 232 # $session->param('domlistsortby','domain'); 233 # $session->param('domlistorder','ASC'); 234 # $session->param('revzonessortby','revnet'); 235 # $session->param('revzonesorder','ASC'); 236 # $session->param('useradminsortby','user'); 237 # $session->param('useradminorder','ASC'); 238 # $session->param('grpmansortby','group'); 239 # $session->param('grpmanorder','ASC'); 240 # $session->param('reclistsortby','host'); 241 # $session->param('reclistorder','ASC'); 242 # $session->param('loclistsortby','description'); 243 # $session->param('loclistorder','ASC'); 244 # $session->param('logsortby','stamp'); 245 # $session->param('logorder','DESC'); 246 247 ## "recover my link" - tack on request bits and use requested page instead of hardcoding domlist 248 # this could possibly be compacted by munging changepage a little so we don't have to deconstruct 249 # and reconstruct the URI argument list. 250 my %target = (page => "domlist"); 251 if ($webvar{target}) { 252 my $tmp = (split /\?/, $webvar{target})[1]; 253 $tmp =~ s/^\&//; 254 my @targs = split /\&/, $tmp; 255 foreach (@targs) { 256 my ($k,$v) = split /=/; 257 $target{$k} = $v if $k; 258 # if we're going through a "session expired" login, we may have a different 259 # "current group" than the login group. 260 $session->param('curgroup', $v) if $k eq 'curgroup'; 261 ##fixme: page=record goes "FOOM", sometimes - cause/fix? 262 } 263 } 264 changepage(%target); 235 265 236 266 } else { … … 243 273 $session->flush(); 244 274 275 my $sesscookie = $q->cookie( -name => 'dnsadmin_session', 276 -value => $sid, 277 -expires => "-1", 278 -secure => 0, 279 ## fixme: need to extract root path for cookie, so as to limit cookie to dnsadmin instance 280 # -path => $url 281 ); 282 245 283 my $newurl = "http://$ENV{HTTP_HOST}$ENV{SCRIPT_NAME}"; 246 284 $newurl =~ s|/[^/]+$|/|; 247 print "Status: 302\nLocation: $newurl\n\n";285 print $q->redirect( -uri => $newurl, -cookie => $sesscookie); 248 286 exit; 249 287 250 } elsif ($webvar{action} eq 'chgroup' ) {288 } elsif ($webvar{action} eq 'chgroup' && $webvar{page} ne 'login') { 251 289 # fiddle session-stored group data 252 290 # magic incantation to... uhhh... … … 280 318 } # handle global webvar{action}s 281 319 320 282 321 # finally check if the user was disabled. we could just leave this for logout/session expiry, 283 322 # but if they keep the session active they'll continue to have access long after being disabled. :/ … … 295 334 $dnsdb->initActionLog($session->param('uid')); 296 335 297 $page->param(sid => $sid) unless $webvar{page} eq 'login'; # no session ID on the login page 336 ## 337 ## Per-page processing 338 ## 298 339 299 340 if ($webvar{page} eq 'login') { 300 341 301 $page->param(loginfailed => 1) if $webvar{loginfailed}; 302 $page->param(sessexpired => 1) if $webvar{sessexpired}; 342 my $target = $ENV{REQUEST_URI}; 343 $target =~ s/\&/\&/g; 344 $page->param(target => $target); # needs to be trimmed a little, maybe? 345 346 $page->param(sessexpired => 1) if (!$sid && $target !~ m|/$|); 347 348 if ($webvar{loginfailed}) { 349 $page->param(loginfailed => 1); 350 $webvar{target} =~ s/\&/\&/g; # XHTML we do (not) love you so 351 $page->param(target => $webvar{target}) if $webvar{target}; 352 } 353 # if $webvar{sessexpired}; # or this with below? 354 if ($session->is_expired) { 355 $page->param(sessexpired => 1); 356 $session->delete(); # Just to make sure 357 $session->flush(); 358 } 303 359 $page->param(version => $DNSDB::VERSION); 360 $page->param(script_self => ($ENV{SCRIPT_NAME} =~ m|/([^/]+)$|)[0]); 304 361 305 362 } elsif ($webvar{page} eq 'domlist' or $webvar{page} eq 'index') { … … 1693 1750 1694 1751 # start output here so we can redirect pages. 1695 print "Content-type: text/html\n\n", $header->output; 1752 print $q->header( -cookie => $sesscookie); 1753 print $header->output; 1696 1754 1697 1755 ##common bits … … 1722 1780 $page->param(inlogingrp => $curgroup == $logingroup); 1723 1781 1724 # fill in the URL-to-self 1782 # fill in the URL-to-self for the group tree and search-by-letter 1725 1783 $page->param(whereami => $uri_self); 1784 # fill in general URL-to-self 1785 $page->param(script_self => "$ENV{SCRIPT_NAME}?".($curgroup ? "curgroup=$curgroup" : '')); 1726 1786 } 1727 1787 … … 1805 1865 1806 1866 # handle user check 1807 my $newurl = "http://$ENV{HTTP_HOST}$ENV{SCRIPT_NAME}? sid=$sid";1867 my $newurl = "http://$ENV{HTTP_HOST}$ENV{SCRIPT_NAME}?"; 1808 1868 foreach (sort keys %params) { 1809 1869 ## fixme: something is undefined here on add location … … 1814 1874 $session->flush(); 1815 1875 1816 print "Status: 302\nLocation: $newurl\n\n";1876 print $q->redirect ( -url => $newurl, -cookie => $sesscookie); 1817 1877 exit; 1818 1878 } # end changepage … … 1906 1966 foreach my $rec (@$foo2) { 1907 1967 $rec->{type} = $typemap{$rec->{type}}; 1908 $rec->{sid} = $webvar{sid};1909 1968 $rec->{fwdzone} = $rev eq 'n'; 1910 1969 $rec->{distance} = 'n/a' unless ($rec->{type} eq 'MX' || $rec->{type} eq 'SRV'); … … 2044 2103 fill_fpnla($count); 2045 2104 2105 $sortby = ($webvar{revrec} eq 'n' ? 'domain' : 'revnet'); 2046 2106 # sort/order 2047 2107 $session->param($webvar{page}.'sortby', $webvar{sortby}) if $webvar{sortby}; … … 2292 2352 foreach my $col (@$cols) { 2293 2353 my %coldata; 2294 $coldata{sid} = $sid;2295 2354 $coldata{page} = $webvar{page}; 2296 2355 $coldata{offset} = $webvar{offset} if $webvar{offset}; -
trunk/templates/axfr.tmpl
r436 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 5 4 <td align="center" valign="top"> 6 5 7 <form action=" dns.cgi" method="post">6 <form action="<TMPL_VAR NAME=script_self>" method="post"> 8 7 <fieldset> 9 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />10 8 <input type="hidden" name="page" value="axfr" /> 11 9 <input type="hidden" name="doit" value="y" /> -
trunk/templates/badpage.tmpl
r238 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <div id="badpage"> 3 2 <TMPL_IF badpage> -
trunk/templates/bulkchange.tmpl
r295 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> -
trunk/templates/bulkdomain.tmpl
r492 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 5 4 <td align="center" valign="top"> 6 5 7 <form action=" dns.cgi">6 <form action="<TMPL_VAR NAME=script_self>" method="post"> 8 7 <fieldset> 9 8 10 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />11 9 <input type="hidden" name="page" value="bulkchange" /> 12 10 <input type="hidden" name="offset" value="<TMPL_VAR NAME=offset>" /> -
trunk/templates/deldom.tmpl
r427 r493 5 5 <td align="center" valign="top"> 6 6 <h3>Are you really sure you want to delete domain <TMPL_VAR NAME=domain>?</h3> 7 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deldom&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> | 8 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deldom&del=ok&id=<TMPL_VAR NAME=id>">confirm</a>7 <a href="<TMPL_VAR NAME=script_self>&page=deldom&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> | 8 <a href="<TMPL_VAR NAME=script_self>&page=deldom&del=ok&id=<TMPL_VAR NAME=id>">confirm</a> 9 9 </td></tr></table> 10 10 -
trunk/templates/delgrp.tmpl
r427 r493 5 5 <td align="center" valign="top"> 6 6 <h3>Are you really sure you want to delete group <TMPL_VAR NAME=delgroupname>?</h3> 7 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delgrp&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> | 8 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delgrp&del=ok&id=<TMPL_VAR NAME=id>">confirm</a>7 <a href="<TMPL_VAR NAME=script_self>&page=delgrp&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> | 8 <a href="<TMPL_VAR NAME=script_self>&page=delgrp&del=ok&id=<TMPL_VAR NAME=id>">confirm</a> 9 9 </td></tr></table> 10 10 -
trunk/templates/delloc.tmpl
r427 r493 5 5 <td align="center" valign="top"> 6 6 <h3>Are you really sure you want to delete location <TMPL_VAR NAME=location>?</h3> 7 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delloc&del=cancel&locid=<TMPL_VAR NAME=locid>">cancel</a> | 8 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delloc&del=ok&locid=<TMPL_VAR NAME=locid>">confirm</a>7 <a href="<TMPL_VAR NAME=script_self>&page=delloc&del=cancel&locid=<TMPL_VAR NAME=locid>">cancel</a> | 8 <a href="<TMPL_VAR NAME=script_self>&page=delloc&del=ok&locid=<TMPL_VAR NAME=locid>">confirm</a> 9 9 </td></tr></table> 10 10 -
trunk/templates/delrec.tmpl
r243 r493 6 6 <h3>Are you really sure you want to delete record:<br /> 7 7 <TMPL_VAR NAME=host> <TMPL_VAR NAME=ftype> <TMPL_VAR NAME=recval></h3> 8 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&del=cancel&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&parentid=<TMPL_VAR NAME=parentid>">cancel</a>8 <a href="<TMPL_VAR NAME=script_self>&page=delrec&del=cancel&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&parentid=<TMPL_VAR NAME=parentid>">cancel</a> 9 9 | 10 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&del=ok&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&parentid=<TMPL_VAR NAME=parentid>">confirm</a>10 <a href="<TMPL_VAR NAME=script_self>&page=delrec&del=ok&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&parentid=<TMPL_VAR NAME=parentid>">confirm</a> 11 11 </td></tr></table> 12 12 -
trunk/templates/delrevzone.tmpl
r427 r493 5 5 <td align="center" valign="top"> 6 6 <h3>Are you really sure you want to delete reverse zone <TMPL_VAR NAME=revzone>?</h3> 7 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrevzone&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> | 8 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrevzone&del=ok&id=<TMPL_VAR NAME=id>">confirm</a>7 <a href="<TMPL_VAR NAME=script_self>&page=delrevzone&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> | 8 <a href="<TMPL_VAR NAME=script_self>&page=delrevzone&del=ok&id=<TMPL_VAR NAME=id>">confirm</a> 9 9 </td></tr></table> 10 10 -
trunk/templates/deluser.tmpl
r427 r493 5 5 <td align="center" valign="top"> 6 6 <h3>Are you really sure you want to delete user <TMPL_VAR NAME=user>?</h3> 7 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deluser&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> | 8 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deluser&del=ok&id=<TMPL_VAR NAME=id>">confirm</a>7 <a href="<TMPL_VAR NAME=script_self>&page=deluser&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> | 8 <a href="<TMPL_VAR NAME=script_self>&page=deluser&del=ok&id=<TMPL_VAR NAME=id>">confirm</a> 9 9 </td></tr></table> 10 10 -
trunk/templates/dnsq.tmpl
r100 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 7 6 <TMPL_IF errmsg><div class="errmsg">Query error: <TMPL_VARNAME=errmsg></div></TMPL_IF> 8 7 9 <form action=" dns.cgi" method="post">8 <form action="<TMPL_VAR NAME=script_self>" method="post"> 10 9 <fieldset> 11 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />12 10 <input type="hidden" name="page" value="dnsq" /> 13 11 -
trunk/templates/domlist.tmpl
r403 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 18 17 <TMPL_IF domain_create> 19 18 <TMPL_IF domlist> 20 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=newdomain">New Domain</a>19 <a href="<TMPL_VAR NAME=script_self>&page=newdomain">New Domain</a> 21 20 <TMPL_ELSE> 22 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=newrevzone">New Reverse Zone</a>21 <a href="<TMPL_VAR NAME=script_self>&page=newrevzone">New Reverse Zone</a> 23 22 </TMPL_IF> 24 23 </TMPL_IF> … … 28 27 <table width="98%" border="0" cellspacing="4" cellpadding="3"> 29 28 <tr> 30 <TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href=" dns.cgi?sid=<TMPL_VAR31 NAME=s id>&page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&offset=<TMPL_VAR29 <TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="<TMPL_VAR 30 NAME=script_self>&page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&offset=<TMPL_VAR 32 31 NAME=offset></TMPL_IF>&sortby=<TMPL_VAR NAME=sortby>&order=<TMPL_VAR NAME=order>"><TMPL_VAR 33 32 NAME=colname></a><TMPL_IF NAME=sortorder> <img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR … … 40 39 <TMPL_LOOP name=domtable> 41 40 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>"> 42 <td align="left"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=reclist&id=<TMPL_VAR NAME=domain_id>&defrec=n<TMPL_UNLESS domlist>&revrec=y</TMPL_UNLESS>"><TMPL_VAR NAME=domain></a></td>41 <td align="left"><a href="<TMPL_VAR NAME=script_self>&page=reclist&id=<TMPL_VAR NAME=domain_id>&defrec=n<TMPL_UNLESS domlist>&revrec=y</TMPL_UNLESS>"><TMPL_VAR NAME=domain></a></td> 43 42 <td><TMPL_IF status>Active<TMPL_ELSE>Inactive</TMPL_IF></td> 44 43 <td><TMPL_VAR name=group></td> 45 <TMPL_IF domain_edit> <td align="center"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage><TMPL_IF NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&id=<TMPL_VAR NAME=domainid>&zonestatus=<TMPL_IF status>domoff<TMPL_ELSE>domon</TMPL_IF>"><TMPL_IF status>deactivate<TMPL_ELSE>activate</TMPL_IF></a></td></TMPL_IF>46 <TMPL_IF domain_delete> <td align="center"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_IF domlist>deldom<TMPL_ELSE>delrevzone</TMPL_IF>&id=<TMPL_VAR NAME=domain_id>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td></TMPL_IF>44 <TMPL_IF domain_edit> <td align="center"><a href="<TMPL_VAR NAME=script_self>&page=<TMPL_VAR NAME=curpage><TMPL_IF NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&id=<TMPL_VAR NAME=domainid>&zonestatus=<TMPL_IF status>domoff<TMPL_ELSE>domon</TMPL_IF>"><TMPL_IF status>deactivate<TMPL_ELSE>activate</TMPL_IF></a></td></TMPL_IF> 45 <TMPL_IF domain_delete> <td align="center"><a href="<TMPL_VAR NAME=script_self>&page=<TMPL_IF domlist>deldom<TMPL_ELSE>delrevzone</TMPL_IF>&id=<TMPL_VAR NAME=domain_id>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td></TMPL_IF> 47 46 </tr> 48 47 </TMPL_LOOP> -
trunk/templates/edgroup.tmpl
r207 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 5 4 <td align="center" valign="top"> 6 5 7 <form action=" dns.cgi" method="post">6 <form action="<TMPL_VAR NAME=script_self>" method="post"> 8 7 <fieldset> 9 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />10 8 <input type="hidden" name="page" value="edgroup" /> 11 9 <input type="hidden" name="grpaction" value="updperms" /> -
trunk/templates/editsoa.tmpl
r311 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 11 10 <div id="tableholder"> 12 11 13 <form action=" dns.cgi" method="post">12 <form action="<TMPL_VAR NAME=script_self>" method="post"> 14 13 <fieldset> 15 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />16 14 <input type="hidden" name="page" value="updatesoa" /> 17 15 <input type="hidden" name="id" value="<TMPL_VAR NAME=id>" /> -
trunk/templates/fpnla.tmpl
r241 r493 1 <TMPL_IF navfirst><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=0<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VAR NAME=revrec></TMPL_IF>"><img src="images/frev.png" alt="[ First ]" />First</a><TMPL_ELSE><img src="images/frev.png" alt="[ First ]" />First</TMPL_IF> 2 <TMPL_IF navprev><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=prevoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VAR NAME=revrec></TMPL_IF>"><img src="images/rev.png" alt="[ Previous ]" />Previous</a><TMPL_ELSE><img src="images/rev.png" alt="[ Previous ]" />Previous</TMPL_IF> 3 <TMPL_IF navnext><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=nextoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VAR NAME=revrec></TMPL_IF>">Next<img src="images/fwd.png" alt="[ Next ]" /></a><TMPL_ELSE>Next<img src="images/fwd.png" alt="[ Next ]" /></TMPL_IF> 4 <TMPL_IF navlast><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=lastoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VAR NAME=revrec></TMPL_IF>">Last<img src="images/ffwd.png" alt="[ Last ]" /></a><TMPL_ELSE>Last<img src="images/ffwd.png" alt="[ Last ]" /></TMPL_IF> 5 <TMPL_IF navall><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=all<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VAR NAME=revrec></TMPL_IF>">All</a><TMPL_ELSE><TMPL_UNLESS onepage><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=0<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VARNAME=revrec></TMPL_IF>"><TMPL_VAR NAME=perpage> per page</a></TMPL_UNLESS></TMPL_IF>1 <TMPL_IF navfirst><a href="<TMPL_VAR NAME=script_self>&page=<TMPL_VAR NAME=curpage>&offset=0<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VAR NAME=revrec></TMPL_IF>"><img src="images/frev.png" alt="[ First ]" />First</a><TMPL_ELSE><img src="images/frev.png" alt="[ First ]" />First</TMPL_IF> 2 <TMPL_IF navprev><a href="<TMPL_VAR NAME=script_self>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=prevoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VAR NAME=revrec></TMPL_IF>"><img src="images/rev.png" alt="[ Previous ]" />Previous</a><TMPL_ELSE><img src="images/rev.png" alt="[ Previous ]" />Previous</TMPL_IF> 3 <TMPL_IF navnext><a href="<TMPL_VAR NAME=script_self>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=nextoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VAR NAME=revrec></TMPL_IF>">Next<img src="images/fwd.png" alt="[ Next ]" /></a><TMPL_ELSE>Next<img src="images/fwd.png" alt="[ Next ]" /></TMPL_IF> 4 <TMPL_IF navlast><a href="<TMPL_VAR NAME=script_self>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=lastoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VAR NAME=revrec></TMPL_IF>">Last<img src="images/ffwd.png" alt="[ Last ]" /></a><TMPL_ELSE>Last<img src="images/ffwd.png" alt="[ Last ]" /></TMPL_IF> 5 <TMPL_IF navall><a href="<TMPL_VAR NAME=script_self>&page=<TMPL_VAR NAME=curpage>&offset=all<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VAR NAME=revrec></TMPL_IF>">All</a><TMPL_ELSE><TMPL_UNLESS onepage><a href="<TMPL_VAR NAME=script_self>&page=<TMPL_VAR NAME=curpage>&offset=0<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF><TMPL_IF revrec>&revrec=<TMPL_VARNAME=revrec></TMPL_IF>"><TMPL_VAR NAME=perpage> per page</a></TMPL_UNLESS></TMPL_IF> -
trunk/templates/grpman.tmpl
r398 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 16 15 <tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr> 17 16 <tr> 18 <td colspan="2"><TMPL_IF edgrp><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=edgroup&gid=<TMPL_VAR NAME=gid>">Edit Current Group</a></TMPL_IF></td>19 <td align="right"><TMPL_IF addgrp><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=newgrp">New Group</a></TMPL_IF>17 <td colspan="2"><TMPL_IF edgrp><a href="<TMPL_VAR NAME=script_self>&page=edgroup&gid=<TMPL_VAR NAME=gid>">Edit Current Group</a></TMPL_IF></td> 18 <td align="right"><TMPL_IF addgrp><a href="<TMPL_VAR NAME=script_self>&page=newgrp">New Group</a></TMPL_IF> 20 19 </td> 21 20 </tr> … … 24 23 <table width="98%" border="0" cellspacing="4" cellpadding="3"> 25 24 <tr> 26 <TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href=" dns.cgi?sid=<TMPL_VAR27 NAME=s id>&page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&offset=<TMPL_VAR25 <TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="<TMPL_VAR 26 NAME=script_self>&page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&offset=<TMPL_VAR 28 27 NAME=offset></TMPL_IF>&sortby=<TMPL_VAR NAME=sortby>&order=<TMPL_VAR NAME=order>"><TMPL_VAR 29 28 NAME=colname></a><TMPL_IF NAME=sortorder> <img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR … … 37 36 <TMPL_LOOP name=grouptable> 38 37 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>"> 39 <td align="left"><TMPL_IF edgrp><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=edgroup&gid=<TMPL_VAR NAME=groupid>"><TMPL_VAR NAME=groupname></a><TMPL_ELSE><TMPL_VAR NAME=groupname></TMPL_IF></td>38 <td align="left"><TMPL_IF edgrp><a href="<TMPL_VAR NAME=script_self>&page=edgroup&gid=<TMPL_VAR NAME=groupid>"><TMPL_VAR NAME=groupname></a><TMPL_ELSE><TMPL_VAR NAME=groupname></TMPL_IF></td> 40 39 <td><TMPL_VAR name=pgroup></td> 41 40 <td><TMPL_VAR name=nusers></td> … … 43 42 <td><TMPL_VAR NAME=nrevzones></td> 44 43 <TMPL_IF delgrp> 45 <td align="center"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delgrp&id=<TMPL_VAR NAME=groupid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>44 <td align="center"><a href="<TMPL_VAR NAME=script_self>&page=delgrp&id=<TMPL_VAR NAME=groupid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td> 46 45 </TMPL_IF> 47 46 </tr> -
trunk/templates/header.tmpl
r210 r493 21 21 <link rel="stylesheet" type="text/css" href="templates/grouptree.css" /> 22 22 <!-- [endif] --> 23 24 <!-- Custom local stylesheet, if desired --> 25 <link rel="stylesheet" type="text/css" href="local.css" /> 23 26 </head> 24 27 <body> -
trunk/templates/location.tmpl
r375 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 9 8 <TMPL_ELSE> 10 9 11 <form action=" dns.cgi" method="post">10 <form action="<TMPL_VAR NAME=script_self>" method="post"> 12 11 <fieldset> 13 12 14 13 <input type="hidden" name="page" value="location" /> 15 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />16 14 <TMPL_IF id><input type="hidden" name="id" value="<TMPL_VAR NAME=id>" /></TMPL_IF> 17 15 <input type="hidden" name="locact" value="<TMPL_VAR NAME=locact>" /> -
trunk/templates/loclist.tmpl
r427 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 15 14 </tr> 16 15 <TMPL_IF addloc> 17 <tr><td colspan="3" align="right"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=location">New Location/View</a></td></tr>16 <tr><td colspan="3" align="right"><a href="<TMPL_VAR NAME=script_self>&page=location">New Location/View</a></td></tr> 18 17 </TMPL_IF> 19 18 </table> … … 21 20 <table width="98%" border="0" cellspacing="4" cellpadding="3" class="csubtable"> 22 21 <tr> 23 <TMPL_LOOP NAME=colheads> <td class="datahead_s"><a href=" dns.cgi?sid=<TMPL_VAR24 NAME=s id>&page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&offset=<TMPL_VAR22 <TMPL_LOOP NAME=colheads> <td class="datahead_s"><a href="<TMPL_VAR 23 NAME=script_self>&page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&offset=<TMPL_VAR 25 24 NAME=offset></TMPL_IF>&sortby=<TMPL_VAR NAME=sortby>&order=<TMPL_VAR NAME=order>"><TMPL_VAR 26 25 NAME=colname></a><TMPL_IF NAME=sortorder> <img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR … … 32 31 <TMPL_LOOP name=loctable> 33 32 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>"> 34 <td align="left"><TMPL_IF edloc><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=location&locact=edit&loc=<TMPL_VAR NAME=location>"><TMPL_VAR NAME=description></a><TMPL_ELSE><TMPL_VAR NAME=description></TMPL_IF></td>33 <td align="left"><TMPL_IF edloc><a href="<TMPL_VAR NAME=script_self>&page=location&locact=edit&loc=<TMPL_VAR NAME=location>"><TMPL_VAR NAME=description></a><TMPL_ELSE><TMPL_VAR NAME=description></TMPL_IF></td> 35 34 <td><TMPL_VAR name=iplist></td> 36 35 <td><TMPL_VAR name=group_name></td> 37 36 <TMPL_IF delloc> 38 <td align="center"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delloc&locid=<TMPL_VAR37 <td align="center"><a href="<TMPL_VAR NAME=script_self>&page=delloc&locid=<TMPL_VAR 39 38 NAME=location>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td> 40 39 </TMPL_IF> -
trunk/templates/log.tmpl
r379 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 21 20 <!-- td>Customer ID</td --> 22 21 <tr class="darkrowheader"> 23 <TMPL_LOOP NAME=colheads> <td><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=page><TMPL_IF22 <TMPL_LOOP NAME=colheads> <td><a href="<TMPL_VAR NAME=script_self>&page=<TMPL_VAR NAME=page><TMPL_IF 24 23 NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&sortby=<TMPL_VAR 25 24 NAME=sortby>&order=<TMPL_VAR NAME=order>&id=<TMPL_VAR NAME=id>&ltype=<TMPL_VAR -
trunk/templates/login.tmpl
r210 r493 1 <form method="post" action=" dns.cgi">1 <form method="post" action="<TMPL_VAR NAME=script_self>"> 2 2 <fieldset> 3 3 <input type="hidden" name="action" value="login" /> 4 4 <input type="hidden" name="page" value="login" /> 5 <input type="hidden" name="target" value="<TMPL_VAR NAME=target>" /> 5 6 6 7 <div id="login"> -
trunk/templates/menu.tmpl
r394 r493 1 1 <td class="menu"> 2 2 <TMPL_VAR NAME=username> logged in<br /> 3 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&action=logout">Log out</a>3 <a href="<TMPL_VAR NAME=script_self>&action=logout">Log out</a> 4 4 <hr /> 5 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist">Domains</a><br />6 <TMPL_IF mayrdns><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=revzones">Reverse Zones</a><br /></TMPL_IF>7 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=useradmin">Users</a><br />8 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=log">Log</a><br />9 <TMPL_IF maydefrec><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=reclist&id=<TMPL_VAR NAME=group>&defrec=y">Default Records</a><br />10 <TMPL_IF mayrdns><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=reclist&id=<TMPL_VAR NAME=group>&defrec=y&revrec=y">Default Reverse Records</a><br /></TMPL_IF></TMPL_IF>11 <TMPL_IF mayloc><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=loclist&id=<TMPL_VAR NAME=group>">Locations/Views</a><br /></TMPL_IF>12 <TMPL_IF mayimport><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=axfr">AXFR Import</a><br /></TMPL_IF>13 <TMPL_IF maybulk><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=bulkdomain">Bulk Domain Operations</a><br /></TMPL_IF>5 <a href="<TMPL_VAR NAME=script_self>&page=domlist">Domains</a><br /> 6 <TMPL_IF mayrdns><a href="<TMPL_VAR NAME=script_self>&page=revzones">Reverse Zones</a><br /></TMPL_IF> 7 <a href="<TMPL_VAR NAME=script_self>&page=useradmin">Users</a><br /> 8 <a href="<TMPL_VAR NAME=script_self>&page=log">Log</a><br /> 9 <TMPL_IF maydefrec><a href="<TMPL_VAR NAME=script_self>&page=reclist&id=<TMPL_VAR NAME=group>&defrec=y">Default Records</a><br /> 10 <TMPL_IF mayrdns><a href="<TMPL_VAR NAME=script_self>&page=reclist&id=<TMPL_VAR NAME=group>&defrec=y&revrec=y">Default Reverse Records</a><br /></TMPL_IF></TMPL_IF> 11 <TMPL_IF mayloc><a href="<TMPL_VAR NAME=script_self>&page=loclist&id=<TMPL_VAR NAME=group>">Locations/Views</a><br /></TMPL_IF> 12 <TMPL_IF mayimport><a href="<TMPL_VAR NAME=script_self>&page=axfr">AXFR Import</a><br /></TMPL_IF> 13 <TMPL_IF maybulk><a href="<TMPL_VAR NAME=script_self>&page=bulkdomain">Bulk Domain Operations</a><br /></TMPL_IF> 14 14 <br /> 15 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=grpman"><TMPL_IF chggrps>Manage<TMPL_ELSE>View</TMPL_IF> groups</a><br />15 <a href="<TMPL_VAR NAME=script_self>&page=grpman"><TMPL_IF chggrps>Manage<TMPL_ELSE>View</TMPL_IF> groups</a><br /> 16 16 <hr /> 17 17 <div id="grptree"> … … 30 30 <!-- hmm: <TMPL_VAR NAME=groupname> --> 31 31 <hr /> 32 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=dnsq">DNS Query</a><br /> 33 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=whoisq">WHOIS Query</a><br /> 32 <a href="<TMPL_VAR NAME=script_self>&page=dnsq">DNS Query</a><br /> 33 <a href="<TMPL_VAR NAME=script_self>&page=whoisq">WHOIS Query</a><br /> 34 34 35 </td> -
trunk/templates/newdomain.tmpl
r435 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 5 4 <td align="center" valign="top"> 6 5 7 <form action=" dns.cgi">6 <form action="<TMPL_VAR NAME=script_self>"> 8 7 <fieldset> 9 8 10 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />11 9 <input type="hidden" name="page" value="adddomain" /> 12 10 <input type="hidden" name="newdomain" value="yes" /> -
trunk/templates/newgrp.tmpl
r394 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 5 4 <td align="center" valign="top"> 6 5 7 <form action=" dns.cgi">6 <form action="<TMPL_VAR NAME=script_self>"> 8 7 <fieldset> 9 8 10 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />11 9 <input type="hidden" name="page" value="newgrp" /> 12 10 <input type="hidden" name="grpaction" value="add" /> -
trunk/templates/newrevzone.tmpl
r446 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 5 4 <td align="center" valign="top"> 6 5 7 <form action=" dns.cgi">6 <form action="<TMPL_VAR NAME=script_self>"> 8 7 <fieldset> 9 8 10 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />11 9 <input type="hidden" name="page" value="addrevzone" /> 12 10 <input type="hidden" name="newrevzone" value="yes" /> -
trunk/templates/reclist.tmpl
r420 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 25 24 </td> 26 25 <td colspan="2" align="right"> 27 <form action=" dns.cgi">26 <form action="<TMPL_VAR NAME=script_self>"> 28 27 <fieldset> 29 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />30 28 <input type="hidden" name="page" value="reclist" /> 31 29 <input type="hidden" name="offset" value="0" /> … … 41 39 <tr class="darkrowheader"> 42 40 <td colspan="3">Records</td> 43 <td align="center"><a href="textrecs.cgi? sid=<TMPL_VAR NAME=sid>&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>">Plain text</a></td>44 <TMPL_IF record_create> <td align="right"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=record&parentid=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&recact=new">Add record</a></td></TMPL_IF>45 <td align="right"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=log&id=<TMPL_VAR NAME=id><TMPL_IF logdom>&ltype=dom</TMPL_IF><TMPL_IF logrdns>&ltype=rdns</TMPL_IF>">View log</a></td>41 <td align="center"><a href="textrecs.cgi?id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>">Plain text</a></td> 42 <TMPL_IF record_create> <td align="right"><a href="<TMPL_VAR NAME=script_self>&page=record&parentid=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&recact=new">Add record</a></td></TMPL_IF> 43 <td align="right"><a href="<TMPL_VAR NAME=script_self>&page=log&id=<TMPL_VAR NAME=id><TMPL_IF logdom>&ltype=dom</TMPL_IF><TMPL_IF logrdns>&ltype=rdns</TMPL_IF>">View log</a></td> 46 44 </tr> 47 45 … … 51 49 <TMPL_IF reclist> 52 50 <tr class="darkrowheader"> 53 <TMPL_LOOP NAME=colheads> <td><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=page><TMPL_IF51 <TMPL_LOOP NAME=colheads> <td><a href="<TMPL_VAR NAME=script_self>&page=<TMPL_VAR NAME=page><TMPL_IF 54 52 NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&sortby=<TMPL_VAR 55 53 NAME=sortby>&order=<TMPL_VAR NAME=order>&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR … … 63 61 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>"> 64 62 <TMPL_IF fwdzone> 65 <td><TMPL_IF record_edit><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=record&parentid=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&recact=edit&id=<TMPL_VAR NAME=record_id>"><TMPL_VAR NAME=host></a><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF><TMPL_ELSE><TMPL_VAR NAME=host><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF></TMPL_IF></td>63 <td><TMPL_IF record_edit><a href="<TMPL_VAR NAME=script_self>&page=record&parentid=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&recact=edit&id=<TMPL_VAR NAME=record_id>"><TMPL_VAR NAME=host></a><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF><TMPL_ELSE><TMPL_VAR NAME=host><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF></TMPL_IF></td> 66 64 <td><TMPL_VAR NAME=type></td> 67 65 <td><TMPL_VAR NAME=val></td> … … 70 68 <td><TMPL_VAR NAME=port></td> 71 69 <TMPL_ELSE> 72 <td><TMPL_IF record_edit><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=record&parentid=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&recact=edit&id=<TMPL_VAR NAME=record_id>"><TMPL_VAR NAME=val></a><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF><TMPL_ELSE><TMPL_VAR NAME=val><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF></TMPL_IF></td>70 <td><TMPL_IF record_edit><a href="<TMPL_VAR NAME=script_self>&page=record&parentid=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&recact=edit&id=<TMPL_VAR NAME=record_id>"><TMPL_VAR NAME=val></a><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF><TMPL_ELSE><TMPL_VAR NAME=val><TMPL_IF locname> (<TMPL_VAR NAME=locname>)</TMPL_IF></TMPL_IF></td> 73 71 <td><TMPL_VAR NAME=type></td> 74 72 <td><TMPL_VAR NAME=host></td> 75 73 </TMPL_IF> 76 74 <td><TMPL_VAR NAME=ttl></td> 77 <TMPL_IF record_delete> <td align="center"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&id=<TMPL_VAR NAME=record_id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&parentid=<TMPL_VAR NAME=id>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td></TMPL_IF>75 <TMPL_IF record_delete> <td align="center"><a href="<TMPL_VAR NAME=script_self>&page=delrec&id=<TMPL_VAR NAME=record_id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>&parentid=<TMPL_VAR NAME=id>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td></TMPL_IF> 78 76 </tr> 79 77 </TMPL_LOOP> -
trunk/templates/record.tmpl
r388 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 9 8 <TMPL_ELSE> 10 9 11 <form action=" dns.cgi" method="post">10 <form action="<TMPL_VAR NAME=script_self>" method="post"> 12 11 <fieldset> 13 12 … … 15 14 <input type="hidden" name="defrec" value="<TMPL_VAR NAME=defrec>" /> 16 15 <input type="hidden" name="revrec" value="<TMPL_VAR NAME=revrec>" /> 17 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />18 16 <input type="hidden" name="parentid" value="<TMPL_VAR NAME=parentid>" /> 19 17 <input type="hidden" name="id" value="<TMPL_VAR NAME=id>" /> -
trunk/templates/soadata.tmpl
r277 r493 3 3 <td align="left">SOA:</td> 4 4 <TMPL_IF mayeditsoa> 5 <td align="right"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=editsoa&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>">edit</a></td></TMPL_IF>5 <td align="right"><a href="<TMPL_VAR NAME=script_self>&page=editsoa&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&revrec=<TMPL_VAR NAME=revrec>">edit</a></td></TMPL_IF> 6 6 </tr> 7 7 </table> -
trunk/templates/template.tmpl
r100 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> -
trunk/templates/user.tmpl
r294 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 5 4 <td align="center" valign="top"> 6 5 7 <form action=" dns.cgi" method="post">6 <form action="<TMPL_VAR NAME=script_self>" method="post"> 8 7 <fieldset> 9 8 10 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />11 9 <input type="hidden" name="page" value="user" /> 12 10 <input type="hidden" name="useraction" value="<TMPL_VAR NAME=action>" /> -
trunk/templates/useradmin.tmpl
r379 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 16 15 <tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr> 17 16 <TMPL_IF adduser> 18 <tr><td colspan="3" align="right"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=user">New User</a></td></tr>17 <tr><td colspan="3" align="right"><a href="<TMPL_VAR NAME=script_self>&page=user">New User</a></td></tr> 19 18 </TMPL_IF> 20 19 </table> … … 22 21 <table width="98%" border="0" cellspacing="4" cellpadding="3" class="csubtable"> 23 22 <tr> 24 <TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href=" dns.cgi?sid=<TMPL_VAR25 NAME=s id>&page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&offset=<TMPL_VAR23 <TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="<TMPL_VAR 24 NAME=script_self>&page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&offset=<TMPL_VAR 26 25 NAME=offset></TMPL_IF>&sortby=<TMPL_VAR NAME=sortby>&order=<TMPL_VAR NAME=order>"><TMPL_VAR 27 26 NAME=colname></a><TMPL_IF NAME=sortorder> <img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR … … 33 32 <TMPL_LOOP name=usertable> 34 33 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>"> 35 <td align="left"><TMPL_IF eduser><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=user&useraction=edit&user=<TMPL_VAR NAME=user_id>"><TMPL_VAR NAME=username></a><TMPL_ELSE><TMPL_VAR NAME=username></TMPL_IF></td>34 <td align="left"><TMPL_IF eduser><a href="<TMPL_VAR NAME=script_self>&page=user&useraction=edit&user=<TMPL_VAR NAME=user_id>"><TMPL_VAR NAME=username></a><TMPL_ELSE><TMPL_VAR NAME=username></TMPL_IF></td> 36 35 <td class="data_nowrap"><TMPL_VAR name=fname></td> 37 36 <td><TMPL_VAR name=type></td> … … 39 38 <td align="center"> 40 39 <TMPL_IF eduser> 41 <a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=useradmin<TMPL_IF NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&id=<TMPL_VAR NAME=user_id>&userstatus=<TMPL_IF status>useroff<TMPL_ELSE>useron</TMPL_IF>"><TMPL_IF status>enabled<TMPL_ELSE>disabled</TMPL_IF></a>40 <a href="<TMPL_VAR NAME=script_self>&page=useradmin<TMPL_IF NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&id=<TMPL_VAR NAME=user_id>&userstatus=<TMPL_IF status>useroff<TMPL_ELSE>useron</TMPL_IF>"><TMPL_IF status>enabled<TMPL_ELSE>disabled</TMPL_IF></a> 42 41 <TMPL_ELSE> 43 42 <TMPL_IF status>enabled<TMPL_ELSE>disabled</TMPL_IF> … … 45 44 </td> 46 45 <TMPL_IF deluser> 47 <td align="center"><a href=" dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deluser&id=<TMPL_VAR NAME=user_id>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>46 <td align="center"><a href="<TMPL_VAR NAME=script_self>&page=deluser&id=<TMPL_VAR NAME=user_id>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td> 48 47 </TMPL_IF> 49 48 </tr> -
trunk/templates/whoisq.tmpl
r100 r493 1 <!-- <TMPL_VAR NAME=sid> -->2 1 <table class="wholepage"><tr> 3 2 <TMPL_INCLUDE NAME="menu.tmpl"> … … 7 6 <TMPL_IF errmsg><div class="errmsg">Query error: <TMPL_VARNAME=errmsg></div></TMPL_IF> 8 7 9 <form action=" dns.cgi" method="post">8 <form action="<TMPL_VAR NAME=script_self>" method="post"> 10 9 <fieldset> 11 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />12 10 <input type="hidden" name="page" value="whoisq" /> 13 11 <input type="hidden" name="askaway" value="y" />
Note:
See TracChangeset
for help on using the changeset viewer.