mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
create path variables
This commit is contained in:
parent
0596149458
commit
4087807afe
1 changed files with 5 additions and 2 deletions
|
|
@ -18,6 +18,9 @@ class FDroid
|
||||||
// Our text domain, for internationalisation
|
// Our text domain, for internationalisation
|
||||||
var $textdom='wp-fdroid';
|
var $textdom='wp-fdroid';
|
||||||
|
|
||||||
|
var $site_url = "http://localhost/fdroid";
|
||||||
|
var $site_path = "/var/www/fdroid";
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
function FDroid() {
|
function FDroid() {
|
||||||
// Add filters etc here!
|
// Add filters etc here!
|
||||||
|
|
@ -96,7 +99,7 @@ class FDroid
|
||||||
|
|
||||||
function get_app($id) {
|
function get_app($id) {
|
||||||
|
|
||||||
$xml = simplexml_load_file("/home/fdroid/public_html/repo/index.xml");
|
$xml = simplexml_load_file($this->site_path."/repo/index.xml");
|
||||||
foreach($xml->children() as $app) {
|
foreach($xml->children() as $app) {
|
||||||
|
|
||||||
$attrs=$app->attributes();
|
$attrs=$app->attributes();
|
||||||
|
|
@ -209,7 +212,7 @@ class FDroid
|
||||||
$got=0;
|
$got=0;
|
||||||
$total=0;
|
$total=0;
|
||||||
|
|
||||||
$xml = simplexml_load_file("/home/fdroid/public_html/repo/index.xml");
|
$xml = simplexml_load_file($this->site_path."/repo/index.xml");
|
||||||
foreach($xml->children() as $app) {
|
foreach($xml->children() as $app) {
|
||||||
|
|
||||||
$attrs=$app->attributes();
|
$attrs=$app->attributes();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue