diff options
author | doktornotor <notordoktor@gmail.com> | 2015-08-11 02:03:24 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-08-11 02:03:24 +0200 |
commit | 03762f564785026f991fbcabf6b66279c510fb92 (patch) | |
tree | ca3b9ccb1953fc205d455287f1492791d06ce490 /config/notes | |
parent | 268764e87ab8d2371542d8676f3bec3a4d436ce4 (diff) | |
download | pfsense-packages-03762f564785026f991fbcabf6b66279c510fb92.tar.gz pfsense-packages-03762f564785026f991fbcabf6b66279c510fb92.tar.bz2 pfsense-packages-03762f564785026f991fbcabf6b66279c510fb92.zip |
notes - code cleanup round two
- Fix copyright header
- Remove tons of useless garbage
Diffstat (limited to 'config/notes')
-rw-r--r-- | config/notes/notes.inc | 62 |
1 files changed, 4 insertions, 58 deletions
diff --git a/config/notes/notes.inc b/config/notes/notes.inc index 29b51396..ddc54a3f 100644 --- a/config/notes/notes.inc +++ b/config/notes/notes.inc @@ -1,14 +1,11 @@ <?php -/* $Id$ */ -/* -/* ========================================================================== */ /* notes.inc + part of pfSense (https://www.pfSense.org/) Copyright (C) 2008 Mark J Crane + Copyright (C) 2015 ESF, LLC All rights reserved. -*/ -/* ========================================================================== */ -/* + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -30,62 +27,11 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -function notes_sync_package() { - - //global $config; - -} - - -function notes_install_command() { - - global $config; - conf_mount_rw(); - config_lock(); - - if (!is_dir('/usr/local/www/packages/')) { - exec("mkdir /usr/local/www/packages/"); - } - - //if (!is_dir('/usr/local/www/packages/notes/')) { - // exec("mkdir /usr/local/www/packages/notes/"); - //} - - //rename PHP files from .tmp to .php - //exec("cp /tmp/notes.tmp /usr/local/www/packages/phpservice/notes.php"); - //unlink_if_exists("/tmp/notes.tmp"); - - //write_config(); - - //write_rcfile(array( - // "file" => "notes.sh", - // "start" => "/usr/local/bin/php /usr/local/pkg/notes.php", - // "stop" => "rm /tmp/phpmonitor.pid" - // ) - //); - - notes_sync_package(); - - //if (pkg_is_service_running('notes')) { - //documentation purposes - //} - - conf_mount_ro(); - config_unlock(); - -} - - function notes_deinstall_command() { - conf_mount_rw(); - config_lock(); unlink_if_exists("/usr/local/pkg/notes.xml"); unlink_if_exists("/usr/local/pkg/notes.inc"); conf_mount_ro(); - config_unlock(); - } -?>
\ No newline at end of file +?> |