Lines Matching refs:file
28 foreach ($files as $file) {
29 if (convertDiscussionPage($file)) {
30 echo $file['id'].'<br />';
58 function search_discussionpages(&$data, $base, $file, $type, $lvl, $opts) { argument
62 if (!preg_match('#'.preg_quote('/'.DISCUSSION_NS.'/', '#').'#u', $file)) return false;
63 if (!preg_match('#\.txt$#', $file)) return false;
65 $id = pathID(str_replace(DISCUSSION_NS.'/', '', $file));
68 'old' => $conf['datadir'].$file,
77 function convertDiscussionPage($file) { argument
80 $data = io_readFile($file['old'], false);
84 io_saveFile($file['new'], serialize(array('status' => 1, 'number' => 0)));
85 @unlink($file['old']);
94 if (@file_exists($file['new']))
95 $comments = unserialize(io_readFile($file['old'], false));
147 io_saveFile($file['new'], serialize($comments));
150 @unlink($file['old']);