1 <!-- $Id: wiki_setupwiki.php3,v 1.7 2000-06-19 20:21:31 ahollosi Exp $ -->
4 /* Add the very first pages to a wiki */
9 $page["author"] = "The PhpWiki programming 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);