No changes
This commit is contained in:
parent
8680a02b13
commit
b6b398f5bf
17374 changed files with 2475441 additions and 0 deletions
191
ControlPanel/modules/ftp/settings.inc.php
Normal file
191
ControlPanel/modules/ftp/settings.inc.php
Normal file
|
|
@ -0,0 +1,191 @@
|
|||
<?php
|
||||
|
||||
// -------------------------------------------------------------------------------
|
||||
// | net2ftp: a web based FTP client |
|
||||
// | Copyright (c) 2003-2013 by David Gartner |
|
||||
// | |
|
||||
// -------------------------------------------------------------------------------
|
||||
// | |
|
||||
// | Enter your settings and preferences below. |
|
||||
// | |
|
||||
// | The structure of each line is like this: |
|
||||
// | $net2ftp_settings["setting_name"] = "setting_value"; |
|
||||
// | |
|
||||
// | BE CAREFUL WHEN EDITING THE FILE: ONLY EDIT THE setting_value, AND DO NOT |
|
||||
// | ERASE THE " OR THE ; CHARACTERS. |
|
||||
// -------------------------------------------------------------------------------
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
// Basic settings
|
||||
// ----------------------------------------------------------------------------------
|
||||
function lang_str($ogp_lang){
|
||||
switch ( $ogp_lang ){
|
||||
case "Danish":
|
||||
return "da";
|
||||
break;
|
||||
case "French":
|
||||
return "fr";
|
||||
break;
|
||||
case "German":
|
||||
return "de";
|
||||
break;
|
||||
case "Polish":
|
||||
return "pl";
|
||||
break;
|
||||
case "Portuguese":
|
||||
return "pt";
|
||||
break;
|
||||
case "Russian":
|
||||
return "ru";
|
||||
break;
|
||||
case "Spanish":
|
||||
return "es";
|
||||
break;
|
||||
default:
|
||||
return "en";
|
||||
}
|
||||
}
|
||||
$panel_email_address = $settings['panel_email_address'];
|
||||
$panel_language = $settings['panel_language'];
|
||||
|
||||
// Enter your email address
|
||||
// This is used as "from" address when sending files in attachment
|
||||
$net2ftp_settings["email_feedback"] = $panel_email_address;
|
||||
|
||||
// Default language and skin (look in /languages and /skins to see which are available)
|
||||
|
||||
if(file_exists("includes/helpers.php")){
|
||||
require_once("includes/helpers.php");
|
||||
}else{
|
||||
if(file_exists(__DIR__ . "/../../includes/helpers.php")){
|
||||
require_once(__DIR__ . "/../../includes/helpers.php");
|
||||
}
|
||||
}
|
||||
|
||||
if(function_exists("startSession")){
|
||||
startSession();
|
||||
}else{
|
||||
session_name("opengamepanel_web");
|
||||
session_start();
|
||||
}
|
||||
|
||||
$net2ftp_settings["default_language"] = ($_SESSION['users_lang'] != "" and $_SESSION['users_lang'] != "-") ? lang_str($_SESSION['users_lang']) :
|
||||
($panel_language != "-") ? lang_str($panel_language): "en";
|
||||
$net2ftp_settings["default_skin"] = "blue";
|
||||
// Enter the address of your help pages, support forum or ticket system
|
||||
// This will add a link in the footer; leave empty if you don't have this
|
||||
$net2ftp_settings["help_text"] = "";
|
||||
$net2ftp_settings["help_link"] = "";
|
||||
|
||||
// PHP error reporting
|
||||
//$net2ftp_settings["error_reporting"] = "NONE";
|
||||
$net2ftp_settings["error_reporting"] = "standard";
|
||||
//$net2ftp_settings["error_reporting"] = "ALL";
|
||||
|
||||
// Fix transparent PNG images in IE
|
||||
$net2ftp_settings["fix_png"] = "yes";
|
||||
|
||||
// MD5 salt and encryption string (change them to improve security)
|
||||
$net2ftp_settings["encryption_string"] = "462E16CB7C3F369BD9F4DBEE0A926F8F14FFB3";
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
// Admin Panel username and password
|
||||
// If no password is set, the Admin panel will not be accessible by anyone
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
||||
$net2ftp_settings["admin_username"] = "admin";
|
||||
$net2ftp_settings["admin_password"] = "admin";
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
// Message on Browse screen
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
||||
$net2ftp_settings["message_browse"] = "";
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
// A MySQL database is optional. It can be used for: logging the users,
|
||||
// checking the consumption of network and server resources (data transfer
|
||||
// volume and script execution time), and checking the user's home directory
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
||||
// MASTER SETTING that overrides the other settings below: use a database?
|
||||
$net2ftp_settings["use_database"] = "no"; // "yes" or "no"
|
||||
|
||||
// Enter your MySQL settings
|
||||
$net2ftp_settings["dbusername"] = "";
|
||||
$net2ftp_settings["dbpassword"] = "";
|
||||
$net2ftp_settings["dbname"] = "";
|
||||
$net2ftp_settings["dbserver"] = "localhost"; // on many configurations, this is "localhost"
|
||||
|
||||
// Switch different types of logs on or off
|
||||
$net2ftp_settings["log_access"] = "yes";
|
||||
$net2ftp_settings["log_error"] = "yes";
|
||||
|
||||
// Delete logs which are older than X days automatically
|
||||
$net2ftp_settings["log_length_days"] = 31; // number of days
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
// Logging to the system logger
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
||||
$net2ftp_settings["use_syslog"] = "no";
|
||||
$net2ftp_settings["syslog_priority"] = LOG_NOTICE;
|
||||
$net2ftp_settings["syslog_facility"] = LOG_MAIL;
|
||||
$net2ftp_settings["syslog_ident"] = "net2ftp";
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
// Files bigger than this limit will be excluded from:
|
||||
// upload, download, copy, move, search, view, edit
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
||||
$net2ftp_settings["max_filesize"] = "10000000000"; // in Bytes, default 10 MB
|
||||
|
||||
// Note: IF YOU WANT TO ALLOW LARGE FILE UPLOADS, YOU MAY HAVE TO ADJUST
|
||||
// THE FOLLOWING PARAMETERS:
|
||||
// 1 - in the file php.ini: upload_max_filesize, post_max_size,
|
||||
// max_execution_time, memory_limit
|
||||
// 2 - in the file php.conf: LimitRequestBody
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
// Server resource consumption settings
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
||||
// Switch consumption checking on or off
|
||||
$net2ftp_settings["check_consumption"] = "no";
|
||||
|
||||
// Maximum data transfer volume per day (in Bytes)
|
||||
$net2ftp_settings["max_consumption_ipaddress_datatransfer"] = 50000000; // per IP address
|
||||
$net2ftp_settings["max_consumption_ftpserver_datatransfer"] = 50000000; // per FTP server
|
||||
|
||||
// Maximum script execution time per day (in seconds)
|
||||
$net2ftp_settings["max_consumption_ipaddress_executiontime"] = 1500; // per IP address
|
||||
$net2ftp_settings["max_consumption_ftpserver_executiontime"] = 1500; // per FTP server
|
||||
|
||||
// Maximum number of FTP servers that can be accessed per day
|
||||
$net2ftp_settings["max_consumption_ipaddress_nr_of_ftpservers"] = 50; // per IP address
|
||||
|
||||
// Check the user's home directory?
|
||||
$net2ftp_settings["check_homedirectory"] = "yes";
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
// DO NOT CHANGE ANYTHING BELOW THIS LINE
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
||||
$net2ftp_settings["application_version"] = "1.0";
|
||||
$net2ftp_settings["application_build_nr"] = "47";
|
||||
|
||||
// Is this net2ftp.com, or a net2ftp installation elsewhere
|
||||
$net2ftp_settings["net2ftpdotcom"] = "no";
|
||||
|
||||
// Show advertisements
|
||||
// Not shown when using HTTPS to avoid warnings on each pageload
|
||||
$net2ftp_settings["show_ads"] = "no";
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue