Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBViewerAPI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBViewerAPI
Commits
479bd928
Commit
479bd928
authored
Feb 22, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
a2ebd37d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
17 deletions
+18
-17
index.php
app/index.php
+2
-17
update.php
app/update.php
+16
-0
No files found.
app/index.php
View file @
479bd928
<?php
header
(
"Content-Type: text/html; charset=utf-8"
);
$files
=
array
(
"Version.txt"
,
"Changelog.txt"
,
"MediaDBViewer.apk"
);
$Server
=
"http://mediadb.ddns.net/app/"
;
$Local
=
"/var/www/mediadb.ivaya.de/MediaDBViewerAPI/app/"
;
foreach
(
$files
as
$value
)
{
echo
"Starte Download von "
.
$value
.
" ..."
;
shell_exec
(
"rm "
.
$Local
.
$value
);
shell_exec
(
"wget "
.
$Server
.
$value
.
" -O "
.
$Local
.
$value
.
" "
);
//> /dev/null 2>&1
echo
" done<br>
\n
"
;
}
?>
Aktuelle Version:
<?php
echo
file_get_contents
(
$Local
.
"Version.txt"
)
?>
<br>
<h1>
MediaDB Viewer - Android App
</h1>
<h2>
Aktuelle Version:
<?php
echo
file_get_contents
(
$Local
.
"Version.txt"
)
?>
</h2>
<a
href=
"MediaDBViewer.apk"
>
Download!
</a><br>
<pre>
...
...
app/update.php
0 → 100644
View file @
479bd928
<?php
header
(
"Content-Type: text/html; charset=utf-8"
);
$files
=
array
(
"Version.txt"
,
"Changelog.txt"
,
"MediaDBViewer.apk"
);
$Server
=
"http://mediadb.ddns.net/app/"
;
$Local
=
"/var/www/mediadb.ivaya.de/MediaDBViewerAPI/app/"
;
foreach
(
$files
as
$value
)
{
echo
"Starte Download von "
.
$value
.
" ..."
;
shell_exec
(
"rm "
.
$Local
.
$value
);
shell_exec
(
"wget "
.
$Server
.
$value
.
" -O "
.
$Local
.
$value
.
" "
);
//> /dev/null 2>&1
echo
" done<br>
\n
"
;
}
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment