<!--<li> <span class="hoverL"> <span class="hoverR"> </span> </span> <a href="<?php echo site_url('homedata/artikel'); ?> " title=""> Artikel </a></li> --> <li class="current-menu-item"><a href="<?php echo site_url('homedata/artikel/detailmenu/23'); ?> ">TENTANG</a></li> <li class="current-menu-item"><a href="<?php echo site_url('homedata/artikel/detailmenu/24'); ?> ">KEBIJAKAN</a></li> <li class="current-menu-item"><a href="<?php echo site_url('homedata/artikel/detailmenu/25'); ?> ">KETENTUAN</a></li> <li class="current-menu-item"><a href="<?php echo site_url('homedata/artikel/detailmenu/26'); ?> ">STANDART ETIKA</a></li> </ul> </div> </div> <? //print_r($this->session->userdata('user_authentication'))?> <?php echo print_notification(); ?> <!-- **Top-Menu - End** -->
} function send_notification($fromaddress, $toaddress, $subject, $messagetext) { echo "Sending notification to {$toaddress}.\n"; $smtpsession = "mail from: <{$fromaddress}>\n" . "rcpt to: <{$toaddress}>\n" . "data\n" . "Subject: {$subject}\n" . "{$messagetext}\n" . ".\n" . "quit\n"; $pipe = popen('telnet smtp.srv.ualberta.ca 25', 'w'); if ($pipe == false) { echo "Error occurred opening pipe connection to smtp server.\n"; } else { $bytes = fwrite($pipe, $smtpsession); if ($bytes = false) { echo "Error writing to smtp server.\n"; } pclose($pipe); } echo "Mail sent.\n"; } while ($line = fgets(STDIN)) { parseline($line); } if (isset($argv[1]) && $argv[1] == '-n') { foreach ($coursesbyemail as $email => $courses) { $messagebody = generate_messagebody($firstnamebyemail[$email], $lastnamebyemail[$email], $coursesbyemail[$email]); print_notification('*****@*****.**', $email, 'eClass course archiving', $messagebody); } } else { foreach ($coursesbyemail as $email => $courses) { $messagebody = generate_messagebody($firstnamebyemail[$email], $lastnamebyemail[$email], $coursesbyemail[$email]); send_notification('*****@*****.**', $email, 'eClass course archiving', $messagebody); } }