QGIS2Map App Installer
'John Smith', 'email' => 'admin@admin.com', 'password' => '1234', 'accesslevel' => 'Admin', 'ftp_user' => 'admin1', 'owner_id' => 1); $def_grp = array('name' => 'Default', 'owner_id' => 1); $def_usr_grps = array('user_id' => 1, 'access_group_id' => 1); $def_user['password'] = password_hash($def_user['password'], PASSWORD_DEFAULT); // insert manually if(!pg_insert($con, 'public.user', $def_user) || !pg_insert($con, 'public.access_groups', $def_grp) || !pg_insert($con, 'public.user_access', $def_usr_grps) ){ die(pg_last_error($con)); } user_Class::create_ftp_user($def_user['ftp_user'], $def_user['email'], $def_user['password']); if(!isset($_POST['allow_signup'])){ $result = pg_query($con, 'DROP TABLE signup'); unlink('../signup.php'); unlink('class/signup.php'); unlink('action/signup.php'); unlink('action/verify.php'); } unlink('setup.sql'); unlink('setup.php'); header('location:index.php'); } } ?>
QGIS2Map App Installer