[ previous ] [ next ] [ threads ]
 From:  Olivier Cochard <cochard at gmail dot com>
 To:  m0n0wall-dev <m0n0wall dash dev at lists dot m0n0 dot ch>
 Subject:  Why some functions use /etc/ in the place of the variable $g['etc_path'] in system.inc ?
 Date:  Thu, 20 Oct 2005 16:21:28 +0200
Hi all,
I'm try to learning FreeBSD and PHP by analysing the M0n0wall code.

And during the reading of the file "/etc/inc/system.inc" If found some
strange thing:

- The function system_timezone_configure() use this line:

exec("/usr/bin/tar xzfO /usr/share/zoneinfo.tgz " .
		escapeshellarg($timezone) . " > /etc/localtime");

- The Function system_reboot() use this line:

mwexec("nohup /etc/rc.reboot > /dev/null 2>&1 &");

Why this functions don't use the variable $g['etc_path'] in the place
of the fixed /etc/ ?