Files (WEB file sharing PHP script)
A management screen and operation explanation
Back
Table of contents
- Login screen (management screen)
- Management menu
- Set Language
- Config file placement setting
- Password Setting
- Shared Folder List
- Create Shared Folder
- Shared folder update
- Shared folder deletion
- Login Page
1) Login screen (management screen)
It inputs it like directory/index.php etc. that http://WEB server/develop with the address column of a browser.
When index.php is opened, the login page in the figure below is displayed.
As for the manager account, the password is being set to nimda by initialization by admin.
It is input to the admin password of user ID as nimda and selects "Login".
2) Management menu
When login is completed, the management menu in the figure below is displayed.
"Set Language"A
"Config file placement setting", "Password Setting", "Shared Folder List", "Create Shared Folder", "Login Page"
Four menu items are displayed.
2-1) Set Language
Please select the language used from the list under Set Language and push Submit.
2-2) Config file placement setting
The constitution file placement setting screen of the chart below opens when I choose the constitution file placement setting of the management menu.
In "Folder for configuration file", the directory that stores basic configuration file (files.conf) and password file (passwd) is set.
Moreover, it is made for the subdirectory in the directory as which the configuration file and the password file of each shared folder are the same.
Please specify the directory that cannot be referred by a browser for the directory specified here.
(However, the execution user of the WEB server program should be able to read and write it.)
Page (index.php) to the shared folder that becomes an entrance is made for the folder specified by "Folder for entry pages".
It is necessary to be able to refer by a browser though this place is natural.
Please be acceptable like default, and change when you do not want to include an extra passing at the destination of the connection to the shared folder.
In default, the page at the entrance will be made under the folder for the configuration file under the folder of this script like http://www.example.com/files21/config/share_folder/index.php.
URL to the above-mentioned shared folder of the storage place on the page that becomes an entrance is set to "URL of folder for entry pages".
Because passing specified here is used for URL of the shared folder displayed in the footer of each shared folder, you will describe not URL of relativity but URL of full.
Example:
The directory for the configuration file storage is made for a specified place when a set content is input and "Exec" is selected, and the configuration file is moved.
When the shared folder was made, the configuration file has already been moved.
Only the part concerning the arrangement of the configuration file is changed, arranged as the content of a basic configuration file is files.conf of the distribution file, and reflect an existing, set content beforehand, please.
(After it arranges it, you may add the correction.)
Because information on passing is not included in the password file, it replaces with an existing password file or the operation of the replacement etc. later is necessary.
2-3) Password Setting
The setting of the password in the figure below screen opens when the setting of the password of the management menu is selected.
The password inputs the same one twice for the confirmation.
It returns to the menu by "Return" because the screen in the figure below is displayed when it inputs and "Setting" is selected.
2-4) Shared Folder List
The list of the made shared folder is displayed. (figure below)
Moreover, it is possible to move from the list screen to making the shared folder.
There is no folder made in the initial state.
When "New shared folder making" is selected, it is the next.
It moves to "Shared folder making" screen.
When the folder is made, "Name" of the folder and "URL" are displayed as shown in the figure below.
"Name" and "URL" are links to the made shared folder.
The content set to select "Update" can be corrected. The shared folder is deleted by "Deletion".
2-5) Create Shared Folder
The shared folder is newly made.
The item displayed in red is an indispensable filling in item.
"Config Name":It is used for the name of the folder which stores a setup of a shared folder, and the name of a configuration file
A configuration file name is an extension after a setup name. It becomes what added .conf.
"Page title":It is a title displayed on the upper part of the screen of a shared folder.
"Top Folder path":The full path on the file system of the folder which becomes the top of a shared folder is set up.
Please specify the existing directory up to the directory on one. This directory needs to be in the place which reading and a WEB server's execution user can write.
It may be better to specify the directory which is not under management of a WEB server when security is taken into consideration as a head folder, since it can specify from this version also by the directory which does not refer to it directly by URL.
When specifying the folder under management of a WEB server, they are the following contents to the directory for data. .htaccess Probably, it will be better to cope with to place a file and to receive only access from the link on Paige on specification URL etc.
*** following is contents of .htaccess ***
SetEnvIf REFERER "^http://www\.example\.com" ref_ok
Order deny,allow
deny from all
allow from env=ref_ok
(The above is a case of Apache.)
Naka of the directory which developed the archive in the state of the first stage To the inside of the directory named data The value is set so that it may create by the name of new_dir.
Since files.conf in an archive file is a basic configuration file when changing the contents displayed first, it is in it with an editor etc. The value of TOPDIR is changed.
TOPDIR ./data
|
|
V
TOPDIR /var/www/html/files_data
"Top Folder URL"URL of the first folder is specified here.
The link ..file.. is used directly without using the script for the file downloading when this item is set.
In that case, it is necessary to set the shared folder to the place where the WEB server can be referred.
When the bulk file on 2GByte or more that cannot be treated in the download script is downloaded, this option is set.
When this option is set, the place of the shared folder should be an accessible place in a browser.
In that case, it doesn't come recommended , considering security because downloading the file for the URL specification from a browser becomes possible.
- "Return URL 1":
-
It is URL used for the link to the 1st return place.
- "Return URL 1 Title":
-
It is a character string displayed on the link to the 1st return place. It is displayed in the center of the screen upper and lower sides.
- "Return URL 2":
-
It is URL used for the link to the 2nd return place.
- "Return URL 2 Title":
-
It is a character string displayed on the link to the 2nd return place. It is displayed on the right-hand side of the screen upper and lower sides.
- "No auth caller url(option)":
-
When called from URL specified here, a file list screen is displayed without displaying a login screen.
- "Max upload file size":
-
The maximum size of a file to upload is specified. A unit is specified with a right-hand side radio button. It can also divide and input triple figures at a time with a comma.
- "Max Use Capacity"
-
The disk storage capacity which can be used by a shared folder is specified. A unit is specified with a right-hand side radio button. It can also divide and input triple figures at a time with a comma.
- "Create":
-
A shared folder is actually created with a creation button.
Inside of the directory which developed the archive when the shared folder was created config The directory of the name same under a directory as a setup name is created. A configuration file called setup name .conf, a password file (passwd), and the file of Paige for connection (index.php) are created in it.
for accessing a shared folder -- the -- URL of index.php will be specified.
(Example: http://www.server.com/filesXXX/config/settei-name/index.php)
2-6) Shared folder setting update
A setup of a shared folder is updated.
If "Update" is chosen by shared folder list, the updating screen of the following figure will be displayed.
It will update, if an item is edited and "Update" button is pushed.
2-7) Delete Shared Folder
A shared folder is deleted.
If "Delete" is chosen by shared folder list, the deletion screen of the following figure will be displayed.
A push on "Delete" button will delete a shared folder.
2-8) Login Page
It returns to a login screen
Copyright (c) 2004-2014 GUSUKU All rights reserved.
Back