############################################ # Filename : JOIN.PHP # #------------------------------------------# # Written By : Dennis van den Hout # # Email : xdt@scripters.nl # # Website : www.xdt.nl.tt # # Questions? : www.scripters.nl/forum # #------------------------------------------# # Do NOT copy OR publicate this script # # for ANY use on ANY other site !!! # #------------------------------------------# ############################################ exit('desu'); // Report all script errors on this page error_reporting(E_ALL); // Including CONFIG.PHP which includes all configurations require("config.php"); // Including language file include("languages/" . $lang_file); ?>
| echo $text['1'] ?> |
| echo $text['9'] ?> ... |
| echo $text['36'] ?> : | |
| echo $text['37'] ?> : | |
| echo $text['38'] ?> [ 88 x 31 ] : | |
| echo $text['39'] ?> : | |
| echo $text['137'] ?> : | ![]() |
| echo $text['40'] ?> : | |
| echo $text['22'] ?> : | |
| echo $text['22'] ?> [ echo $text['59'] ?> ]: | |
echo $text['73'] ?> |
| echo $text['74'] ?> ...
<< echo $text['20'] ?> |
echo $text['73'] ?> |
|
// If sitename wasn't filled in
if(empty($_POST['sitename']))
{
?>
echo $text['75'] ?>
<< echo $text['20'] ?> } // If URL wasn't filled in elseif(empty($_POST['url'])) { ?> echo $text['76'] ?> << echo $text['20'] ?>"; } // If email wasn't filled in elseif(empty($_POST['email'])) { ?> echo $text['77'] ?> << echo $text['20'] ?> } // If description wasn't filled in elseif(empty($_POST['description'])) { ?> echo $text['78'] ?> << echo $text['20'] ?> } // If password / confirm password weren't filled in elseif(empty($_POST['pssw']) OR empty($_POST['pssw2'])) { ?> echo $text['79'] ?> << echo $text['20'] ?> } else { // If passwords are not the same if($_POST['pssw'] != $_POST['pssw2'] OR empty($_POST['pssw']) OR empty($_POST['pssw2'])) { ?> echo $text['61'] ?> ... << echo $text['20'] ?> } else { // Not encrypted version of password $pssw = $_POST['pssw']; // Encrypted version of password $pssw_encrypted = md5($_POST['pssw']); $_POST['country'] = str_replace("flag_","", $_POST['country']); $_POST['country'] = str_replace(".gif","", $_POST['country']); $date = date("dmY"); // Insert data of website into database mysql_query("INSERT INTO " . $table . "_sites (sitename,url,buttonurl,email,description,password,hitsin,clicksin,hitsout,hitstotal,hitstoday,date,register_date,country,rank,ip) VALUES ('" . $_POST['sitename'] . "','" . $_POST['url'] . "','" . $_POST['buttonurl'] . "','" . $_POST['email'] . "','" . $_POST['description'] . "','" . $pssw_encrypted . "','0','0','0','0','" . $date . " | 0','" . $date . " | 1',NOW(),'" . $_POST['country'] . "','-','" . $_SERVER['REMOTE_ADDR'] . "')") or die (mysql_error()); $query = mysql_query("SELECT * FROM " . $table . "_sites WHERE email = '" . $_POST['email'] . "' AND url = '" . $_POST['url'] . "'") or die(mysql_error()); while($row = mysql_fetch_assoc($query)) { $memberid = $row['memberid']; } // Creating row for ratings for this website mysql_query("INSERT INTO " . $table . "_rate VALUES ('$memberid','0','0')") or die (mysql_error()); $sitename = htmlspecialchars($_POST['sitename']); $email = htmlspecialchars($_POST['email']); $url = htmlspecialchars($_POST['url']); $buttonurl = htmlspecialchars($_POST['buttonurl']); $description = htmlspecialchars($_POST['description']); $message = "Dear webmaster of " . $url . ", You've added your site in our topsite of " . $webmaster_url . ", that's the why we've send you the information we reased from you. Please save this email very good, because the password you've entered has been send into the database totally encrypet against hackers e.g so keep that in mind ! Your information ID: " . $memberid . " Sitename : " . $sitename . " URL : " . $url . " Button URL : " . $buttonurl . " Description : " . $description . " Password : " . $pssw . " So save this email very good, or you have to be sure you won't forget/loose the password because it cannot be requested again Greetz, Webmasters " . $webmaster_url . ""; // Send email to webmaster of the signed up website //mail("$email","Welcome to " . $topsite_name . " !!!","$message","From: Welcome to " . $topsite_name . " !!!<" . $webmaster_email . ">\nContent-Type: text/html; charset=iso-8859-1"); // If webmasters wants to receive an email when a website registers if($webmaster_sendmail) { $message = "Dear webmaster, A new website has addes his/her site to your topsite, the information of this site are: The information: ID: " . $memberid . " Sitename : " . $sitename . " Email : " . $email . " URL : " . $url . " Button URL : " . $buttonurl . " Description : " . $description . " Password : " . $pssw . " There has also been send an email to the webmaster of this site with the info like above, the password cannot be requested again because it has been encrypted ... Greetz autobot :-)"; //mail("$webmaster_email","New Topsite Member !!!", "$message","From: New Topsite Member !!!<" . $webmaster_email . ">\nContent-Type: text/html; charset=iso-8859-1"); } ?> echo $text['80'] ?> echo $text['81'] ?>: << echo $text['82'] ?> |