summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.lib.inc
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
| * If available, also track the IP used by a user making a config change.jim-p2011-07-011-0/+2
| |
* | Merge remote-tracking branch 'mainline/master' into incVinicius Coque2011-06-201-1/+3
|\ \ | |/
| * Do a more thorough check for platform on the ro call, or factory reset blows up.jim-p2011-06-161-1/+3
| |
* | Merge remote-tracking branch 'mainline/master' into incVinicius Coque2011-04-151-2/+9
|\ \ | |/ | | | | | | Conflicts: etc/inc/gwlb.inc
| * Fixup text.jim-p2011-04-061-2/+2
| |
| * Actually re-parse the config if a valid config was not written. (Should help ↵jim-p2011-04-061-2/+9
| | | | | | | | stop installs from blowing up on failed config upgrades). Save the bad config for inspection, and print a message to the console about what was done.
* | Merge remote-tracking branch 'mainline/master' into incVinicius Coque2011-03-311-1/+2
|\ \ | |/
| * Check for function existence before calling it.Ermal2011-03-301-1/+2
| |
* | Merge remote-tracking branch 'mainline/master' into incVinicius Coque2011-03-291-7/+4
|\ \ | |/ | | | | | | Conflicts: etc/inc/voucher.inc
| * Backing this out to see if it unbreaks NanoBSD upgrades with packages ↵jim-p2011-03-261-8/+5
| | | | | | | | | | | | involved. Revert "Workaround for conf_mount_rw/ro during boot to only allow it to change at the start and end. Fixes #1279" This reverts commit 548be1fd6697ab115cbb29d61bc5507744488094.
* | Merge remote-tracking branch 'mainline/master' into incVinicius Coque2011-03-251-4/+12
|\ \ | |/ | | | | | | | | | | | | Conflicts: etc/inc/interfaces.inc etc/inc/priv.defs.inc etc/inc/shaper.inc etc/inc/system.inc
| * Workaround for conf_mount_rw/ro during boot to only allow it to change at ↵Erik Fonnesbeck2011-03-221-5/+8
| | | | | | | | the start and end. Fixes #1279
| * Add code to allow custom upgrade code to run after the pfSense upgrade code ↵Ermal2011-03-151-1/+6
| | | | | | | | for the same version switching(Just the custom upgrade functions should have _custom at the end of their name.
* | Merge remote-tracking branch 'mainline/master' into incVinicius Coque2011-03-251-52/+10
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: etc/inc/auth.inc etc/inc/config.lib.inc etc/inc/filter.inc etc/inc/pfsense-utils.inc etc/inc/pkg-utils.inc etc/inc/priv.defs.inc etc/inc/services.inc etc/inc/shaper.inc etc/inc/voucher.inc etc/inc/vpn.inc usr/local/www/fbegin.inc
| * When doing conf_mount_ro/rw on NanoBSD, pass sync,noatime to mount to ↵jim-p2011-03-071-6/+6
| | | | | | | | preserve the options we have already set in fstab. Ticket #1279 and Ticket #444
| * Comment out the "config write on bootup" error. This is normal now with the ↵jim-p2011-02-161-0/+4
| | | | | | | | package reinstall, and the known issues with it should be OK now. The error is just confusing people.
* | Merge branch 'master' into incVinicius Coque2011-01-281-33/+82
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: etc/inc/captiveportal.inc etc/inc/config.console.inc etc/inc/config.lib.inc etc/inc/easyrule.inc etc/inc/filter.inc etc/inc/ipsec.inc etc/inc/pkg-utils.inc etc/inc/shaper.inc etc/inc/system.inc etc/inc/voucher.inc
| * Better way to determine the username for config descrsjim-p2011-01-181-2/+4
| |
| * Fix variable name referencejim-p2011-01-181-1/+1
| |
| * Stop spewing backup info on bootupScott Ullrich2011-01-071-1/+1
| |
| * Add back booting check that existed prior to refcount code. We will improve ↵Scott Ullrich2011-01-071-1/+4
| | | | | | | | upon this next week.
| * Improve parse_config to not be recursive for no reason. This fixes some ↵Ermal2010-12-301-54/+52
| | | | | | | | strange cases of config lock being left held and blocking GUI.
| * Add some more safe belts and remove code that is commented from long time ↵Ermal2010-12-231-1/+4
| | | | | | | | now. Reported on http://forum.pfsense.org/index.php/topic,28202.15.html
| * nuke trailing carriage returnsScott Ullrich2010-12-221-1/+1
| |
| * No need to output 'Loading new configuration'. We already have a line ↵Scott Ullrich2010-12-181-3/+0
| | | | | | | | written out telling the user what we are doing
* | Merge remote branch 'mainline/master' into incVinicius Coque2010-12-141-22/+59
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: etc/inc/auth.inc etc/inc/config.lib.inc etc/inc/filter.inc etc/inc/gwlb.inc etc/inc/interfaces.inc etc/inc/pfsense-utils.inc etc/inc/pkg-utils.inc etc/inc/shaper.inc etc/inc/upgrade_config.inc etc/inc/xmlparse.inc usr/local/www/fbegin.inc
| * Do a fflush of file before closing and sync(2). Fix whitespace while here.Ermal2010-11-301-20/+21
| |
| * Use pfSense_sync()Scott Ullrich2010-11-301-3/+3
| |
| * Call sync after writing the file and before returning to continue processing.Scott Ullrich2010-11-301-18/+22
| |
| * Use product nameScott Ullrich2010-11-281-1/+1
| |
OpenPOWER on IntegriCloud