Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
32b40db8
Commit
32b40db8
authored
May 28, 2007
by
tbrehm
Browse files
Added getmail module.
parent
62a11081
Changes
18
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/form/mail_get.tform.php
0 → 100644
View file @
32b40db8
<?php
/*
Form Definition
Tabledefinition
Datatypes:
- INTEGER (Forces the input to Int)
- DOUBLE
- CURRENCY (Formats the values to currency notation)
- VARCHAR (no format check, maxlength: 255)
- TEXT (no format check)
- DATE (Dateformat, automatic conversion to timestamps)
Formtype:
- TEXT (Textfield)
- TEXTAREA (Textarea)
- PASSWORD (Password textfield, input is not shown when edited)
- SELECT (Select option field)
- RADIO
- CHECKBOX
- CHECKBOXARRAY
- FILE
VALUE:
- Wert oder Array
Hint:
The ID field of the database table is not part of the datafield definition.
The ID field must be always auto incement (int or bigint).
*/
$form
[
"title"
]
=
"Get Email"
;
$form
[
"description"
]
=
""
;
$form
[
"name"
]
=
"mail_get"
;
$form
[
"action"
]
=
"mail_get_edit.php"
;
$form
[
"db_table"
]
=
"mail_get"
;
$form
[
"db_table_idx"
]
=
"mailget_id"
;
$form
[
"db_history"
]
=
"yes"
;
$form
[
"tab_default"
]
=
"mailget"
;
$form
[
"list_default"
]
=
"mail_get_list.php"
;
$form
[
"auth"
]
=
'yes'
;
// yes / no
$form
[
"auth_preset"
][
"userid"
]
=
0
;
// 0 = id of the user, > 0 id must match with id of current user
$form
[
"auth_preset"
][
"groupid"
]
=
0
;
// 0 = default groupid of the user, > 0 id must match with groupid of current user
$form
[
"auth_preset"
][
"perm_user"
]
=
'riud'
;
//r = read, i = insert, u = update, d = delete
$form
[
"auth_preset"
][
"perm_group"
]
=
'riud'
;
//r = read, i = insert, u = update, d = delete
$form
[
"auth_preset"
][
"perm_other"
]
=
''
;
//r = read, i = insert, u = update, d = delete
$form
[
"tabs"
][
'mailget'
]
=
array
(
'title'
=>
"Get email"
,
'width'
=>
100
,
'template'
=>
"templates/mail_get_edit.htm"
,
'fields'
=>
array
(
##################################
# Begin Datatable fields
##################################
'server_id'
=>
array
(
'datatype'
=>
'INTEGER'
,
'formtype'
=>
'SELECT'
,
'default'
=>
''
,
'datasource'
=>
array
(
'type'
=>
'SQL'
,
'querystring'
=>
'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name'
,
'keyfield'
=>
'server_id'
,
'valuefield'
=>
'server_name'
),
'value'
=>
''
),
'type'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'SELECT'
,
'default'
=>
''
,
'value'
=>
array
(
'pop3'
=>
'POP3'
,
'imap'
=>
'IMAP'
)
),
'source_server'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'TEXT'
,
'validators'
=>
array
(
0
=>
array
(
'type'
=>
'NOTEMPTY'
,
'errmsg'
=>
'source_server_error_isempty'
),
),
'default'
=>
''
,
'value'
=>
''
,
'width'
=>
'30'
,
'maxlength'
=>
'255'
),
'source_username'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'TEXT'
,
'validators'
=>
array
(
0
=>
array
(
'type'
=>
'NOTEMPTY'
,
'errmsg'
=>
'source_username_error_isempty'
),
),
'default'
=>
''
,
'value'
=>
''
,
'width'
=>
'30'
,
'maxlength'
=>
'255'
),
'source_password'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'TEXT'
,
'validators'
=>
array
(
0
=>
array
(
'type'
=>
'NOTEMPTY'
,
'errmsg'
=>
'source_password_error_isempty'
),
),
'default'
=>
''
,
'value'
=>
''
,
'width'
=>
'30'
,
'maxlength'
=>
'255'
),
'source_delete'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'CHECKBOX'
,
'default'
=>
'y'
,
'value'
=>
array
(
0
=>
'n'
,
1
=>
'y'
)
),
'destination'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'SELECT'
,
'default'
=>
''
,
'datasource'
=>
array
(
'type'
=>
'SQL'
,
'querystring'
=>
'SELECT email FROM mail_user WHERE {AUTHSQL} ORDER BY email'
,
'keyfield'
=>
'email'
,
'valuefield'
=>
'email'
),
'validators'
=>
array
(
0
=>
array
(
'type'
=>
'ISEMAIL'
,
'errmsg'
=>
'destination_error_isemail'
),
),
'value'
=>
''
),
'active'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'CHECKBOX'
,
'default'
=>
'y'
,
'value'
=>
array
(
0
=>
'n'
,
1
=>
'y'
)
),
##################################
# ENDE Datatable fields
##################################
)
);
?>
\ No newline at end of file
interface/web/mail/lib/lang/en_mail_get.lng
0 → 100644
View file @
32b40db8
<?php
$wb
[
"server_id_txt"
]
=
'server_id'
;
$wb
[
"type_txt"
]
=
'type'
;
$wb
[
"source_server_txt"
]
=
'source_server'
;
$wb
[
"source_username_txt"
]
=
'source_username'
;
$wb
[
"source_password_txt"
]
=
'source_password'
;
$wb
[
"source_delete_txt"
]
=
'source_delete'
;
$wb
[
"destination_txt"
]
=
'destination'
;
$wb
[
"active_txt"
]
=
'active'
;
$wb
[
"btn_save_txt"
]
=
'Save'
;
$wb
[
"btn_cancel_txt"
]
=
'Cancel'
;
?>
\ No newline at end of file
interface/web/mail/lib/lang/en_mail_get_list.lng
0 → 100644
View file @
32b40db8
<?php
$wb
[
"list_head_txt"
]
=
'mail_get'
;
$wb
[
"active_txt"
]
=
'active'
;
$wb
[
"server_id_txt"
]
=
'server_id'
;
$wb
[
"source_server_txt"
]
=
'source_server'
;
$wb
[
"source_username_txt"
]
=
'source_username'
;
$wb
[
"destination_txt"
]
=
'destination'
;
$wb
[
"page_txt"
]
=
'Page'
;
$wb
[
"page_of_txt"
]
=
'of'
;
$wb
[
"page_next_txt"
]
=
'Next'
;
$wb
[
"page_back_txt"
]
=
'Back'
;
$wb
[
"delete_txt"
]
=
'Delete'
;
$wb
[
"filter_txt"
]
=
'Filter'
;
?>
\ No newline at end of file
interface/web/mail/lib/module.conf.php
View file @
32b40db8
<?php
<?php
$module
=
array
(
'name'
=>
'mail'
,
'title'
=>
'Email'
,
...
...
@@ -112,12 +112,12 @@ $module = array (
array
(
0
=>
array
(
'title'
=>
'Fetchmail
Accounts
'
,
'title'
=>
'Fetchmail'
,
'target'
=>
'content'
,
'link'
=>
'mail/
fetch
mail_list.php'
,
'link'
=>
'mail/mail
_get
_list.php'
,
),
),
),
),
)
)
?>
\ No newline at end of file
interface/web/mail/list/mail_get.list.php
0 → 100644
View file @
32b40db8
<?php
/*
Datatypes:
- INTEGER
- DOUBLE
- CURRENCY
- VARCHAR
- TEXT
- DATE
*/
// Name of the list
$liste
[
"name"
]
=
"mail_get"
;
// Database table
$liste
[
"table"
]
=
"mail_get"
;
// Index index field of the database table
$liste
[
"table_idx"
]
=
"mailget_id"
;
// Search Field Prefix
$liste
[
"search_prefix"
]
=
"search_"
;
// Records per page
$liste
[
"records_per_page"
]
=
15
;
// Script File of the list
$liste
[
"file"
]
=
"mail_get_list.php"
;
// Script file of the edit form
$liste
[
"edit_file"
]
=
"mail_get_edit.php"
;
// Script File of the delete script
$liste
[
"delete_file"
]
=
"mail_get_del.php"
;
// Paging Template
$liste
[
"paging_tpl"
]
=
"templates/paging.tpl.htm"
;
// Enable auth
$liste
[
"auth"
]
=
"yes"
;
/*****************************************************
* Suchfelder
*****************************************************/
$liste
[
"item"
][]
=
array
(
'field'
=>
"active"
,
'datatype'
=>
"VARCHAR"
,
'formtype'
=>
"SELECT"
,
'op'
=>
"="
,
'prefix'
=>
""
,
'suffix'
=>
""
,
'width'
=>
""
,
'value'
=>
array
(
'y'
=>
"Yes"
,
'n'
=>
"No"
));
$liste
[
"item"
][]
=
array
(
'field'
=>
"server_id"
,
'datatype'
=>
"VARCHAR"
,
'formtype'
=>
"SELECT"
,
'op'
=>
"like"
,
'prefix'
=>
"%"
,
'suffix'
=>
"%"
,
'datasource'
=>
array
(
'type'
=>
'SQL'
,
'querystring'
=>
'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name'
,
'keyfield'
=>
'server_id'
,
'valuefield'
=>
'server_name'
),
'width'
=>
""
,
'value'
=>
""
);
$liste
[
"item"
][]
=
array
(
'field'
=>
"source_server"
,
'datatype'
=>
"VARCHAR"
,
'formtype'
=>
"TEXT"
,
'op'
=>
"like"
,
'prefix'
=>
"%"
,
'suffix'
=>
"%"
,
'width'
=>
""
,
'value'
=>
""
);
$liste
[
"item"
][]
=
array
(
'field'
=>
"source_username"
,
'datatype'
=>
"VARCHAR"
,
'formtype'
=>
"TEXT"
,
'op'
=>
"like"
,
'prefix'
=>
"%"
,
'suffix'
=>
"%"
,
'width'
=>
""
,
'value'
=>
""
);
$liste
[
"item"
][]
=
array
(
'field'
=>
"destination"
,
'datatype'
=>
"VARCHAR"
,
'formtype'
=>
"TEXT"
,
'op'
=>
"like"
,
'prefix'
=>
"%"
,
'suffix'
=>
"%"
,
'width'
=>
""
,
'value'
=>
""
);
?>
\ No newline at end of file
interface/web/mail/mail_get_del.php
0 → 100644
View file @
32b40db8
<?php
/*
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* 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.
* Neither the name of ISPConfig nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR CONTRIBUTORS 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.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file
=
"list/mail_get.list.php"
;
$tform_def_file
=
"form/mail_get.tform.php"
;
/******************************************
* End Form configuration
******************************************/
require_once
(
'../../lib/config.inc.php'
);
require_once
(
'../../lib/app.inc.php'
);
// Checke Berechtigungen für Modul
if
(
!
stristr
(
$_SESSION
[
"s"
][
"user"
][
"modules"
],
$_SESSION
[
"s"
][
"module"
][
"name"
]))
{
header
(
"Location: ../index.php"
);
exit
;
}
$app
->
uses
(
"tform_actions"
);
$app
->
tform_actions
->
onDelete
();
?>
\ No newline at end of file
interface/web/mail/mail_get_edit.php
0 → 100644
View file @
32b40db8
<?php
/*
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* 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.
* Neither the name of ISPConfig nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR CONTRIBUTORS 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.
*/
/******************************************
* Begin Form configuration
******************************************/
$tform_def_file
=
"form/mail_get.tform.php"
;
/******************************************
* End Form configuration
******************************************/
require_once
(
'../../lib/config.inc.php'
);
require_once
(
'../../lib/app.inc.php'
);
// Checking module permissions
if
(
!
stristr
(
$_SESSION
[
"s"
][
"user"
][
"modules"
],
$_SESSION
[
"s"
][
"module"
][
"name"
]))
{
header
(
"Location: ../index.php"
);
exit
;
}
// Loading classes
$app
->
uses
(
'tpl,tform,tform_actions'
);
$app
->
load
(
'tform_actions'
);
class
page_action
extends
tform_actions
{
}
$page
=
new
page_action
;
$page
->
onLoad
();
?>
\ No newline at end of file
interface/web/mail/mail_get_list.php
0 → 100644
View file @
32b40db8
<?php
require_once
(
'../../lib/config.inc.php'
);
require_once
(
'../../lib/app.inc.php'
);
/******************************************
* Begin Form configuration
******************************************/
$list_def_file
=
"list/mail_get.list.php"
;
/******************************************
* End Form configuration
******************************************/
// Checking module permissions
if
(
!
stristr
(
$_SESSION
[
"s"
][
"user"
][
"modules"
],
$_SESSION
[
"s"
][
"module"
][
"name"
]))
{
header
(
"Location: ../index.php"
);
exit
;
}
$app
->
uses
(
'listform_actions'
);
// Limit the results to alias domains
// $app->listform_actions->SQLExtWhere = "";
$app
->
listform_actions
->
onLoad
();
?>
\ No newline at end of file
interface/web/mail/templates/mail_get_edit.htm
0 → 100644
View file @
32b40db8
<table
width=
"500"
border=
"0"
cellspacing=
"0"
cellpadding=
"2"
>
<tr>
<td
class=
"frmText11"
>
{tmpl_var name='server_id_txt'}:
</td>
<td
class=
"frmText11"
>
<select
name=
"server_id"
class=
"text"
>
{tmpl_var name='server_id'}
</select>
</td>
</tr>
<tr>
<td
class=
"frmText11"
>
{tmpl_var name='type_txt'}:
</td>
<td
class=
"frmText11"
>
<select
name=
"type"
class=
"text"
>
{tmpl_var name='type'}
</select>
</td>
</tr>
<tr>
<td
class=
"frmText11"
>
{tmpl_var name='source_server_txt'}:
</td>
<td
class=
"frmText11"
><input
name=
"source_server"
type=
"text"
class=
"text"
value=
"{tmpl_var name='source_server'}"
size=
"30"
maxlength=
"255"
></td>
</tr>
<tr>
<td
class=
"frmText11"
>
{tmpl_var name='source_username_txt'}:
</td>
<td
class=
"frmText11"
><input
name=
"source_username"
type=
"text"
class=
"text"
value=
"{tmpl_var name='source_username'}"
size=
"30"
maxlength=
"255"
></td>
</tr>
<tr>
<td
class=
"frmText11"
>
{tmpl_var name='source_password_txt'}:
</td>
<td
class=
"frmText11"
><input
name=
"source_password"
type=
"text"
class=
"text"
value=
"{tmpl_var name='source_password'}"
size=
"30"
maxlength=
"255"
></td>
</tr>
<tr>
<td
class=
"frmText11"
>
{tmpl_var name='source_delete_txt'}:
</td>
<td
class=
"frmText11"
>
{tmpl_var name='source_delete'}
</td>
</tr>
<tr>
<td
class=
"frmText11"
>
{tmpl_var name='destination_txt'}:
</td>
<td
class=
"frmText11"
>
<select
name=
"destination"
class=
"text"
>
{tmpl_var name='destination'}
</select>
</td>
</tr>
<tr>
<td
class=
"frmText11"
>
{tmpl_var name='active_txt'}:
</td>
<td
class=
"frmText11"
>
{tmpl_var name='active'}
</td>
</tr>
<tr>
<td
class=
"frmText11"
>
</td>
<td
class=
"frmText11"
>
</td>
</tr>
<tr>
<td>
</td>
<td><input
name=
"btn_save"
type=
"button"
class=
"button"
value=
"{tmpl_var name='btn_save_txt'}"
onClick=
"submitForm('pageForm','mail/mail_get_edit.php');"
><div
class=
"buttonEnding"
></div>
<input
name=
"btn_cancel"
type=
"button"
class=
"button"
value=
"{tmpl_var name='btn_cancel_txt'}"
onClick=
"loadContent('mail/mail_get_list.php');"
><div
class=
"buttonEnding"
></div>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"id"
value=
"{tmpl_var name='id'}"
>
\ No newline at end of file
interface/web/mail/templates/mail_get_list.htm
0 → 100644
View file @
32b40db8
<div
class=
"frmTextHead"
><tmpl_var
name=
"list_head_txt"
></div><br
/>
<input
type=
"button"
value=
"{tmpl_var name="
add_new_record_txt
"}"
class=
"button"
onClick=
"loadContent('mail/mail_get_edit.php');"
/><div
class=
"buttonEnding"
></div><br
/><br
/>
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"4"
class=
"listTable"
>
<tr>
<td
class=
"tblHead"
><tmpl_var
name=
"active_txt"
></td>
<td
class=
"tblHead"
><tmpl_var
name=
"server_id_txt"
></td>
<td
class=
"tblHead"
><tmpl_var
name=
"source_server_txt"
></td>
<td
class=
"tblHead"
><tmpl_var
name=
"source_username_txt"
></td>
<td
class=
"tblHead"
><tmpl_var
name=
"destination_txt"
></td>
<td
class=
"tblHead"
>
</td>
</tr>
<tr>
<td
class=
"frmText11"
><select
name=
"search_active"
onChange=
"submitForm('pageForm','mail/mail_get_list.php');"
>
{tmpl_var name='search_active'}
</select></td>
<td
class=
"frmText11"
><select
name=
"search_server_id"
onChange=
"submitForm('pageForm','mail/mail_get_list.php');"
>
{tmpl_var name='search_server_id'}
</select></td>
<td
class=
"frmText11"
><input
type=
"text"
name=
"search_source_server"
value=
"{tmpl_var name='search_source_server'}"
class=
"text"
/></td>
<td
class=
"frmText11"
><input
type=
"text"
name=
"search_source_username"
value=
"{tmpl_var name='search_source_username'}"
class=
"text"
/></td>
<td
class=
"frmText11"
><input
type=
"text"
name=
"search_destination"
value=
"{tmpl_var name='search_destination'}"
class=
"text"
/></td>
<td
class=
"frmText11"
align=
"right"
><input
name=
"Filter"
type=
"button"
id=
"Filter"
value=
"{tmpl_var name="
filter_txt
"}"
class=
"button"
onClick=
"submitForm('pageForm','mail/mail_get_list.php');"
><div
class=
"buttonEnding"
></div></td>
</tr>
<tmpl_loop
name=
"records"
>
<tr
bgcolor=
"{tmpl_var name="
bgcolor
"}"
>
<td
class=
"frmText11"
><a
href=
"#"
onClick=
"loadContent('mail/mail_get_edit.php?id={tmpl_var name='id'}');"
class=
"frmText11"
>
{tmpl_var name="active"}
</a></td>
<td
class=
"frmText11"
><a
href=
"#"
onClick=
"loadContent('mail/mail_get_edit.php?id={tmpl_var name='id'}');"
class=
"frmText11"
>
{tmpl_var name="server_id"}
</a></td>
<td
class=
"frmText11"
><a
href=
"#"
onClick=
"loadContent('mail/mail_get_edit.php?id={tmpl_var name='id'}');"
class=
"frmText11"
>
{tmpl_var name="source_server"}
</a></td>
<td
class=
"frmText11"
><a
href=
"#"
onClick=
"loadContent('mail/mail_get_edit.php?id={tmpl_var name='id'}');"
class=
"frmText11"
>
{tmpl_var name="source_username"}
</a></td>
<td
class=
"frmText11"
><a
href=
"#"
onClick=
"loadContent('mail/mail_get_edit.php?id={tmpl_var name='id'}');"
class=
"frmText11"
>
{tmpl_var name="destination"}
</a></td>
<td
class=
"frmText11"
align=
"right"
>
[
<a
href=
"javascript: del_record('mail/mail_get_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}');"
class=
"frmText11"
>
{tmpl_var name='delete_txt'}
</a>
]
</td>
</tr>
</tmpl_loop>
<tr>
<td
colspan=
"6"
height=
"40"
align=
"center"
class=
"tblFooter"
><tmpl_var
name=
"paging"
></td>
</tr>
</table>
\ No newline at end of file
server/conf/getmail.conf.master
0 → 100644
View file @
32b40db8
[options]
message_log = /var/log/getmail.log
delete = {DELETE}
[retriever]
type = {TYPE}
server = {SERVER}
username = {USERNAME}
password = {PASSWORD}
[destination]
type = MDA_external
path = /usr/sbin/sendmail
arguments = ("-bm", "{DESTINATION}")
unixfrom = true
\ No newline at end of file
server/lib/app.inc.php
View file @
32b40db8
...
...
@@ -29,8 +29,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
class
app
{
var
modules
=
array
();
var
plugins
=
array
();
var
$loaded_
modules
=
array
();
var
$loaded_
plugins
=
array
();
function
app
()
{
...
...
@@ -59,18 +59,19 @@ class app {
}
}
function
load
(
$files
)
{
global
$conf
;
$fl
=
explode
(
','
,
$files
);
if
(
is_array
(
$fl
))
{
foreach
(
$fl
as
$file
)
{
if
(
is_file
(
$conf
[
'classpath'
]
.
"/"
.
$classname
.
".inc.php"
)
&&
!
is_link
(
$conf
[
'classpath'
]
.
"/"
.
$classname
.
".inc.php"
))
{
include_once
(
$conf
[
'classpath'
]
.
"/"
.
$file
.
".inc.php"
);
}
}
}
function
load
(
$classes
)
{
global
$conf
;
$cl
=
explode
(
','
,
$classes
);
if
(
is_array
(
$cl
))
{
foreach
(
$cl
as
$classname
)
{
if
(
is_file
(
$conf
[
'classpath'
]
.
"/"
.
$classname
.
".inc.php"
)
&&
!
is_link
(
$conf
[
'classpath'
]
.
"/"
.
$classname
.
".inc.php"
))
{
include_once
(
$conf
[
'classpath'
]
.
"/"
.
$classname
.
".inc.php"
);
}
else
{
die
(
'Unable to load: '
.
$conf
[
'classpath'
]
.
"/"
.
$classname
.
".inc.php"
);
}
}
}
}
/*
...
...
@@ -84,19 +85,18 @@ class app {
global
$conf
;
if
(
$priority
>=
$conf
[
"log_priority"
])
{
if
(
is_writable
(
$conf
[
"log_file"
]))
{
//if (is_writable($conf["log_file"])) {
if
(
!
$fp
=
fopen
(
$conf
[
"log_file"
],
"a"
))
{