recipient = $to_mail; $this->html = $mailhtml; $this->text = $mailtext; $this->subject = $subject; if(empty($this->recipient)) $this->error .= '

Keine Empfängeradresse angegeben.

'; if(empty($this->subject)) $this->error .= '

Keinen Betreff angegeben.

'; if(empty($this->html) && empty($this->text)) $this->error .= '

Keinen Inhalt angegeben.

'; if (is_file("./_module/phpMailer/smtp.config.php")) require_once ("./_module/phpMailer/smtp.config.php"); else{ if(empty($from_mail) || empty($from_name)) $this->error .= "

Konnte SMTP-Parameter nicht lesen & keine Absenderdaten definiert.

"; $this->sendername = $from_name; $this->sendermail = $from_mail; $this->smtp = false; } if(empty($this->error)) $this->sendMail(); } */ /* Prüfung der SMTP-Config, Versenden der Mail, gibt true oder Error zurück */ public static function sendMail($to_mail = null, $subject = "", $mailhtml = "", $charset = "iso-8859-1", $bcc = null, $attachment = null){ if(!isset($to_mail)) $ret = "

Keine Empfängeradresse vorhanden.

"; if(is_file("./_module/phpMailer/smtp.config.php")) require_once ("./_module/phpMailer/smtp.config.php"); else $ret = "

Keine SMTP-Daten vorhanden.

"; $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = _SmtpServer; $mail->Port = _SmtpPort; $mail->SMTPAuth = _SmtpAuth; $mail->Username = _SmtpBenutzername; $mail->Password = _SmtpPasswort; $mail->From = _SmtpEmail; $mail->FromName = _SmtpName; $mail->Subject = $subject; $mail->CharSet = $charset; if(!is_array($to_mail)) $mail->AddAddress($to_mail); else while(list($index, $val) = each($to_mail)){ $mail->AddAddress($val['mail']); } #$mail->AddCC($cc); #$mail->AltBody = "Bitte benutzen Sie einen HTML unterstützenden E-Mail Client."; if(isset($bcc)){ if(is_array($bcc)){ while(list($key, $address) = each($bcc)){ $mail->AddBCC($address); } }else $mail->AddBCC($bcc); } $mail->MsgHTML($mailhtml); if(isset($attachment)) { while(list($key, $val) = each($attachment)){ // $att = array( // "FileName"=>$val['Name'], // "Content-Type"=>"automatic/name", // "Disposition"=>"attachment" // ); // $email_message->AddFilePart($att); // unlink($val['Name']); $mail->AddAttachment($val['Path'], $val['Name']); } } if(!$mail->Send()) { if(isset($ret)) return $ret; return false; }else{ return true; } } } ?> <? $tmp_titel_string = ""; $tmp_titel_name = ""; ?><? $file_str = "menue_".$act_langid.".xml"; if(file_exists("index/".$file_str)){ $file = "index/".$file_str; }else{ if(file_exists("index/menue.xml")){ $file = "index/menue.xml"; } } if (!($fp = fopen($file, "r"))) { die("could not open XML input for title"); } $data = fread($fp, filesize($file)); fclose($fp); if( $_ISO != "UTF-8" ){ $xml_parser = xml_parser_create("iso-8859-1"); @xml_parser_set_option($xml_parser, XML_OPTION_TARGET_ENCODING, "iso-8859-1"); }else{ $xml_parser = xml_parser_create(); } xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($xml_parser, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct($xml_parser, $data, $vals, $index); xml_parser_free($xml_parser); $if_open = false; $notfoundcount = 0; while($notfoundcount < 2){ if($notfoundcount >= 1){ //mid nicht gefunden Startseite setzen $_GET["mid"] = null; } for($i=1;$i<count($vals);$i++){ if(empty($_GET["mid"])){ if($vals[$i]["tag"]=="START_ID"){ $_GET[mid]=str_replace("\n","",$vals[$i]["value"]); $HTTP_GET_VARS["mid"] = $_GET["mid"]; $mid = $_GET["mid"]; global $mid; } } if($vals[$i]["tag"]=="MENUEPUNKT"){ if($vals[$i]["type"]=="open"){ //status 0 muss abgefragt werden, da nichtffentliche seiten in der xml sind nur keine .tpl haben if($vals[$i]["attributes"]["MID"] === $_GET["mid"] AND $vals[$i]["attributes"]["STATUS"] != "0" ){ $if_open = true; $notfoundcount++; } } } if($if_open){ if($vals[$i]["tag"]=="METATITLE"){ if($vals[$i]["value"] != ""){ $tmp_titel_name = $vals[$i]["value"]; } break; } if($vals[$i]["tag"]=="NAME"){ $tmp_titel_name = $vals[$i]["value"]; } } } $notfoundcount++; } if( @$TITLEvalue[$act_langid] != "" ){ $tmp_titel_string = $tmp_titel_name . " - " . htmlspecialchars($TITLEvalue[$act_langid]); }else{ $tmp_titel_string = $tmp_titel_name; } // um den Portaltitel zu ueberscheiben, zB gn-online - einzelnen Artikeln if(file_exists("index/index_differentportaltitle.inc.php")){ include_once "index/index_differentportaltitle.inc.php"; } echo $tmp_titel_string; ?> 0){ $_SESSION["GROUP"] = $GROUP; } } }else{ if( $_SESSION["LC"]=="TR" ){ $login_info = '
Üye girişiniz gerçekleşmemiştir!
'; }else{ $login_info = '
Sie konnten nicht angemeldet werden, bitte überprüfen Sie Ihre Login Daten. Sie können mit Eingabe Ihrer E-Mailadresse Ihre Zugangsdaten anfordern.
'; } } } } //if(count($_SESSION["GROUP"])>0 AND $_SESSION["LOGIN"]){echo "teste gruppe"; if($_SESSION["LC"]=="DE" OR $_SESSION["LC"]=="DT" OR $_SESSION["LC"]==""){ $menu_lang = ""; }else{ $menue_lang = "_".strtolower($_SESSION["LC"]); } $file_str = "menue".$menue_lang.".xml"; if(file_exists($file_str)) $file = $file_str; else $file = "index/".$file_str; if (!($fp = fopen($file, "r"))) { die("could not open XML input"); } $data = fread($fp, filesize($file)); fclose($fp); if(isset($_ISO) && $_ISO != "UTF-8" ){ $xml_parser = xml_parser_create("iso-8859-1"); @xml_parser_set_option($xml_parser, XML_OPTION_TARGET_ENCODING, "iso-8859-1"); }else{ $xml_parser = xml_parser_create(); } xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($xml_parser, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct($xml_parser, $data, $vals, $index); xml_parser_free($xml_parser); $show_tpl = false; $is_login = false; for($i=1;$i0){ $_SESSION["ACCESS"] = true; }else{ if(count($_SESSION["GROUP"])>0 AND $_SESSION["LOGIN"]){ $group = $vals[$i]["attributes"]["GROUP"]; $isgroup = false; $tmp = explode("~",$group); if(is_array($tmp)){ for($g=0;$g".$_SESSION["GROUP"][$gs]."==".$tmp[$g]; if($_SESSION["GROUP"][$gs]==$tmp[$g]){ $isgroup = true; } } } }else{ if($_SESSION["GROUP"]==$group){ $isgroup = true; } } if($isgroup){ $_SESSION["ACCESS"] = true; }else{ $_SESSION["ACCESS"] = false; } }else{ $_SESSION["ACCESS"] = false; } } } } } //} ?>