瀏覽代碼

EHCP FTP Integration Changes

own3mall 9 年之前
父節點
當前提交
af49e3197c
共有 1 個文件被更改,包括 16 次插入4 次删除
  1. 16 4
      EHCP/config.php

+ 16 - 4
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';