Add debug controller for some crazy debugging action

This controller will only be available if we set
ENVIRONMENT to 'development' or 'testing'.
This commit is contained in:
Karsten Heiken
2011-11-18 15:37:33 +01:00
parent 4edafd0ed5
commit 06ab8168ab
3 changed files with 64 additions and 0 deletions

View File

@@ -61,6 +61,16 @@
endif;
?>
</p>
<?php
if(ENVIRONMENT != "production" && !empty($job)):
?>
<h3>Debugging actions</h3>
<p>
<a href="<?=site_url('debug/cancel_job/'.$experiment['id'].'/'.$job['id']);?>" onclick="javascript:return confirm('This will NOT have any effect on the calculation that may or may not be running in a simulator!\nThis simply resets the job to >not started< in the database')" class="button danger">Reset this job</a>
</p>
<?php
endif;
?>
</div>
<?php
if (isset($job['id'])):