From c42c2b45662929868cdd40bc9805491e1c8cace6 Mon Sep 17 00:00:00 2001 From: paulr Date: Sun, 6 Nov 2011 04:29:06 +1100 Subject: [PATCH] added some text to the install file, though i dont think this app is actually installable without some kind of procreated database file added some text to the top of the readme as a warning to kids that this code is unsafe --- INSTALL | 12 +++++++++++- README | 21 ++++++++++++++++++--- www/config-dist.php | 8 ++++---- 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/INSTALL b/INSTALL index dd4c311..c677205 100644 --- a/INSTALL +++ b/INSTALL @@ -1 +1,11 @@ -Yeah, like theres f*** all to install right now? \ No newline at end of file +hmmmm... git clone it somewhere then setup config.php in www from config-dist.php + +if you cant do that without assistance at this point, dont bother touching this code yet. + +The only things i will tell you are this: + +1. sqlite only is supported at this time +2. $db_name is the location of the db in config.php +3. db must be web-user writable + +If you need more then that, then wait for a more useable install, its not that far off really \ No newline at end of file diff --git a/README b/README index 7448964..af63ba2 100644 --- a/README +++ b/README @@ -1,9 +1,24 @@ +READ THIS FIRST +=============== + +WARNING WARNING WARNING + +This code is not ready for anything other thing playing with. It has some functionality, like you can create +some repos and you can even pull from them, however this code IS dangerous. there is no input validation so +its likely everything can suffer from all kinds of injections and malicious code. There is alot of error +checking missing and its only been running on an ubuntu 10.10 laptop, alot of the functionality is actually +here, but dont get excited. + +If you want to play with it, clone it and follow the install, but dont put it somewhere its generally +accessible (i.e. from the internet) unless you hate your computer. + + + + + GWVP ==== -Note - this is barely (currently) proof-of-concept code and simply does a thru-php proxy of git-http-backend -it is not in the least bit useful for anything, yet. - Git over Web Via PHP is a project to do something i've wanted to have a long time - a web based git remote with administration and all git related activities happening over http/https. Git has this now, its called git-http-backend and its quite broken. If you read its man page it'll tell you this: diff --git a/www/config-dist.php b/www/config-dist.php index 1ff1c14..728e336 100644 --- a/www/config-dist.php +++ b/www/config-dist.php @@ -4,12 +4,12 @@ // all other config will be kept in the db, but not just yet // the config file, this is as exciting as it gets really -$repo_base = "/some/path/to/a/location/where/repos/are/stored"; -$lib_base = "../gwvplib/"; // generally this will be correct -$data_directory = "/some/path/to/a/location/where/the/data/the/website/uses/can/be/stored"; +$repo_base = "/tmp/"; +$lib_base = "../gwvplib/"; +$plugin_path = "$lib_base/plugins"; +$data_directory = "../data"; $db_type = "sqlite"; // could be mysql or pgsql - but not yet $db_name = "$data_directory/gwvp.db"; // just a file for sqlite, for anything else is a pdo url without driver, i.e. host=localhost;dbname=whatever;user=asdf;password=asdf -$db_host = ""; $db_username = ""; $db_password = ""; -- 1.7.0.4