home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / FAQ / cgi-bin / discus4_00 / source / debug02.tmpl < prev    next >
Text File  |  2009-11-06  |  2KB  |  98 lines

  1. # FILE: debug02.html
  2. # DESCRIPTION: Debugging input parameters and error logs
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. <!--BEGIN-->
  7.  
  8. <html><head><title>Debugging Parameters</title>
  9. <style>
  10. td {font: 8pt verdana,arial,helvetica}
  11. </style>
  12. </head>
  13. <body bgcolor=#ffffff text=#000000 link=#0000ff vlink=#0000ff>$fs
  14. <center><font size=3><b>Debugging Information</b></font></center>
  15. <hr>
  16.  
  17. <form action="$cgiurl" method=post>
  18. <input type=hidden name=username value="$general->{username}">
  19. <input type=hidden name=action value="debugging">
  20. <#if $general->{screen} == 0#>
  21.     <p>
  22.     <font face="Courier New" size=2>
  23.     <b>Form Variables</b>
  24.     </font>
  25.     </p>
  26.     <table border=1>
  27.     <tr>
  28.     <td>Name</td><td>Value</td>
  29.     </tr>
  30.     <#foreach $formvar (@formvars)#>
  31.         <tr>
  32.         <td>$formvar->{name}</td>
  33.         <td>$formvar->{value}</td>
  34.         </tr>
  35.     <#endloop#>
  36.     </table>
  37.     <p>
  38.     <font face="Courier New" size=2>
  39.     <b>Cookies</b>
  40.     </font>
  41.     </p>
  42.     <table border=1>
  43.     <tr>
  44.     <td>Name</td><td>Value</td>
  45.     </tr>
  46.     <#foreach $formvar (@cookies)#>
  47.         <tr>
  48.         <td>$formvar->{name}</td>
  49.         <td>$formvar->{value}</td>
  50.         </tr>
  51.     <#endloop#>
  52.     </table>
  53.     <p>
  54.     <font face="Courier New" size=2>
  55.     <b>Environment Variables</b>
  56.     </font>
  57.     </p>
  58.     <table border=1>
  59.     <tr>
  60.     <td>Name</td><td>Value</td>
  61.     </tr>
  62.     <#foreach $formvar (@env)#>
  63.         <tr>
  64.         <td>$formvar->{name}</td>
  65.         <td>$formvar->{value}</td>
  66.         </tr>
  67.     <#endloop#>
  68.     </table>
  69. <#endif#>
  70. <#if $general->{screen} == 1#>
  71.     <p>
  72.     <font face="Courier New" size=2>
  73.     <b>Error Log</b><br>
  74.     $general->{error_log}
  75.     </font>
  76.     </p>
  77. <#endif#>
  78. <#if $general->{screen} == 2#>
  79.     <p>
  80.     <font face="Courier New" size=2>
  81.     The page you selected produced the following output:
  82.     <br><br>
  83.     <hr>
  84.     $general->{output}
  85.     <hr>
  86.     </font>    
  87.     </p>
  88. <#endif#>
  89. <p>
  90. <input type=button value="Close" onClick="self.close()">
  91. </p>
  92. </form>
  93. </font>
  94. </body>
  95. </html>
  96.  
  97. <!--END-->
  98.