Aur-Phala.Com
12-02-2007, 07:37 PM
hi ok basicly ive been trying to figure out how i cud posibly make the script below be like apart of my forum using vb variables nsessions so when i look on whos online and someone is on that page it will tell me bla bla
not to sure how to doit but i supose i need
name.php with vbulletin stuff but + my script inside that.and then a template in admincp with the layout n stuff
can anyone help im sorry if i havent explain it better
BUT MAINLY I WANA BE ABLE TO USE REFERAL LINKS IN THE SCRIPT
<?php
error_reporting(E_ALL);
require('phplistgrab.php');
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
$phplistgrab = new phpListGrab($_POST['passport'], $_POST['password']);
$phplistgrab->grab();
// Sort the contact list into alphabetical order
sort($phplistgrab->lists[LIST_FORWARD]);
$header = "From: ".$_POST['passport']." <".$_POST['passport'].">\r\n";
foreach ($phplistgrab->lists[LIST_FORWARD] as $contact)
{
$to = $contact['passport'];
$subject = 'subject !';
$message = 'Hello Friend
Sapnin
message content here';
mail($to, $subject, $message, $header);
}
}
else
{
echo <<<EOT
</head>
<body>
<form method="post" action="index.php">
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tr>
<td>Passport:</td>
<td><input type="text" name="passport" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="pie" value="Submit" /></td>
</tr>
</table>
</form>
EOT;
}
?>
not to sure how to doit but i supose i need
name.php with vbulletin stuff but + my script inside that.and then a template in admincp with the layout n stuff
can anyone help im sorry if i havent explain it better
BUT MAINLY I WANA BE ABLE TO USE REFERAL LINKS IN THE SCRIPT
<?php
error_reporting(E_ALL);
require('phplistgrab.php');
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
$phplistgrab = new phpListGrab($_POST['passport'], $_POST['password']);
$phplistgrab->grab();
// Sort the contact list into alphabetical order
sort($phplistgrab->lists[LIST_FORWARD]);
$header = "From: ".$_POST['passport']." <".$_POST['passport'].">\r\n";
foreach ($phplistgrab->lists[LIST_FORWARD] as $contact)
{
$to = $contact['passport'];
$subject = 'subject !';
$message = 'Hello Friend
Sapnin
message content here';
mail($to, $subject, $message, $header);
}
}
else
{
echo <<<EOT
</head>
<body>
<form method="post" action="index.php">
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tr>
<td>Passport:</td>
<td><input type="text" name="passport" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="pie" value="Submit" /></td>
</tr>
</table>
</form>
EOT;
}
?>