summaryrefslogtreecommitdiffstats
path: root/maintdb.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-12-26 12:40:45 +0000
committerRomain d'Alverny <rda@mageia.org>2011-12-26 12:40:45 +0000
commit00f6228e5820ff743a89f42781c01434f409e136 (patch)
tree86e09c2260201a484279f2434fc5ff401fbb33e0 /maintdb.php
parentb4c9cf27f187dffc1a0a525a73374428a6a27ba4 (diff)
downloadpkgsubmit-00f6228e5820ff743a89f42781c01434f409e136.tar
pkgsubmit-00f6228e5820ff743a89f42781c01434f409e136.tar.gz
pkgsubmit-00f6228e5820ff743a89f42781c01434f409e136.tar.bz2
pkgsubmit-00f6228e5820ff743a89f42781c01434f409e136.tar.xz
pkgsubmit-00f6228e5820ff743a89f42781c01434f409e136.zip
use maintdb.txt
Diffstat (limited to 'maintdb.php')
-rw-r--r--maintdb.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/maintdb.php b/maintdb.php
index dbdf723..ab334c4 100644
--- a/maintdb.php
+++ b/maintdb.php
@@ -37,7 +37,7 @@
*/
/** Path to maintdb.txt */
-$maintdb = __DIR__ . '/data/maintdb.txt';
+$maintdb = realpath(__DIR__) . '/data/maintdb.txt';
/** User name */
$uid = isset($_GET['uid']) ? trim(htmlentities(strip_tags($_GET['uid']))) : null;
@@ -51,6 +51,8 @@ $json = isset($_GET['json']) ? true : false;
/** Returned data */
$return = null;
+$s = file_get_contents($maintdb);
+
if (null !== $uid) {
if (preg_match_all(sprintf('/(.*) %s\n?/', $uid), $s, $res)) {
$return = array($uid => $res[1]);