Menu

[r11]: / includes / notification.class.php  Maximize  Restore  History

Download this file

84 lines (69 with data), 2.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/*
** Application name: phpCollab
** Last Edit page: 26/01/2004
** Path by root: ../includes/notification.class.php
** Authors: Ceam / Fullo
**
** =============================================================================
**
** phpCollab - Project Managment
**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: notification.class.php
**
** DESC: Screen: notification class
**
** HISTORY:
** 26/01/2004 - added file comment
** 03/08/2005 - added language file for phpMailer
** -----------------------------------------------------------------------------
** TO-DO:
**
**
** =============================================================================
*/
require("../includes/phpmailer/class.phpmailer.php");
class notification extends phpmailer
{
function notification()
{
global $strings,$root,$notificationMethod,$lang;
if (file_exists("../includes/phpmailer/language/phpmailer.lang-$lang.php"))
{
$phpmailer_lang = $lang;
}
else {
$phpmailer_lang = 'en';
}
$this->Mailer = $notificationMethod;
$this->PluginDir = "../includes/phpmailer/";
$this->SetLanguage($phpmailer_lang, "../includes/phpmailer/language/");
if ($this->Mailer == "smtp")
{
$this->Host = SMTPSERVER;
$this->Username = SMTPLOGIN;
$this->Password = SMTPPASSWORD;
}
$this->footer = "--\n".$strings["noti_foot1"]."\n\n".$strings["noti_foot2"]."\n$root/";
}
function getUserinfo($idUser,$type)
{
$tmpquery = "WHERE mem.id = '$idUser'";
$detailUser = new request();
$detailUser->openMembers($tmpquery);
if ($type == "from")
{
$this->From = $detailUser->mem_email_work[0];
$this->FromName = $detailUser->mem_name[0];
}
if ($type == "to")
{
$this->AddAddress($detailUser->mem_email_work[0], $detailUser->mem_name[0]);
}
}
}
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.