diff --git a/README.md b/README.md index 78051c14..d29f5950 100644 --- a/README.md +++ b/README.md @@ -88,16 +88,18 @@ Several important features for saving memory in the templates system may have to An example of running the commands directly on Windows. -Linux is similar, however you might need to use cd and mv a bit more like in the shell files due to the differences in go build across platforms. +Linux is similar, however you might need to use cd and mv a bit more like in the shell files due to the differences in go build across platforms. Additionally, Linux doesn't require `StackExchange/wmi` or ``/x/sys/windows` ```bash +git clone https://github.com/Azareal/Gosora + go get -u github.com/go-sql-driver/mysql go get -u golang.org/x/crypto/bcrypt go get -u github.com/StackExchange/wmi -go get -u github.com/shirou/gopsutil +go get -u github.com/Azareal/gopsutil go get -u github.com/gorilla/websocket @@ -162,11 +164,11 @@ We're looking for ways to clean-up the plugin system so that all of them (except * golang.org/x/crypto/bcrypt For hashing passwords. -* github.com/shirou/gopsutil For pulling information on CPU and memory usage. +* github.com/Azareal/gopsutil For pulling information on CPU and memory usage. I've temporarily forked this, as we were having stability issues with the latest build. * github.com/StackExchange/wmi Dependency for gopsutil on Windows. - - * golang.org/x/sys/windows Also a dependency for gopsutil on Windows. + + * golang.org/x/sys/windows Also a dependency for gopsutil on Windows. This isn't needed at the moment, as I've rolled things back to an older more stable build. * github.com/gorilla/websocket Needed for Gosora's Optional WebSockets Module. diff --git a/install-gosora-linux b/install-gosora-linux index ead6a1d4..86449706 100644 --- a/install-gosora-linux +++ b/install-gosora-linux @@ -5,7 +5,7 @@ go get -u github.com/lib/pq echo "Installing bcrypt" go get -u golang.org/x/crypto/bcrypt echo "Installing gopsutil" -go get -u github.com/shirou/gopsutil +go get -u github.com/Azareal/gopsutil echo "Installing Gorilla WebSockets" go get -u github.com/gorilla/websocket @@ -17,4 +17,4 @@ mv ./Install .. cd .. echo "Running the installer" -./Install \ No newline at end of file +./Install diff --git a/install.bat b/install.bat index 9cc62203..1a66b5f3 100644 --- a/install.bat +++ b/install.bat @@ -29,7 +29,7 @@ if %errorlevel% neq 0 ( exit /b %errorlevel% ) echo Installing the gopsutil library -go get -u github.com/shirou/gopsutil +go get -u github.com/Azareal/gopsutil if %errorlevel% neq 0 ( pause exit /b %errorlevel% diff --git a/mysql.sql b/mysql.sql index 6dd1da08..047ff7aa 100644 --- a/mysql.sql +++ b/mysql.sql @@ -71,7 +71,9 @@ CREATE TABLE `replies`( `createdAt` datetime not null, `createdBy` int not null, `lastEdit` int not null, - `lastEditBy` int not null, + `lastEditBy` int not null, /* Do we need this? */ + /*`editIndex` int not null,*/ /* For append edits, e.g. auto-merges? Is this enough for this feature? */ + `lastUpdated` datetime not null, `ipaddress` varchar(200) DEFAULT '0.0.0.0.0' not null, `likeCount` int DEFAULT 0 not null, `words` int DEFAULT 1 not null, diff --git a/pgsql.go b/pgsql.go index e51118ca..05300d9a 100644 --- a/pgsql.go +++ b/pgsql.go @@ -29,6 +29,12 @@ func _init_database() (err error) { return err } + // Make sure that the connection is alive + err = db.Ping() + if err != nil { + return err + } + // Fetch the database version db.QueryRow("SELECT VERSION()").Scan(&db_version) diff --git a/plugin_socialgroups.go b/plugin_socialgroups.go index 9b228190..dee9f633 100644 --- a/plugin_socialgroups.go +++ b/plugin_socialgroups.go @@ -190,7 +190,7 @@ func install_socialgroups() error { qgen.DB_Table_Column{"joinable","smallint",0,false,false,"0"}, qgen.DB_Table_Column{"owner","int",0,false,false,""}, qgen.DB_Table_Column{"memberCount","int",0,false,false,""}, - qgen.DB_Table_Column{"mainForum","int",0,false,false,"0"}, // The board the user lands on when they click ona group, we'll make it possible for group admins to change what users land on + qgen.DB_Table_Column{"mainForum","int",0,false,false,"0"}, // The board the user lands on when they click on a group, we'll make it possible for group admins to change what users land on //qgen.DB_Table_Column{"boards","varchar",255,false,false,""}, // Cap the max number of boards at 8 to avoid overflowing the confines of a 64-bit integer? qgen.DB_Table_Column{"backdrop","varchar",200,false,false,""}, // File extension for the uploaded file, or an external link qgen.DB_Table_Column{"createdAt","createdAt",0,false,false,""}, diff --git a/public/rgb_105_105_105.jpg b/public/rgb_105_105_105.jpg new file mode 100644 index 00000000..8b12065f Binary files /dev/null and b/public/rgb_105_105_105.jpg differ diff --git a/public/rgb_71_71_71.jpg b/public/rgb_71_71_71.jpg new file mode 100644 index 00000000..3862da09 Binary files /dev/null and b/public/rgb_71_71_71.jpg differ diff --git a/public/rgb_95_95_95.jpg b/public/rgb_95_95_95.jpg new file mode 100644 index 00000000..4053030a Binary files /dev/null and b/public/rgb_95_95_95.jpg differ diff --git a/template_list.go b/template_list.go index 99cf4efe..4158b257 100644 --- a/template_list.go +++ b/template_list.go @@ -37,6 +37,12 @@ var menu_1 []byte = []byte(`
`) -var topic_26 []byte = []byte(`
+var topic_27 []byte = []byte(` +var topic_28 []byte = []byte(` `) -var topic_30 []byte = []byte(` +var topic_29 []byte = []byte(`.`) +var topic_30 []byte = []byte(`" class="username real_username">`) +var topic_31 []byte = []byte(` `) -var topic_31 []byte = []byte(` +var topic_32 []byte = []byte(` `) -var topic_35 []byte = []byte(``) -var topic_37 []byte = []byte(``) -var topic_39 []byte = []byte(``) -var topic_41 []byte = []byte(``) -var topic_43 []byte = []byte(` +var topic_34 []byte = []byte(`background-color:/*#eaffea*/#D6FFD6;`) +var topic_35 []byte = []byte(`">`) +var topic_36 []byte = []byte(``) +var topic_38 []byte = []byte(``) +var topic_40 []byte = []byte(``) +var topic_42 []byte = []byte(``) +var topic_44 []byte = []byte(` +var topic_45 []byte = []byte(`?session=`) +var topic_46 []byte = []byte(`&type=topic" class="mod_button report_item" style="font-weight:normal;" title="Flag Topic"> `) -var topic_46 []byte = []byte(` `) -var topic_48 []byte = []byte(` `) -var topic_50 []byte = []byte(` `) -var topic_52 []byte = []byte(` +var topic_47 []byte = []byte(` `) +var topic_49 []byte = []byte(` `) +var topic_51 []byte = []byte(` `) +var topic_53 []byte = []byte(`