1
2
3
4
5
6
|
$id = "1";
global $settings;global $optionen;
$loadcontent = mysql_fetch_assoc(mysql_query("SELECT * FROM pages WHERE id='".$id."' LIMIT 1"));
$loadcontent['inhalt'] = get_content_links($loadcontent['inhalt']);
$ar_search = array ('(%PAGE_DIR%)','(%TEMPLATE_DIR%)','(%UPLOAD_DIR%)','(%MEDIA_DIR%)','(%PERSONAL_FIRMA%)','(%PERSONAL_NAME%)','(%PERSONAL_VORNAME%)','(%PERSONAL_STRASSE%)','(%PERSONAL_WOHNORT%)','(%PERSONAL_LAND%)','(%PERSONAL_TELEFON%)','(%PERSONAL_FAX%)','(%PERSONAL_MOBIL%)','(%PERSONAL_EMAIL%)');$ar_get = array ($settings['page_dir'],$settings['template_dir'],$settings['page_dir']."/includes/upload",$settings['page_dir']."/includes/media",$personaldaten['firma'],$personaldaten['name'],$personaldaten['vorname'],$personaldaten['strasse'],$personaldaten['wohnort'],$personaldaten['land'],$personaldaten['telefon'],$personaldaten['fax'],$personaldaten['mobil'],$personaldaten['email']);
echo preg_replace($ar_search, $ar_get, $loadcontent['inhalt']);
|