192 Commits

Author SHA1 Message Date
Franco Fichtner
4fe76dde30 rc: on cdrom images, the config is bootstrapped afterwards, meh 2015-03-10 09:15:36 +01:00
Franco Fichtner
82cfdeb456 rc: shells are weird 2015-03-10 07:50:59 +01:00
Ad Schellevis
15dcb2ece8 use php session_status to check for active session ( >= php 5.4 ) 2015-03-09 20:56:16 +00:00
Franco Fichtner
18cf4e9ea0 rc: adjust and fix missing pkgng database when using MFS
While there, embed rc.embedded and fix permissions of rc.halt.
2015-03-09 18:09:59 +01:00
Franco Fichtner
dcabfa6452 inc/util: remove an unused function 2015-03-09 13:24:43 +01:00
Franco Fichtner
5ce3abb5b4 rc: remove pbi remnants from this general area 2015-03-09 13:24:43 +01:00
Franco Fichtner
9cd2b8857d rc/inc: regenerate the php.ini files in a more maintainable place 2015-03-09 09:23:11 +01:00
Franco Fichtner
804a22faff inc/filter: do not hardcode the target IP in auto NAT rules
Suggested by: Jim Thompson <jim@netgate.com>
2015-03-07 08:48:29 +01:00
Franco Fichtner
2811402f8d globals: sysctl tweak for dhcpv6 2015-03-07 08:48:29 +01:00
Franco Fichtner
aa5fc1bf6f inc/system: tmp_path extermination 2015-03-07 08:48:28 +01:00
Franco Fichtner
a47ad5e740 src: prune, prettify or zap scripts that use PHP shebang 2015-03-07 08:48:28 +01:00
Franco Fichtner
cabdbf8c28 src: move files back, the update system isn't ready for this 2015-03-06 18:44:41 +01:00
Franco Fichtner
5e648312ac pkg: restart configd to sync the new code
While there, switch to the defaults when reloading the webgui.
2015-03-06 17:34:07 +01:00
Franco Fichtner
7992bedfd3 rc: rename firmware console script for consistency 2015-03-06 14:44:34 +01:00
Franco Fichtner
baa9f79874 src: 50 shades of white 2015-03-06 09:25:42 +01:00
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
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
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
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
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
Franco Fichtner
c94b5c6da9 rc: change PHP error reporting a bit more
* We can now see the errors we suppress.  E_WARNING is the one that
  should be zapped as soon as possible.

* According to the manual, display_startup_errors should not be enabled.

* Add ignore_repeated_errors to avoid multiple reports in e.g. loops.
2015-03-03 09:42:20 +00:00
Franco Fichtner
1ff9cef76d inc: fix usage due to PHP's is_array() warning level raise 2015-03-03 10:28:31 +01:00
Franco Fichtner
21abc3627e shortcuts: fix warning and revive miniupnpd file
While there, don't expose the main include file to the web server.
2015-03-03 10:06:13 +01:00
Franco Fichtner
f958a96258 www: kill edit.php as well 2015-03-03 09:49:22 +01:00
Franco Fichtner
f2a21ac446 www: remove exec.php
(1) It has been disabled since our first release.
(2) It is not part of our development workflow.
(3) It is quite dangerous and potentally fatal.
2015-03-03 09:40:26 +01:00