Page MenuHomeDevCentral

index.php
No OneTemporary

index.php

<?php
if (array_key_exists('user', $_REQUEST)) {
require_once('FingerClient.php');
$client = FingerClient::FromAddress($_REQUEST['user']);
if ($client == null) {
echo '<div class="alert-box alert">Invalid Finger address format.</div>';
} elseif (!$client->Run()) {
echo '<div class="alert-box alert">', $client->lastError, '</div>';
unset($client);
}
}
?>
<h2>Who?</h2>
<form>
<div class="row collapse">
<div class="ten mobile-three columns">
<input type="text" name="user" id="user" value="<?= $_REQUEST['user'] ?? "" ?>" placeholder="username@server" />
</div>
<div class="two mobile-one columns">
<input type="submit" class="button expand postfix" value="Finger" />
</div>
</div>
</form>
<?php
if (isset($client) && $client->rawResult) {
echo "<h2>Finger $_REQUEST[user]</h2>";
echo '<pre id="finger">', $client->rawResult, '</pre>';
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 11, 22:41 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3064228
Default Alt Text
index.php (907 B)

Event Timeline