summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_command.php
Commit message (Collapse)AuthorAgeFilesLines
* Various updates to PRstilez2017-05-271-19/+19
| | | | | | | | 1) convert echo to print, and add infobox, as requested in PR comments 2) If no identifiable line number, say so 3) EVAL gives an error message format that wasn't picked up, it is now. Test case - enter as the code: eval("X"); 4) Warn that EVAL gives a "spurious" "error at line 1" as well, the real error is in the (...). See above test case for this. 5) Simplify translators' job a bit 6) Try to reduce errors in user code giving NOTICES (see PR comments). Start by defining a dir for user code (only) and putting code in it.
* add commentstilez2017-05-251-0/+1
|
* typostilez2017-05-251-1/+1
|
* If user-entered PHP errors out, display the error line in context to help ↵stilez2017-05-241-12/+58
| | | | | | | | | the user If the user enters PHP in the command-line page, and it errors out, it's usually a typo or something minor. But the user is left with an error that references a /tmp file which doesn't exist at the point they read the message, a line number that's incorrect, and their input which doesn't display line numbers anyhow. This patch fixes this, so that a user who wants to enter php command-line in the GUI and gets an error, can quickly identify the exact line causing the error. If an error occurs (detected by either non-zero return value or output matching an error message referencing the temp script file), then an short DIV is shown above the usual PHP output for "error location". It gives the correct error line number, and shows the code with line numbers and syntax highlighting (using php's native "-s" option), pre-scrolled to the error line.
* Remove some unused code from diag_command.php.jim-p2017-02-221-10/+0
|
* Revisions to GET/POST conversion limiting POSTs to save, apply, and delete ↵Steve Beaver2017-02-131-4/+1
| | | | functions - Diagnostics
* Remove HTML from strings in diags filesPhil Davis2017-02-051-2/+2
|
* Add security notes for privilege assignment pagesPhil Davis2017-01-021-0/+1
| | | | Suggested solution for Redmine 2247
* Suppress error logging for Diag > Command Prompt so an error in user-entered ↵jim-p2016-12-161-1/+1
| | | | code doesn't offer to submit a crash report. A notice is still generated since PHP <7 doesn't yet have error_clear_last(). Fixes #6702
* Remove all calls to conf_mount_r* functionsRenato Botelho2016-10-121-2/+0
|
* Move copyright from ESF to NetgateRenato Botelho2016-09-061-1/+1
|
* Move to Apache License 2.0Renato Botelho2016-07-151-41/+9
|
* Review license / copyright on all files (final round)Renato Botelho2016-07-151-46/+45
|
* Always use require_oncePhil Davis2016-06-271-1/+1
| | | | | | | | | The usage of require() and require_once() throughout the system is inconsistent, and "bugs" come up now and then when the order of "requires" is a bit different and some require() happens after the include file is already included/required. It seems to me that there is no harm at all in always using require_once().
* Fix form submission fieldsNewEraCracker2016-05-031-7/+6
| | | | Submitting one form may lead to any other filled forms to be also submitted. This commit fixes this flaw
* (diag > command prompt) page stylingJared Dillard2016-04-191-1/+1
|
* Swap the colors on Diag > Command back. Executing is dangerous, hence the ↵jim-p2016-03-281-4/+4
| | | | warning.
* Changed the button colors and icons. The fa-terminal wasn't doing it for me :)Stephen Beaver2016-03-191-7/+7
|
* Fix typojim-p2016-03-091-1/+1
|
* Bring some consistency to the way most buttons are displayed (color, icons, ↵jim-p2016-03-091-8/+30
| | | | | | etc). Ticket #5965 Still need to review Advanced buttons and Repeatable block buttons.
* Renamed exec.php and edit.phpStephen Beaver2016-02-191-0/+340
OpenPOWER on IntegriCloud