New credits page.

This commit is contained in:
Znote 2019-03-05 19:19:31 +01:00
parent b0cafe4927
commit e13bda4df1

View File

@ -1,71 +1,75 @@
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?> <?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>
<h1>Znote AAC</h1> <h1>Znote AAC</h1>
<p>This website is powered by the Znote AAC engine.</p> <p>This website is powered by the <a href="https://github.com/Znote/ZnoteAAC">Znote AAC</a> engine.</p>
<p>An OT website (<strong>A</strong>utomatic <strong>A</strong>ccount <strong>C</strong>reator) created by <a href="http://otland.net/members/znote.5993/">Znote</a> from the OT forum community <a href="https://otland.net">otland.net</a>.</p>
<p>Znote AAC is an open source project where everyone can help with development.</p>
<h2>Developers:</h2> <h2>Developers:</h2>
<p>Main: <a href="http://otland.net/members/znote.5993/">Znote</a>. <?php // If CURL isn't enabled show default version.
<?php if(!function_exists('curl_version')):
if(!function_exists('curl_version')) { // If CURL isn't enabled show default version. ?>
?> <p>See the full list of developers <a href="https://github.com/Znote/ZnoteAAC/graphs/contributors">HERE</a>.</p>
<br>Contributor: <a href="https://github.com/Kuzirashi">Kuzirashi</a>. <?php else:
<br>Contributor: <a href="https://github.com/ninjalulz">ninjalulz</a>. // CURL enabled. Lets create an API web request to github.
<br>Contributor: <a href="https://github.com/att3">att3</a>. $request = curl_init();
<?php } else { // CURL enabled. curl_setopt($request, CURLOPT_URL, 'https://api.github.com/repos/Znote/ZnoteAAC/contributors');
echo '<br /> curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
Contributors:'; curl_setopt($request, CURLOPT_USERAGENT, 'ZnoteAAC'); // GitHub requires user agent header.
curl_setopt($request, CURLOPT_SSL_VERIFYPEER, false);
$curl = curl_init(); // Load contributors and close the request.
curl_setopt($curl, CURLOPT_URL, 'https://api.github.com/repos/Znote/ZnoteAAC/contributors'); $developers = json_decode(curl_exec($request), true); // Sorted by contributions.
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_close($request);
curl_setopt($curl, CURLOPT_USERAGENT, 'ZnoteAAC'); // GitHub requires user agent header. ?>
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); <div class="developers">
$contributors = json_decode(curl_exec($curl), true); // Sorted by contributions. <?php foreach ($developers as $developer): ?>
<div class="developer">
$CONTRIBUTORS_PER_ROW = 7; <div class="avatar"><img src="<?php echo $developer['avatar_url']; ?>" alt="Avatar of: <?php echo $developer['login']; ?>"></div>
<p class="username"><a href="<?php echo $developer['html_url']; ?>"><?php echo $developer['login']; ?></a>
$i = 0; <br>Updates: <?php echo $developer['contributions']; ?></p>
$first_container = true; </div>
$div_closed = true; <?php endforeach; ?>
foreach($contributors as $contributor) </div>
{ <style type="text/css">
if($contributor['login'] != 'Znote') { // Exclude Znote as he is mentioned above as main developer. /* Credits.php specific CSS alterations */
$new_div = ctype_digit((String)($i / $CONTRIBUTORS_PER_ROW)); .developers {
width: 100%;
if($new_div) {
if(!$first_container)
echo '</div>';
echo '<div class="contributors">';
$div_closed = false;
$first_container = false;
}
echo '<div class="contributor">
<a href="' . $contributor['html_url'] . '">
<img src="' . $contributor['avatar_url'] . 'size=80" style="width: 80px; height: 80px" /><br/>
<span>' . $contributor['login'] . '</span>
</a>
</div>';
$i++;
} }
} .developers:after {
if(!$div_closed) content: '';
echo '</div>'; display: block;
} ?> clear: both;
</p> }
.developer {
width: calc(20% - 16px);
float: left;
padding: 0 8px 16px;
}
.developer img {
width: 100%;
}
.username {
margin: 8px 0 0;
text-align: center;
overflow: hidden;
}
</style>
<?php
endif;
?>
<h3>Thanks to: (in no particular order)</h3> <h2>Thanks to: (in no particular order)</h2>
<p> <p>
<a href="http://otland.net/members/chris.13882/">Chris</a> - PHP OOP file samples, testing, bugfixing. <a href="https://otland.net/members/chris.13882/">Chris</a> - PHP OOP file samples, testing, bugfixing.
<br><a href="http://otland.net/members/kiwi-dan.152/">Kiwi Dan</a> - Researching TFS 0.2 for me, participation in developement. <br><a href="https://otland.net/members/kiwi-dan.152/">Kiwi Dan</a> - Researching TFS 0.2 for me, participation in developement.
<br><a href="http://otland.net/members/amoaz.26626/">Amoaz</a> - Pentesting and security tips. <br><a href="https://otland.net/members/amoaz.26626/">Amoaz</a> - Pentesting and security tips.
<br><a href="http://otland.net/members/evan.40401/">Evan</a>, <a href="http://otland.net/members/gremlee.12075/">Gremlee</a> - Researching TFS 0.3, constructive feedback, suggestion and participation. <br><a href="https://otland.net/members/evan.40401/">Evan</a>, <a href="http://otland.net/members/gremlee.12075/">Gremlee</a> - Researching TFS 0.3, constructive feedback, suggestion and participation.
<br><a href="http://otland.net/members/att3.98289/">ATT3</a> - Reporting and fixing bugs, TFS 1.0 research. <br><a href="https://otland.net/members/att3.98289/">ATT3</a> - Reporting and fixing bugs, TFS 1.0 research.
<br><a href="http://otland.net/members/mark.1/">Mark</a> - Old repository, TFS distributions which this AAC works against. <br><a href="https://otland.net/members/mark.1/">Mark</a> - Old repository, TFS distributions which this AAC was primarily built for.
<br><a href="https://github.com/tedbro">Tedbro</a>, <a href="https://github.com/exura">Exura</a>, <a href="https://github.com/PrinterLUA">PrinterLUA</a> - Reporting bugs. <br><a href="https://github.com/tedbro">Tedbro</a>, <a href="https://github.com/exura">Exura</a>, <a href="https://github.com/PrinterLUA">PrinterLUA</a> - Reporting bugs.
<br><a href="https://github.com/Nottinghster">Nottinghster</a> - OTHIRE distribution compatibility.
</p> </p>
<style> <style>
.contributors { .contributors {
margin-top: 10px; margin-top: 10px;