Jump to content
MakeWebGames

Zero-Affect

Members
  • Posts

    3,713
  • Joined

  • Last visited

    Never

Everything posted by Zero-Affect

  1. $tablei = array( "explore" => "Exploring", "index" => "Home", "inventory" => "Items", "mailbox" => "Checking Mail", "events" => "Checking Events", "gym" => "Training", "gym2" => "Training Donator", "criminal" => "Criminal Grounds", "docrime" => "Doing Crime", "streets" => "Searching Streets", "announcements" => "Checking Announcements", "job" => "At Your Job", "education" => "At School", "hospital" => "At The Hospital", "jail" => "At The Jail", "forums" => "At The Forums", "newspaper" => "Reading Newspaper" ); $keyi = substr($keyi = basename($_SERVER['PHP_SELF']), 0, strpos($keyi, ".")); if($keyi == 'viewuser') { if($_GET['u']) { $prous = $db->fetch_row($db->query("SELECT `username` FROM `users` WHERE `userid` = {$_GET['u']}")); $pagei = "{$prous['username']}'s Profile"; } } elseif ( array_key_exists($keyi, $tablei) ) { // in_array($keyi, $tablei) $pagei = $tablei[$keyi]; } else { $keyi = preg_replace('[_]', ' ', $keyi); $pagei = ucfirst($keyi); } echo "<title>{$set['game_name']} - $pagei</title>"; Hybrid version of mine and kyles combined.
  2. i just explained above exactly why...
  3. <?php /*----------------------------------------------------- -- Login Page -- Graphics By Zero-Affect -- Coded by Zero-Affect -- Brought to you by Heaven-Designs -- Made on: 26/7/2008 -----------------------------------------------------*/ session_start(); include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } print <<<EOF <!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> <title>{$set['game_name']}</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <head> <style type="text/css"> <!-- body { background-color: #000000; background-image:url(images/lgridb.png); margin-top: 0px; margin-bottom: 0px; font-family:Palatino Linotype;font-size:12px;color: white; scrollbar-base-color: black; scrollbar-arrow-color: red; scrollbar-DarkShadow-Color: black; } a:visited,a:active,a:link { color: gray;text-decoration: none; } a:hover { color: silver;text-decoration: overline underline;background: none; } table,tr,td { font-family:Palatino Linotype;font-size: 12px; } .button { font-family:Palatino Linotype; font-size:12; color:#ffffff; background-color: red; } input,textarea,dropdown{ font-family:Palatino Linotype; font-size:12; color:#ffffff; background-color: black; } ..submit{ font-family:Palatino Linotype; font-size:12; color:#000000; background-color: red; } img { border:none; } textarea { font-family:Palatino Linotype;font-size:12px;color: black; } .table2 { } .center { width:932px; // background-color:#ffffff; background-image:url(images/lgridb.png); vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#000000; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#000000; height:22px; } td .h { background-image:url(header.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#222; } .table th { background-image:url(header.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#000000; } .linegrad2 { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: right; width:2px; } .navi { background-image:url(header.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#000000; } --> </style> </head> <body onload="getme();"> <center> <table width="1005" border="0" cellpadding="0" cellspacing="0" class="table2" height=100%> <tr> <td class="center">[img=/images/lheader.png] EOF; $IP = ($_SERVER['REMOTE_ADDR']); if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } $year=date('Y'); echo " <table width=100% valign=center align=center> <tr bgcolor=black> <th width=20%>[url='register.php']Register[/url]</th> <th width=20%>[url='fpass.php']Forgot Password[/url]</th> <th width=20%>[url='']Screenshots[/url]</th> <th width=20%>[url='']Rules[/url]</th> <th width=20%>[url='']Terms Of Service[/url]</th> </tr> </table> <table width='374' border='0' cellpadding='0' cellspacing='0' background='images/lbc.png' align='left'> <tr> <td height='76' colspan='3' valign='top'><table width='374' border='0' cellpadding='0' cellspacing='0' background='images/lbt.png'> <tr> <td width='184' height='10'></td> </tr><tr> <td height='33' align='center' valign='bottom'><font face='Arial, Helvetica, sans-serif'>[b]Login[/b]</font></td> </tr><tr> <td height='26'> </td> </tr></table></td></tr><tr> <td width='17' height='114'> </td> <td width='374' height='50' valign='top'><font face='Arial, Helvetica, sans-serif'><center> <form action='authenticate.php' method='post'> <table border=0 width=20%> <td>Username:</td><td><input type='text' name='username' id='username'></td><tr> <td>Password:</td><td><input type='password' name='password' id='password'></td><tr> <tr align=right><td colspan='2' align='right' valigh='right'><input type=image src=/images/Login.png class=submit name=submit></form></td></tr> </table> </center></font> </td> <td width='19'> </td></tr><tr> <td height='62' colspan='3' valign='top'>[img=images/lbb.png]</td> </tr></table>"; echo " <table width='374' border='0' cellpadding='0' cellspacing='0' background='images/lbc.png' align='right'> <tr> <td height='76' colspan='3' valign='top'><table width='374' border='0' cellpadding='0' cellspacing='0' background='images/lbt.png'> <tr> <td width='184' height='10'></td> </tr><tr> <td height='33' align='center' valign='bottom'><font face='Arial, Helvetica, sans-serif'>[b]About {$set['game_name']}[/b]</font></td> </tr><tr> <td height='26'> </td> </tr></table></td></tr><tr> <td width='17' height='114'> </td> <td width='374' height='50' valign='top'><font face='Arial, Helvetica, sans-serif'><center> <table border=0> <tr align=center> <td width=20%>{$set['game_description']}</td> </tr></table> </center></font> </td> <td width='19'> </td></tr><tr> <td height='62' colspan='3' valign='top'>[img=images/lbb.png]</td> </tr></table> [b]Brought to you by Zero.Affect © Heaven-Designs™ {$year}-2009.[/b]"; print <<<OUT </td> </tr> </table> OUT; ?>   Quick edit
  4. <?php /*----------------------------------------------------- -- Register Page -- Graphics By Zero-Affect -- Coded by Zero-Affect -- Brought to you by Heaven-Designs -- Made on: 28/7/2008 -----------------------------------------------------*/ include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $IP = ($_SERVER['REMOTE_ADDR']); $t = mysql_query("SELECT * FROM ips WHERE userIP='{$IP}'"); if($a = mysql_num_rows($t)> 0) { die('YOU ARE BANNED NOW BYE!'); } //thx to [url]http://www.phpit.net/code/valid-email/[/url] for valid_email function valid_email($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; } session_start(); print <<<EOF <!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> <title>{$set['game_name']}</title> <script type="text/javascript"> var xmlHttp // xmlHttp variable function GetXmlHttpObject(){ // This function we will use to call our xmlhttpobject. var objXMLHttp=null // Sets objXMLHttp to null as default. if (window.XMLHttpRequest){ // If we are using Netscape or any other browser than IE lets use xmlhttp. objXMLHttp=new XMLHttpRequest() // Creates a xmlhttp request. }else if (window.ActiveXObject){ // ElseIf we are using IE lets use Active X. objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP") // Creates a new Active X Object. } // End ElseIf. return objXMLHttp // Returns the xhttp object. } // Close Function function CheckPasswords(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="check.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("passwordresult").innerHTML = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function CheckUsername(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="checkun.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("usernameresult").innerHTML = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function CheckEmail(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="checkem.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("emailresult").innerHTML = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function PasswordMatch() { pwt1=document.getElementById('pw1').value; pwt2=document.getElementById('pw2').value; if(pwt1 == pwt2) { document.getElementById('cpasswordresult').innerHTML="<font color='green'>OK</font>"; } else { document.getElementById('cpasswordresult').innerHTML="<font color='red'>Not Matching</font>"; } } </script> <style type="text/css"> <!-- body { background-color: #000000; background-image:url(images/lgridb.png); margin-top: 0px; margin-bottom: 0px; font-family:Palatino Linotype;font-size:12px;color: white; scrollbar-base-color: black; scrollbar-arrow-color: red; scrollbar-DarkShadow-Color: black; } a:visited,a:active,a:link { color: gray;text-decoration: none; } a:hover { color: silver;text-decoration: overline underline;background: none; } table,tr,td { font-family:Palatino Linotype;font-size: 12px; } .button { font-family:Palatino Linotype; font-size:12; color:#ffffff; background-color: red; } input,textarea,dropdown{ font-family:Palatino Linotype; font-size:12; color:#ffffff; background-color: black; } ..submit{ font-family:Palatino Linotype; font-size:12; color:#000000; background-color: red; } img { border:none; } textarea { font-family:Palatino Linotype;font-size:12px;color: black; } .table2 { } .center { width:932px; // background-color:#ffffff; background-image:url(images/lgridb.png); vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#000000; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#000000; height:22px; } td .h { background-image:url(header.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#222; } .table th { background-image:url(header.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#000000; } .linegrad2 { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: right; width:2px; } .navi { background-image:url(header.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#000000; } --> </style> </head> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="center">[img=/images/rheader.png] EOF; $IP = ($_SERVER['REMOTE_ADDR']); $iap = ($_SERVER['REMOTE_ADDR']); $gq=mysql_query("SELECT * FROM `users` WHERE `lastip`='$iap'",$c); if (mysql_num_rows($gq) > 0) { die("<font color=red size=-1>{$set['game_name']} has taken action against multiple accounts, If you have another party in your household wanting to play please contact {$set['game_owner']}"); } $gq=mysql_query("SELECT * FROM `users` WHERE `lastip_login`='$iap'",$c); if (mysql_num_rows($gq) > 0) { die("<font color=red size=-1>{$set['game_name']} has taken action against multiple accounts, If you have another party in your household wanting to play please contact {$set['game_owner']}"); } $gq=mysql_query("SELECT * FROM `users` WHERE `lastip_signup`='$iap'",$c); if (mysql_num_rows($gq) > 0) { die("<font color=red size=-1>{$set['game_name']} has taken action against multiple accounts, If you have another party in your household wanting to play please contact {$set['game_owner']}"); } if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } if($_POST['username']) { if($set['regcap_on']) { if(!$_SESSION['captcha'] or $_SESSION['captcha'] != $_POST['captcha']) { unset($_SESSION['captcha']); die("Captcha Test Failed >[url='register.php']Back[/url]"); } unset($_SESSION['captcha']); } if(!valid_email($_POST['email'])) { die("Sorry, the email is invalid. >[url='register.php']Back[/url]"); } if(strlen($_POST['username']) < 4) { die("Sorry, the username is too short. >[url='register.php']Back[/url]"); } $sm=100; $cr=10; if($_POST['promo'] == "Promo Code") { $sm=1000; $cr=200; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $ql = sprintf('SELECT COUNT(userid) AS count FROM `users` WHERE username = %s OR login_name = %s', $username, $username); $ql = $db->query($ql); $q = $db->fetch_row($ql) $sql = sprintf('SELECT COUNT(userid) AS count FROM `users` WHERE email = %s', $_POST['email']); $sql = $db->query($sql); $q2 = $db->fetch_row($sql) if($q['count']) { echo "<font face='Palatino Linotype' size='-1' color='white'>Username already in use. Please go back and try another username.</font> >[url='register.php']Back[/url]"; } else if($q2['count']) { echo "<font face='Palatino Linotype' size='-1' color='white'>E-Mail already in use. Choose another.</font> >[url='register.php']Back[/url]"; } else if ($_POST['tos'] == "no") { echo "You dont agree with the Terms Of Service, Goodbye. >[url='register.php']Back[/url]"; } else if($_POST['password'] != $_POST['cpassword']) { echo "<font face='Palatino Linotype' size='-1' color='white'>The passwords did not match, go back and try again. </font> >[url='register.php']Back[/url]"; } else { $_POST['ref'] = abs((int) $_POST['ref']); $IP = ($_SERVER['REMOTE_ADDR']); $q=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}"); if($db->num_rows($q)) { die("<font face='Palatino Linotype' size='-1' color='red'>No Making Multies!</font> >[url='register.php']Back[/url]"); } $year=date('Y'); if($_POST['ref']) { $q=$db->query("SELECT `lastip` FROM users WHERE userid={$_POST['ref']}"); $r=$db->fetch_row($q); } $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup, new_mail) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, $cr, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP', '1')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); $ownerID = 1; // select the id of which you would like the mail to come from. $mSubject = 'Welcome to '.$set['game_name'].''; $mBody = 'Hey i'd just like to welcome you on behalf of the full '.$set['game_name'].' Staff. This mail is just to let you know if you have any problems you can always mail us. Regards '.$set['game_name'].' Staff'; $query = sprintf("INSERT INTO `mail` VALUES ('',0,$ownerID,$i,unix_timestamp(),'{$mSubject}','{$mBody}')",$c) or die(mysql_error()); $db->query($query); if($_POST['ref']) { require "global_func.php"; $query = sprintf('UPDATE `users` SET crystals=crystals+%u WHERE userid = %u', 10, $_POST['ref']); $db->query($query); event_add($_POST['ref'],"For refering $username to the game, you have earnt 10 valuable crystals!",$c); $query = sprintf("INSERT INTO `referals` VALUES('', %u, $i, unix_timestamp(),'{$r['lastip']}','$IP')", $_POST['ref']); $db->query($query); } echo "<font face='Palatino Linotype' size='-1' color='white'>Hey there {$_POST['username']} Your account has been registered. Please sign in and start playing!</font> > [url='login.php']Login[/url]"; } } else { if($set['regcap_on']) { $chars="123456789"; $len=strlen($chars); $_SESSION['captcha']=""; for($i=0;$i<6;$i++) $_SESSION['captcha'].=$chars[rand(0, $len - 1)]; } echo " <table width=100% valign=center align=center> <tr bgcolor=black> <th width=20%>[url='login.php']Login[/url]</th> <th width=20%>[url='fpass.php']Forgot Password[/url]</th> <th width=20%>[url='']Screenshots[/url]</th> <th width=20%>[url='']Rules[/url]</th> <th width=20%>[url='']Terms Of Service[/url]</th> </tr> </table> <table width='400' border='0' cellpadding='0' cellspacing='0' background='images/RC.png' align='center'> <tr> <td height='76' colspan='3' valign='top'><table width='400' border='0' cellpadding='0' cellspacing='0' background='images/RT.png'> <tr> <td width='400' height='10'></td> </tr><tr> <td height='35' align='center' valign='bottom'><font face='Palatino Linotype'>[b]Register.[/b]</font></td> </tr><tr> <td height='16'> </td> </tr></table></td></tr><tr> <td width='17'> </td> <td width='400' valign='top'><font face='Palatino Linotype'><center>"; echo "<form action=register.php method=post> <center><table width='85%' class='table2' cellspacing='1'> <tr> <td width='30%'><center>Username:</font></center></td> <td width='40%'><input type=text name=username onkeyup='CheckUsername(this.value);'></td> <td width='30%'><div id='usernameresult'></div></td> </tr> <tr> <td><center>Password:</font></center></td> <td><input type=password id='pw1' name=password onkeyup='CheckPasswords(this.value);PasswordMatch();'></td> <td><div id='passwordresult'></div></td> </tr> <tr> <td><center>Confirm Password:</font> </center></td><td><input type=password name=cpassword id='pw2' onkeyup='PasswordMatch();'></td> <td><div id='cpasswordresult'></div></td> </tr> <tr> <td><center>Email:</center></td><td><input type=text name=email onkeyup='CheckEmail(this.value);'></td> <td><div id='emailresult'></div></td> </tr> <tr> <td>Gender:</td> <td colspan='2'><select name='gender' type='dropdown'> <option value='Male'>Male <option value='Female'>Female</select></td> </tr> <tr>"; // tos.php does not exist so making your own would be valuable or remove the option. echo " <td>Agree to [url='tos.php']TOS[/url]:</td> <td colspan='2'>Yes: <input type='radio' name='tos' value='yes'> No: <input type='radio' name='tos' value='no'></td> </tr> <tr>"; // exit tos echo " <td><center>Promo Code: (Leave Blank If Unknown)</font></center></td><td colspan=2><input type=text name=promo></td> </tr> <input type=hidden name=ref value='"; if($_GET['REF']) { $_GET['ref'] = abs(@intval($_GET['ref'])); $_GET['REF'] = abs(@intval($_GET['REF'])); print $_GET['REF']; } echo "' />"; if($set['regcap_on']) { echo "<tr> <center><td colspan=3><center>[img=captcha_verify.php?bgcolor=232323] <center><input type='text' name='captcha' /></td> </tr>"; } echo " <tr> <td colspan=3 align=center><input type=submit value=Submit></td> </tr> </table> </form> [b]Brought to you by Zero.Affect © Heaven-Designs™ {$year}-2009.[/b]"; echo "</center></font> </td> <td width='19'> </td></tr><tr> <td height='62' colspan='3' valign='top'>[img=images/RB.png]</td> </tr></table>"; } print <<<OUT </td> </tr> </table> </center> </body> </html> OUT; ?>   quick edit
  5. i didn't say do that did i?   $m = $db->query("SELECT `userid`, `username` FROM `users` WHERE `userid` = '{$r['married']}'"); $par = $db->fetch_row($m); $married_text = ($ir['married'] == "0") ? "<font color='red'>N/A</font>" : "[url='viewuser.php?u={$par[']<font color='green'>{$par['username']} </font>[/url]" ; echo "Married: {$married_text}";   Sorry about that noticed a issue
  6. $m = $db->query("SELECT `userid`, `username` FROM `users` WHERE `userid` = '{$r['married']}'"); $par = $db->fetch_row($m); $married_text = ($ir['married'] != "0") ? "<font color=red>N/A</font>" : "[url='viewuser.php?u={$par[']<font color=yellow>{$par['username']} </font>[/url]" ; echo $married_text; i don't see a single issue with that, is there?
  7. I do actually agree with you there a very valid point, MC is more like a game rather than a engine monocity.com anyone... lol The MC team need to think more global not local as it were, They need to get away from the TornCity (lookalike) engine and create something from scratch. They however have sold quite alot of copies of MCv2 in the past but then again there market is open alot more due to the major downfall you pointed out Alain (they give you a game not a engine). More options to change, more ability to edit and more freedom is exactly what these people need.
  8. I understand your point there i actually personally dislike tutorials on games (i still have one) but personally don't like the idea of being told how to do something i prefer the adventure as it were. Newbie clickers of your logo obviously you have the risk of maybe what 60% leaving without even registering? Consider this direct at both but in alternative ways one ad banner for newbie members (specific site ie: forums, blogs and so on) one for experienced players (specific site ie: game related). Social networks and so on for the newbie members and Games and so forth for the more experienced members, also a kick ass referral system is a good idea.
  9. ^wow MCV3 will probably be available soon but consider the other engines available now there is so many ie: ZAP and Horizon and many more. Would MC version 3 cut it? - now that's something we should discuss
  10. BK big mac + MC D's fries + a MC Flurry = :D
  11. wow now that's abit silly You hopefully do not allow specific chars in username? Your calling from $ir which i would believe to be a secure source unless you define the $ir array used. considering your using a outside source ie: $ir['userid'] = $_GET['userid']; // defining $ir['userid'] as $_GET['userid'] should alternatively be set out like so: $ir['userid'] = (ctype_digit($_GET['userid']) AND !empty($_GET['userid'])) ? $_GET['userid'] : '' ;   and would work like so: $ir['userid'] = (ctype_digit($_GET['userid']) AND !empty($_GET['userid'])) ? $_GET['userid'] : '' ; if ( !$ir['userid'] ) { // if begin echo 'not happening buddy!'; } // if end else { // else begin $query = $db->query(sprintf(' SELECT `column1`, `column3`, `column10` FROM `users` WHERE `userid` = %u', $ir['userid'])); while ($what = $db->fetch_row($query)) { // while begin echo ' column1 = '.$what['column1'].' column3 = '.$what['column3'].' column10 = '.$what['column10'].' '; } // while end } // else end
  12. "on youtube" thats kind of obvious really he would of said something like "working on youtube dont disturb" and people would of taken it the wrong way.
  13. Would love to know if it helped...
  14. Merry Christmas and a happy new year :S
  15. i don't know why but everytime i see someone use a * in MySQL i die a little inside :(
  16. If yours looks anything like mine (even thought you ain't seen my code) ill have you done for stealing my work psychically. We all know yours will be great just not as great as mine (i love myself) 8|
  17. $married_text = (!$ir['married']) ? "<font color=red>N/A</font>" : "[url='viewuser.php?u={$par[']<font color=yellow>{$par['username']} </font>[/url]" ; echo $married_text;   is a solution (not tested)
  18. so let me get this right you and your daughter had a bad bigmac and for your troubles you got 2 more bigmacs... free you ate them right?
  19. SELECT * FROM should be SELECT `userid`, `username` FROM try not to use * basically pulls the entire table which with users is alot of columns
  20. nice job Kyle
  21. i have to admire your people skills their Kyle, good job :D
  22. yeah you done this yet?
  23. Do you have the right to use the images you use i mean if you buy them from ie istockphoto then it's costly for you but if you take them from render websites then they ain't royalty free and legally effects your customers... what exactly do you supply a psds, css, cut images and a html file?
  24. 6 and you'd get a ham burger in burger king in england lol
  25. Not really as you can set requirements, eg signup has to be active for 2 weeks, reach lvl ??? or whatever you set or go the bigpoint way, 30% on every sale by that signup lifetime. So you only would pay for premium user signups. the premium user signups i would do that and just basically remove the sales function so you never pay a penny and considering my game works on a donate function i would assume i wouldn't have to pay a penny, now who wants to say "wooo!" for me? but serious the bigpoint strategy is a good way and i wish advertisement agencies worked that way.
×
×
  • Create New...