12 $this->render(
'index');
24 $header = $_POST[
'title'];
25 $text = $_POST[
'content'];
26 $usermail =
"mrecan06@hotmail.com";
28 $sql_insert_announcement=
"INSERT INTO announcements ( header, text)
30 ('$header', '$text')";
31 mysql_query($sql_insert_announcement) or die (mysql_error());
33 $last = mysql_insert_id();
35 $sql_insert_conf_announcement=
"INSERT INTO conference_announcement ( conferenceid, announcementid)
37 ('$confid', '$last')";
38 mysql_query($sql_insert_conf_announcement) or die (mysql_error());
55 $header = $_POST[
'title'];
56 $text = $_POST[
'content'];
58 $mails = mysql_query(
"SELECT * FROM users WHERE userid IN
59 (SELECT userid FROM conference_user_type WHERE conferenceid=$confid)");
61 while($row = mysql_fetch_array($mails))
64 $usermail = $row[
'email'];
65 Yii::import(
'application.extensions.phpmailer.JPhpMailer');
69 $mail->Host =
'smtp.googlemail.com:465';
70 $mail->SMTPSecure =
"ssl";
71 $mail->SMTPAuth =
true;
72 $mail->Username =
'jjjuk7@gmail.com';
73 $mail->Password =
'klizma23';
74 $mail->SetFrom(
'jjjuk7@gmail.com',
'HackedHard');
75 $mail->Subject = $header;
76 $mail->AltBody =
'To view the message, please use an HTML compatible email viewer!';
77 $mail->MsgHTML($text);
78 $mail->AddAddress($usermail,
'Hacked Hard');
94 $header = $_POST[
'title'];
95 $text = $_POST[
'content'];
97 $mails = mysql_query(
"SELECT * FROM users WHERE userid IN
98 (SELECT userid FROM conference_user_type WHERE conferenceid=$confid AND usertype=2)");
100 while($row = mysql_fetch_array($mails))
103 $usermail = $row[
'email'];
104 Yii::import(
'application.extensions.phpmailer.JPhpMailer');
108 $mail->Host =
'smtp.googlemail.com:465';
109 $mail->SMTPSecure =
"ssl";
110 $mail->SMTPAuth =
true;
111 $mail->Username =
'jjjuk7@gmail.com';
112 $mail->Password =
'klizma23';
113 $mail->SetFrom(
'jjjuk7@gmail.com',
'HackedHard');
114 $mail->Subject = $header;
115 $mail->AltBody =
'To view the message, please use an HTML compatible email viewer!';
116 $mail->MsgHTML($text);
117 $mail->AddAddress($usermail,
'Hacked Hard');
133 $header = $_POST[
'title'];
134 $text = $_POST[
'content'];
136 $mails = mysql_query(
"SELECT * FROM users WHERE userid IN
137 (SELECT userid FROM conference_user_type WHERE conferenceid=$confid AND usertype=3)");
139 while($row = mysql_fetch_array($mails))
142 $usermail = $row[
'email'];
143 Yii::import(
'application.extensions.phpmailer.JPhpMailer');
147 $mail->Host =
'smtp.googlemail.com:465';
148 $mail->SMTPSecure =
"ssl";
149 $mail->SMTPAuth =
true;
150 $mail->Username =
'jjjuk7@gmail.com';
151 $mail->Password =
'klizma23';
152 $mail->SetFrom(
'jjjuk7@gmail.com',
'HackedHard');
153 $mail->Subject = $header;
154 $mail->AltBody =
'To view the message, please use an HTML compatible email viewer!';
155 $mail->MsgHTML($text);
156 $mail->AddAddress($usermail,
'Hacked Hard');
172 $header = $_POST[
'title'];
173 $text = $_POST[
'content'];
175 $mails = mysql_query(
"SELECT * FROM users WHERE userid IN
176 (SELECT userid FROM conference_user_type WHERE conferenceid=$confid AND usertype=4)");
178 while($row = mysql_fetch_array($mails))
181 $usermail = $row[
'email'];
182 Yii::import(
'application.extensions.phpmailer.JPhpMailer');
186 $mail->Host =
'smtp.googlemail.com:465';
187 $mail->SMTPSecure =
"ssl";
188 $mail->SMTPAuth =
true;
189 $mail->Username =
'jjjuk7@gmail.com';
190 $mail->Password =
'klizma23';
191 $mail->SetFrom(
'jjjuk7@gmail.com',
'HackedHard');
192 $mail->Subject = $header;
193 $mail->AltBody =
'To view the message, please use an HTML compatible email viewer!';
194 $mail->MsgHTML($text);
195 $mail->AddAddress($usermail,
'Hacked Hard');