Commit Graph

213 Commits

Author SHA1 Message Date
Phil Davis
7f696ba0e0 Remove duplicate copyright
Noticed these had the copyright twice
2015-01-01 08:55:00 +05:45
Renato Botelho
ed2d13436a Welcome 2015 2014-12-31 16:22:00 -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
62424bdbbb Remove almost all calls to history.back() and make Cancel button back to HTTP_REFERER, there are a couple of places I didn't touch on this commit because it requires more work 2014-09-12 16:37:08 -03:00
Renato Botelho
bef9f697b5 We need to allow subdirectories under /usr/local/pkg, here is the proper fix 2014-06-18 13:46:23 -03:00
Renato Botelho
69eb2e295f Avoid directory traversal when reading package xml files, also check if file exists before try to read it 2014-06-17 10:33:18 -03:00
Renato Botelho
6f3d20631d Replace Header() calls by lowercase 2014-06-13 08:59:57 -03:00
Colin Fleming
2690afba23 Update "pkg_edit.,php"
"custom_php_after_head_command", if the PHP code also contains
JavaScript ("squid_auth.xml" for example) then this will cause HTML
errors, as you are not supposed to have anything between the closing
HEAD tag and the opening BODY tag.

Add the CLOSEHEAD PHP variable, move the include HEAD.INC into the PHP
IF statement and manually close the HEAD tab, else just include HEAD.INC
2014-06-05 19:41:50 +01:00
Colin Fleming
b3733e10f7 Tidy up Ampersand XHTML
Deprecate Ampersand in Anchor tags
2014-05-27 12:33:09 +01:00
Marcello Coutinho
2c0dd2639d fixes Bug #3569
On packages that uses row_helper when user clicks on add or delete button, the page scrolls to top.
It seems something with ajax
http://stackoverflow.com/questions/1061580/jquery-click-on-anchor-element-forces-scroll-to-top

A simple return false after jquery action fixes the unwanted scroll.
2014-04-07 11:49:49 -03:00
ayvis
91f026b02c replaced uppercase html tags with lowercase
js files saved as UTF-8 / LF
language="JavaScript" deprecated, replaced with type="text/javascript"
2014-03-19 23:38:56 +01:00
ayvis
8cd558b61b xhtml Compliance
replaced <br>, <br/> and </br> with <br />
2014-03-14 21:24:03 +01:00
Colin Fleming
5655d48be0 Update "pkg_edit.php" XHTML
Update HTML Boolean operator
2013-09-26 12:18:45 +01:00
ccesario
2d9063afe9 Set network interfaces description as interface name. 2013-09-25 17:16:53 -03:00
Renato Botelho
1e9b461124 Remove call-time pass by reference for do_input_validation, helps ticket #2565 2013-09-12 11:28:14 -03:00
Renato Botelho
605ae5537d Fix #3127
By default htmlspecialchars does not consider single quotes, what can be
a problem when value attribute is set using it. Replace value attribute
set to use double quotes on places where it's obviously recieving a
result of htmlspecialchars() call.
2013-09-06 08:08:03 -03:00
Renato Botelho
5aa68a55a6 Fix #3113, fix multiple english spell errors s/seperet/separat/ 2013-07-28 10:31:14 -03:00
Colin Fleming
81ecdc6c00 Update "pkg_edit.php"
Move closing TR tag outside, otherwise the 'foreach' statement will
produce a duplicate closing TR tag.
2013-05-02 19:02:55 +01:00
Colin Fleming
8612c53938 Update "pkg_edit.php"
Add missing closing B tag
Add missing closing TD tag
2013-04-22 12:09:32 +02:00
Colin Fleming
2a83d2bd00 Tidy up "pkg_edit.php" XHTML
Remove duplicate $size variable
Add summary statement to TABLE tags
2013-04-16 19:22:15 +01:00
Colin Fleming
2e606955ba Tidy up "pkg_edit.php" XHTML
Close INPUT tags
Update HTML boolean operators
Add missing start TR tag
Remove "name" statement from OPTION tag, invalid in XHTML
Remove duplicate "id" statement in SELECT tag
2013-04-15 14:08:36 +01:00
Colin Fleming
8df076fe35 Update pkg_edit.php
Correct CDATA sections in SCRIPT tag
Correct ALT statement in IMG tag
2013-04-14 21:48:03 +02:00
Colin Fleming
7c8bce79ea Update pkg_edit.php
Correct CDATA section in SCRIPT tag
2013-04-14 21:43:23 +02:00
Colin Fleming
befa8be057 Tidy up "pkg_edit.php" XHTML
Close BR and IMG tags and add ALT statement to IMG tags
Change ONCLICK to lower case
Move "fbegin.inc" PHP statement before the SCRIPTS
Add CDATA sections to SCRIPT tags
2013-04-14 13:37:11 +01:00
Luiz Gustavo Costa (gugabsd)
cfa845a9ce Add onchange tag to checkbox too 2013-02-24 03:18:54 -03:00
Phil Lavin
80d5bd413f Fix PHP errors relating to using string offset as an array 2013-02-05 14:31:10 +00:00
bruno
b89a8cbce6 add input autocomplete array aliases 2012-12-06 17:06:23 -02:00
jim-p
313a14f759 More encoding... 2012-10-31 16:01:35 -04:00
Charlie Root
504a57b238 pkg_edit - add show_disable_value option to select_source xml option 2012-07-06 18:54:43 -03:00
jim-p
2c51f29386 If a package has donotsave, still process its input validation. Properly handle preoutput in the case of input errors also. 2012-06-28 19:58:59 -04:00
Marcello Coutinho
1624b5f1e2 fix select_source option 2012-06-07 15:59:49 -03:00
Marcello Coutinho
e14fbca4fa include more features to interfaces_selection
<showips>
<showvirtualips>
<showlistenall>
<hideinterfaceregex>

New features will show only with these new options on xml file
2012-06-01 18:34:27 -03:00
Marcello Coutinho
55c846c445 new pkg_edit.php code with revised functions, no 0-99 loop on row_helper, movable rows, tootip with domtt.
new field types button, info as well combinefileds working and colspan2 on nodisplaname option.
jquery code improved too.
tested on squid, dansguardian, sshdcond , filer , pfblocker package.
2012-05-31 18:49:05 -03:00
bcyrill
098686aff1 Fix tag order. 2012-04-12 21:50:43 +03:00
bcyrill
2afb2c3758 Removed flawed HTML. 2012-04-11 19:34:49 +03:00
whizkidzz
85a46fbdcd Added interface_selection to choose a interface in tinydns failover selection
Changed the $text so that no "option value" is preselected when adding a newrow with addrowto function.
2012-04-06 16:21:07 +02:00
whizkidzz
44c7059177 Added rowsize[] for use in row_helper_dynamic.js 2012-04-06 16:17:07 +02:00
whizkidzz
177a823e52 Added empty option line so not to write to config.xml if not filled in 2012-04-06 16:13:50 +02:00
Marcello Coutinho
b65ce59a59 Fix missing description in rowhelper. 2011-10-27 19:09:20 -02:00
jim-p
9622da2659 Fix use post here, since the other var isn't defined as it was before my commit yesterday. 2011-07-06 11:47:45 -04:00
jim-p
8aafd58e46 Fix handling of interface selectors in packages. 2011-07-05 15:43:50 -04:00
Warren Baker
91c3133910 Revert "Correct displaying any availble default value."
This reverts commit 01c170c461.
2011-06-22 19:19:41 +02:00
Ermal
01c170c461 Correct displaying any availble default value. 2011-06-14 13:39:03 +00: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
Scott Ullrich
86ae36217b Allow setting package interfaces to loopback (lo0) 2011-01-19 18:35:51 -05:00
jim-p
5a61331aff Move this validation down so we can still assume id=0 if it's not present, and then redirect if it's non-numeric. 2010-12-07 11:34:15 -05:00
Erik Fonnesbeck
bddc88183a Form image buttons are submit buttons and thus default buttons, causing unwanted behavior with the enter key. Use links instead, where possible. 2010-11-12 22:44:11 -07:00
Erik Fonnesbeck
6f7a997828 Add style to rowhelper normal text fields in packages for consistency. 2010-11-12 20:05:15 -07: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