Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
98d20fec
Commit
98d20fec
authored
Mar 31, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor notices to keep the model more together
parent
dc987699
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
notices.growl.class
src/etc/inc/notices.growl.class
+0
-0
notices.inc
src/etc/inc/notices.inc
+4
-5
notices.sasl.inc
src/etc/inc/notices.sasl.inc
+0
-0
notices.smtp.inc
src/etc/inc/notices.smtp.inc
+0
-0
No files found.
src/etc/inc/growl.class
→
src/etc/inc/
notices.
growl.class
View file @
98d20fec
File moved
src/etc/inc/notices.inc
View file @
98d20fec
...
...
@@ -30,6 +30,10 @@
require_once
(
"globals.inc"
);
require_once
(
"led.inc"
);
require_once
(
"util.inc"
);
require_once
(
"notices.growl.class"
);
require_once
(
"notices.sasl.inc"
);
require_once
(
"notices.smtp.inc"
);
/****f* notices/file_notice
* NAME
...
...
@@ -115,7 +119,6 @@ function get_notices($category = 'all')
******/
function
close_notice
(
$id
)
{
require_once
(
"util.inc"
);
/* soekris */
if
(
file_exists
(
"/dev/led/error"
))
...
...
@@ -243,8 +246,6 @@ function notify_via_smtp($message, $force = false) {
function
send_smtp_message
(
$message
,
$subject
=
"(no subject)"
)
{
global
$config
,
$g
;
require_once
(
"sasl.inc"
);
require_once
(
"smtp.inc"
);
if
(
!
$config
[
'notifications'
][
'smtp'
][
'ipaddress'
])
return
;
...
...
@@ -303,7 +304,6 @@ function send_smtp_message($message, $subject = "(no subject)") {
* returns true if message was sent
******/
function
notify_via_growl
(
$message
,
$force
=
false
)
{
require_once
(
"growl.class"
);
global
$config
,
$g
;
if
(
isset
(
$config
[
'notifications'
][
'growl'
][
'disable'
])
&&
!
$force
)
...
...
@@ -342,7 +342,6 @@ function notify_via_growl($message, $force=false) {
* none
******/
function
register_via_growl
()
{
require_once
(
"growl.class"
);
global
$config
;
$growl_ip
=
$config
[
'notifications'
][
'growl'
][
'ipaddress'
];
$growl_password
=
$config
[
'notifications'
][
'growl'
][
'password'
];
...
...
src/etc/inc/sasl.inc
→
src/etc/inc/
notices.
sasl.inc
View file @
98d20fec
File moved
src/etc/inc/smtp.inc
→
src/etc/inc/
notices.
smtp.inc
View file @
98d20fec
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment