How to include an iframed offer into register.php?

Discussion in 'BlackHat Lounge' started by jend_sudirman, Aug 19, 2009.

  1. jend_sudirman

    jend_sudirman Junior Member

    Joined:
    Sep 18, 2008
    Messages:
    182
    Likes Received:
    87
    Occupation:
    corrupt blackhatter.
    Location:
    corrupt country..
    Hi.

    I need your help, guys.

    I want to change the username, email, gender, and other form on register.php with an iframed offer.

    What line that I should delete on register.php and where should I insert my iframed offer code?

    here's my register.php code:
    Code:
    <?
    include("config/connection.php");
    
       if(isset($_REQUEST['Submit']))
       {
        $check=$C($Q("SELECT `username`,`email` FROM `user` WHERE `username`='$user' OR `email`='$email'"));
       $check_user=$Q("SELECT `username`,`email` FROM `user` WHERE `username`='$user' OR `email`='$email'");
       $user_fetch=$F($check_user);
       
       if($check!=1)
       {
        $insert=$Q("INSERT INTO `user` (`type`,`username`,`password`,`email`,`gender`,`reg_ip`,`reg_date`,`reg_time`,`status`,`credits`)
    	VALUES('1','$user','$password','$email','$gender','$ip','$date','$time','2','0')");
    
    	echo "<script>window.location='$newuser_page1';</script>";
    
       }
       else 
       {
       	
    	echo "<script>window.location='$newuser_page2';</script>";
       	
    	$error=1;
       }
    
       }
    ?>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <script>
    function usercheck()
    {
    
      var user  =  "<? echo $user_id;?>";
      if(user=='')
      {
       alert("Please Login to Vote");
       return false;
      } 
      return true;
    }
    </script>
    <script>
    function check()
    {
     	if(document.form1.user.value=="")
    	{
    		alert("Enter a User Type");
    		document.form1.user.focus();
    		return false;
    	}
    	if(document.form1.username.value=="")
    	{
    		alert("Enter Username");
    		document.form1.username.focus();
    		return false;
    	}
    	if(document.form1.password.value=="")
    	{
    		alert("Enter Password");
    		document.form1.password.focus();
    		return false;
    	}
    	if(document.form1.confirmpass.value=="")
    	{
    		alert("Enter Confirm Password");
    		document.form1.confirmpass.focus();
    		return false;
    	}
    
    	if(document.form1.confirmpass.value!=document.form1.password.value)
    	{
    		alert("Password Mismatch");
    		document.form1.password.focus();
    		return false;
    	}
    	if(document.form1.email.value=="")
    	{
    		alert("Enter Enter Email_id");
    		document.form1.email.focus();
    		return false;
    	}
    	 if(document.form1.email.value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1)
    	      {
    		    alert("Enter valid email address");
    		    document.form1.email.focus();
    		    return false;
    	      }
    }
    
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title><?=$site_name?> - <?=$title?></title>
    <meta name="description" content="<?=$description?>">
    <meta name="keywords" content="<?=$keywords?>" />
    <link href="<?=$pro_path.$theme_path; ?>css/style.css" rel="stylesheet" />
    <link rel="stylesheet" href="tooltip/style.css" type="text/css">
    
    </head>
    <body class="Main" >
    <table width="989" border="0" cellspacing="0" cellpadding="0" class="tablecontent" align="center">
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablecontent">
    <tr>
    <td background="<?=$pro_path?>/images/top bar.jpg" width="989" height="42"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablecontent">
    <? include_once $pro_path."/header.php";?>
    <tr>
    <td background="<?=$pro_path?>/images/bg-middle.jpg" width="989" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablecontent">
    <tr>
    <td width="20%" align="center" valign="top"><? include_once $pro_path."/left.php";?></td>
    <td valign="top" width="60%"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablecontent">
    <tr>
    <td background="<?=$pro_path.$theme_path; ?>images/tab_top.jpg" width="591" height="43" style="background-repeat:no-repeat" class="tab">Register</td>
    </tr>
    <tr>
    <td background="<?=$pro_path?>/images/center-middle.jpg" width="591"  valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    
    
    <tr>
    <td><form action="" method="post" name="form1" id="form1">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="3"> </td>
    </tr>
    <tr>
    <td align="center" colspan="3"><table width="96%" border="0" >
    <tr>
    <td align="center" class="body_ads"><? $ads=$F($Q("select `index_page` from `ads` ")); ?>
    <? echo $ads['index_page']; ?></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td colspan="3"> </td>
    </tr>					  
    <? if(@$error==1) { ?>
    <tr>
    <td  align="center" colspan="3" class="titletext1"><? echo "Username Already Exists..." ?></td>
    </tr>
    <? } ?>
    <? if($sucess==1) {?>
    <tr>
    <td  align="center" colspan="3" class="titletext1"><? echo "Registered Sucessfully... Please use the login form on the right to login." ?></td>
    </tr>
    <? } ?>
    <tr>
    <td colspan="3"  class="main_title">  </td>
    </tr>
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    <tr>
    <td valign="top" class=""> </td>
    <td  class="main_title" valign="top" > </td>
    <td valign="top"  class="contentlink3"> </td>
    </tr>
    <!-- NOT USED YET            <tr>
    <td valign="top" class=""> </td>
    <td  class="main_title" valign="top" ><strong>User Type: </strong></td>
    <td valign="top"  class="contentlink3"><input name="usertype" type="radio" value="1" />
    <strong>Webmaster</strong></td>
    </tr>
    <tr>
    <td valign="top" class=""> </td>
    <td valign="top" class=""> </td>
    <td valign="top"  class="contentlink3"><input name="usertype" type="radio" value="2" />
    <strong>User</strong></td>
    </tr> -->
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    <tr>
    <td width="15%" valign="top"> </td>
    <td width="35%" class="main_title" valign="top"><strong>User Name : </strong></td>
    <td width="50%" valign="top" class=""><input name="user" type="text">                </td>
    </tr>
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    <tr>
    <td valign="top"> </td>
    <td  class="main_title" valign="top"><strong> Password: </strong></td>
    <td valign="top" class=""><input name="password" type="password"  onfocus="this.value=''"/></td>
    </tr>
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    <tr>
    <td valign="top"> </td>
    <td class="main_title" valign="top"><strong>Confirm Password: </strong></td>
    <td valign="top" class=""><input name="confirmpass" type="password"  onfocus="this.value=''"/></td>
    </tr>
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    <tr>
    <td valign="top"> </td>
    <td class="main_title" valign="top"><strong>Email:</strong></td>
    <td valign="top" class=""><label>
    <input type="text" name="email"  onfocus="this.value=''"/>
    </label></td>
    </tr>
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    <tr>
    <td valign="top"> </td>
    <td class="main_title" valign="top"><strong>Gender:</strong></td>
    <td valign="top"  class="contentlink3"><input name="gender" type="radio" value="1" />
    <strong>Male</strong></td>
    </tr>
    <tr>
    <td valign="top" class=""> </td>
    <td valign="top" class=""> </td>
    <td valign="top"  class="contentlink3"><input name="gender" type="radio" value="2" />
    <strong>Female</strong></td>
    </tr>
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    <tr>
    <td colspan="3" align="center" valign="top" class=""><input type="submit" name="Submit" value="Submit" class="btns"  onclick="javascript:return check();"/></td>
    </tr>
    <tr>
    <td colspan="3" valign="top" class=""> </td>
    </tr>
    </table>
    </form></td>
    </tr>
    <tr>
    <td> </td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td background="<?=$pro_path?>/images/center-bottom.jpg" width="592" height="27" style="background-repeat:no-repeat"></td>
    </tr>
    </table>
    </td>
    <td width="20%" align="center" valign="top"><? include_once "$pro_path/right.php";?></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td background="<?=$pro_path?>/images/bg-bottom.jpg" width="989" height="14"></td>
    </tr>
    </table></td>
    </tr>
    <? include_once "$pro_path/footer.php";?>
    </table></td></tr></table>
    </body>
    </html>
    and here's the example iframed offer (this is Facebook registration form):
    Code:
    <div style="overflow: hidden; width: 380px; height: 328px; position: relative;" id="i_div">
    <iframe name="i_frame" src="http://www.facebook.com/" style="border: 0pt none ; left: -714px; top: -118px; position: absolute; width: 1295px; height: 675px;" scrolling="no"></iframe></div>
    Thanks.