summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.lib.inc
Commit message (Collapse)AuthorAgeFilesLines
* fix fsync, thanks Phil Davis for noticingChris Buechler2015-07-101-1/+1
|
* fix fsyncChris Buechler2015-07-101-1/+1
|
* fsync after fclose here, clean up some white space while here.Chris Buechler2015-07-101-2/+9
| | | | | Conflicts: etc/inc/config.lib.inc
* fsync conf_path here tooChris Buechler2015-07-101-0/+1
|
* fix typoChris Buechler2015-07-101-1/+1
|
* Make sure config.xml is safe on disk when restoring a backup, ticket #4803Renato Botelho2015-07-061-0/+1
|
* Make sure temporary config file is safe on disk before rename, ticket #4803Renato Botelho2015-07-061-1/+1
|
* Use right function pfSense_fsync to make sure config file is safe on disk, ↵Renato Botelho2015-07-061-4/+2
| | | | ticket #4803
* Code spacingPhil Davis2015-06-151-5/+5
| | | | | | | and other random stuff I noticed. I think this finishes messing with code style. The codebase should match the developer style guide closely enough that 99.9% of changes will not feel the need to also massage the formatting.
* Do not call fsck just out of nowhere here since it cannot be the problem or ↵Ermal LUÇI2015-06-091-6/+4
| | | | fix.
* Code style bits and pieces from etcPhil Davis2015-05-311-4/+5
|
* php error logging should 're-fix' with less side effects for now.. ↵PiBa-NL2015-04-051-1/+6
| | | | https://redmine.pfsense.org/issues/4143
* Code style guide etc in a to ePhil Davis2015-02-261-120/+175
|
* disable this PHP error logging, errors that are really significant end up ↵Chris Buechler2015-01-091-2/+3
| | | | with a crash report, this is more noise than useful at this stage in 2.2.
* Log PHP errors. Ticket #4143Chris Buechler2015-01-071-0/+10
|
* Add a parameter on platform_booting to help detect if it's on GUI on console ↵Renato Botelho2014-11-281-3/+3
| | | | and use it in appropriate places, it fixes #4049
* Rather than set the g['booting'] on globals provide a function to test for ↵Ermal LUÇI2014-11-261-14/+13
| | | | that doing the right checks
* Split the various calls here to avoid php warnings with new versions.Ermal LUÇI2014-11-201-1/+4
|
* Remove even the config.cache from /tmp to avoid issues while hereErmal2014-07-301-0/+1
|
* Convert almost all /sbin/sysctl calls to php functionsRenato Botelho2014-07-071-1/+1
|
* Remove more backtick abuseRenato Botelho2014-06-191-5/+9
|
* Restore 989d361e88d08bd9e71bf7daafcb3b39af65bd3d to preserve a scenario that ↵Ermal2014-05-201-0/+2
| | | | seems useful as suggested from @fitchner.
* Remove commented out code since long timeErmal2014-05-201-11/+0
|
* Remove a line spotted by @fitchner which is not needed at allErmal2014-05-201-1/+0
|
* Put a line on logs when this situation happens!Ermal2014-05-201-0/+1
|
* Get rid of embedded platform. Its time to GC thisErmal2014-04-141-1/+1
|
* Add an option for users to be able to adjust how many configuration ↵jim-p2013-12-261-7/+16
| | | | revisions are kept in the local backup cache.
* Show backup file size in config history.jim-p2013-12-261-7/+8
|
* Do not register the _ENV superglobal since its not required and probably not ↵Ermal2013-12-201-3/+2
| | | | very useful in a [F]CGI world and its limit is restricted nowdays in pfSense.
* Register a function to unset certain globals after requests finish ↵Ermal2013-12-161-0/+24
| | | | processing to release memory early
* Fix #3235Renato Botelho2013-10-241-5/+5
| | | | | | | | | | | . diag_nanobsd.php: . Since conf_mount_ro() is always being called, always call conf_mount_rw to keep refcount correct . Do not show refcount_read() return when it's -1 . config.lib.inc . Increment and decrement refcount even if nanobsd_force_rw is set. This is necessary to avoid partition being mounted as RO when nanobsd_force_rw is disabled and any process requested it to be RW
* Bring back static routes to fix issues reported on Ticext #3179Ermal2013-09-031-8/+10
|
* Track user/time a firewall rule was created and last updated, and show this ↵jim-p2013-03-201-23/+36
| | | | information at the bottom of the page when viewing the firewall rule. Have various places in the system that create rules add a proper entry to indicate their origin.
* Better test if we're running at the cli or in lighty. Also suppress output ↵jim-p2013-01-151-2/+2
| | | | for the session start if it fails.
* Put protection for session functions even hereErmal2013-01-051-1/+2
|
* Make the logic a bit more robust and readbleErmal2013-01-051-1/+8
|
* While here try to hint the user from _ENV['USER'] if no session infoErmal2013-01-051-1/+1
|
* Since php_sapi_name() is useless in pfSense test if argc has been registered ↵Ermal2013-01-051-7/+9
| | | | or not to avoid warnings on bootup
* Always commit the session fast to allow other consumers to proceed to their ↵Ermal2013-01-031-1/+8
| | | | requests. This unbreaks now the lock up the GUI had allowing only one action from same source per time. Now even if you run a command that blocks indefinitely for example the GUI want lock anymore but allow you to proceed to other actions
* Add button to switch between read/write and read-only on Diag > NanoBSD; Add ↵jim-p2012-11-121-4/+7
| | | | setting to keep the media read/write at all times; Add indication of ro/rw status on Dashboard.
* Make sure admin can always write the configjim-p2012-10-091-1/+1
|
* Add initial support for a privilege that denies write access to the config.jim-p2012-10-091-0/+5
| | | | NOTE: This only prevents writing to config.xml - it does NOT prevent other changes/execution that do not involve writing to config.xml (e.g. applying settings, exec, killing states, etc)
* Remove extra curly to allow checking braces closure easily in vi[m]Ermal2012-08-141-1/+1
|
* The function split() is replaced by the function explode(). Starting with ↵smos2012-01-191-1/+1
| | | | | | PHP 5.3 this is deprecated and with version 6 gone. Replacing it surpresses all the warnings
* Add version to backup.cache in one more placejim-p2011-11-221-1/+4
|
* Also show the config version in the backup history.jim-p2011-11-221-3/+5
|
* Setup the serial port in the factory reset as well, in case the default ↵jim-p2011-11-211-1/+1
| | | | config in a rebrand has the serial console active.
* Ticket #1279. Decrease the refcount even though we're in booting phase. This ↵Ermal2011-08-171-2/+2
| | | | helps the refcount to work as intended and help in making filesystem read only correctly on embedded platfroms. While here put some exceptions to refcount API and silent any related errors that might trigger. Also take not of the NOTE on the php manual that after a share memory is opened further references to it for size and access mode should be 0.
* Merge remote-tracking branch 'mainline/master' into incVinicius Coque2011-07-061-0/+2
|\ | | | | | | | | Conflicts: etc/inc/priv.defs.inc
| * Use empty() so we don't use it if it's defined but blank.jim-p2011-07-011-1/+1
| |
OpenPOWER on IntegriCloud