* @con_notice * * * @package ContenidoBackendArea * @version 1.1 * @author Oliver Teuber * @copyright four for business AG * @license http://www.contenido.org/license/LIZENZ.txt * @link http://www.4fb.de * @link http://www.contenido.org * @since file available since contenido release * @deprecated file deprecated in contenido release * * {@internal * created 2000-01-01 * modified 2008-07-03, bilal arslan, added security fix * * $Id$: * }} * */ if(!defined('CON_FRAMEWORK')) { die('Illegal call'); } class CT_File { ## ## Define these parameters by overwriting or by ## deriving your own class from it (recommened) ## var $file_path = ""; ## Path where to store the session files ## writable by the web server UID ## end of configuration function ac_start() { # Not needed in this instance } function ac_get_lock() { # Not needed in this instance } function ac_release_lock() { # Not needed in this instance } function ac_newid($str, $name) { return $str; } function ac_store($id, $name, $str) { $f=fopen($this->file_path . "$id$name",'w+'); if($f<0) { return false; } fputs($f,urlencode($str)); fclose($f); return true; } function ac_delete($id, $name) { unlink($this->file_path."$id$name"); } function ac_gc($gc_time, $name) { } function ac_halt($s) { echo "$s"; exit; } function ac_get_value($id, $name) { if(file_exists($this->file_path."$id$name")) { $f=fopen($this->file_path."$id$name",'r'); if($f<0) return ''; $s=fgets($f,10240); fclose($f); return urldecode($s); } else return ''; } } ?>