فهرست منبع

EHCP FTP Integration Changes

own3mall 9 سال پیش
والد
کامیت
f5be7b3e6f
1فایلهای تغییر یافته به همراه16 افزوده شده و 4 حذف شده
  1. 16 4
      OGP/EHCP/config.php

+ 16 - 4
OGP/EHCP/config.php

@@ -4,17 +4,29 @@
 This FTP addon works with EHCP (www.ehcp.net)
 It allows OGP - the open game panel - to manage custom FTP user accounts
 
-You must update these credentials before FTP integrating with EHCP will work!
-
 by own3mall
 */
 
-// Database credentials
+@include_once "/var/www/new/ehcp/config.php";
+
+/**********************************
+*             DB Creds            *
+* ********************************/
+// Database credentials change if needed
 $server = 'localhost';
 $login = 'ehcp';
-$dbpass = 'changeme';
+
+// Script should detect password automatically from EHCP config file above... but if not, please change the value down here.
+if(!isset($dbpass) || empty($dbpass)){
+	$dbpass = 'changeme';
+}
+
 $dbName = 'ehcp';
 
+/**********************************
+*          END DB Creds           *
+* ********************************/
+
 // Log File
 $logFile = 'ehcp_ftp_log.txt';