I just took this off my boot.php and decided to give it out because it's simple but effective, so enjoy.
Simply once you've inputted the skype you want to resolve, after editing the code with your API, once you hit the resolve button it echo's the IP retrieved from your API.
Simply once you've inputted the skype you want to resolve, after editing the code with your API, once you hit the resolve button it echo's the IP retrieved from your API.
PHP Code
<?php
if(!empty($_REQUEST['resolveBtn']) && $_REQUEST['resolveBtn'] == 'Resolve'){
$skypeName = trim($_REQUEST['skype']);
if(!empty($skypeName)){
// Connect to API an get Skype info.
// I'm not sure what this code would look like, it depends on the API
// For example
$skypeInfo = file_get_contents('http://Skyperesolver/resolver.php?key=YOURKEY&name=' . $skypeName);
}
}
if(!isset($skypeInfo)){
$skypeInfo = '';
}
?>PHP Code
<?php
<input name="skype" value="<?php echo $skypeInfo;?>" type="text" class="input-large" id="input01">
