I need bit of help the code let u invite a member thru email then u receive 75 plusses when they join but i have a lil prob the email dnt get dilevered to the email that are added
cpanel
index.php?action=invite
core.php
genproc
lists
sql
this is all the files
cpanel
Code:
echo "<a href=\"index.php?action=invite&sid=$sid\">»Send Invite</a><br/>";
Code:
///////////////////////////////////sending invites else if($action=="invite") { $uid =getuid_sid($sid); if($uid>0) { addonline(getuid_sid($sid),"sending invite",""); } echo "<head><title>$site_name</title>"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/$theme[0]\" />"; echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" /> <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/> <meta name=\"description\" content=\"Riderz wap dating portal and community containg chat, forums, blogs and much more\" /> <meta name=\"keywords\" content=\"chat, forums, wap, dating, games, blogs, polls, quiz, lavalair, news, rap, goth\" /></head>"; echo "<body>"; echo "<h3 align=\"center\">Send Invite</h3>"; echo "<p align=\"center\">"; echo "Send To:<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">$whonick</a><br/>"; echo "You will get 75 plusses for every user that u invite from here:<br/>"; echo "<form action=\"genproc.php?action=invite&sid=$sid\" method=\"post\">"; echo "To:<input type=\"text\" name=\"email\" value=\"@\" maxlength=\"150\"/><br/>"; echo "From:<input type=\"text\" name=\"from\" value=\"@\" maxlength=\"150\"/>"; echo "<input type=\"submit\" value=\"send\"/>"; echo "</form>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body></html>"; }
Code:
function registerform($ef) { $ue = $errl = $pe = $ce = ""; switch($ef) { case 1: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your UserID"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 2: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your password"; $pe = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 3: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your password again"; $ce = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 4: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID is invalid"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 5: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Password is invalid"; $pe = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 6: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Passwords doesn't match"; $ce = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 7: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID must be 4 characters or more"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 8: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Password must be 4 characters or more"; $pe = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 9: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID already in use, choose a different one"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 10: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Unknown mysql error try registering later"; break; case 11: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID must start with a letter from a-z"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 12: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID is reserved for admins of the site"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 13: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please choose an appropriate nickname"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 14: $errl = "<img src=\"../images/point.gif\" alt=\"!\"/> U must enter an email address"; $ue = "<img src=\"../images/point.gif\" alt=\"!\"/>"; break; case 15: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Email Address is already in use"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 16: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Email Address is invalid"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; } $rform = "<small>$errl</small><br/><br/>"; $rform .= "<form action=\"register.php\" method=\"post\">"; $rform .= "$ue UserID: <input name=\"uid\" format=\"*x\" maxlength=\"15\"/><br/>"; $rform .= "$pe Password: <input type=\"password\" name=\"pwd\" format=\"*x\" maxlength=\"30\"/><br/>"; $rform .= "$ce Password: <input type=\"password\" name=\"cpw\" format=\"*x\" maxlength=\"30\"/><br/>"; $rform .= "Birthday:(e.g.1985-05-01) <input name=\"bday\" format=\"NNNN\-NN\-NN\"/><br/>"; $rform .= "Sex:"; $rform .= "<select name=\"usex\" value=\"M\">"; $rform .= "<option value=\"M\">Male</option>"; $rform .= "<option value=\"F\">Female</option>"; $rform .= "</select><br/>"; $rform .= "Location: <input name=\"uloc\" maxlength=\"100\"/><br/>"; $rform .= "Email: <input name=\"email\" maxlength=\"100\"/><br/>"; $rform .= "Invite Code: <input name=\"code2\" maxlength=\"6\"/><br/>"; $rform .= "<input type=\"submit\" value=\"Register\"/>"; $rform .= "</form>"; return $rform; } function emailexist($email) { $checkmail = mysql_fetch_array(mysql_query("SELECT COUNT(*) from ibwf_users where email='".$email."'")); if($checkmail[0]>0) { return true; }else{ return false; } }
Code:
//////////////////////////////////////////send invite else if($action=="invite") { addonline(getuid_sid($sid),"sending invite",""); $avid = $_GET["avid"]; echo "<p align=\"center\">"; //$uid = getuid_sid($sid); $whonick = getnick_uid($uid); $str = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; $shuffled = str_shuffle($str); // This will echo something like: bfdaec $code = substr($shuffled, 0, 6); $res = mysql_query("INSERT INTO code SET code='".$code."', uid='".$uid."'"); if($res) { $from_head .= "From:$from"; $subject = "By $whonick (wap.hostpayne.co.za)"; $content = "Date: ".date("l d/m/y H:i:s")."\n\n"; $content .= "Invite code:$code\n"; $content .= "http://wap.hostpayne.co.za/register.php\n"; $content .= "$whonick on hostpayne wants you to join our wap community we got the bet online features you get 75 plusses if you register with this code\n"; $content .= "Forums:\n"; $content .= "ask any thing, discuss anything, and share information and thoughts with people from all around the world, we have more than 20 different forums that covers many subjects, that you rarely see in any other forums, plus many forums created by the users them selves (at the moment more than 50 forums).\n"; $content .= "Chat rooms:\n"; $content .= "Get to know handreds of people and counting, awesome chat script that will allow you to create private rooms, or chat in general rooms, with funny and special functions that makes our chat the most unique chat on wap, easily send private or public message in the same room, chat in esreveR words or with our funny chatbot, in a nut shell: UNLIMITED CHAT FEATURES!\n"; $content .= "Fun Menu:\n"; $content .= "Games, and other fun things to have while you waiting your buddies to be online, new games will be added, to let you never be bored while you're in Hostpayne\n"; $content .= "Buddies List:\n"; $content .= "The buddies list will make you so close to your favorite members on our community, quickly reach them and know some information about them.\n"; $content .= "Ignore list:\n"; $content .= "So is somebody is really bothering you? you can simply add them to your ignore list and then they wont be able to send you PMs or chat to you in chatrooms, as simple as that.\n"; $content .= "Smilies:\n"; $content .= "Huge collection of funny and unique smilies, some of them you have never seen before simply because we designed them.\n"; $content .= "BBCodes:\n"; $content .= "use special codes to format your text, some of them are really unique and we are the first to use them.\n"; $content .= "E-cards:\n"; $content .= "send greeting cards, to any member in hostpayne\n"; $content .= "RSS reader:\n"; $content .= "read world news, sport news, jokes, star signs, weird stories, technology news, and many more from official resources updated constantly anytime of the day\n"; $content .= "Inbox:\n"; $content .= "Send and recieve Personal Messages to any member, with great features to let you filter inbox view, dialogs (which will let you see a chat text style of PMs was sent to or recieved from a specific member) , star PMs, download them and forward them to your e-mail.\n"; $content .= "Clubs:\n"; $content .= "After getting 500 plusses in HostPayne you can create your own club which will let you create your own forum, and chatroom, and you have the option to allow who you want to join your club, under your own rules.\n"; $content .= "Personal Wap Site:\n"; $content .= "Get your own http://wap.hostpayne.co.za/users?yournick site the moment you register, allowing any person on earth to know personal information about you, read your blogs, see your events, and many more coming features\n"; $content .= "And more!:\n"; $content .= "Blogs,pop-up msgs, polls, calendar, address book, extended users profile, huge collection of avatars, galleries, downloads, guestbook and many features to come.\n"; $content .= "Invite code:$code\n"; $content .= "http://wap.hostpayne.co.za/register.php\n"; $content .= "wap.hostpayne.co.za: The best wap community!"; mail($email, $subject, $content, $from_head); echo "<img src=\"images/ok.gif\" alt=\"o\"/>Invite has been sended<br/>"; }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>"; } echo "<br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; }
Code:
////////////////////////////top inviters else if($action=="tivn") { addonline(getuid_sid($sid),"Top Inviters",""); echo "<p align=\"center\">"; echo "<b>Top Inviters</b>"; echo "</p>"; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $num_items = regmemcount(); //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; //changable sql $sql = "SELECT id, name, invites FROM ibwf_users ORDER BY invites DESC LIMIT $limit_start, $items_per_page"; echo "<p>"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $ulink = ulink($item[0],$sid); $lnk = "$ulink <small>Invites: $item[2]</small>"; echo "$lnk<br/>"; } } echo "</p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"lists.php?action=tchat&page=$ppage&sid=$sid&view=$view\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"lists.php?action=tchat&page=$npage&sid=$sid&view=$view\">Next»</a>"; } echo "<br/>$page/$num_pages<br/>"; if($num_pages>2) { $rets = "<form action=\"lists.php\" method=\"get\">"; $rets .= "Jump to page: <input name=\"page\" format=\"*N\" size=\"3\"/>"; $rets .= "<input type=\"submit\" value=\"GO\"/>"; $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>"; $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>"; $rets .= "</form>"; echo $rets; } echo "</p>"; ////// UNTILL HERE >> echo "<p align=\"center\">"; echo "<a href=\"index.php?action=stats&sid=$sid\"><img src=\"images/stat.gif\" alt=\"*\"/>"; echo "Site Stats</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; }
Code:
-- -- Table structure for table `code` -- CREATE TABLE `code` ( `id` int(100) NOT NULL auto_increment, `uid` varchar(100) NOT NULL, `code` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; ibwf_users `invites` int(100) NOT NULL default '0',
Comment