package org.opendroidphp.app;

public class Constants {

    public static final String SERVER_LOCATION = "/mnt/sdcard/htdocs";
    public static final String PROJECT_LOCATION = "/mnt/sdcard/droidphp";
    public static final String INTERNAL_LOCATION = "/data/data/org.opendroidphp.app";

    public static final String LIGHTTPD_SBIN_LOCATION = INTERNAL_LOCATION + "/components/lighttpd/sbin/lighttpd";
    public static final String LIGTTTPD_CONF_LOCATION = INTERNAL_LOCATION + "/components/lighttpd/conf/lighttpd.conf";

    public static final String PHP_SBIN_LOCATION = INTERNAL_LOCATION + "/components/php/sbin/php-cgi";
    public static final String PHP_INI_LOCATION = INTERNAL_LOCATION + "/components/php/conf/php.ini";

    public static final String MYSQL_DATA_DATA_LOCATION = INTERNAL_LOCATION + "/components/mysql/sbin/data";
    public static final String MYSQL_SHARE_DATA_LOCATION = INTERNAL_LOCATION + "/components/mysql/sbin/share";
    public static final String MYSQL_DAEMON_SBIN_LOCATION = INTERNAL_LOCATION + "/components/mysql/sbin/mysqld";

    public static final String MYSQL_INI_LOCATION = INTERNAL_LOCATION + "/components/mysql/conf/mysql.ini";
    public static final String MYSQL_MONITOR_SBIN_LOCATION = INTERNAL_LOCATION + "/components/mysql/sbin/mysql-monitor";

    public static final String UPDATE_FROM_EXTERNAL_REPOSITORY = "/droidphp/repositroy/update.zip";
    public static final String BUSYBOX_SBIN_LOCATION = INTERNAL_LOCATION + "/components/busybox/sbin/busybox";
}

@@ -24,16 +24,48 @@
 p.app;%0A%0A
+import android.os.Environment;%0A%0A
 public c
@@ -117,38 +117,150 @@
 ing 
-SERVER_LOCATION = %22/mnt/sdcard
+EXTERNAL_STORAGE = Environment.getExternalStorageDirectory().getPath();%0A%0A    public static final String SERVER_LOCATION = EXTERNAL_STORAGE + %22
 /htd
@@ -319,20 +319,28 @@
 N = 
-%22/mnt/sdcard
+EXTERNAL_STORAGE + %22
 /dro
@@ -343,24 +343,25 @@
 /droidphp%22;%0A
+%0A
     public s
@@ -1503,16 +1503,35 @@
 SITORY =
+ EXTERNAL_STORAGE +
  %22/droid

fix external storage directory issue