- Problem number : 2 part 2
- Email : reza.smart306@gmail.com
- Programming Language : PHP
- Framework : Codeigniter
- PHP 5.4 or greater
- MySql 5.1+
- PHP extensions : GD2 , ZIP
file folder inside project folder should has write premission
- write your database connection information in
path/to/project/application/config/database.php
//path/to/project/application/config/database.php $db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', 'username' => '', 'password' => '', 'database' => '',
- Load migrate controller
http://localhost/path/to/project/public_html/migrate
- load
http://localhost/path/to/project/public_html/
. - Login page is default controller .
- Click on
create new account
at below of login form and create new account . - After login you will push in your repository with 200 mb space .
- each user has one repository but repositories can be share between users
- by click on
upgrade panel
in top menu you will be able to add to your repository space . - In left side of your repository you see a list of user that can access to your repository .
- by click on plus button you can add exists user to your repository
- In the top menu by click on
friends repository
you can see a list of user that share their repository with you and by click on each user you can see their repository . - In the main repository page you see upload form and new folder from for uploading and creating new folder
- After uploading or creating folder you will be see file tree in repository
- by click on folder you will see folder content
- by click on file you will see file preview
- file preview for text and zip and pics is special (you will able to see their content and download file inside zip files)
- after click on each file you see file preview
- by click on
get link for this file
, system generate a link for the file ( this link is public and you can share it with all people that doesnt has account in app) . - after that you can see 2 button (
clear link
,make link private
) , by click on clear link you can remove the link . - by click on
make link private
this link will be accessable only for your repository members and users that you add inAdd user to access this file
form .
- by click on
PART 2:
- If you file extension be .txt , in file preview you will see
CILICK HERE TO EDIT THIS FILE
link at top of text preview . by click on that you can edit text file content . - In your repository in left side by click on plus(+) button you can add user to access to your repository . in add from in drop-down
select permision level
field , if you selectREAD/WRITE/EDIT
option , the added user can edit text file ;
Notice : upload allows type is defined in
path/to/project/application/config/my_app_config.php