Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

renato zurich

nao consigo configurar

Recommended Posts

alguem poderia me ajudar a entende este script pois ja coloquei no servidor mais nao entendi como eu faço para funcionar nao sei nada de php por favor help<?php/*************************************************************************** * conf.php * ------------------- * begin : Tuesday', Aug 15', 2002 * copyright : ('C) 2002 Bugada Andrea * email : phpATM@free.fr * * $Id: conf.php, v1.21 2005/03/09 11:53:50 bugada Exp $ * * ***************************************************************************//*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License', or * ('at your option) any later version. * ***************************************************************************/if ( !defined('IN_PHPATM') ){ die("Hacking attempt");}//// PHP scripts file extension, change it only if your server requires a// different name for php scripts. Rememember to rename all .php files// with the new extension EXCLUDING 'conf.php'//$phpExt = 'php';//// Don't touch this include//include($include_location.'include/constants.'.$phpExt);//// URL link to homepage (the link under "home" icon).// These value will not influence the script working//$homeurl = "http://www.renatozurich.com";//// The name of administrator (usually your name)//$admin_name = 'Renato';//// Administrator e-mail address//$admin_email = 'contato@renatozurich.com';//// If your site has the mail function disabled you can use the SMTP e-mailer.// Just set $use_smtp to true, fill $smtp_host with your smtp server (something// like smtp.yourisp.net) and, if required, your username and password.// Note that if you use 'localhost' as host, password and username normally// are not required.//$use_smtp = false;$smtp_host ='';$smtp_username = '';$smtp_password = '';//// $domain_name: the domain of your site without trailing 'http://' (eg. www.mysite.net)// $script_folder_path: the path where phpATM is located relative to the domain name//$domain_name = 'www.yourdomain.tld';$script_folder_path = 'folder1/folder2';$installurl = 'http://' . $domain_name . '/' . $script_folder_path;//// You have to change next settings if you wish use non-default folders// Highly recommended to change folders name to improve security//$users_folder_name = 'users';$userstat_folder_name = 'userstat';$uploads_folder_name = 'files';$languages_folder_name = 'languages';$stats_folder_name = 'stats';$viewers_folder_name = 'viewers';//// Cookie settings. Normally changing these settings is not required.// If you want to limit the cookie validity to a particular// path or domain enter it in $cookiepath and $cookiedomain; set $cookiesecure// true only if your server is SSL Secure. The default cookie validity is set to 1 year// (24 * 365 = 8760 hours), you can decrease it if you want//$cookiedomain = '';$cookiepath = '';$cookiesecure = false;$cookievalidity = 8760; //hours//// User type grants// ================//// view: user can view the file list// modwon: user can modify name and description of own files only// NOTE: if modall is true, the value of modown will be ignored (assumed true)// delown: user can delete own files only// NOTE: if delall is true, the value of delown will be ignored (assumed true)// download: user can download files// NOTE: if view is false then the value of download will be ignored (assumed false)// mail: user can mail files to his own mail address with size limitation (see mailall)// NOTE: if view is false then the value of mail will be ignored (assumed false)// upload: user can upload files// mkdir: user can create directories// modall: user can modify name and description of all files and directories// delall: user can delete any files or directories// mailall: user can send files to his own mail address without size limitation// webcopy: user can upload files by http address// validate: user can validate new uploaded file//// Consider following lines as a table and modify true to false and viceversa paying// attention to not delete commas or parentesis nor other special chars.// Please don't change uppercase values!!//// STATUS => array(view, modown, delown, download, mail, upload, mkdir, modall, delall, mailall, webcopy, validate)// V V V V V V V V V V V V$grants = array( ANONYMOUS => array(true, FALSE, FALSE, true, FALSE, false, false, FALSE, FALSE, FALSE, false, false), UPLOADER => array(true, false, false, false, false, true, false, false, false, false, true, false), VIEWER => array(true, false, false, false, false, false, false, false, false, false, false, false), NORMAL => array(true, true, true, true, true, true, true, false, false, false, false, false), POWER => array(true, true, true, true, true, true, true, false, false, true, true, true ), ADMIN => array(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE , TRUE, TRUE, TRUE ));//// The default status of new registered user// ADMIN - Administrator, POWER - Power User, NORMAL - Normal User,// VIEWER - Viewer (view only), UPLOADER - Uploader (upload only)//$default_user_status = NORMAL;//// The text displayed in the browser titlebar//$page_title = 'PHP Advanced Transfer Manager';//// The default status of a new uploaded file:// 0 - new files do not require admin approval to be listed// 1 - admin approval is required before a new file can be listed//$validation_enabled = 1;//// Server timezone offset, relative to GMT (Greenwich Mean Time), in hours// Change this setting only if time works incorrect//$GMToffset = date('Z')/3600;//// The time when script have to do maintenance functions// (delete unauhtorized users, send digest, etc.). For instance, if you want// to do maintenance functions after 03:00, set the value to 3.//$maintenance_time = 2;//// Enable or disable mail functions. If disabled, the digest,// mail confirmation & file mailing function is off//$mail_functions_enabled = true;//// The maximum size of file, which normal users can send to their mail (in kilobytes)// To disable this function (for normal users only), set size below zero//$max_filesize_to_mail = 500;//// Enable or disable account activation via e-mail.// These feature helps you check the e-mail address of registered user//$require_email_confirmation = false;//// Enable or disable language switching ability// Disable it if you have only one language installed.//$allow_choose_language = true;//// Max number of files listed in 'last uploads' section// Don't exceed, since the page load can be very slow//$max_last_files = 10;//// Max number of files listed in 'top downloads' section// Don't exceed, since the page load can be very slow//$max_topdownloaded_files = 10;//// The mail header for digest (html code allowed)// You can configure it in the 'settings panel' (only administrator)//$mailinfopage='include/mailinfo.htm';//// Default language, the language code of one element stored in 'languages' dir// Anonymous cant't configure this, so will ever use this language//$dft_language = 'en';//// Maximum allowed filesize to upload (Kilobytes)// Note: php.ini and server also have an upload size limit//$max_allowed_filesize = 2048;//// Maximum daily allowed Mb upload - set to number of Mb allowed daily.// Set to -1 if you wish not to have this forced.//$max_daily_mb = 1;//// Maximum monthly allowed Mb upload - set to number of Mb allowed monthly// Set to -1 if you wish not to have this forced//$max_monthly_mb = 30;//// Maximum daily download// Set to -1 if you wish not to have this enforced.//$max_daily_download_mb = 1;//// Maximum monthly download// Set to -1 if you wish not to have this enforced//$max_monthly_download_mb = 3;//// Format of date & time (in PHP time format, see php.net)//$datetimeformat = 'd.m.Y H:i';//// Max number chars for file and directory names//$file_name_max_caracters = 150;//// Max number chars for filename in tables//$file_out_max_caracters = 40;//// Max number chars for file comment (description)//$comment_max_caracters = 300;//// Reserved filename//$reserved_files = "index\.html|^\.|\.desc$|\.dlcnt$";//// Regular expression defines which files can't be uploaded// If you don't know what are regular expressions, don't touch this.//$rejectedfiles = "^index\.|\.desc$|\.dlcnt$|\.php$|\.php3$|\.cgi$|\.pl$";//// Show hidden files (like .htaccess, etc) and directories (see $hidden_dirs)//$showhidden = false;//// Hidden directories (regular expression) that won't be shown nor won't be// analized for digest, last uploads and top donwloads. Note that users can't// create dirs with an hidden name. Default value hides Fr*ntP*ge directories.//$hidden_dirs = "^_vti_";//// Header & Background colors of table, Font colors// Only the first skin in the array currently works!//$skins = array( array( 'bordercolor' => '#000000', // The table border color 'headercolor' => '#4682B4', // The table header color 'tablecolor' => '#F5F5F5', // The table background color 'lightcolor' => '#FFFFFF', // Table date field color 'headerfontcolor' => '#FFFFFF', 'normalfontcolor' => '#000000', 'selectedfontcolor' => '#4682B4', 'bodytag' => "bgcolor=\"#E5E5E5\" text=\"#000000\" link=\"#000000\" vlink=\"#333333\" alink=\"#000000\"" ));//// Text font used in every page//$font = 'Verdana';//// Mimetypes, feel free to change the list but don't remove 'directory' and 'default'.// Make sure that the specified image exists in 'images' folder and follow// the existing structure//$mimetypes = array ('.txt' => array('img' => 'txt.gif', 'mime' => 'text/plain'),'.html' => array('img' => 'html.gif', 'mime' => 'text/html'),'.htm' => array('img' => 'html.gif', 'mime' => 'text/html'),'.doc' => array('img' => 'doc.gif', 'mime' => 'application/msword'),'.pdf' => array('img' => 'pdf.gif', 'mime' => 'application/pdf'),'.xls' => array('img' => 'xls.gif', 'mime' => 'application/msexcel'),'.gif' => array('img' => 'gif.gif', 'mime' => 'image/gif'),'.jpg' => array('img' => 'jpg.gif', 'mime' => 'image/jpeg'),'.jpeg' => array('img' => 'jpg.gif', 'mime' => 'image/jpeg'),'.bmp' => array('img' => 'bmp.gif', 'mime' => 'image/bmp'),'.png' => array('img' => 'gif.gif', 'mime' => 'image/png'),'.zip' => array('img' => 'zip.gif', 'mime' => 'application/zip'),'.rar' => array('img' => 'rar.gif', 'mime' => 'application/x-rar-compressed'),'.gz' => array('img' => 'zip.gif', 'mime' => 'application/x-compressed'),'.tgz' => array('img' => 'zip.gif', 'mime' => 'application/x-compressed'),'.z' => array('img' => 'zip.gif', 'mime' => 'application/x-compress'),'.exe' => array('img' => 'exe.gif', 'mime' => 'application/x-msdownload'),'.mid' => array('img' => 'mid.gif', 'mime' => 'audio/mid'),'.midi' => array('img' => 'mid.gif', 'mime' => 'audio/mid'),'.wav' => array('img' => 'wav.gif', 'mime' => 'audio/x-wav'),'.mp3' => array('img' => 'mp3.gif', 'mime' => 'audio/x-mpeg'),'.avi' => array('img' => 'avi.gif', 'mime' => 'video/x-msvideo'),'.mpg' => array('img' => 'mpg.gif', 'mime' => 'video/mpeg'),'.mpeg' => array('img' => 'mpg.gif', 'mime' => 'video/mpeg'),'.mov' => array('img' => 'avi.gif', 'mime' => 'video/quicktime'),'.swf' => array('img' => 'flash.gif', 'mime' => 'application/x-shockwave-flash'),'.gtar' => array('img' => 'rar.gif', 'mime' => 'application/x-gtar'),'.tar' => array('img' => 'rar.gif', 'mime' => 'application/x-tar'),'.tiff' => array('img' => 'defaut.gif', 'mime' => 'image/tiff'),'.tif' => array('img' => 'defaut.gif', 'mime' => 'image/tiff'),'.rtf' => array('img' => 'doc.gif', 'mime' => 'application/rtf'),'.eps' => array('img' => 'defaut.gif', 'mime' => 'application/postscript'),'.ps' => array('img' => 'defaut.gif', 'mime' => 'application/postscript'),'.qt' => array('img' => 'avi.gif' , 'mime' => 'video/quicktime'),'directory' => array('img' => 'dossier.gif', 'mime' => ''),'default' => array('img' => 'defaut.gif', 'mime' => 'application/octet-stream'));//// Chars removed from filename and directory name for safety purposes// Avoid to modify it unless you are sure about what are you doing.//$invalidchars = array ("'","\"","\"",'&',',',';','/',"\\",'`','<','>',':','*','|','?','§','+','^','(',')','=','$','%');//// Insert here IP addresses that are not allowed to access your site// Default values should not exist, but are present to show you how// insert them. If you want you can delete them.// Warning IP address in this list must be numerical!//$ip_black_list = array ('127.0.0.2','127.0.0.3',);?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

o manual diz que este mais alguem entende isto pois nao entendi nada de nada!!!!

 

 

==============================================================

PHP Advanced Transfer Manager (aka phpATM)

©2002-2005, Andrea Bugada (phpATM@free.fr)

==============================================================

remotely based upon PHP Upload Center v2.0

© 2001, 2002, Sergey Korostel (skorostel@mail.ru)

 

 

Requirements

------------

 

Windows/Linux,

a web server (Apache 1.3+ recommended)

PHP 4.0.0+

 

Support

-------

 

Please visit http://phpATM.free.fr for latest version and support.

Report bug or comments in the bullettin board and please use the

e-mail (phpATM@free.fr) only if the bullettin board is unaccessible.

 

History

-------

 

See History.txt

 

Main features

-------------

 

1. Multilangual

2. Time zone offset (depends on selected language).

3. User can give description to file.

4. Download counter.

5. User can sort files by name, upload date, downloads.

5. User can delete o modify its own files

6. Administrator and Poweruser can delete all files and

create/delete directories

7. Filename length limit.

9. Appearance tuning (colors, font)

10. Is is possible to define header and footer.

12. Possibility to view contents of ZIP archives without downloading.

13. Possibility to view images and other type of files on the fly.

14 Recent file list and top downloads list

14. User acccounts support.

15. IP Logging and Blocking.

16. Account management system.

17. In order to check user e-mail addresses you can enable user

activation system.

18. User can subscrbe on everyday digest of uploaded files list

via e-mail (optional).

19. Users can get small files by e-mail (optional).

21. User statistics (uploaded/downloaded/e-mailed files, last access).

22. Administrator can show info message over the file list.

23. Highly configurable (see include/conf.php)

24. Possibility to use server mailer or your own SMTP

25. No cookies needed (but if present used)

 

 

How to install PHP Advanced Transfer Manager

--------------------------------------------

 

- Create folder for php script on the server.

- Customize, values of variables in file include/conf.php

See comments in file.

- Customize files nn.php (where nn - is language code).

- If your server require a particular extension to recognize php scripts

(eg '.php4') you have to set correctly the $phpExt in conf.php and

change the extension of all files EXCLUDING conf.php

- Copy all files and subfolders to the server.

- Chmod 777 all files and directories copied (this is very important)

- Register your own new administrator account.

- Activate your new account (needed, if request activation is "on")

- Log in as user "Admin", password "test".

- Go to the administrator console and set to the new account an

administrator rights.

- Log in using new account, go to the administrator console and delete

"Admin" account. DO NOT FORGET DO THIS!!! This can be a serious

security hole!

- As administrator customize header, footer and infos html-files.

- Be sure, that user accounts is not visible, when you typing in browser

the address www.myserver.com/upload/users/username (where

www.myserver.com - is the server name where you installed your script,

username - the name of any registered user)

If visible, you have to configure server!

 

 

How to configure PHP Advanced Transfer Manager

----------------------------------------------

 

1. You can add your custom page header (i.e. banner at the top or at

the bottom of page, or site menu & copyrights) by changing files

header.htm & footer.htm, which placed in include folder.

2. You can change info, modifying file info.htm, which placed in

include folder. If you wish place different info's for different

languages you can assign different .htm filenames in language

files ($infopage variable).

3. You can change header of digest letter by editing mailinfo.htm file.

4. You can easy edit all above files using configuration panel.

5. If you wish change default folder where files will be stored, you can

edit variable $uploads_folder_name in file conf.php.

You have to set the relative path without trailing slash

(e.g. $uploads_folder_name = "files/uploads" ;)

6. Highly recommended change default user folder by changing

$users_folder_name variable. This improve your security.

 

 

How to create a new translation

-------------------------------

 

1. Translate an existing language file (stored in 'languages' folder)

and save it with name 'NN.php', where NN is the country code.

2. Create a new text file called 'NN.lang'.

- in the first line of this file insert the country code (NN)

- in the second the language name followed by timezone description (es. GMT, CET, GMT +1)

- in the third line insert the timezone offset from GMT without the plus

character if positive and with the minus character if negative.

Note: the timezone is calculated GMT + offset. The value on the second line

is only a description and it's not used to calculate the timezone.

2. Copy 'NN.php' and 'NN.lang' to the 'languages' directory on the server

3. Chmod 755 these two new files.

4. Please, don't forget send us your translation. We include it in the new

release of phpATM.

 

How to create a new viewer

--------------------------

 

1. Go to the 'viewer' directory in main distribution.

2. Create a new php file named xxx.php where xxx is the extension of the file you

want to display (es. txt.php for text document, bmp.php for bitmap images etc.)

3. Insert here all the code you need to display the file: you have three global

variables set containing filename, relative path and absoulte path. Use them

to show the file.

4. Chmod 755 the new viewer.

4. Don't forget to send us your new creation . We include it in the new

release of phpATM.

 

 

Description file structure

--------------------------

 

All file descriptions stored in files with .dlcnt extension.

 

1st line - the user name who uploaded file

2nd line - the IP of user

3rd line - file activation: 0 disabled, 1 enabled

all other lines - the file description

 

 

User account file structure

---------------------------

 

The name of file - is the user name.

 

1st line: Encrypted user password

2nd line: Encrypted user session ID, 0 - if user logged out

3rd line: User E-Mail address

4th line: Account status: 0 - Administrator, 1 - Power User,

2 - Normal User, 3 - Viewer (view only), 4 - Uploader (upload only)

5th line: 1 - account active, 0 - disabled, other value - activation code

6th line: Any temporary information (i.e. unconfirmed new user mail)

7th line: 1 if user wish to receive files digest via e-mail, else 0

8th line: The unix time when user account created

9th line: Preferred language (country code)

 

 

Language file structure

-----------------------

All language data is stored in files with .lang extension

into the 'languages' folder. There must be a relative .php file

containing translation strings.

 

1st line: country code

2nd line: language and timezone description

3rd line: numerical timezone offset from GMT

 

stats directory

---------------

The stats directory records daily and monthly bytecounts.

The structure of the stats directory looks like:

 

stats

|____ 2002 (year)

|____ 12 (month)

|____ month.stats (file for monthly upload stats)

|____ 09 (upload count for 9th day of month)

|____ month.stats.download (file for monthly downloaded bytes)

|____ 09.download (file for downloaded bytes for 9th day of month)

 

The directories are created automatically

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.