Posted 12 years ago
·
Author
save the following code as get.php and it works
<?php
//Airbender
//link generator 0.1
//right 1st form
$htmlout = '<html>
<body>
<form action="get.php" method="POST">
aviName: <input type="text" name="aviname" />
<input type="submit" name="submit" />
</form>
</body>
</html>';
echo $htmlout;
//2nd chk see if its been submited if so carry out the code
if (isset($_POST['submit'])) {
$aviname= $_POST['aviname'];
function get_cid($url) {
$start = '<a id="block_id4test"' ;
$end = '">';
$string = @file_get_contents($url);
preg_match("|".$start."(.*)".$end."|isU", $string, $match3);
$return = explode('"', $match3[1]);
return $return[1];
}
$url= "http://avatars.imvu.com/$aviname";
//gets the cid plus some grabage
$cid = get_cid($url);
//strips the grabage
$cid = preg_replace('[\D]', '', $cid);
//echo out all the details
echo"<table class='contact_images_table' align='center' width='90%' border='1'>
<tr class='layoutmenutable_header'>
<th colspan='2'>Your personal links </th>
</tr>
<tr>
<td>
<b>Your Avatar ID:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='$cid'>
</td>
</tr>
<tr>
<td>
<b>Your Homepage Link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_mypage.php?user=$cid'>
</td>
</tr>
<tr>
<td>
<b>Start 3D chat link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='imvu:StartIM?avatar=$aviname&fromSite=1'>
</td>
</tr>
<tr>
<td>
<b>Message Link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_send_message_widget.php?recipient_id=$cid'>
</td>
</tr>
<tr>
<td>
<b>Popup Message Link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='javascript:IMVU.messagePopupShow({force_recipient_id:$cid})'>
</td>
</tr>
<tr>
<td>
<b>Forward to Friends Link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_forward_to_friend.php?homepageId=$cid'>
</td>
</tr>
<tr>
<td>
<b>Add to Buddies Link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_add_contact.php?contact=$aviname'>
</td>
</tr>
<tr>
<td>
<b>Block Contact Link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_mypage.php?block=$cid'>
</td>
</tr>
<tr>
<td>
<b>Report Homepage Link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_flag_homepage.php?flag_homepage=$cid'>
</td>
</tr>
<tr>
<td>
<b>Name Change History:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://avatars.imvu.com/catalog/web_view_name_change_history.php?customer_id=$cid'>
</td>
</tr>
<tr>
<td>
<b>Catalog Link (only devs):</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/shop/web_search.php?manufacturers_id=$cid'>
</td>
</tr>
<tr>
<td>
<b>Your avatar picture link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_av_pic.php?av=$aviname'>
</td>
</tr>
<tr>
<td>
<b>Link to your gallery:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/cpg144/index.php?cat=83702752'>
</td>
</tr>
<tr>
<td>
<b>Link to view all your messages:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_messagebox.php?user=$cid'>
</td>
</tr>
<tr>
<td>
<b>Link to your Buddy List:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_contactlist.php?2way=1&user=$cid'>
</td>
</tr>
<tr>
<td>
<b>Your Forum Profile Link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_messagebox.php?user=$cid'>
</td>
</tr>
</table>
<br><br>
<table class='contact_images_table' align='center' width='90%' border='1'>
<tr class='layoutmenutable_header'>
<th colspan=2>Other handful links </th>
</tr>
<tr>
<td>
<b>Link to wishlist:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/wishlist.php'>
</td>
</tr>
<tr>
<td>
<b>Link to inventory:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_inventory.php'>
</td>
</tr>
<tr>
<td>
<b>Link to account page :</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_myaccount.php'>
</td>
</tr>
<tr>
<td>
<b>Link to safemode:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/web_mypage.php?safemode=1'>
</td>
</tr>
<tr>
<td>
<b>Your Forum Inbox Link:</b>
</td><td>
<input type='text' size='60%' readonly OnClick='javascript:this.focus();this.select();' value='http://www.imvu.com/catalog/modules.php?op=modload&name=phpbb2&file=privmsg.php&folder=inbox'>
</td>
</tr>
</table>
";
}
?>