<?php /* Smarty version 2.6.16, created on 2008-06-28 00:12:10
         compiled from modules/core/templates/ErrorPage.tpl */ ?>
<div id="gsContent" class="gcBorder1" style="border-width: 1px 0 0 1px">
<div class="gbBlock gcBackground1">
<h2>
<?php if (isset ( $this->_tpl_vars['ErrorPage']['code']['obsoleteData'] )):  echo $this->_reg_objects['g'][0]->text(array('text' => "Edit Conflict!"), $this);?>

<?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['securityViolation'] )):  echo $this->_reg_objects['g'][0]->text(array('text' => 'Security Violation'), $this);?>

<?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['storageFailure'] )):  echo $this->_reg_objects['g'][0]->text(array('text' => 'Database Error'), $this);?>

<?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['platformFailure'] )):  echo $this->_reg_objects['g'][0]->text(array('text' => 'Platform Error'), $this);?>

<?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['requestAuthenticationFailure'] )):  echo $this->_reg_objects['g'][0]->text(array('text' => 'Authentication Failure'), $this);?>

<?php else:  echo $this->_reg_objects['g'][0]->text(array('text' => 'Error'), $this);?>

<?php endif; ?>
</h2>
</div>
<div class="gbBlock">
<?php if (isset ( $this->_tpl_vars['ErrorPage']['code']['obsoleteData'] )): ?>
<p class="giDescription">
<?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);?>

<br/>
<a href="javascript:history.back()"> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Go back and try again'), $this);?>
 </a>
</p>
<?php if ($this->_tpl_vars['ErrorPage']['isAdmin']): ?>
<p class="giDescription">
<?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);?>

<br/>
<a href="<?php echo $this->_reg_objects['g'][0]->url(array('href' => "lib/support?cache"), $this);?>
"> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Clear the cache'), $this);?>
 </a>
</p>
<?php endif; ?>
<p class="giDescription" style="margin-top: 0.5em">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "Alternatively, you can return to the main Gallery page and resume browsing."), $this);?>

</p>
<?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['securityViolation'] )): ?>
<p class="giDescription">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "The action you attempted is not permitted."), $this);?>

</p>
<?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['requestAuthenticationFailure'] )): ?>
<p class="giDescription">
<?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);?>

</p>
<?php elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['storageFailure'] )): ?>
<p class="giDescription">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "An error has occurred while interacting with the database."), $this);?>

</p>
<?php if ($this->_tpl_vars['ErrorPage']['isAdmin'] && ! isset ( $this->_tpl_vars['ErrorPage']['debug'] )):  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);?>

<?php endif;  elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['platformFailure'] )): ?>
<p class="giDescription">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "An error has occurred while interacting with the platform."), $this);?>

</p>
<?php if ($this->_tpl_vars['ErrorPage']['isAdmin'] && ! isset ( $this->_tpl_vars['ErrorPage']['debug'] )):  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);?>

<?php endif;  elseif (isset ( $this->_tpl_vars['ErrorPage']['code']['missingObject'] )): ?>
<p class="giDescription">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "Item not found."), $this);?>

</p>
<?php else: ?>
<p class="giDescription">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "An error has occurred."), $this);?>

</p>
<?php endif; ?>
<p class="giDescription">
<a href="<?php echo $this->_reg_objects['g'][0]->url(array(), $this);?>
"> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Back to the Gallery'), $this);?>
 </a>
</p>
</div>
<?php if (! empty ( $this->_tpl_vars['ErrorPage']['stackTrace'] )): ?>
<div class="gbBlock">
<h3>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Error Detail'), $this);?>

<span id="trace-toggle" class="giBlockToggle gcBackground1 gcBorder2"
style="border-width: 1px" onclick="BlockToggle('giStackTrace', 'trace-toggle')"> <?php if ($this->_tpl_vars['ErrorPage']['isAdmin']): ?>-<?php else: ?>+<?php endif; ?> </span>
</h3>
<div id="giStackTrace" style="margin-left: 0.8em<?php if (! $this->_tpl_vars['ErrorPage']['isAdmin']): ?>; display: none<?php endif; ?>">
<?php echo $this->_tpl_vars['ErrorPage']['stackTrace']; ?>

</div>
</div>
<?php endif;  if ($this->_tpl_vars['ErrorPage']['isAdmin']): ?>
<div class="gbBlock">
<h3> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'System Information'), $this);?>
 </h3>
<table class="gbDataTable"><tr>
<td>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Gallery version'), $this);?>

</td><td>
<?php echo $this->_tpl_vars['ErrorPage']['version']; ?>

</td>
</tr><tr>
<td>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'PHP version'), $this);?>

</td><td>
<?php echo $this->_tpl_vars['ErrorPage']['phpversion']; ?>
 <?php echo $this->_tpl_vars['ErrorPage']['php_sapi_name']; ?>

</td>
</tr><tr>
<td>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Webserver'), $this);?>

</td><td>
<?php echo $this->_tpl_vars['ErrorPage']['webserver']; ?>

</td>
</tr>
<?php if (isset ( $this->_tpl_vars['ErrorPage']['dbType'] )): ?>
<tr>
<td>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Database'), $this);?>

</td><td>
<?php echo $this->_tpl_vars['ErrorPage']['dbType']; ?>
 <?php echo $this->_tpl_vars['ErrorPage']['dbVersion']; ?>

</td>
</tr>
<?php endif;  if (isset ( $this->_tpl_vars['ErrorPage']['toolkits'] )): ?>
<tr>
<td>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Toolkits'), $this);?>

</td><td>
<?php echo $this->_tpl_vars['ErrorPage']['toolkits']; ?>

</td>
</tr>
<?php endif; ?>
<tr>
<td>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Operating system'), $this);?>

</td><td>
<?php echo $this->_tpl_vars['ErrorPage']['php_uname']; ?>

</td>
</tr><tr>
<td>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Browser'), $this);?>

</td><td>
<?php echo $this->_tpl_vars['ErrorPage']['browser']; ?>

</td>
</tr></table>
</div>
<?php endif;  if (isset ( $this->_tpl_vars['ErrorPage']['debug'] )): ?>
<div class="gbBlock">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "gallery:templates/debug.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
<?php endif;  if (isset ( $this->_tpl_vars['ErrorPage']['profile'] )): ?>
<div class="gbBlock">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "gallery:templates/profile.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
<?php endif; ?>
</div>