Lines Matching refs:fn
118 $fn = mediaFN($id);
119 $this->ajax_debug($fn);
121 if(file_exists($fn)) {
122 $size = filesize($fn);
123 $this->ajax_debug("$fn: $size");
125 else $this->ajax_debug("$fn not found");
138 else if(file_exists($fn)) {
140 $size = filesize($fn);
144 $ft=filemtime($fn) ;
148 $this->ajax_debug("$fn not found");
151 if(isset($ft) && file_exists($fn)) {
153 $this->ajax_debug("newf: $newf fn: $fn");
154 if(file_exists($fn)){
155 $this->ajax_debug("old file: $oldf; $fn");
157 else $this->ajax_debug("no old file: $fn");
160 if(copy($fn, $newf)) {
161 $this->ajax_debug("Copying $fn to $newf");
163 $this->ajax_debug("deleting: $fn");
164 if(!unlink($fn)) $this->ajax_debug("delete failed");
168 if(file_exists($fn)) {
169 if(!copy($fn, $newf)) {
170 $this->ajax_debug ("(2nd try) could not copy $fn to $newf");
173 if(!unlink($fn)) {
174 $this->ajax_debug ("could not delete $fn");
190 $fn = mediaFN($id);
191 if(file_exists($fn)) {
192 $this->ajax_debug(filesize ($fn) . ';' .filemtime($fn) );
194 else echo ("$fn not found");