summaryrefslogtreecommitdiffstats
path: root/WebPush/upload.php
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-10-13 20:45:57 +0100
committerKHobbits <rob@khobbits.co.uk>2011-10-13 20:45:57 +0100
commit5e7523bf209f6e39680d2f823cc8bf8463fc87bc (patch)
treed194e11c292d907a069d2c01cf6cb33e44d670e8 /WebPush/upload.php
parenta030998d1424d213efbb1dc2d7c795e1da5fd61b (diff)
downloadEssentials-5e7523bf209f6e39680d2f823cc8bf8463fc87bc.tar
Essentials-5e7523bf209f6e39680d2f823cc8bf8463fc87bc.tar.gz
Essentials-5e7523bf209f6e39680d2f823cc8bf8463fc87bc.tar.lz
Essentials-5e7523bf209f6e39680d2f823cc8bf8463fc87bc.tar.xz
Essentials-5e7523bf209f6e39680d2f823cc8bf8463fc87bc.zip
Moving apikey outside main file.
Keep the actual key in local repo ;)
Diffstat (limited to 'WebPush/upload.php')
-rw-r--r--WebPush/upload.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/WebPush/upload.php b/WebPush/upload.php
index e4f645d61..cf5c2112e 100644
--- a/WebPush/upload.php
+++ b/WebPush/upload.php
@@ -9,7 +9,9 @@ function uploadit($build, $branch, $file, $version, $changes)
$url = "http://ci.earth2me.net/guestAuth/repository/download/$branch/$build:id/$file";
$filename = explode('.', $file);
$request_url = "http://dev.bukkit.org/server-mods/$slug/upload-file.json";
- $params['api-key'] = "c73c331c7e44c156c852f7d08de3f22bb7a6e948";
+
+ include ('apikey.php');
+
$params['name'] = $filename[0] . '-' . $version;
$params['game_versions'] = 176;
$params['change_log'] = $changes;
@@ -84,7 +86,7 @@ function getChanges($job, $project)
}
if ($text != "")
{
- $output .= "<li>$text</li>";
+ $output .= "<li>$text</li>\n";
}
}
}