// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // B O O T S T R A P /////////////////////////////////////////////////////////////////////////////// $bootstrap = getenv('CLEAROS_BOOTSTRAP') ? getenv('CLEAROS_BOOTSTRAP') : '/usr/clearos/framework/shared'; require_once $bootstrap . '/bootstrap.php'; /////////////////////////////////////////////////////////////////////////////// // D E P E N D E N C I E S /////////////////////////////////////////////////////////////////////////////// require clearos_app_base('base') . '/controllers/daemon.php'; /////////////////////////////////////////////////////////////////////////////// // C L A S S /////////////////////////////////////////////////////////////////////////////// /** * Airplay daemon controller. * * @category apps * @package airplay * @subpackage controllers * @author ClearFoundation <*****@*****.**> * @copyright 2015 ClearFoundation * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 3 or later * @link http://www.clearfoundation.com/docs/developer/apps/airplay/ */ class Server extends Daemon
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // B O O T S T R A P /////////////////////////////////////////////////////////////////////////////// $bootstrap = getenv('CLEAROS_BOOTSTRAP') ? getenv('CLEAROS_BOOTSTRAP') : '/usr/clearos/framework/shared'; require_once $bootstrap . '/bootstrap.php'; /////////////////////////////////////////////////////////////////////////////// // D E P E N D E N C I E S /////////////////////////////////////////////////////////////////////////////// require clearos_app_base('groups') . '/controllers/groups.php'; /////////////////////////////////////////////////////////////////////////////// // C L A S S /////////////////////////////////////////////////////////////////////////////// /** * Web Proxy policy controller. * * @category apps * @package web-proxy * @subpackage controllers * @author ClearFoundation <*****@*****.**> * @copyright 2011 ClearFoundation * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 3 or later * @link http://www.clearfoundation.com/docs/developer/apps/web_proxy/ */ class Policy extends Groups
/** * Squid constructor. */ public function __construct() { clearos_profile(__METHOD__, __LINE__); parent::__construct('squid'); $this->error_templates = clearos_app_base('web_proxy') . '/deploy/templates'; // Handle embedded lib/lib64 paths in configuration files //------------------------------------------------------- $lib = file_exists('/usr/lib64/squid') ? 'lib64' : 'lib'; if (clearos_version() >= 7) { $this->file_pam_auth = "/usr/{$lib}/squid/basic_pam_auth"; } else { $this->file_pam_auth = "/usr/{$lib}/squid/pam_auth"; } if (clearos_version() >= 7) { $this->file_squid_unix_group = "/usr/{$lib}/squid/ext_unix_group_acl"; } else { $this->file_squid_unix_group = "/usr/{$lib}/squid/squid_unix_group"; } }
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // B O O T S T R A P /////////////////////////////////////////////////////////////////////////////// $bootstrap = getenv('CLEAROS_BOOTSTRAP') ? getenv('CLEAROS_BOOTSTRAP') : '/usr/clearos/framework/shared'; require_once $bootstrap . '/bootstrap.php'; /////////////////////////////////////////////////////////////////////////////// // D E P E N D E N C I E S /////////////////////////////////////////////////////////////////////////////// require clearos_app_base('network') . '/controllers/network_check.php'; /////////////////////////////////////////////////////////////////////////////// // C L A S S /////////////////////////////////////////////////////////////////////////////// /** * PPTP Server network check controller. * * @category apps * @package pptpd * @subpackage controllers * @author ClearFoundation <*****@*****.**> * @copyright 2012 ClearFoundation * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 3 or later * @link http://www.clearfoundation.com/docs/developer/apps/pptpd/ */ class Network extends Network_Check