PageRenderTime 55ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/public_html/gallery2/g2data/smarty/templates_c/%%4046450236/wmrc/%%85^856^85682F26%%ErrorPage.tpl.php

https://github.com/doctorjbeam/wmrc
PHP | 199 lines | 189 code | 10 blank | 0 comment | 4 complexity | 16aa2658c4cb9f9eb3f3776fd0959255 MD5 | raw file
Possible License(s): GPL-2.0, MIT, LGPL-2.1, BSD-3-Clause, Apache-2.0
  1. <?php /* Smarty version 2.6.20, created on 2010-06-13 19:23:32
  2. compiled from modules/core/templates/ErrorPage.tpl */ ?>
  3. <div id="gsContent" class="gcBorder1" style="border-width: 1px 0 0 1px">
  4. <div class="gbBlock gcBackground1">
  5. <h2>
  6. <?php if (isset ( $this->_tpl_vars['ErrorPage']['code']['obsoleteData'] )): ?>
  7. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "Edit Conflict!"), $this);?>
  8. <?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['securityViolation'] )): ?>
  9. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Security Violation'), $this);?>
  10. <?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['storageFailure'] )): ?>
  11. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Database Error'), $this);?>
  12. <?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['platformFailure'] )): ?>
  13. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Platform Error'), $this);?>
  14. <?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['requestAuthenticationFailure'] )): ?>
  15. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Authentication Failure'), $this);?>
  16. <?php else: ?>
  17. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Error'), $this);?>
  18. <?php endif; ?>
  19. </h2>
  20. </div>
  21. <div class="gbBlock">
  22. <?php if (isset ( $this->_tpl_vars['ErrorPage']['code']['obsoleteData'] )): ?>
  23. <p class="giDescription">
  24. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "Your change cannot be completed because somebody else has made a conflicting change to the same item. Use the back button in your browser to go back to the page you were on, then <b>reload that page</b> and try your change again."), $this);?>
  25. <br/>
  26. <a href="javascript:history.back()"> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Go back and try again'), $this);?>
  27. </a>
  28. </p>
  29. <?php if ($this->_tpl_vars['ErrorPage']['isAdmin']): ?>
  30. <p class="giDescription">
  31. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "If this problem happens repeatedly, it may be because of corruption in your cache. Site Administrators can clear out this cache."), $this);?>
  32. <br/>
  33. <a href="<?php echo $this->_reg_objects['g'][0]->url(array('href' => "lib/support?cache"), $this);?>
  34. "> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Clear the cache'), $this);?>
  35. </a>
  36. </p>
  37. <?php endif; ?>
  38. <p class="giDescription" style="margin-top: 0.5em">
  39. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "Alternatively, you can return to the main Gallery page and resume browsing."), $this);?>
  40. </p>
  41. <?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['securityViolation'] )): ?>
  42. <p class="giDescription">
  43. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "The action you attempted is not permitted."), $this);?>
  44. </p>
  45. <?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['requestAuthenticationFailure'] )): ?>
  46. <p class="giDescription">
  47. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in."), $this);?>
  48. </p>
  49. <?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['storageFailure'] )): ?>
  50. <p class="giDescription">
  51. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "An error has occurred while interacting with the database."), $this);?>
  52. </p>
  53. <?php if ($this->_tpl_vars['ErrorPage']['isAdmin'] && ! isset ( $this->_tpl_vars['ErrorPage']['debug'] )): ?>
  54. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details."), $this);?>
  55. <?php endif; ?>
  56. <?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['platformFailure'] )): ?>
  57. <p class="giDescription">
  58. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "An error has occurred while interacting with the platform."), $this);?>
  59. </p>
  60. <?php if ($this->_tpl_vars['ErrorPage']['isAdmin'] && ! isset ( $this->_tpl_vars['ErrorPage']['debug'] )): ?>
  61. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "The exact nature of the platform error is unknown. A common cause are insufficient file system permissions. This can happen if you or your webhost changed something in the file system, e.g. by restoring data from a backup."), $this);?>
  62. <?php endif; ?>
  63. <?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['missingObject'] )): ?>
  64. <p class="giDescription">
  65. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "Item not found."), $this);?>
  66. </p>
  67. <?php else: ?>
  68. <p class="giDescription">
  69. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "An error has occurred."), $this);?>
  70. </p>
  71. <?php endif; ?>
  72. <p class="giDescription">
  73. <a href="<?php echo $this->_reg_objects['g'][0]->url(array(), $this);?>
  74. "> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Back to the Gallery'), $this);?>
  75. </a>
  76. </p>
  77. </div>
  78. <?php if (! empty ( $this->_tpl_vars['ErrorPage']['stackTrace'] )): ?>
  79. <div class="gbBlock">
  80. <h3>
  81. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Error Detail'), $this);?>
  82. <span id="trace-toggle" class="giBlockToggle gcBackground1 gcBorder2"
  83. style="border-width: 1px" onclick="BlockToggle('giStackTrace', 'trace-toggle')"> <?php if ($this->_tpl_vars['ErrorPage']['isAdmin']): ?>-<?php else: ?>+<?php endif; ?> </span>
  84. </h3>
  85. <div id="giStackTrace" style="margin-left: 0.8em<?php if (! $this->_tpl_vars['ErrorPage']['isAdmin']): ?>; display: none<?php endif; ?>">
  86. <?php echo $this->_tpl_vars['ErrorPage']['stackTrace']; ?>
  87. </div>
  88. </div>
  89. <?php endif; ?>
  90. <?php if ($this->_tpl_vars['ErrorPage']['isAdmin']): ?>
  91. <div class="gbBlock">
  92. <h3> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'System Information'), $this);?>
  93. </h3>
  94. <table class="gbDataTable"><tr>
  95. <td>
  96. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Gallery version'), $this);?>
  97. </td><td>
  98. <?php echo $this->_tpl_vars['ErrorPage']['version']; ?>
  99. </td>
  100. </tr><tr>
  101. <td>
  102. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'PHP version'), $this);?>
  103. </td><td>
  104. <?php echo $this->_tpl_vars['ErrorPage']['phpversion']; ?>
  105. <?php echo $this->_tpl_vars['ErrorPage']['php_sapi_name']; ?>
  106. </td>
  107. </tr><tr>
  108. <td>
  109. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Webserver'), $this);?>
  110. </td><td>
  111. <?php echo $this->_tpl_vars['ErrorPage']['webserver']; ?>
  112. </td>
  113. </tr>
  114. <?php if (isset ( $this->_tpl_vars['ErrorPage']['dbType'] )): ?>
  115. <tr>
  116. <td>
  117. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Database'), $this);?>
  118. </td><td>
  119. <?php echo $this->_tpl_vars['ErrorPage']['dbType']; ?>
  120. <?php echo $this->_tpl_vars['ErrorPage']['dbVersion']; ?>
  121. </td>
  122. </tr>
  123. <?php endif; ?>
  124. <?php if (isset ( $this->_tpl_vars['ErrorPage']['toolkits'] )): ?>
  125. <tr>
  126. <td>
  127. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Toolkits'), $this);?>
  128. </td><td>
  129. <?php echo $this->_tpl_vars['ErrorPage']['toolkits']; ?>
  130. </td>
  131. </tr>
  132. <?php endif; ?>
  133. <tr>
  134. <td>
  135. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Operating system'), $this);?>
  136. </td><td>
  137. <?php echo $this->_tpl_vars['ErrorPage']['php_uname']; ?>
  138. </td>
  139. </tr><tr>
  140. <td>
  141. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Browser'), $this);?>
  142. </td><td>
  143. <?php echo $this->_tpl_vars['ErrorPage']['browser']; ?>
  144. </td>
  145. </tr></table>
  146. </div>
  147. <?php endif; ?>
  148. <?php if (isset ( $this->_tpl_vars['ErrorPage']['debug'] )): ?>
  149. <div class="gbBlock">
  150. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  151. $this->_smarty_include(array('smarty_include_tpl_file' => "gallery:templates/debug.tpl", 'smarty_include_vars' => array()));
  152. $this->_tpl_vars = $_smarty_tpl_vars;
  153. unset($_smarty_tpl_vars);
  154. ?>
  155. </div>
  156. <?php endif; ?>
  157. <?php if (isset ( $this->_tpl_vars['ErrorPage']['profile'] )): ?>
  158. <div class="gbBlock">
  159. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  160. $this->_smarty_include(array('smarty_include_tpl_file' => "gallery:templates/profile.tpl", 'smarty_include_vars' => array()));
  161. $this->_tpl_vars = $_smarty_tpl_vars;
  162. unset($_smarty_tpl_vars);
  163. ?>
  164. </div>
  165. <?php endif; ?>
  166. </div>