forked from buckyroberts/Social-Network
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6b94858
Showing
1,184 changed files
with
141,860 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
forum/project_files | ||
images/forum/upload | ||
images/trade | ||
products | ||
photos | ||
phpmyadmin | ||
tmp | ||
|
||
dashboard | ||
forbidden | ||
restricted | ||
xampp | ||
.idea/* | ||
.idea/dataSources.local.xml | ||
.idea/codeStyleSettings.xml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
|
||
RewriteBase / | ||
|
||
#RewriteCond %{HTTPS} off | ||
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | ||
|
||
#RewriteRule ([^maintenance]\.php) maintenance.php [L] | ||
|
||
RewriteRule ^videos_math.php videos.php?subject=2&%{QUERY_STRING} | ||
RewriteRule ^videos_science.php videos.php?subject=3&%{QUERY_STRING} | ||
RewriteRule ^videos_social.php videos.php?subject=4&%{QUERY_STRING} | ||
RewriteRule ^videos_humanities.php videos.php?subject=5&%{QUERY_STRING} | ||
RewriteRule ^videos_business.php videos.php?subject=6&%{QUERY_STRING} | ||
RewriteRule ^videos_food.php videos.php?subject=7&%{QUERY_STRING} | ||
RewriteRule ^videos_beauty.php videos.php?subject=8&%{QUERY_STRING} | ||
RewriteRule ^videos_health.php videos.php?subject=9&%{QUERY_STRING} | ||
|
||
RewriteRule ^index\.php$ - [L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule . /index.php [R=302] | ||
</IfModule> | ||
php_value upload_max_filesize 300M | ||
php_value post_max_size 300M | ||
php_value max_execution_time 300 | ||
php_value max_input_time 300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# thenewboston Social Network | ||
Welcome to the GitHub page for **thenewboston**, an open source social network created with the goal of providing free educational resources to anyone in the world. | ||
|
||
 | ||
|
||
## Overview | ||
Over the years, **thenewboston** has evolved from a small-scale tutorial based website into one fastest growing, most innovative social networks on the web. Our open source software is not only 100% free, but also has the best communities for any help and support in the world. | ||
|
||
In addition to the development communities, there will be documentation, wikis, and forums all built by the community, for the community. This project is much more than just a website. It is a platform that will connect, develop, and change the world in a whole new way. | ||
|
||
It's time to change the face of social networking. We already have the community. We already have the ideas. Now it’s time to make it happen. | ||
|
||
## How to Setup | ||
The following guides explain how to install and setup the project for developers. | ||
|
||
* [Windows](https://github.com/thenewboston-developers/thenewboston-Social-Network/wiki/Installing-and-Configuring-XAMPP) | ||
|
||
## Social Features | ||
Here are some of the standard features that are included in the project: | ||
|
||
* **Stream -** view all posts, images, and videos from your friends | ||
* **User Profiles -** displays your profile picture, name, and other basic information | ||
* **Post Settings -** manage whether a post is public or viewable only by your friends | ||
* **Private Messaging -** easy to use system for direct messaging between users | ||
* **Real Time Chat -** intergrated real time messaging system | ||
* **Notifications -** notification settings for friend posts, forum topics, and more | ||
* **Most Popular -** view top rated posts, images, and videos | ||
* **Pages -** create and manage your own pages for any of your hobbies or interests | ||
|
||
 | ||
|
||
## Educational Features | ||
Here are some of the standard features that are included in the project: | ||
|
||
* **Forum -** community bulletin board where users can ask questions, share ideas, and participate in public discussions | ||
* **Search -** users can search for friends, pages, forum posts, and more | ||
* **Reputation System -** members will earn reputation points and badges for fun when their post or forum topic is liked | ||
* **Videos & Tutorials -** one of the webs largest collections of educational videos and tutorials on subjects such as computer science, math, humanities, and more | ||
|
||
 | ||
|
||
## Bitcoin Features | ||
Inspired by the beliefs of freedom and innovation, we have created several Bitcoin related tools and services which are fully integrated into every user account. | ||
|
||
* **Built-in Wallet -** every account comes with a personal, easy to use Bitcoin wallet | ||
* **Marketplace -** cutting edge marketplace where users can buy and sell items with Bitcoin | ||
* **Ad Network -** completely innovative advertising network where advertisers and publishers can buy and sell ads using Bitcoin | ||
|
||
 | ||
|
||
## Admin Features | ||
Easily manage posts, users, and permissions. | ||
|
||
* **Manage Users -** advanced management system to verify, ban, and delete users | ||
* **Manage Posts -** ability to review, edit, and delete | ||
* **User Permissions -** easily manage permissions for registered users, moderators, and administrators | ||
* **Reporting -** community based reporting system for forum topics, profile posts, and more | ||
|
||
## Contribute | ||
Easily manage posts, users, and permissions. | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE `users_bitcoin` ( | ||
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`userID` INT(11) DEFAULT NULL, | ||
`bitcoin_guid` VARCHAR(100) DEFAULT '', | ||
`bitcoin_address` VARCHAR(100) DEFAULT '', | ||
`bitcoin_link` VARCHAR(200) DEFAULT NULL, | ||
`bitcoin_password` VARCHAR(250) DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) | ||
ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE `moderator_candidates` DROP `candidateType`; | ||
ALTER TABLE `moderator` DROP `moderatorType`; |
30 changes: 30 additions & 0 deletions
30
_dev_dbchanges/04_change_table_engines_to_innodb_and_add_foreign_keys.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
ALTER TABLE `moderator_candidates` ENGINE = InnoDB; | ||
ALTER TABLE `moderator_votes` ENGINE = InnoDB; | ||
|
||
CREATE TABLE `moderator_candidates` ( | ||
`candidateID` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`userID` INT(11) DEFAULT NULL, | ||
`candidateText` TEXT, | ||
`votes` INT(11) DEFAULT '0', | ||
`appliedDate` DATETIME DEFAULT NULL, | ||
PRIMARY KEY (`candidateID`) | ||
) | ||
ENGINE = InnoDB | ||
DEFAULT CHARSET = latin1; | ||
|
||
CREATE TABLE `moderator_votes` ( | ||
`voteID` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`voterID` INT(11) DEFAULT NULL, | ||
`candidateID` INT(11) UNSIGNED NOT NULL, | ||
`voteType` TINYINT(2) DEFAULT '0' | ||
COMMENT '1: Approval Vote, 0: Negative Vote', | ||
`voteDate` DATETIME DEFAULT NULL, | ||
`voteStatus` TINYINT(2) DEFAULT '1', | ||
PRIMARY KEY (`voteID`), | ||
KEY `MODERATOR_VOTES_CANDIDATES_ID_INDEX` (`candidateID`), | ||
CONSTRAINT `MODERATOR_CANDIDATE_ID_FOREIGN_KEY` FOREIGN KEY (`candidateID`) REFERENCES `moderator_candidates` (`candidateID`) | ||
ON DELETE CASCADE | ||
ON UPDATE NO ACTION | ||
) | ||
ENGINE = InnoDB | ||
DEFAULT CHARSET = latin1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE `reports` ADD COLUMN `reportedID` INT(11) | ||
AFTER `reporterID`; |
Oops, something went wrong.