Airbender's link generator

airbender
by airbender · 7 posts
12 years ago in PHP
Posted 12 years ago · Author
save the following code as get.php and it works
Code
<?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>
";
}
?>
Posted 12 years ago
This script is a re write of Gaf210's link generator page for those wondering what this is.
Posted 12 years ago
Don Sam Stormrage wrote:
Right. Introduce me to Airbender please?


He's a semi-new member who was gone for a bit but back now. He's been working on php scripts for us and helping out in the scripts section for a while.

I have given him access here for the time being with permission from Don so he can take advantage of the api threads for use i his scripts.

I am hoping to see quite a few nifty tools come from this guy.
Posted 12 years ago
This is awesome. I am going to put this on the new generators page of our site that I am scripting.

-- 11 Jun 2012 04:32 am --

I have it up: https://www.imvumafias.org/imvu/Tools.html
The album links do not work though.
Posted 12 years ago
Don Von Free Credits wrote:
This is awesome. I am going to put this on the new generators page of our site that I am scripting.

-- 11 Jun 2012 04:32 am --

I have it up: https://www.imvumafias.org/imvu/Tools.html
The album links do not work though.



Awesome. Just get the styling done and hopefully we'll have a new feature for our site.
Posted 12 years ago
Ð▪ℳ wrote:
Don Sam Stormrage wrote:
Right. Introduce me to Airbender please?


He's a semi-new member who was gone for a bit but back now. He's been working on php scripts for us and helping out in the scripts section for a while.

I have given him access here for the time being with permission from Don so he can take advantage of the api threads for use i his scripts.

I am hoping to see quite a few nifty tools come from this guy.


okie dokes.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT