aboutsummaryrefslogtreecommitdiffstats
path: root/config/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'config/dashboard')
-rw-r--r--config/dashboard/dashboard.inc41
-rw-r--r--config/dashboard/dashboard.xml65
2 files changed, 0 insertions, 106 deletions
diff --git a/config/dashboard/dashboard.inc b/config/dashboard/dashboard.inc
deleted file mode 100644
index 61b5c501..00000000
--- a/config/dashboard/dashboard.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-function dashboard_install() {
- global $g, $config;
-
- $version = file_get_contents("/etc/version");
- if ($version[0] == "2") {
- echo "Skipping install on 2.0, package is redundant.";
- exit(1);
- } else {
- assign_privs();
-
- /* Copy files for backup. For some odd reason, mv alone does
- * not always result in the proper file being used. */
- mwexec("cp /usr/local/www/index.php /usr/local/www/index.php.before_dashboard");
- unlink("/usr/local/www/index.php");
- mwexec("cp /usr/local/www/diag_logs_filter.php /usr/local/www/diag_logs_filter.php.before_dashboard");
- mwexec("cp /usr/local/www/diag_logs_filter_dynamic.php /usr/local/www/diag_logs_filter_dynamic.php.before_dashboard");
- mwexec("tar xzvpUf /usr/local/pkg/widgets.tgz -C /");
- assign_privs();
- /* Clear the APC cache so that the updates to installed files will work. */
- sleep(5);
- apc_clear_cache();
- }
-}
-
-function assign_privs() {
- /* Fix permissions on replaced files */
- mwexec("chown root:wheel /usr/local/www/index.php");
- mwexec("chown root:wheel /usr/local/www/graph_cpu.php");
- mwexec("chown root:wheel /usr/local/www/stats.php");
- mwexec("chown root:wheel /usr/local/www/diag_logs_filter.php");
- mwexec("chown root:wheel /usr/local/www/diag_logs_filter_dynamic.php");
- mwexec("chmod ug+rw,o-w /usr/local/www/index.php");
- mwexec("chmod ug+rw,o-w /usr/local/www/graph_cpu.php");
- mwexec("chmod ug+rw,o-w /usr/local/www/stats.php");
- mwexec("chmod ug+rw,o-w /usr/local/www/diag_logs_filter.php");
- mwexec("chmod ug+rw,o-w /usr/local/www/diag_logs_filter_dynamic.php");
-}
-
-?> \ No newline at end of file
diff --git a/config/dashboard/dashboard.xml b/config/dashboard/dashboard.xml
deleted file mode 100644
index 5d8b59fc..00000000
--- a/config/dashboard/dashboard.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<!DOCTYPE packagegui SYSTEM "../schema/packages.dtd">
-<?xml-stylesheet type="text/xsl" href="../xsl/package.xsl"?>
-<packagegui>
- <copyright>
- <![CDATA[
-/* $Id$ */
-/* ========================================================================== */
-/*
- dashboard.xml
- part of pfSense (http://www.pfSense.com)
- Copyright (C) 2007 to whom it may belong
- All rights reserved.
-
- Based on m0n0wall (http://m0n0.ch/wall)
- Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
- All rights reserved.
- */
-/* ========================================================================== */
-/*
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
- OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
- */
-/* ========================================================================== */
- ]]>
- </copyright>
- <description>Dashboard package</description>
- <requirements>Describe your package requirements here</requirements>
- <faq>Currently there are no FAQ items provided.</faq>
- <name>dashboard</name>
- <version>0.8.8</version>
- <title>Dashboard</title>
- <include_file>/usr/local/pkg/dashboard.inc</include_file>
- <additional_files_needed>
- <prefix>/usr/local/pkg/</prefix>
- <chmod>077</chmod>
- <item>https://packages.pfsense.org/packages/config/dashboard/dashboard.inc</item>
- </additional_files_needed>
- <additional_files_needed>
- <prefix>/usr/local/pkg/</prefix>
- <chmod>077</chmod>
- <item>https://files.pfsense.org/packages/widgets.tgz</item>
- </additional_files_needed>
- <custom_php_install_command>
- dashboard_install();
- </custom_php_install_command>
-</packagegui>