$value){ if(is_array($value)){ foreach ($value as $key_2 => $value_2)$$key_2 = $value_2; } else{ $$key = $value; } } //ende $conflib ="../includes/project.config.site.php4"; require($conflib); $headline = $hl; $menuid = $m; $showInternFb = true; ?>
// CMS AUSGABE
$sql = "SELECT *,DATE_FORMAT(date,'%d.%m.%Y') AS date_formated FROM sprachtherapie_content WHERE (contentGroup='$contentGroup' OR id='$contentId') AND release='true' Order by release_date DESC";
$result = sql($sql);
if($result && mysql_num_rows($result)) {
while($data = mysql_fetch_array($result)) {
?>
echo db2html($data['title']); ?> echo db2html($data['subtitle']); ?> if($data['contentGroup']=="4_3_0" ) { echo ''.db2html($data['date_formated']).' '; } ?> $filename = 'global/dbimages/'.$data['image']; if($data['image'] != "" && $data['image'] != "none" && $data['image'] != "null") { if (is_readable($filename)) { // Abfrage ob Datei überhaupt auf dem Server vorhanden und lesbar ist $size = GetImageSize ($url.'global/dbimages/'.$data['image']); // Bild einlesen $imagewidth = $size[0]; // Breite auslesen $imageheight = $size[1]; // Höhe auslesen $maxwidth = "500"; // maximal Breite des Bildes if ($imagewidth > $maxwidth) { $imageprop=$maxwidth/$imagewidth; $imagevsize= $imageheight*$imageprop; $imagewidth=$maxwidth; $imageheight=ceil($imagevsize); } } else { print "Meldung: Bilddatei ist auf dem Server nicht vorhanden! "; } ?> } ?> echo db2html($data['content']); ?> } } else { include($inc."error.inc.php4"); } ?> |
Claudia Netthöfel Sprachheiltherapie | www.sprach-therapeut.de | claudia@netthoefel.de |