/** * Creates a new temporary file * @access public */ function createNewFile() { $randomID = StudipObject::createNewID(); $this->filename = EVALEXPORT_PREFIX . $randomID . "." . $this->extension; export_tmp_gc(); if (!is_dir(EVALEXPORT_PATH_TEMP)) { return $this->throwError(1, sprintf(_("ExportManager::Das Verzeichnis %s existiert nicht."), EVALEXPORT_PATH_TEMP)); } if (!is_writable(EVALEXPORT_PATH_TEMP)) { return $this->throwError(2, sprintf(_("ExportManager::Das Verzeichnis %s ist nicht schreibbar nicht."), EVALEXPORT_PATH_TEMP)); } $this->filehandle = @fopen(EVALEXPORT_PATH_TEMP . "/" . $this->filename, "w"); if (empty($this->filehandle)) { return $this->throwError(3, _("ExportManager::Konnte temporäre Datei nicht erstellen.")); } }
* * @author Arne Schroeder <*****@*****.**> * @access public * @modulegroup export_modules * @module oscar * @package Export */ // +---------------------------------------------------------------------------+ // This file is part of Stud.IP // oscar.inc.php // // Copyright (c) 2002 Arne Schroeder <*****@*****.**> // Suchi & Berg GmbH <*****@*****.**> // +---------------------------------------------------------------------------+ // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or any later version. // +---------------------------------------------------------------------------+ // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // +---------------------------------------------------------------------------+ require_once ("export_tmp_gc.inc.php"); export_tmp_gc(); ?>