-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
29 lines (23 loc) · 883 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
////////////////////////////////////////////////////
// SimpleAppStore API - version 1.0
// https://github.com/anonwins/SimpleAppStore
////////////////////////////////////////////////////
require_once('./config.php');
require_once('./functions.php');
// Get current dir's URL
$dir_url = get_current_dir_url();
// List all apps
$return = '';
foreach(get_app_list() as $app) {
$return .= "||".$app['name']; // 1. app name
$return .= "\n||".$app['desc']; // 2. app description
$return .= "\n||".get_apk_version_code(get_apk_filepath($app['pckg'])); // 3. version code
$return .= "\n||".get_app_picture_url($app['pckg']); // 4. picture url
$return .= "\n||".get_apk_url($app['pckg']); // 5. apk url
$return .= "\n||".$app['pckg']; // 6. package name
$return .= "\n---\n";
}
// Send the app list
echo substr($return,0,-5);
?>