Skip to content

Commit ca522ce

Browse files
author
Shushant
committed
update to 1.1.0 and major bug fix
0 parents  commit ca522ce

File tree

603 files changed

+4979
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

603 files changed

+4979
-0
lines changed

.classpath

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
4+
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
5+
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
6+
<classpathentry kind="src" path="src"/>
7+
<classpathentry kind="src" path="gen"/>
8+
<classpathentry kind="output" path="bin/classes"/>
9+
</classpath>

.project

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>DroidPHP</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>

.settings/org.eclipse.jdt.core.prefs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3+
org.eclipse.jdt.core.compiler.compliance=1.6
4+
org.eclipse.jdt.core.compiler.source=1.6

AndroidManifest.xml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="utf-8"?><!--
2+
~ /**
3+
~ * This file is part of DroidPHP
4+
~ *
5+
~ * (c) 2014 Shushant Kumar
6+
~ *
7+
~ * For the full copyright and license information, please view the LICENSE
8+
~ * file that was distributed with this source code.
9+
~ */
10+
-->
11+
12+
<manifest
13+
android:versionCode="110"
14+
android:versionName="1.1.0"
15+
package="org.opendroidphp.app"
16+
xmlns:android="http://schemas.android.com/apk/res/android">
17+
18+
<uses-sdk
19+
android:minSdkVersion="7"
20+
android:maxSdkVersion="19"
21+
android:targetSdkVersion="17"></uses-sdk>
22+
23+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
24+
<uses-permission android:name="android.permission.INTERNET"/>
25+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
26+
<uses-permission android:name="android.permission.WAKE_LOCK"/>
27+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
28+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
29+
30+
<application
31+
android:theme="@style/Theme.DroidPHP"
32+
android:label="@string/app_name"
33+
android:icon="@drawable/ic_launcher"
34+
android:allowBackup="true">
35+
36+
<activity
37+
android:label="@string/app_name"
38+
android:name=".HomeActivity"
39+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
40+
<intent-filter>
41+
<action android:name="android.intent.action.MAIN"/>
42+
<category android:name="android.intent.category.LAUNCHER"/>
43+
</intent-filter>
44+
45+
46+
<receiver android:name="org.opendroidphp.app.services.OnStartupReceiver">
47+
<intent-filter>
48+
<action android:name="android.intent.action.BOOT_COMPLETED"/>
49+
<category android:name="android.intent.category.HOME"/>
50+
</intent-filter>
51+
</receiver>
52+
53+
</activity>
54+
55+
<activity
56+
android:label="@string/settings"
57+
android:name=".Preferences"
58+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"/>
59+
</application>
60+
</manifest>

CHANGELOG

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
* 1.1.0 (2014-3-29)
2+
* fixed several bug
3+
* added several mods to server (the whole list of server mods is here):
4+
* mod_rewrite
5+
* mod_redirect
6+
* mod_alias
7+
* mod_extforward
8+
* mod_access
9+
* mod_setenv
10+
* mod_flv_streaming
11+
* mod_indexfile
12+
* mod_userdir
13+
* mod_dirlisting
14+
* mod_status
15+
* mod_simple_vhost
16+
* mod_evhost
17+
* mod_secdownload
18+
* mod_cgi
19+
* mod_fastcgi
20+
* mod_scgi
21+
* mod_proxy
22+
* mod_staticfile
23+
* mod_evasive
24+
* mod_compress
25+
* mod_compress
26+
* mod_usertrack
27+
* mod_expire
28+
* mod_accesslog
29+
30+
* improved stability of the server
31+
* UI interface changed
32+
* fixed DNS problems. All functions related with gethostbyname(), getaddrinfo() and etc. are working correct now
33+
* new version of lighttpd server (1.4.34)
34+
* new version of php (5.5.9)
35+
* added sendmail support based on msmtp
36+
* new code base
37+
* package rename to `org.opendroidphp.app`
38+
39+
* 1.0.3 (2014-3-14)
40+
* Refactored classnames
41+
* Migrated project to Gradle
42+
43+
* 1.0.2 (2013-6-26)
44+
* stable version
45+
* renamed from AMPDroid to DroidPHP
46+
* several bug fixed
47+
* added killall to kill process by name
48+
* added Settings to change default server conf
49+
* added on application mysql shell
50+
* package rename from com.github.punkboy.ampdroid to com.github.DroidPHP
51+
* made small speed optimizations
52+
* made minor tweaks to allow better extensibility and flexibility
53+
54+
* 1.0.0 (2013-5-11)
55+
56+
* Initial release

README.md

+27

assets/data.zip

10.9 MB
Binary file not shown.

assets/lighttpd.conf~

+140
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
## !!!WARNING!!!
2+
## Be careful changing this configuration file!
3+
## Some changes may result in incorrect function of the program.
4+
## Always make backups of configuration files before any changes.
5+
## --------------------------------------------------------------
6+
7+
##### YOUR SETTINGS HERE ######
8+
9+
server.port = 8080
10+
server.document-root = "/mnt/sdcard/htdocs"
11+
server.tag = "DroidPHP v 1.1.0 For Android"
12+
server.errorlog = "/mnt/sdcard/droidphp/logs/lighttpd.log"
13+
dir-listing.activate = "enable"
14+
15+
########
16+
17+
18+
19+
20+
21+
index-file.names = ("index.php", "index.html")
22+
23+
fastcgi.server = ( ".php" =>
24+
((
25+
"host" => "127.0.0.1",
26+
"port" => 9001,
27+
"bin-path" => "/data/data/org.opendroidphp.app/components/php/sbin/php-cgi",
28+
"bin-environment" => (
29+
"PHP_FCGI_CHILDREN" => "16",
30+
"PHP_FCGI_MAX_REQUESTS" => "10000",
31+
"TMPDIR" => "data/data/org.opendroidphp.app/tmp"
32+
),
33+
"min-procs" => 1,
34+
"max-procs" => 1,
35+
"idle-timeout" => 20
36+
))
37+
)
38+
39+
$SERVER["socket"] == "0.0.0.0:10000" {
40+
server.document-root = "/mnt/sdcard/droidphp/phpMyAdmin"
41+
}
42+
43+
44+
#mod_status
45+
status.status-url = "/server-status"
46+
status.config-url = "/server-config"
47+
48+
## do i really need this process will be killed by busybox
49+
#server.pid-file = "/data/data/org.opendroidphp.app/tmp/lighttpd.pid"
50+
51+
## MimeType handling
52+
## -------------------
53+
##
54+
## Use the "Content-Type" extended attribute to obtain mime type if
55+
## possible
56+
##
57+
mimetype.use-xattr = "disable"
58+
59+
##
60+
## mimetype mapping
61+
##
62+
mimetype.assign = (
63+
".appcache" => "text/cache-manifest",
64+
".pdf" => "application/pdf",
65+
".sig" => "application/pgp-signature",
66+
".spl" => "application/futuresplash",
67+
".class" => "application/octet-stream",
68+
".ps" => "application/postscript",
69+
".torrent" => "application/x-bittorrent",
70+
".dvi" => "application/x-dvi",
71+
".gz" => "application/x-gzip",
72+
".pac" => "application/x-ns-proxy-autoconfig",
73+
".swf" => "application/x-shockwave-flash",
74+
".tar.gz" => "application/x-tgz",
75+
".tgz" => "application/x-tgz",
76+
".tar" => "application/x-tar",
77+
".zip" => "application/zip",
78+
".mp3" => "audio/mpeg",
79+
".m3u" => "audio/x-mpegurl",
80+
".wma" => "audio/x-ms-wma",
81+
".wax" => "audio/x-ms-wax",
82+
".ogg" => "application/ogg",
83+
".wav" => "audio/x-wav",
84+
".gif" => "image/gif",
85+
".jpg" => "image/jpeg",
86+
".jpeg" => "image/jpeg",
87+
".png" => "image/png",
88+
".xbm" => "image/x-xbitmap",
89+
".xpm" => "image/x-xpixmap",
90+
".xwd" => "image/x-xwindowdump",
91+
".css" => "text/css",
92+
".html" => "text/html",
93+
".htm" => "text/html",
94+
".js" => "text/javascript",
95+
".asc" => "text/plain",
96+
".c" => "text/plain",
97+
".cpp" => "text/plain",
98+
".log" => "text/plain",
99+
".conf" => "text/plain",
100+
".text" => "text/plain",
101+
".txt" => "text/plain",
102+
".spec" => "text/plain",
103+
".dtd" => "text/xml",
104+
".xml" => "text/xml",
105+
".mpeg" => "video/mpeg",
106+
".mpg" => "video/mpeg",
107+
".mov" => "video/quicktime",
108+
".qt" => "video/quicktime",
109+
".avi" => "video/x-msvideo",
110+
".asf" => "video/x-ms-asf",
111+
".asx" => "video/x-ms-asf",
112+
".wmv" => "video/x-ms-wmv",
113+
".bz2" => "application/x-bzip",
114+
".tbz" => "application/x-bzip-compressed-tar",
115+
".tar.bz2" => "application/x-bzip-compressed-tar",
116+
".odt" => "application/vnd.oasis.opendocument.text",
117+
".ods" => "application/vnd.oasis.opendocument.spreadsheet",
118+
".odp" => "application/vnd.oasis.opendocument.presentation",
119+
".odg" => "application/vnd.oasis.opendocument.graphics",
120+
".odc" => "application/vnd.oasis.opendocument.chart",
121+
".odf" => "application/vnd.oasis.opendocument.formula",
122+
".odi" => "application/vnd.oasis.opendocument.image",
123+
".odm" => "application/vnd.oasis.opendocument.text-master",
124+
".ott" => "application/vnd.oasis.opendocument.text-template",
125+
".ots" => "application/vnd.oasis.opendocument.spreadsheet-template",
126+
".otp" => "application/vnd.oasis.opendocument.presentation-template",
127+
".otg" => "application/vnd.oasis.opendocument.graphics-template",
128+
".otc" => "application/vnd.oasis.opendocument.chart-template",
129+
".otf" => "application/vnd.oasis.opendocument.formula-template",
130+
".oti" => "application/vnd.oasis.opendocument.image-template",
131+
".oth" => "application/vnd.oasis.opendocument.text-web",
132+
133+
# make the default mime type application/octet-stream.
134+
"" => "application/octet-stream",
135+
)
136+
137+
#file upload
138+
server.max-request-size = 1000000
139+
server.network-backend = "writev"
140+
server.upload-dirs =( "/data/data/ru.kslabs.ksweb/tmp" )
349 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
1.35 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
291 Bytes
Binary file not shown.
Binary file not shown.
270 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

bin/jarlist.cache

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cache for current jar dependency. DO NOT EDIT.
2+
# format is <lastModified> <length> <SHA-1> <path>
3+
# Encoding is UTF-8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*___Generated_by_IDEA___*/
2+
3+
/** Automatically generated file. DO NOT MODIFY */
4+
package org.opendroidphp.app;
5+
6+
public final class BuildConfig {
7+
public final static boolean DEBUG = true;
8+
}

0 commit comments

Comments
 (0)