diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-10-13 20:45:57 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-10-13 20:45:57 +0100 |
commit | 6f77a2ba0759c32d8b865915445b38acd93371f2 (patch) | |
tree | 4b0d049c558d7106f222c67f992c58f907debb5a /WebPush | |
parent | db97ce99efb235d83b9bf7bfd5dbf0015948ca20 (diff) | |
download | Essentials-6f77a2ba0759c32d8b865915445b38acd93371f2.tar Essentials-6f77a2ba0759c32d8b865915445b38acd93371f2.tar.gz Essentials-6f77a2ba0759c32d8b865915445b38acd93371f2.tar.lz Essentials-6f77a2ba0759c32d8b865915445b38acd93371f2.tar.xz Essentials-6f77a2ba0759c32d8b865915445b38acd93371f2.zip |
Moving apikey outside main file.
Keep the actual key in local repo ;)
Diffstat (limited to 'WebPush')
-rw-r--r-- | WebPush/apikey.php | 5 | ||||
-rw-r--r-- | WebPush/upload.php | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/WebPush/apikey.php b/WebPush/apikey.php new file mode 100644 index 000000000..59f2bf3ac --- /dev/null +++ b/WebPush/apikey.php @@ -0,0 +1,5 @@ +<?php + +$params['api-key'] = "c73c331c7e44c156c852f7d08de3f22bb7a6e948"; + +?> 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"; } } } |