1 <!-- $Id: wiki_setupwiki.php3,v 1.6 2000-06-14 04:09:20 wainstead Exp $ -->
4 /* Add the very first pages to a wiki */
9 $page["author"] = "The PhpWiki prgramming team";
10 $page["lastmodified"] = GetCurrentDate();
11 $page["created"] = GetCurrentDate();
13 $handle = opendir('./pgsrc');
16 while ($file = readdir($handle)) {
17 if (strlen($file) < 4) { continue; }
19 $content = implode("", file("pgsrc/$file"));
20 $page["content"] = explode("\n", $content);
22 InsertPage($dbi, $file, $page);