Blame | Letzte Änderung | Log anzeigen | RSS feed
<?php//$Id: bestell_export.php 3931 2011-09-16 08:17:57Z tiefland $/*** @author Lars Tiefland <tiefland@weban.de>* @copyright 2009 Webagentur Niewerth* @package Content-management* @version $Rev: 3931 $* @license propietary* @filesource**//**** @author Lars Tiefland <tiefland@weban.de>* @copyright 2009 Webagentur Niewerth* @package Content-management*/require_once "Weban_Smarty.class.php";require_once "../Online-Shop/connect2.php";$GLOBALS["ui"] = new Weban_Smarty();if ( isset($user_rechte["Warenwirtschaft"]["bestell_export"]["excel_export"]) ){require_once "File/Find.php";if(!file_exists("archiv/$site")){mkdir("archiv/$site");}$ff = new File_Find();$files = $ff->search( "/export_Bestellungen_[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{2}-[0-9]{2}-[0-9]{2}.xls$/i","archiv/$site/", "perl" );rsort($files);foreach ( $files as $f_id => $file ){$files_arr[$f_id]["name"] = $file;$date = date( "d.m.Y H:i:s", filemtime($file) );$files_arr[$f_id]["desc"] = $date;}$GLOBALS["ui"]->assign( "files", $files_arr );$GLOBALS["ui"]->display( "bestell_export.tpl" );}else{$GLOBALS["ui"]->display( "meld.tpl" );}?>