settings.inc.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?php
  2. // -------------------------------------------------------------------------------
  3. // | net2ftp: a web based FTP client |
  4. // | Copyright (c) 2003-2013 by David Gartner |
  5. // | |
  6. // -------------------------------------------------------------------------------
  7. // | |
  8. // | Enter your settings and preferences below. |
  9. // | |
  10. // | The structure of each line is like this: |
  11. // | $net2ftp_settings["setting_name"] = "setting_value"; |
  12. // | |
  13. // | BE CAREFUL WHEN EDITING THE FILE: ONLY EDIT THE setting_value, AND DO NOT |
  14. // | ERASE THE " OR THE ; CHARACTERS. |
  15. // -------------------------------------------------------------------------------
  16. // ----------------------------------------------------------------------------------
  17. // Basic settings
  18. // ----------------------------------------------------------------------------------
  19. function lang_str($ogp_lang){
  20. switch ( $ogp_lang ){
  21. case "Danish":
  22. return "da";
  23. break;
  24. case "French":
  25. return "fr";
  26. break;
  27. case "German":
  28. return "de";
  29. break;
  30. case "Polish":
  31. return "pl";
  32. break;
  33. case "Portuguese":
  34. return "pt";
  35. break;
  36. case "Russian":
  37. return "ru";
  38. break;
  39. case "Spanish":
  40. return "es";
  41. break;
  42. default:
  43. return "en";
  44. }
  45. }
  46. $panel_email_address = $settings['panel_email_address'];
  47. $panel_language = $settings['panel_language'];
  48. // Enter your email address
  49. // This is used as "from" address when sending files in attachment
  50. $net2ftp_settings["email_feedback"] = $panel_email_address;
  51. // Default language and skin (look in /languages and /skins to see which are available)
  52. if(file_exists("includes/helpers.php")){
  53. require_once("includes/helpers.php");
  54. }else{
  55. if(file_exists(__DIR__ . "/../../includes/helpers.php")){
  56. require_once(__DIR__ . "/../../includes/helpers.php");
  57. }
  58. }
  59. if(function_exists("startSession")){
  60. startSession();
  61. }else{
  62. session_name("opengamepanel_web");
  63. session_start();
  64. }
  65. $net2ftp_settings["default_language"] = ($_SESSION['users_lang'] != "" and $_SESSION['users_lang'] != "-") ? lang_str($_SESSION['users_lang']) :
  66. ($panel_language != "-") ? lang_str($panel_language): "en";
  67. $net2ftp_settings["default_skin"] = "blue";
  68. // Enter the address of your help pages, support forum or ticket system
  69. // This will add a link in the footer; leave empty if you don't have this
  70. $net2ftp_settings["help_text"] = "";
  71. $net2ftp_settings["help_link"] = "";
  72. // PHP error reporting
  73. //$net2ftp_settings["error_reporting"] = "NONE";
  74. $net2ftp_settings["error_reporting"] = "standard";
  75. //$net2ftp_settings["error_reporting"] = "ALL";
  76. // Fix transparent PNG images in IE
  77. $net2ftp_settings["fix_png"] = "yes";
  78. // MD5 salt and encryption string (change them to improve security)
  79. $net2ftp_settings["encryption_string"] = "462E16CB7C3F369BD9F4DBEE0A926F8F14FFB3";
  80. // ----------------------------------------------------------------------------------
  81. // Admin Panel username and password
  82. // If no password is set, the Admin panel will not be accessible by anyone
  83. // ----------------------------------------------------------------------------------
  84. $net2ftp_settings["admin_username"] = "admin";
  85. $net2ftp_settings["admin_password"] = "admin";
  86. // ----------------------------------------------------------------------------------
  87. // Message on Browse screen
  88. // ----------------------------------------------------------------------------------
  89. $net2ftp_settings["message_browse"] = "";
  90. // ----------------------------------------------------------------------------------
  91. // A MySQL database is optional. It can be used for: logging the users,
  92. // checking the consumption of network and server resources (data transfer
  93. // volume and script execution time), and checking the user's home directory
  94. // ----------------------------------------------------------------------------------
  95. // MASTER SETTING that overrides the other settings below: use a database?
  96. $net2ftp_settings["use_database"] = "no"; // "yes" or "no"
  97. // Enter your MySQL settings
  98. $net2ftp_settings["dbusername"] = "";
  99. $net2ftp_settings["dbpassword"] = "";
  100. $net2ftp_settings["dbname"] = "";
  101. $net2ftp_settings["dbserver"] = "localhost"; // on many configurations, this is "localhost"
  102. // Switch different types of logs on or off
  103. $net2ftp_settings["log_access"] = "yes";
  104. $net2ftp_settings["log_error"] = "yes";
  105. // Delete logs which are older than X days automatically
  106. $net2ftp_settings["log_length_days"] = 31; // number of days
  107. // ----------------------------------------------------------------------------------
  108. // Logging to the system logger
  109. // ----------------------------------------------------------------------------------
  110. $net2ftp_settings["use_syslog"] = "no";
  111. $net2ftp_settings["syslog_priority"] = LOG_NOTICE;
  112. $net2ftp_settings["syslog_facility"] = LOG_MAIL;
  113. $net2ftp_settings["syslog_ident"] = "net2ftp";
  114. // ----------------------------------------------------------------------------------
  115. // Files bigger than this limit will be excluded from:
  116. // upload, download, copy, move, search, view, edit
  117. // ----------------------------------------------------------------------------------
  118. $net2ftp_settings["max_filesize"] = "10000000000"; // in Bytes, default 10 MB
  119. // Note: IF YOU WANT TO ALLOW LARGE FILE UPLOADS, YOU MAY HAVE TO ADJUST
  120. // THE FOLLOWING PARAMETERS:
  121. // 1 - in the file php.ini: upload_max_filesize, post_max_size,
  122. // max_execution_time, memory_limit
  123. // 2 - in the file php.conf: LimitRequestBody
  124. // ----------------------------------------------------------------------------------
  125. // Server resource consumption settings
  126. // ----------------------------------------------------------------------------------
  127. // Switch consumption checking on or off
  128. $net2ftp_settings["check_consumption"] = "no";
  129. // Maximum data transfer volume per day (in Bytes)
  130. $net2ftp_settings["max_consumption_ipaddress_datatransfer"] = 50000000; // per IP address
  131. $net2ftp_settings["max_consumption_ftpserver_datatransfer"] = 50000000; // per FTP server
  132. // Maximum script execution time per day (in seconds)
  133. $net2ftp_settings["max_consumption_ipaddress_executiontime"] = 1500; // per IP address
  134. $net2ftp_settings["max_consumption_ftpserver_executiontime"] = 1500; // per FTP server
  135. // Maximum number of FTP servers that can be accessed per day
  136. $net2ftp_settings["max_consumption_ipaddress_nr_of_ftpservers"] = 50; // per IP address
  137. // Check the user's home directory?
  138. $net2ftp_settings["check_homedirectory"] = "yes";
  139. // ----------------------------------------------------------------------------------
  140. // DO NOT CHANGE ANYTHING BELOW THIS LINE
  141. // ----------------------------------------------------------------------------------
  142. $net2ftp_settings["application_version"] = "1.0";
  143. $net2ftp_settings["application_build_nr"] = "47";
  144. // Is this net2ftp.com, or a net2ftp installation elsewhere
  145. $net2ftp_settings["net2ftpdotcom"] = "no";
  146. // Show advertisements
  147. // Not shown when using HTTPS to avoid warnings on each pageload
  148. $net2ftp_settings["show_ads"] = "no";
  149. ?>