- Timestamp:
- 10/07/11 16:01:55 (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r138 r139 228 228 # hmm. seeing problems in some possibly-not-so-corner cases. 229 229 # this currently only handles "domain on", "domain off" 230 if (defined($webvar{ action})) {231 my $stat = domStatus($dbh,$webvar{id},$webvar{ action});230 if (defined($webvar{domstatus})) { 231 my $stat = domStatus($dbh,$webvar{id},$webvar{domstatus}); 232 232 logaction($webvar{id}, $session->param("username"), parentID($webvar{id}, 'dom', 'group'), 233 233 "Changed ".domainName($dbh, $webvar{id})." state to ".($stat ? 'active' : 'inactive')); … … 797 797 } elsif ($webvar{page} eq 'useradmin') { 798 798 799 if (defined($webvar{ action})) {800 userStatus($dbh,$webvar{id},$webvar{ action});799 if (defined($webvar{userstatus})) { 800 userStatus($dbh,$webvar{id},$webvar{userstatus}); 801 801 } 802 802 -
trunk/templates/domlist.tmpl
r100 r139 38 38 <td><TMPL_VAR name=status></td> 39 39 <td><TMPL_VAR name=group></td> 40 <TMPL_IF domain_edit> <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist<TMPL_IF NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&id=<TMPL_VAR NAME=domainid>& action=<TMPL_IF NAME=mkactive>domon<TMPL_ELSE>domoff</TMPL_IF>"><TMPL_IF NAME=mkactive>activate<TMPL_ELSE>deactivate</TMPL_IF></a></td></TMPL_IF>40 <TMPL_IF domain_edit> <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist<TMPL_IF NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&id=<TMPL_VAR NAME=domainid>&domstatus=<TMPL_IF NAME=mkactive>domon<TMPL_ELSE>domoff</TMPL_IF>"><TMPL_IF NAME=mkactive>activate<TMPL_ELSE>deactivate</TMPL_IF></a></td></TMPL_IF> 41 41 <TMPL_IF domain_delete> <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deldom&id=<TMPL_VAR NAME=domainid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td></TMPL_IF> 42 42 </tr> -
trunk/templates/useradmin.tmpl
r100 r139 36 36 <td><TMPL_VAR name=usertype></td> 37 37 <td><TMPL_VAR name=usergroup></td> 38 <td align="center"><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=userid>& action=<TMPL_IF NAME=active>useroff<TMPL_ELSE>useron</TMPL_IF>"><TMPL_IF NAME=active>enabled<TMPL_ELSE>disabled</TMPL_IF></a></td>38 <td align="center"><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=userid>&userstatus=<TMPL_IF NAME=active>useroff<TMPL_ELSE>useron</TMPL_IF>"><TMPL_IF NAME=active>enabled<TMPL_ELSE>disabled</TMPL_IF></a></td> 39 39 <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deluser&id=<TMPL_VAR NAME=userid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td> 40 40 </tr>
Note:
See TracChangeset
for help on using the changeset viewer.