} else { $tpl->generate('templates/navfifth_off.html'); } } // end if } // end foreach } // end if*/ } // end if } // end foreach $tpl->reset(); $tpl->set('s', 'SUBSUBSUBMENU', $subsubsub_html); $subsub_html .= $tpl->generate('templates/bkev_navfourth.html', true, false); } // end if } // end if } // end foreach $tpl->reset(); $tpl->set('s', 'SUBSUBMENU', $subsub_html); $sub_html .= $tpl->generate('templates/bkev_navthird.html', true, false); } // end if } } // end if } // end foreach $tpl->reset(); $tpl->set('s', 'SUBMENU', $sub_html); $html .= $tpl->generate('templates/bkev_navsecond.html', true, false); } // end if } // end if //$i++; //for Space (e.g. " - ") output between two menu items } // end foreach #function function scandirNew($directory, $sorting_order=0) { if(!is_dir($directory)) { return false; } $files = array(); $handle = opendir($directory); while (false !== ($filename = readdir($handle))) { if($filename == '.' || $filename == '..') { } else { $files[] = $filename; } } closedir($handle); if($sorting_order == 1) { rsort($files); } else { sort($files); } return $files; } clearstatcache(); $newsletter_folder = 'upload/aktueller_newsletter'; $wccnewsletter_folder = 'upload/aktueller_wcc_europe_newsletter'; $fileArray = scandirNew($newsletter_folder); foreach($fileArray as $i => $file) { $modified = filemtime($newsletter_folder."/".$file); //Liefere Unix Zeitstempel $fileArray[$i] = array($modified, $file); } usort($fileArray, create_function('$a, $b', 'if ($a[0] == $b[0]) return 0; else return $a[0]>$b[0]? +1 : -1;')); foreach($fileArray as $row) { $newsletter_file = $row[1]; } clearstatcache(); $fileArray = scandirNew($wccnewsletter_folder); foreach($fileArray as $i => $file) { $modified = filemtime($wccnewsletter_folder."/".$file); //Liefere Unix Zeitstempel $fileArray[$i] = array($modified, $file); } usort($fileArray, create_function('$a, $b', 'if ($a[0] == $b[0]) return 0; else return $a[0]>$b[0]? +1 : -1;')); foreach($fileArray as $row) { $wccnewsletter_file = $row[1]; } $newsletter = '
  • » Aktueller BK-Newsletter
  • '; $wccnewsletter = '';//'
  • » WCC-Europe-Newsletter
  • '; $tpl->reset(); $tpl->set('s', 'MENU', $html); $tpl->set('s', 'NEWSLETTER', $newsletter); $tpl->set('s', 'WCCNEWSLETTER', $wccnewsletter); $tpl->generate('templates/bkev_navfirst.html'); clearstatcache(); /* Read out buffer */ //$html = ob_get_contents(); /* Clean buffer */ //ob_end_clean(); /* Output buffer-contents */ //echo $html; ?>

    Michaela Huber

    Schmuckgestalterin

    Zülpicher Wall 40 | 50674 Köln
    Fon 0221/2508891 | Fax 0221/2508892

    hallo@schmuck-salon.de |  www.schmuck-salon.de

     

     

     

     

     

     

     

     

     

     

     

     

     




    Michaela Huber

    Schmuckgestalterin

    Zülpicher Wall 40 | 50674 Köln
    Fon 0221/2508891 | Fax 0221/2508892

    hallo@schmuck-salon.de |  www.schmuck-salon.de