From ebaa3ab10dff7c2c43c8bf1fd605f85edb7fcbb7 Mon Sep 17 00:00:00 2001
From: Kuzirashi Main: Znote.
+
Developers:
Contributor: Kuzirashi.
Contributor: ninjalulz.
Contributor: att3.
+
+ Contributors:';
+
+ $curl = curl_init();
+ curl_setopt($curl, CURLOPT_URL, 'https://api.github.com/repos/Znote/ZnoteAAC/contributors');
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt($curl, CURLOPT_USERAGENT, 'ZnoteAAC'); // GitHub requires user agent header.
+ $contributors = json_decode(curl_exec($curl), true); // Sorted by contributions.
+
+ $CONTRIBUTORS_PER_ROW = 7;
+
+ $i = 0;
+ $first_container = true;
+ $div_closed = true;
+ foreach($contributors as $contributor)
+ {
+ if($contributor['login'] != 'Znote') { // Exclude Znote as he is mentioned above as main developer.
+ $new_div = ctype_digit((String)($i / $CONTRIBUTORS_PER_ROW));
+
+ if($new_div) {
+ if(!$first_container)
+ echo '';
+
+ echo '