Permalink
Browse files

Updating airdrop page for post airdrop status reporting only.

  • Loading branch information...
lukestokes committed May 15, 2018
1 parent 1d2ffbe commit b7ca5f8fb71d96836a470201fca1f71844853e8b
@@ -58,121 +58,7 @@
</select>
</form>
<?php
print "<h1>" . $strings['welcome_message'] . '</h1>';
print "<p>" . $strings['tool_explanation'] . '</p>';
// LOOK UP ADDRESS
if ($action == 'lookup_eth_address') {
/*
$agree_to_terms = isset($_POST['agree_to_terms']) ? $_POST['agree_to_terms'] : '';
if ($agree_to_terms != 'yes') {
$error = $strings['error_terms'];
}
*/
$eth_address = isset($_POST['eth_address']) ? mysqli_real_escape_string($conn,$_POST['eth_address']) : '';
if ($eth_address == '') {
$error = $strings['missing_eth_address'];
}
if ($error == '') {
$query = "SELECT * FROM eos_holders WHERE eth_address = '" . $eth_address . "' LIMIT 1";
$result = mysqli_query($conn, $query);
$header = '<table class="table"><thead><tr><th>' . $strings['status'] . '</th><th>' . $strings['eth_address'] . '</th><th>' . $strings['eos_amount'] . '</th><th>' . $strings['transaction_hash'] . '</th></tr></thead>';
$has_results = 0;
$info = '';
$status = '';
while($value = $result->fetch_array(MYSQLI_ASSOC)){
$status = $value['status'];
if ($status == '') {
$status = 'UNCLAIMED';
}
if ($value['status'] == '' && $value['eos_amount'] < 100) {
$update_query = "UPDATE eos_holders SET status = 'REQUESTED' WHERE eth_address = '" . $eth_address . "' AND status = ''";
mysqli_query($conn, $update_query);
$status = 'REQUESTED';
$info = 'airdrop_request_success';
}
if ($has_results == 0) {
if ($info != '') {
print "<div class=\"alert alert-success\" role=\"alert\">";
print $strings[$info];
print "</div>";
}
print $header;
}
$has_results = 1;
print '<tr>';
print '<td>' . $status . '</td><td><a href="https://etherscan.io/address/' . $value['eth_address'] . '">' . $value['eth_address'] . '</a></td><td>' . number_format($value['eos_amount'],4) . '</td>';
if ($value['transaction_hash'] != '') {
print '<td><a href="https://etherscan.io/tx/' . $value['transaction_hash'] . '">' . $strings['view_on_etherscan'] . '</a></td>';
} else {
print "<td></td>";
}
print '</tr>';
}
if ($has_results) {
print '</table>';
if ($status == 'REQUESTED') {
print '<p><strong>REQUESTED</strong>: ' . $strings['requested_explanation'] . '</p>';
}
if ($status == 'COLLECTED') {
print '<p><strong>COLLECTED</strong>: ' . $strings['collected_explanation'] . '</p>';
}
if ($status == 'UNCLAIMED') {
print '<p><strong>UNCLAIMED</strong>: ' . $strings['unclaimed_explanation'] . '</p>';
}
if ($status == 'WITHHELD') {
print '<p><strong>WITHHELD</strong>: ' . $strings['withheld_explanation'] . '</p>';
}
} else {
$error = $strings['eth_address_not_found'];
if ($_POST['eth_address'] != "") {
$error .= '<a href="https://etherscan.io/token/0x86fa049857e0209aa7d9e616f7eb3b3b78ecfdb0?a=' . strip_tags($_POST['eth_address']) . '">' . $strings['view_on_etherscan'] . '</a>';
}
}
}
if ($error != '') {
$action = '';
} else {
?>
<br />
<form method="POST">
<input type="hidden" name="form_action" value="">
<input type="hidden" name="lang" value="<?php print $lang; ?>">
<button type="submit" class="btn btn-primary"><?php print $strings['start_over']; ?></button>
</form>
<?php
}
}
// BEING HERE
if ($action == '') {
if ($error) {
?>
<div class="alert alert-danger" role="alert">
<?php print $error; ?>
</div>
<?php
}
?>
<form method="POST">
<div class="form-group">
<label for="eth_address"><?php print $strings['eth_address']; ?></label>
<input type="text" class="form-control" name="eth_address" id="eth_address" placeholder="<?php print $strings['eth_address_placeholder']; ?>">
<small id="eth_address" class="form-text text-muted"><?php print $strings['no_private_key']; ?></small>
</div>
<br />
<input type="hidden" name="form_action" value="lookup_eth_address">
<input type="hidden" name="lang" value="<?php print $lang; ?>">
<button type="submit" class="btn btn-primary"><?php print $strings['submit']; ?></button>
</form>
<br/>
<br/>
<hr/>
<?php
}
print "<h2>" . $strings['airdrop_status'] . "</h2>";
print "<h1>" . $strings['complete'] . '</h1>';
include "include_airdrop_status.php";
@@ -24,6 +24,7 @@
"requested_explanation": "Your airdrop tokens are in the queue to be delivered to you by May 15th. Please be patient for delivery.",
"collected_explanation": "Your wallet should already contain your eosDAC tokens.",
"unclaimed_explanation": "This address has less than 100 EOS or is an unclaimed exchange address.",
"withheld_explanation": "These tokens are not being distributed and include addresses owned by Block One and exchanges we could identify which did not support the airdrop."
"withheld_explanation": "These tokens are not being distributed and include addresses owned by Block One and exchanges we could identify which did not support the airdrop.",
"complete": "The eosDAC airdrop is now complete."
}
}
@@ -24,6 +24,7 @@
"requested_explanation": "Sus tokens del airdrop están en la cola para ser enviados a más tardar el 15 de mayo. Por favor, sea paciente con el proceso de envío.",
"collected_explanation": "Su billetera ya debería contener los tokens de eosDAC.",
"unclaimed_explanation": "Esta dirección tiene menos de 100 EOS o se encuentra en la dirección de un exchange que no ha realizado el reclamo de tokens.",
"withheld_explanation": "Estos tokens no están siendo distribuidos e incluyen direcciones que son propiedad de Block One y de los exchanges que no han dado soporte al airdrop que hemos podido identificar."
"withheld_explanation": "Estos tokens no están siendo distribuidos e incluyen direcciones que son propiedad de Block One y de los exchanges que no han dado soporte al airdrop que hemos podido identificar.",
"complete": "El Airdrop de eosDAC ahora está completo."
}
}
@@ -24,6 +24,7 @@
"requested_explanation": "I tuoi tokens sono in coda e pronti per esserti spediti entro il 15 Maggio. Per favore sii paziente.",
"collected_explanation": "Il tuo wallet dovrebbe già contenere i tuoi eosDAC tokens.",
"unclaimed_explanation": "Questo indirizzo ha meno di 100 EOS o e’ l’indirizzo non reclamato di un Exchange.",
"withheld_explanation": "Questi tokens non sono stati distribuiti ed includono quelli di Block One e quelli degli Exchange che non hanno supportato l’airdrop."
"withheld_explanation": "Questi tokens non sono stati distribuiti ed includono quelli di Block One e quelli degli Exchange che non hanno supportato l’airdrop.",
"complete": "L'airdrop di eosDAC è ora completo."
}
}
@@ -24,6 +24,7 @@
"requested_explanation": "귀하의 eosDAC 토큰은 5월 15일 내에 에어드랍 될 예정입니다. 기다려 주셔서 감사합니다.",
"collected_explanation": "귀하의 지갑에 이미 eosDAC 토큰이 있습니다.",
"unclaimed_explanation": "이 주소는 EOS가 100개 미만이거나 미접속 거래소의 주소입니다.",
"withheld_explanation": "이 토큰들은 분배되지 않으며 블록원의 주소를 포함한 에어드랍을 지원하지 않는 것으로 판정된 거래소들의 주소가 해당합니다."
"withheld_explanation": "이 토큰들은 분배되지 않으며 블록원의 주소를 포함한 에어드랍을 지원하지 않는 것으로 판정된 거래소들의 주소가 해당합니다.",
"complete": "이제 eosDAC 에어 드롭이 완료되었습니다."
}
}
@@ -24,6 +24,7 @@
"requested_explanation": "您的空投代币将在5月15日前交付给您。请耐心等待。.",
"collected_explanation": "你的钱包应该已经包含了你的eosDAC代币.",
"unclaimed_explanation": "此地址可能在快照少于100个EOS或在一个无人认领的交易所地址。",
"withheld_explanation": "這些令牌不會被分配,並包括Block One所擁有的地址,我們可以通過交換來識別哪些不支持空投。"
"withheld_explanation": "這些令牌不會被分配,並包括Block One所擁有的地址,我們可以通過交換來識別哪些不支持空投。",
"complete": "eosDAC空投現已完成。"
}
}

0 comments on commit b7ca5f8

Please sign in to comment.