mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 21:22:09 +00:00
Moving apikey outside main file.
Keep the actual key in local repo ;)
This commit is contained in:
parent
db97ce99ef
commit
6f77a2ba07
2 changed files with 9 additions and 2 deletions
5
WebPush/apikey.php
Normal file
5
WebPush/apikey.php
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$params['api-key'] = "c73c331c7e44c156c852f7d08de3f22bb7a6e948";
|
||||||
|
|
||||||
|
?>
|
|
@ -9,7 +9,9 @@ function uploadit($build, $branch, $file, $version, $changes)
|
||||||
$url = "http://ci.earth2me.net/guestAuth/repository/download/$branch/$build:id/$file";
|
$url = "http://ci.earth2me.net/guestAuth/repository/download/$branch/$build:id/$file";
|
||||||
$filename = explode('.', $file);
|
$filename = explode('.', $file);
|
||||||
$request_url = "http://dev.bukkit.org/server-mods/$slug/upload-file.json";
|
$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['name'] = $filename[0] . '-' . $version;
|
||||||
$params['game_versions'] = 176;
|
$params['game_versions'] = 176;
|
||||||
$params['change_log'] = $changes;
|
$params['change_log'] = $changes;
|
||||||
|
@ -84,7 +86,7 @@ function getChanges($job, $project)
|
||||||
}
|
}
|
||||||
if ($text != "")
|
if ($text != "")
|
||||||
{
|
{
|
||||||
$output .= "<li>$text</li>";
|
$output .= "<li>$text</li>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue