@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | * URL: /ajax/update_tracker_inline |
27 | 27 | */ |
28 | 28 | public function update() { |
29 | - $this->form_validation->set_rules('id', 'Chapter ID', 'required|ctype_digit'); |
|
30 | - $this->form_validation->set_rules('chapter', 'Chapter', 'required'); |
|
29 | + $this->form_validation->set_rules('id', 'Chapter ID', 'required|ctype_digit'); |
|
30 | + $this->form_validation->set_rules('chapter', 'Chapter', 'required'); |
|
31 | 31 | |
32 | 32 | if($this->form_validation->run() === TRUE) { |
33 | 33 | $success = $this->Tracker->updateTrackerByID($this->userID, $this->input->post('id'), $this->input->post('chapter')); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * URL: /tag_update |
123 | 123 | */ |
124 | 124 | public function tag_update() { |
125 | - $this->form_validation->set_rules('id', 'Chapter ID', 'required|ctype_digit'); |
|
125 | + $this->form_validation->set_rules('id', 'Chapter ID', 'required|ctype_digit'); |
|
126 | 126 | $this->form_validation->set_rules('tag_string', 'Tag String', 'max_length[255]|is_valid_tag_string|not_contains[none]'); |
127 | 127 | |
128 | 128 | if($this->form_validation->run() === TRUE) { |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * URL: /set_category |
147 | 147 | */ |
148 | 148 | public function set_category() { |
149 | - $this->form_validation->set_rules('id[]', 'List of IDs', 'required|ctype_digit'); |
|
149 | + $this->form_validation->set_rules('id[]', 'List of IDs', 'required|ctype_digit'); |
|
150 | 150 | $this->form_validation->set_rules('category', 'Category Name', 'required|is_valid_category'); |
151 | 151 | |
152 | 152 | if($this->form_validation->run() === TRUE) { |
@@ -12,10 +12,10 @@ |
||
12 | 12 | $this->header_data['page'] = "report-bug"; |
13 | 13 | |
14 | 14 | $this->form_validation->set_rules('bug_description', 'Description', 'required|max_length[255]'); |
15 | - $this->form_validation->set_rules('bug_url', 'URL', ''); |
|
15 | + $this->form_validation->set_rules('bug_url', 'URL', ''); |
|
16 | 16 | |
17 | 17 | $this->body_data['bug_submitted'] = FALSE; |
18 | - if ($isValid = $this->form_validation->run() === TRUE) { |
|
18 | + if($isValid = $this->form_validation->run() === TRUE) { |
|
19 | 19 | //send report |
20 | 20 | $this->body_data['bug_submitted'] = $this->Tracker->reportBug($this->input->post('bug_description'), NULL, $this->input->post('bug_url')); |
21 | 21 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * Rate Limiter Configuration |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | <div class="row"> |
27 | 27 | <div class="col-xs-6 col-sm-6 col-md-6"> |
28 | - <?=form_submit($form_submit);?> |
|
28 | + <?=form_submit($form_submit); ?> |
|
29 | 29 | </div> |
30 | 30 | <div class="col-xs-6 col-sm-6 col-md-6"> |
31 | 31 | <a href="<?=base_url('user/signup')?>" class="btn btn-lg btn-primary btn-block">Create an account</a> |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | <div class="row"> |
51 | 51 | <div class="col-xs-12 col-md-12"> |
52 | - <?=form_submit($form_submit);?> |
|
52 | + <?=form_submit($form_submit); ?> |
|
53 | 53 | </div> |
54 | 54 | </div> |
55 | 55 | </form> |
@@ -20,7 +20,7 @@ |
||
20 | 20 | <hr class="colorgraph"> |
21 | 21 | |
22 | 22 | <div class="row"> |
23 | - <?=form_submit($form_submit);?> |
|
23 | + <?=form_submit($form_submit); ?> |
|
24 | 24 | </div> |
25 | 25 | </form> |
26 | 26 | </div> |
@@ -11,12 +11,12 @@ |
||
11 | 11 | <p>Filename: <?php echo $filepath; ?></p> |
12 | 12 | <p>Line Number: <?php echo $line; ?></p> |
13 | 13 | |
14 | -<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?> |
|
14 | +<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?> |
|
15 | 15 | |
16 | 16 | <p>Backtrace:</p> |
17 | - <?php foreach (debug_backtrace() as $error): ?> |
|
17 | + <?php foreach(debug_backtrace() as $error): ?> |
|
18 | 18 | |
19 | - <?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?> |
|
19 | + <?php if(isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?> |
|
20 | 20 | |
21 | 21 | <p style="margin-left:10px"> |
22 | 22 | File: <?php echo $error['file'] ?><br /> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | +defined('BASEPATH') or exit('No direct script access allowed'); |
|
3 | 3 | |
4 | 4 | /* |
5 | 5 | | ------------------------------------------------------------------------- |
@@ -11,12 +11,12 @@ |
||
11 | 11 | <p>Filename: <?php echo $exception->getFile(); ?></p> |
12 | 12 | <p>Line Number: <?php echo $exception->getLine(); ?></p> |
13 | 13 | |
14 | -<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?> |
|
14 | +<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?> |
|
15 | 15 | |
16 | 16 | <p>Backtrace:</p> |
17 | - <?php foreach ($exception->getTrace() as $error): ?> |
|
17 | + <?php foreach($exception->getTrace() as $error): ?> |
|
18 | 18 | |
19 | - <?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?> |
|
19 | + <?php if(isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?> |
|
20 | 20 | |
21 | 21 | <p style="margin-left:10px"> |
22 | 22 | File: <?php echo $error['file']; ?><br /> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | +defined('BASEPATH') or exit('No direct script access allowed'); |
|
3 | 3 | |
4 | 4 | /* |
5 | 5 | | ------------------------------------------------------------------------- |
@@ -7,11 +7,11 @@ |
||
7 | 7 | Filename: <?php echo $filepath, "\n"; ?> |
8 | 8 | Line Number: <?php echo $line; ?> |
9 | 9 | |
10 | -<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?> |
|
10 | +<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?> |
|
11 | 11 | |
12 | 12 | Backtrace: |
13 | -<?php foreach (debug_backtrace() as $error): ?> |
|
14 | -<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?> |
|
13 | +<?php foreach(debug_backtrace() as $error): ?> |
|
14 | +<?php if(isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?> |
|
15 | 15 | File: <?php echo $error['file'], "\n"; ?> |
16 | 16 | Line: <?php echo $error['line'], "\n"; ?> |
17 | 17 | Function: <?php echo $error['function'], "\n\n"; ?> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> |
|
1 | +<?php defined('BASEPATH') or exit('No direct script access allowed'); ?> |
|
2 | 2 | |
3 | 3 | An uncaught Exception was encountered |
4 | 4 |
@@ -7,11 +7,11 @@ |
||
7 | 7 | Filename: <?php echo $exception->getFile(), "\n"; ?> |
8 | 8 | Line Number: <?php echo $exception->getLine(); ?> |
9 | 9 | |
10 | -<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?> |
|
10 | +<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?> |
|
11 | 11 | |
12 | 12 | Backtrace: |
13 | -<?php foreach ($exception->getTrace() as $error): ?> |
|
14 | -<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?> |
|
13 | +<?php foreach($exception->getTrace() as $error): ?> |
|
14 | +<?php if(isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?> |
|
15 | 15 | File: <?php echo $error['file'], "\n"; ?> |
16 | 16 | Line: <?php echo $error['line'], "\n"; ?> |
17 | 17 | Function: <?php echo $error['function'], "\n\n"; ?> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> |
|
1 | +<?php defined('BASEPATH') or exit('No direct script access allowed'); ?> |
|
2 | 2 | |
3 | 3 | An uncaught Exception was encountered |
4 | 4 |