diff -r 56befcb22751 -r 94a1dc255022 thd/apps/frontend/modules/editor/actions/addFilmSegmentAction.class.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/thd/apps/frontend/modules/editor/actions/addFilmSegmentAction.class.php Tue Sep 22 16:40:38 2009 +0200 @@ -0,0 +1,36 @@ +getMethodName() != sfWebRequest::POST) return sfView::ERROR; + + $in=$request->getParameter('timein'); + $out=$request->getParameter('timeout'); + $tag=addslashes($request->getParameter('usertag')); + $user=addslashes($request->getParameter('username')); + $refFilm=$request->getParameter('refFilm'); + $film=$request->getParameter('film'); + + // Get file Path + $this->path = sfConfig::get('app_storage_uploads'); + $this->format = sfConfig::get('app_storage_format'); + $file = $this->path.$refFilm.$this->format; + + + + // Build content to fill + $line = array($in,$out,$tag,$user); + + // Build ldt + + + // Create or Update the file + $fp = fopen($file, "a"); + fwrite($fp,$line); + fclose($fp); + + return sfView::SUCCESS; + } +} \ No newline at end of file