Lines Matching refs:fn
92 $fn = mediaFN($id);
93 $this->ajax_debug($fn);
95 if(file_exists($fn)) {
96 $size = filesize($fn);
97 $this->ajax_debug("$fn: $size");
99 else $this->ajax_debug("$fn not found");
112 else if(file_exists($fn)) {
114 $size = filesize($fn);
118 $ft=filemtime($fn) ;
122 $this->ajax_debug("$fn not found");
125 if(isset($ft) && file_exists($fn)) {
127 $this->ajax_debug("newf: $newf fn: $fn");
128 if(file_exists($fn)){
129 $this->ajax_debug("old file: $oldf; $fn");
131 else $this->ajax_debug("no old file: $fn");
134 if(copy($fn, $newf)) {
135 $this->ajax_debug("Copying $fn to $newf");
137 $this->ajax_debug("deleting: $fn");
138 if(!unlink($fn)) $this->ajax_debug("delete failed");
142 if(file_exists($fn)) {
143 if(!copy($fn, $newf)) {
144 $this->ajax_debug ("(2nd try) could not copy $fn to $newf");
147 if(!unlink($fn)) {
148 $this->ajax_debug ("could not delete $fn");
164 $fn = mediaFN($id);
165 if(file_exists($fn)) {
166 $this->ajax_debug(filesize ($fn) . ';' .filemtime($fn) );
168 else echo ("$fn not found");