X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=gwvplib%2Fgwvpsetup.php;h=a9e7a06e18cc61377bf5e81a403c7cfa90b50d47;hp=a6d63acc971a45ea124d99fd8318ebd7469df7f7;hb=4f4bf1da18181d412cd755143e016ede587cc1d6;hpb=047523a5083efd83dcd94b6d2763c9fddb913c90 diff --git a/gwvplib/gwvpsetup.php b/gwvplib/gwvpsetup.php index a6d63ac..a9e7a06 100644 --- a/gwvplib/gwvpsetup.php +++ b/gwvplib/gwvpsetup.php @@ -21,13 +21,16 @@ function gwvp_PostSetup() function gwvp_PostSetupPageBody() { - echo "GWVP Is now setup, login at the top of the page and you should in control!"; + echo "GWVP Is now setup, login at the top of the page and you should be in control!"; } // TODO: need to do this bit function gwvp_issetup() { - return true; + // check for the config file + if(!file_exists("config.php")) return false; + + return gwvp_isDBSetup(); } @@ -87,7 +90,7 @@ function gwvp_goSetupGoMain() echo "Site NameSome Name for your site"; echo "First User Full NameThe name of the admin of your site"; echo "First User email addressThe email address of the admin of your site (login)"; - echo "First User Nick NameThe name used to idenity the user on the site"; + echo "First User UsernameThe name used to idenity the user on the site"; echo "First User PasswordPassword for the user"; echo "First User Password (confirm)and confirm it..."; echo "Database TypeSQLite only at this point"; @@ -119,7 +122,7 @@ function gwvp_goSetupDoInstall() $sitename = $_REQUEST["sitename"]; $fufn = $_REQUEST["firstuserfullname"]; $fwem = $_REQUEST["firstuseremail"]; - $fwnick = $_REQUEST["firstusernickname"]; + $fwusername = $_REQUEST["firstuserusername"]; $fwpass = $_REQUEST["pass1"]; $fwpassconf = $_REQUEST["pass2"]; $dbtype = $_REQUEST["dbtype"]; @@ -132,7 +135,7 @@ function gwvp_goSetupDoInstall() echo "Sitename$sitename"; echo "fullname$fufn"; echo "email$fwem"; - echo "nick$fwnick"; + echo "username$fwusername"; echo "pass$fwpass"; echo "passconfirm$fwpassconf"; echo "dbtype$dbtype";