476 Commits

Author SHA1 Message Date
Franco Fichtner
7f2e2612ea inc/util: tmp_path removal plus usual style splatter 2015-03-05 18:18:18 +01:00
Franco Fichtner
d90e3a5ee7 inc: tmp_path removal in smaller files 2015-03-05 18:01:49 +01:00
Franco Fichtner
7fd322f1a6 rc: tmp_path removal 2015-03-05 17:53:04 +01:00
Jos Schellevis
0fa44defb7 Change missing icon to glyphicon, fixes #78 2015-03-05 16:36:10 +00:00
Jos Schellevis
68cae6e9f3 Fix Resolve dialog on Firewall log widget 2015-03-05 16:33:06 +00:00
Franco Fichtner
92bc0fe569 rc: rework halt/reboot and fix dhcplease/rrd persistency (#56)
I know, I know, backing up rrd and restoring it after reboot seems
like overkill, but the good thing is that if you ever decide to
install from a clean image the config import is able to pick up
your backups as well and you will not lose any history.
2015-03-05 17:25:34 +01:00
Jos Schellevis
aea19e3f66 Fix firewall log icons in ajax calls 2015-03-05 16:21:42 +00:00
Franco Fichtner
170f72e09b firmware: restart the web server from here as well 2015-03-05 16:56:27 +01:00
Jos Schellevis
831080adf1 fix rule matching on logging, fixes #87 2015-03-05 15:51:23 +00:00
Franco Fichtner
a96ad64ce6 rc: when files move it's crucial to restart the web server 2015-03-05 16:36:18 +01:00
Franco Fichtner
559e42e0b1 inc/legacy: tmp_path refactor and the adventure down the rabbit hole
* Renamed pfsense-utils.inc to legacy.inc, which can cause issues
  on git auto-mount developer machines.  Be wary.

* Removed '/usr/local/www/' prefix from require statements that
  should never use absolute paths (unless you are never going to
  move files, but we already did...).

* Remove an unhealthy function that wrote arbitrary PHP files and then
  style checked them, twice.

* The usual license cleanups so that the headers are easy to read
  and actually make you want to see the rest of the file because of it.

* Code style, indent and obvious bug fix (missed unlock in return path).
2015-03-05 16:28:43 +01:00
Franco Fichtner
594315618f inc/ipsec: proper softcoding for tmp_path
This allows us to grep for the file name as "name.something.xml"
and still be able to find the variable or path or binary or so,
while the actual file name is only set once avoiding typos in the
process as well...
2015-03-05 15:52:30 +01:00
Jos Schellevis
e6a2743a1c change image to glyphicon 2015-03-05 14:21:25 +00:00
Ad Schellevis
45a7671196 remove unused code 2015-03-05 15:12:49 +01:00
Ad Schellevis
98d98ef814 error in constructor 2015-03-05 15:12:00 +01:00
Ad Schellevis
7d27e7dd6f fix for 06ff13943b (commitcomment-10034901) 2015-03-05 15:01:27 +01:00
Ad Schellevis
4c87b1db7c work in progress proxy feature 2015-03-05 14:55:53 +01:00
Ad Schellevis
230575ef20 style / functionality fixes for base template 2015-03-05 14:55:06 +01:00
Ad Schellevis
ef8e307bdc add https://github.com/nakupanda/bootstrap3-dialog to standard codebase to ease jQuery/bootstrap dialogs 2015-03-05 14:54:05 +01:00
Ad Schellevis
7ec082ce91 unused form_input, refactored ro form_input_tr.volt 2015-03-05 14:52:18 +01:00
Ad Schellevis
dd03573465 add standard table input template 2015-03-05 14:50:10 +01:00
Franco Fichtner
e9b5d28ceb inc/config: exterminate cf_path softcoding 2015-03-05 12:59:23 +01:00
Franco Fichtner
08e6c7d71d rc: missed a cf usage 2015-03-05 12:38:00 +01:00
Franco Fichtner
15eb08bb8b inc/interfaces: tmp_path extermination 2015-03-05 12:02:01 +01:00
Franco Fichtner
34d524143d inc/filter: replace tmp_path softcoding 2015-03-05 10:36:56 +01:00
Franco Fichtner
6bbf6cf2b3 inc/config: tmp_path removal, style, review & stale code 2015-03-05 09:36:17 +01:00
Franco Fichtner
ae8716546d rc: migration glue for <= 15.1.7 installs 2015-03-05 09:10:33 +01:00
Franco Fichtner
7f6507d049 inc/config: recover using factory results, too
The code is full of duplicated paths and can probably be shrunk
down to 50% of its current size, making it easier to follow,
debug, extend, yadda, yadda...
2015-03-05 09:06:52 +01:00
Franco Fichtner
c7f253ffd4 src: deprecate /cf/conf in favour of /conf
It's been confusing to say the least, resulting in multiple
misuses throughout the code.  The idea was that /cf pointed
to a read-write root, while / pointed to read-only root.
For non-embedded images this was emulated by linking
/conf -> /cf/conf, which, is a bit questionable because now
you can write from /conf as well and don't have to use /cf/conf
at all.

A couple of lines are left in /usr/local/etc/rc which need to
be reviewed so that migration paths are safe for all types
of firmware upgrades.
2015-03-05 08:10:00 +01:00
Franco Fichtner
ba798a7fce globals: changing the laws of UNIX is bad (1/many)
/tmp is unlikely to change.  If, however you decide to change
it to somewhere else the likelihood of someone else hardcoding
/tmp just to annoy you is so high that it simply makes no sense
to keep any softcoding in this regard.  More batches coming, but
since the usage is so widespread, I'll push it bit by bit.
2015-03-05 08:10:00 +01:00
Franco Fichtner
4b01b9d347 globals: further -- zap conf_path global 2015-03-05 07:35:45 +01:00
Ad Schellevis
f0ec037b08 work in progres proxy feature 2015-03-04 18:33:28 +01:00
Ad Schellevis
994c5b9138 add default form input field template partial 2015-03-04 18:32:05 +01:00
Ad Schellevis
06ff13943b fix small typo's 2015-03-04 18:30:28 +01:00
Ad Schellevis
95d3af241d add setters and getters to map json like content to model 2015-03-04 18:28:23 +01:00
Ad Schellevis
a7644ef6db implement jQuery form handling functions into base template 2015-03-04 18:26:05 +01:00
Franco Fichtner
531e9be888 services/dnydns: support Duck DNS (#43) 2015-03-04 14:50:03 +01:00
Franco Fichtner
02d6fcf365 service/dyndns: sort the list alphabetically while at it 2015-03-04 13:49:45 +01:00
Franco Fichtner
4560299918 services/dyndns: general sanity and custom* hostname apply fix 2015-03-04 13:36:44 +01:00
Franco Fichtner
9e078f9179 login: it's pretty obvious that username and password are mandatory 2015-03-04 07:27:13 +01:00
Franco Fichtner
b648161a20 inc: fixes #86 and consolidates usage to REQUEST_URI
Let's trust the routing on this one, so that when we have it we
won't trip over this stuff again...
2015-03-04 07:15:23 +01:00
Franco Fichtner
3ba3cba107 src: s/session_commit/session_write_close/g for consistency 2015-03-04 07:04:35 +01:00
Franco Fichtner
1f8264ac02 inc: fix authgui indent and hard to read code by adding style
Currently debugging #86 but the file is impossible to read...
2015-03-04 06:58:43 +01:00
Franco Fichtner
708a2cabd6 inc: isset warning fix 2015-03-04 06:36:46 +01:00
Franco Fichtner
9973047edf inc: move main GUI includes to the existing inc dir 2015-03-04 06:34:06 +01:00
Franco Fichtner
676e9a4ad7 services: fix annother is_array() is isset issue() 2015-03-04 06:28:27 +01:00
Franco Fichtner
93ef487f30 inc: avoid www exposure of include files (1 of a couple more)
These changes create instability on development images in
conjunctio with mount for core.git:  since files move they
exist in two places at once, maybe screwing up the system.
There's no sensible way other than asking for or building
a new snapshot package for opnsensense and going from there.
2015-03-04 06:22:43 +01:00
Ad Schellevis
ae21adb10b shared javascript module to use in mvc framework (form processing) 2015-03-03 18:28:01 +01:00
Franco Fichtner
d72df5d071 make: lint over all files that are `ok' for PHP...
Seeing PHP ignore text files makes it easier to lint over more
files for a simple reason:  maybe someone sneaked a PHP file
into the repo and forgot the proper file extension, which is not
uncommon for utilities in *bin/ -- makes it easier to catch those.
2015-03-03 15:46:56 +01:00
Ad Schellevis
f2ce49486a increase default timeout on backend calls 2015-03-03 14:00:26 +01:00