Phil Davis
f155b6e430
pkg.php consolidate else-if statement
2016-01-25 20:59:45 +05:45
Phil Davis
9fa1712002
Wrap pkg_full_path in htmlspecialchars()
...
Because it contains $xml which is itself wrapped in htmlspecialchars() for display.
2016-01-25 13:59:11 +05:45
Phil Davis
b5b8f8dd2f
Enhance error output when package file not found - RELENG_2_2
...
I had a system that had upgraded but the Notes package had not managed to (re)install. In that situation the Notes item is on the Status menu but there is no notes.xml or other notes code on the the system.
When I go to Status->Notes I get:
Warning: substr_compare(): The start position cannot exceed initial string length in /usr/local/www/pkg.php on line 56 File not found notes.xml
The warning is because realpath() returns false in this case and cannot be used is a parameter to substr_compare().
Handle this case, and make the error message more informative.
Note: In RELENG_2_2 print_info_box_np() puts a "Close" button and has no way to stop that. It looks dumb, but that can be cleaned up in 2.3 master. I am just doing this in RELENG_2_2 to avoid the PHP warning.
2016-01-25 13:34:48 +05:45
jim-p
4fa888b46c
Encode hostname before printing; remove some related dead code.
2015-12-21 10:15:30 -05:00
jim-p
3ac0284805
Address a potential LFI in pkg.php and wizard.php without breaking the ability to pass relative paths
...
Restricts them to files under their intended base directories.
2015-12-04 15:38:39 -05:00
Renato Botelho
45e96815a1
Use correct variable to fix pagination
2015-05-15 07:42:34 -03:00
Phil Davis
5402c8fcde
Fix startingat var name typo in pkp.php
...
Even with this fix, the code does not make sense. The first test is:
if ($startingat > -1)
if it gets into the else, then $startingat must be negative. But the test in the "else" tests for >1 ???
Someone who knows what it really is supposed to do could fix it!
2015-05-15 07:42:31 -03:00
Phil Davis
d4b2cd35b9
Remove duplicate copyright
...
Noticed these had the copyright twice
2015-01-01 10:13:14 -02:00
Renato Botelho
d961e7e33e
Welcome 2015
2014-12-31 16:22:27 -02:00
Jim Thompson
29aef6c45b
Change copyright statement to reflect reality
2014-11-10 23:36:14 -06:00
Jim Thompson
dd447bde2b
modify copyright statement to reflect reality
2014-11-10 22:49:50 -06:00
Renato Botelho
6f3d20631d
Replace Header() calls by lowercase
2014-06-13 08:59:57 -03:00
Colin Fleming
f4b5842533
Tidy up "pkg.php" XHTML
...
Add missing opening and closing TR tag
2013-04-16 19:20:44 +01:00
Colin Fleming
44507df4d6
Tidy up "pkg.php" XHTML
...
Move SCRIPT tags out of the TABLE tag
Add CDATA section to SCRIPT tags
Close INPUT and IMG tags and add ALT statement to IMG tags
Update HTML boolean operators
Move NOWRAP to class statement
Deprecate ampersand in ANCHOR tags
Add missing closing FONT tags
Swap closing TR and TD tags
2013-04-14 13:59:17 +01:00
Colin Fleming
a3381369d9
Update PHP shorthand tag
...
Standardise all PHP start tags from "<?" to "<?PHP"
2013-01-14 13:27:36 +00:00
Marcello Coutinho
05a42cce9b
drag and drop function to reorder lists on pkg framework using jquery.
...
also new features like base64,description, tooltip custom texts.
tested with sorting features too.
related post on forum
http://forum.pfsense.org/index.php/topic,49322.msg264514.html#msg264514
2012-05-25 17:00:17 -03:00
Vinicius Coque
a02ecc943f
Converting javascript code from scriptaculous to jQuery
2011-11-15 16:09:31 -02:00
Warren Baker
f8c462dd89
Allow packages to specify that their tabmenus should not be a drop-down list by using a <no_drop_down/> tag.
2011-06-12 16:10:22 +02:00
Warren Baker
b85f245143
Correct indentation
2011-02-21 11:42:19 +02:00
Warren Baker
7c50552db5
Make sure it is an array before foreach.
2011-02-21 11:40:30 +02:00
Warren Baker
6f567a593d
NiftyCheck already included in bottom-loader.js otherwise div mainarea gets rounded twice.
2010-11-11 12:51:56 +02:00
Scott Ullrich
98bcf1f8b5
Fix misc input validation errors. Move routed/* to same dir as pkg items
2010-11-06 12:40:54 -04:00
Warren Baker
a641949268
Fix white spaces
2010-09-21 12:48:59 +02:00
Warren Baker
4ff99fcbc3
If column['fieldname'] is a description then change html class to listbg to conform to rest of GUI description table columns.
2010-09-21 12:27:15 +02:00
Warren Baker
9055180719
New Package XML tag 'tab_level' allows for multiple rows of tab displays.
2010-08-25 18:18:08 +02:00
Scott Ullrich
de9b760fe1
Unbreak adding new record
2010-08-04 17:53:56 -04:00
Scott Ullrich
1336d0826a
Remember custom rows per page when going to previous and next pages
2010-08-03 22:01:21 -04:00
Scott Ullrich
5cdf3655f1
Adjust rows per page a bit
2010-08-03 21:28:54 -04:00
Scott Ullrich
395dcfbe25
Round up correctly for page count
2010-08-03 21:25:22 -04:00
Scott Ullrich
3377a2bfef
Do not hide Displaying page now that we have the rows per page
2010-08-03 21:15:07 -04:00
Scott Ullrich
3ca50a1574
Allow setting of how many records per page to show
2010-08-03 21:12:55 -04:00
Scott Ullrich
1945741b87
Show starting record ++
2010-08-03 20:28:43 -04:00
Scott Ullrich
d8a189d5ce
Do not show page X of X when filtering
2010-08-03 20:23:26 -04:00
Scott Ullrich
74d697c713
Make displaying page X of X bold
2010-08-03 20:20:47 -04:00
Scott Ullrich
37da0c5042
* Show how many pages and current page
...
* Show record numbers that are shown
* Cleanup previous and next page links and text
2010-08-03 20:18:08 -04:00
Scott Ullrich
5d4f5ce95a
Move previous and next page
2010-08-03 19:17:15 -04:00
Scott Ullrich
5aa9a4f2f2
Unbreak auto submit
2010-08-03 19:06:33 -04:00
Scott Ullrich
b000f96faa
Use GET instead of post for filtering
2010-08-03 17:42:00 -04:00
Scott Ullrich
bc05ef9f97
no need for a regex here
2010-08-03 17:14:41 -04:00
Scott Ullrich
ef2029df87
Reformat file. No functional changes
2010-08-03 16:32:53 -04:00
Scott Ullrich
4b5976b539
Use ob_start() to speed up page rendering for large record sized pages
2010-08-03 16:20:48 -04:00
Scott Ullrich
32c477c521
Adding field sorting and filtering support
2010-08-03 15:49:04 -04:00
Scott Ullrich
4f6a5e6a45
Update (C) to 2010
2010-04-27 19:32:30 -04:00
Ermal Luçi
d3ab36dc38
If field type is interface show them with the descriptive name.
2010-03-09 23:10:35 +00:00
Scott Ullrich
1d333258dc
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE:. Adjust Copyright to include 2009 on files that I have asserted (C) on
2009-09-14 21:49:40 -04:00
Matthew Grooms
6b07c15ad8
Rewrite the pfsense privilege system with the following goals in mind ...
...
1) Redefine page privileges to not use static urls
2) Accurate generation of privilege definitions from source
3) Merging the user and group privileges into a single set
4) Allow any privilege to be added to users or groups w/ inheritance
5) Cleaning up the related WebUI pages
2008-08-01 06:30:34 +00:00
Scott Ullrich
df02c7292c
Do not redeckare gettext
2008-03-10 00:39:40 +00:00
Scott Ullrich
d8c1a6c53c
Make scripts XSS input safe.
...
Pointed-out: by hoopercharles@gmail.com
2008-02-12 04:40:35 +00:00
Scott Ullrich
d88c6a9fdf
Switch over to array style page titles. Obtained-from: m0n0wall
2007-11-16 00:48:53 +00:00
Scott Ullrich
8060d89a47
Correct the ordering of unsetting the item and running the delete command. The delete command should be run after the unset so it can populate information correctly such as tinydns's data file.
2007-02-21 03:56:09 +00:00