// create private properties file_put_contents('rt-content/hidden/private.json', json_encode(array('db' => array('host' => '', 'name' => '', 'user' => array('name' => '', 'pswd' => ''))))); // make image uploads directory mkdir('rt-content/uploads/'); // add upload script file_put_contents('rt-content/uploads/upload.php', file_get_contents('assets/php/image_upload.txt')); // create users database /*file_put_contents('rt-content/hidden/users.xml', simplexml_load_string('<udb></udb>')->asXML()); // and add system user // @see /util.php for attribute descripstions, minified to save characters rt_create_user(array( 'id' => 0, 'u' => 'roundtable', 'e' => '*****@*****.**', 'p' => 0, 'n' => 'System', 'b' => 1452453301, 'pp' => 's', 'ba' => 's', 'l' => 'In the cloud, or a datacenter. What\'s the difference?', 'w' => 'https://roundtable.nektro.net', 'ab' => 'I am RoundTable. I keep the lights on around here.
Be nice and I will too :)', 'ac' => '[0]', 'ad' => '[0]' ));*/ } $RT = new RoundTable(); // set properties // determine whether or not we should redirect to the setup page $RT->setProp('setup_complete', $RT->getProp('setup_complete') ?? false);