2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* Inclusive Design Institute */
8 /* This program is free software. You can redistribute it and/or */
9 /* modify it under the terms of the GNU General Public License */
10 /* as published by the Free Software Foundation. */
11 /************************************************************************/
14 define('AT_INCLUDE_PATH', '../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
16 admin_authenticate(AT_ADMIN_PRIV_ADMIN);
18 if (isset($_POST['back'])) {
19 header('Location: error_logging.php');
24 if (isset($_POST['view'])) { // check if a bug was selected
25 foreach($_POST as $elem => $val) {
26 $str_ = substr($elem, 0, 4);
27 if ($str_ == 'file') {
32 $msg->addError('NO_LOG_SELECTED');
33 header('Location: error_logging.php');
38 $back_ref = $_POST['profile_id'] . ':' . $_POST['profile_date'];
40 require(AT_INCLUDE_PATH.'header.inc.php');
42 <form name="form" method="post" action="<?php echo 'admin/error_logging_details.php'; ?>">
43 <input type="hidden" name="data" value="<?php echo $back_ref; ?>" />
44 <input type="hidden" name="view" value="<?php echo ''; ?>" />
46 <div class="input-form">
48 <h3><?php echo _AT('viewing_errors'); ?></h3>
51 foreach ($files as $file) {
52 if (isset($_POST[$file])) {
53 $dump = @file_get_contents(AT_CONTENT_DIR . 'logs/' . $_POST[$file]);
54 if ($dump !== false) { ?>
61 $msg->printErrors(array('CANNOT_READ_FILE', AT_CONTENT_DIR . 'logs/' . $_POST[$file]));
66 <div class="row buttons">
67 <input type="submit" name="back" value="<?php echo _AT('back_to_profile'); ?>" />
72 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>