require('pic.class.php'); /* todo: - bio englisch */ if (isset($_GET['c'])) $c=$_GET['c']; if (isset($_GET['l'])) $l=$_GET['l']; if (isset($_GET['p'])) $p=$_GET['p']; $sLang = $l; $sCont = $c; $sPage = $p; $aContent = array( 'biography', 'cds', 'concerts', 'pictures', 'books' ); $aLang = array( 'en', 'it', 'de', 'ch' ); if (!in_array($sLang,$aLang)) { $sLang = 'de'; } $sPath = $sLang.'/'; if (!in_array($sCont,$aContent)) { $sCont = 'startseite'; $sPath = ''; } if (isset($sPage) && $sPage!='') { $sPage = '_'.$sPage; } $sReplace = ''; $sReplaceWith = ''; $sFile = $sPath.$sCont.$sPage.'.html'; if ($sCont=='pictures') { $sFile = 'pictures.php'; $sReplace = ''; $dir = 'hier_neue_Bilder_rein/'; $aFiles = array(); // Öffnen eines bekannten Verzeichnisses und danach seinen Inhalt einlesen if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if (strlen($file) > 2) { $pic = new pic(); $sFile1 = 'images/pictures/'.$file; $sFile2 = str_replace('.','_kl.',$sFile1); $maxX = 250; $maxY = 250; $maxX1 = 800; $maxY1 = 800; if ($pic->resize($dir.$file,$sFile1,$maxX1,$maxY1) && $pic->resize($dir.$file,$sFile2,$maxX,$maxY)) { unlink($dir.$file); } } } closedir($dh); } } $dir = 'images/pictures/'; $aFiles = array(); // Öffnen eines bekannten Verzeichnisses und danach seinen Inhalt einlesen if (is_dir($dir)) { if ($dh = opendir($dir)) { $iCounter = 0; $iCounter1 = 0; $sReplaceWith = '