mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
@@ -14,10 +14,10 @@ if(!function_exists('curl_version')):
|
||||
// CURL enabled. Lets create an API web request to github.
|
||||
$request = curl_init();
|
||||
curl_setopt($request, CURLOPT_URL, 'https://api.github.com/repos/Znote/ZnoteAAC/contributors');
|
||||
curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($request, CURLOPT_USERAGENT, 'ZnoteAAC'); // GitHub requires user agent header.
|
||||
curl_setopt($request, CURLOPT_SSL_VERIFYPEER, false);
|
||||
|
||||
|
||||
// Load contributors and close the request.
|
||||
$developers = json_decode(curl_exec($request), true); // Sorted by contributions.
|
||||
curl_close($request);
|
||||
@@ -83,4 +83,4 @@ endif;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
<?php include 'layout/overall/footer.php'; ?>
|
||||
<?php include 'layout/overall/footer.php'; ?>
|
||||
|
Reference in New Issue
Block a user