Our main goal is to create a system that combines from one hand a social network and on the other hand a courses management platform (such High-learn, Moodle and etc.)
1.In PHP.INI : A. Uncomment this line : 'sendmail_path = ""C:\xampp\sendmail\sendmail.exe" -t" '. B. Comment this line : 'sendmail_path="C:\xampp\mailtodisk\mailtodisk.exe"'.
2.In SendMail.INI: A. The line "smtp_server=" should be "smtp_server=smtp.gmail.com". B. The line "smtp_port=" should be "smtp_port=587". C. Enter credentials in the lines : "auth_username=" and "auth_password=".
3.Credentials: Account: "BGU.NET.Service@gmail.com". Password: "bguforever".
Create database 'social_network' with two tables 'networks', 'users'. Use the following SQL statements to configure database:
CREATE SCHEMA `bgunet_db`;
CREATE TABLE `bgunet_db`.`users` (
`uid` INT NOT NULL AUTO_INCREMENT,
`username` VARCHAR(255) NULL,
`password` VARCHAR(255) NULL,
`email` VARCHAR(255) NULL,
PRIMARY KEY (`uid`),
UNIQUE INDEX `username_UNIQUE` (`username` ASC),
UNIQUE INDEX `email_UNIQUE` (`email` ASC)
);
CREATE TABLE `bgunet_db`.`social_networks` (
`nid` VARCHAR(255) NOT NULL,
`uid` INT NULL,
`name` VARCHAR(255) NULL,
`url` VARCHAR(255) NULL,
PRIMARY KEY (`nid`),
INDEX `user_in_network_idx` (`uid` ASC),
CONSTRAINT `social_network_FK_uid`
FOREIGN KEY (`uid`)
REFERENCES `bgunet_db`.`users` (`uid`)
ON DELETE CASCADE
ON UPDATE CASCADE
);
Create, manage and delete networks.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Code and documentation copyright 2015 BGU.NET, Code released under the ELGG license. Docs released under Creative Commons.