#if (!isset($_SESSION['sprache'])) $_SESSION['sprache'] = "de"; $_SESSION['sprache'] = "de"; # Funktion fuer Callback in fliesstext() // function korrektur_http ($matches) { return "".str_replace("http://", "", $matches[0]).""; } function korrektur_mailto ($matches) { // zu lange Emailadressen mit Leerzeichen hinter @ versehen /* $arrMatches = explode('-', $matches[0]); foreach ($arrMatches as $match) { if (strlen( $match ) > 37 ) { $newMaillink = str_replace('@', '@ ', str_replace("mailto:", "", $matches[0] ) ); break; } else $newMaillink = str_replace("mailto:", "", $matches[0] ) ; }*/ return "".str_replace("mailto:", "", $matches[0]).""; #return "".$newMaillink.""; } function fliesstext($text) { $text = '
' . $text . '
'; $text = str_replace("[fett]", "", $text); $text = str_replace("[/fett]", "", $text); $text = str_replace("[g]", "", $text); $text = str_replace("[/g]", "", $text); $text = str_replace("[tab]", " ", $text); $text = str_replace("[h1]", "", $text); $text = str_replace("[h2]", "
", $text); $text = str_replace("[liste]", "
", $text); $text = nl2br($text); $text = str_replace("[listenpunkt]", "
", "
", $text);
#$muster = '/http:\/\/(\d|\w|\.|-|\/|_)+\b/';
#$text = preg_replace_callback($muster, 'korrektur_http', $text);
$muster = '/mailto:(\d|\w|\.|-|_|@)+\b/';
$text = preg_replace_callback($muster, 'korrektur_mailto', $text);
preg_match_all("|\^http.+\^.+\^|Us",$text,$externlink);
for($i=0; $i'.$t.'s
';
$content .= '';
while( $row = mysql_fetch_array($res))
{
$name = stripslashes($row['name']);
if ($typ == 'file') $link = 'download/' . stripslashes($row['link']);
else $link = stripslashes($row['link']);
$content .= '
';
}
return $content;
}
#error_reporting(E_ALL);
error_reporting(E_ALL ^ E_NOTICE);
#error_reporting(0);
$loc_de = setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
include('data.inc.php');
# Definition der Metatags global fuer alle Seiten. Wenn individuelle gewuenscht, in Einzelseiten c_4_0.php etc. definieren.
$description = "Was Sie von mir erwarten können: Effektivität - fachliche Kompetenz - sachgerechte und schnelle Lösungen - außergerichtliche Beilegung von Konflikten - Wirtschaftlichkeit";
$keywords = "Marlies Zwinkau, Rechtsanwältin, Rechtsanwalt, Berlin, Alt-Moabit,
Jugendstrafrecht, öffentliches Baurecht, Umgangsrecht, Sorgerecht,
Versorgungsausgleich, Beamtenrecht, Amtshaftungsrecht, Rettungsassistenten,
Sozialrecht";
$seitentitel = 'Marlies Zwinkau | Rechtsanwältin';
@mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) OR
die("Keine Verbindung zur Datenbank. Fehlermeldung: ".mysql_error());
@mysql_select_db(MYSQL_DATABASE) OR
die("Konnte Datenbank nicht benutzen, Fehlermeldung: ".mysql_error());
mysql_query("SET NAMES 'utf8'");
/*
* Hauptnavigation
* neuen Menüpunkt in DB eintragen, hier Dateinanem ergänzen
* ist nicht über RedTool editierbar!!!
* key ist ID der DB
* in tool/edit.php im Bereich
* elseif($_GET['unter'] == true)
* SQL anpassen (dort IDs von Angebote und Über uns)
*
$arrMenudatei = array(1 => 'angebote',
2 => 'aktuelles',
3 => 'ueberuns',
4 => 'archiv',
5 => 'partner',
7 => 'kontakt',
8 => 'zeiten',
9 => 'impressum'
);
#Kalender!
*/
$arrTage = array(1 => 'Montag',
2 => 'Dienstag',
3 => 'Mittwoch',
4 => 'Donnerstag',
5 => 'Freitag',
6 => 'Samstag',
7 => 'Sonntag');
$arrMonate = array("01" => "Januar",
"02" => "Februar",
"03" => "März",
"04" => "April",
"05" => "Mai",
"06" => "Juni",
"07" => "Juli",
"08" => "August",
"09" => "September",
"10" => "Oktober",
"11" => "November",
"12" => "Dezember");
function formatierungen ($textareaName, $arrCodes)
{
if (in_array(0, $arrCodes)) $formate = '[Interner Link] ';
if (in_array(1, $arrCodes)) $formate .= '[Externer Link] ';
if (in_array(2, $arrCodes)) $formate .= '[PDF] ';
if (in_array(3, $arrCodes)) $formate .= '[Email] ';
#$formate .= '[f] ';
#$formate .= '[g]Golddruck[/g] Code einfügen
['.substr(strrchr($link, '.'), 1).', '.round(filesize($link) / 1024) .' KB]';
}
$content .= '
';
#$formate .= '[h1]Überschrift 1. Grad[/h1] Code einfügen
';
if (in_array(4, $arrCodes)) $formate .= ' [fett] ';
if (in_array(5, $arrCodes)) $formate .= ' [h1] ';
if (in_array(6, $arrCodes)) $formate .= ' [h2] ';
if (in_array(7, $arrCodes)) $formate .= ' [liste] ';
if (in_array(8, $arrCodes)) $formate .= ' [listenpunkt] ';
#$formate .= '[tab]';
return $formate;
}
?>