Add clickjacking protection (thanks to Asbjorn Thorsen and Geir Hansen for bringing...
[squirrelmail.git] / templates / default / error_box.tpl
index b0ebd9c08ff202c15cecc128373abcc19ace5658..1ef18a19e4e40b658b13f2435560dda65304832e 100644 (file)
  *      $error        - Translation of string "ERROR".  This string is
  *                      translated in functions that call this template to
  *                      avoid making multiple translations on this string
+ *      $link         - Array containing link to display to go back, if desired.
+ *                      If no link is dsired, this will be NULL.  The array
+ *                      will contain the following elements:
+ *              $link['URL']    - URL target for link
+ *              $link['FRAME']  - Frame target for link
+ *              $link['TEXT']   - Text to display for link
  * 
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2011 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -37,9 +43,21 @@ extract($t);
       <?php echo $errorMessage."\n"; ?>
      </td>
     </tr>
+    <?php
+        if (!is_null($link)) {
+            ?>
+    <tr>
+     <td class="error_header">
+      <a href="<?php echo $link['URL']; ?>" target="<?php echo $link['FRAME']; ?>"><?php echo $link['TEXT']; ?></a>
+     </td>
+    </tr>
+            
+            <?php
+        }
+    ?>
    </table>
   </td>
  </tr>
 </table>
 </div>
-<br>
\ No newline at end of file
+<br />
\ No newline at end of file