1 <!-- $Id: wiki_setupwiki.php3,v 1.9 2000-06-21 22:57:17 ahollosi Exp $ -->
4 /* Add the very first pages to a wiki */
7 $page["author"] = "The PhpWiki programming team";
8 $page["created"] = time();
10 $page["lastmodified"] = time();
11 $page["refs"] = array();
14 $handle = opendir('./pgsrc');
17 while ($file = readdir($handle)) {
18 if (strlen($file) < 4) { continue; }
20 $page["pagename"] = $file;
22 $content = implode("", file("pgsrc/$file"));
23 $page["content"] = explode("\n", $content);
25 InsertPage($dbi, $file, $page);