Jump to content

JayLewis

Members
  • Posts

    79
  • Joined

  • Last visited

    Never

Everything posted by JayLewis

  1. Yer mate, its deffo ID i need it sorting by... its starting to do my nut in!
  2. Nope, still not workin :|
  3. i want to make all the records be shown in a decending order, i've tried using: $sql = 'SELECT * FROM `repair` ORDER BY `repair` . `id` DESC'; but its not working, any help please? Heres the code: <?php $host="xxxxxx"; // Host name $username="xxxxxxx"; // Mysql username $password="xxxxx"; // Mysql password $db_name="xxxx"; // Database name $tbl_name="xxx"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); ?> <html> <head> <meta http-equiv="Content-Language" content="en-gb"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Search For A Birkenheader</title> </head> <body bgcolor="#0D3C8A"> <?php xxxx // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); $count=mysql_num_rows($result); ?> <html> <head> <meta http-equiv="Content-Language" content="en-gb"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Search For A Birkenheader</title> </head> <body bgcolor="#0D3C8A"> <div align="center"> <table border="1" width="752" height="172" bgcolor="#FFFFFF" bordercolorlight="#000000" bordercolordark="#000000"> <tr> <td height="144" width="742" colspan="9"> <font face="Arial" color="#FFFFFF"> <img border="0" src="banner.jpg" width="742" height="140"></font></td> </tr> <tr> <td height="20" width="13" bgcolor="#1C3867" align="center"> <p align="center"><b><font face="Arial" size="2" color="#FFFFFF">ID</font></b></td> <td height="20" width="104" bgcolor="#1C3867" align="center"> <b><font face="Arial" color="#FFFFFF" size="2"> Contact Name</font></b></td> <td height="20" width="113" bgcolor="#1C3867" align="center"> <b><font face="Arial" color="#FFFFFF" size="2">Contact Number</font></b></td> <td height="20" width="70" bgcolor="#1C3867" align="center"> <b><font face="Arial" color="#FFFFFF" size="2">Make</font></b></td> <td height="20" width="75" bgcolor="#1C3867" align="center"> <b><font face="Arial" color="#FFFFFF" size="2">Model</font></b></td> <td height="20" width="89" bgcolor="#1C3867" align="center"> <b><font face="Arial" color="#FFFFFF" size="2">IMEI</font></b></td> <td height="20" width="136" bgcolor="#1C3867" align="center"> <b><font face="Arial" color="#FFFFFF" size="2">Fault</font></b></td> <td height="20" width="44" bgcolor="#1C3867" align="center"> <b><font face="Arial" color="#FFFFFF" size="2">Price</font></b></td> <td height="20" width="50" bgcolor="#1C3867" align="center"> <b><font face="Arial" size="2" color="#FFFFFF">Update</font></b></td></tr> <?php while($rows=mysql_fetch_array($result)) { ?> <tr> <td height="20" width="13" bgcolor="#1C3867" align="center"> <p align="center"><font face="Arial" size="2" color="#FFFFFF"> <a href="reciept.php?id=<? echo $rows['id']; ?>" style="text-decoration: none"> <font color="#FFFFFF"><? echo $rows['id']; ?></font></a> </font></td> <td height="20" width="104" bgcolor="#1C3867" align="center"> <font face="Arial" color="#FFFFFF" size="2"><? echo $rows['name']; ?></font></td> <td height="20" width="113" bgcolor="#1C3867" align="center"> <font color="#FFFFFF" face="Arial" size="2"> <? echo $rows['number']; ?></font></td> <td height="20" width="70" bgcolor="#1C3867" align="center"> <font face="Arial" color="#FFFFFF" size="2"><? echo $rows['make']; ?></font></td> <td height="20" width="75" bgcolor="#1C3867" align="center"> <font face="Arial" color="#FFFFFF" size="2"><? echo $rows['model']; ?></font></td> <td height="20" width="89" bgcolor="#1C3867" align="center"> <font face="Arial" color="#FFFFFF" size="2"><? echo $rows['imei']; ?></font></td> <td height="20" width="136" bgcolor="#1C3867" align="center"> <font face="Arial" color="#FFFFFF" size="2"><? echo $rows['fault']; ?></font></td> <td height="20" width="44" bgcolor="#1C3867" align="center"> <font face="Arial" color="#FFFFFF" size="2"><? echo $rows['price']; ?></font></td> <td height="20" width="50" bgcolor="#1C3867" align="center"> <font face="Arial" size="2" color="#FFFFFF"> <a href="update.php?id=<? echo $rows['id']; ?>" style="text-decoration: none"> <font color="#FFFFFF">Edit</font></a></font></td></tr> <? } mysql_close(); ?>
  4. Yer, i know its easy to do. And i should be able to do it, using the $__GET[id] but its just not working for me :|
  5. I want to set up a profile for each ID.. So there is a list of sold items on a webpage with a "Reciept" link. I want to click that and it will take me to the reciept of the ID i click. So i click "Nokia 3310" and on the new page it give me all the details on another page from everything in the nokia 3310 row in the database. Thanks, Jay heres my code: <html> <head> <meta http-equiv="Content-Language" content="en-gb"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> </head> <body bgcolor="#D0E0F0"> <font face="Arial" size="2"> <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000" height="52"> <tr> <td width="100%" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA" align="center"> <p align="center"> <font face="Arial" size="2"> <b>Control Panel<br> You are currently on page: "View Client List"<br> <br> Move to Pages:<br> <a href="insert.php" style="text-decoration: none"><font color="#000000">Add A Client</font></a> -</b> View Client List</font></td> </tr> <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#3C79BD"> <tr> <td width="16" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA"> <p align="center"><font face="Arial" size="2">ID</font></td> <td width="76" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA"> <p align="center"><font size="2">Client Name</font></td> <td width="186" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA"> <p align="center"><font face="Arial" size="2">Address</font></td> <td width="114" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA"> <p align="center"><font face="Arial" size="2">Telephone Number</font></td> <td width="93" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA"> <p align="center"><font face="Arial" size="2">Phone/Model</font></td> <td width="171" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA"> <p align="center"><font face="Arial" size="2">Repair Comments</font></td> <td width="86" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA"> <p align="center"><font face="Arial" size="2">Start Date</font></td> <td width="33" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA"> <p align="center"><font size="2">Cost</font></td> <td width="58" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA" align="center"> <font size="2">Receipt </font></td> <td width="76" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#8DA3BA" align="center" valign="middle"> <font size="2">Fixed?</font></td> </tr> <?php $host="localhost"; // Host name $username="customcl_jay"; // Mysql username $password="123456"; // Mysql password $db_name="customcl_elitephones"; // Database name $tbl_name="test_mysql"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // Retrieve data from database $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); // Start looping rows in mysql database. while($rows=mysql_fetch_array($result)){ ?> </font> <tr> <td width="16" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B6CCE4" align="center"><font face="Arial" size="2"><? echo $rows['id']; ?></font></td> <td width="76" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B6CCE4" align="center"><font face="Arial" size="2"><? echo $rows['name']; ?> <? echo $rows['lastname']; ?></font></td> <td width="186" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B6CCE4" align="center"><font face="Arial" size="2"><? echo $rows['email']; ?></font></td> <td width="114" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B6CCE4" align="center"><font face="Arial" size="2"><? echo $rows['tel']; ?></td> <td width="93" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B6CCE4" align="center"><font face="Arial" size="2"><? echo $rows['model']; ?></td> <td width="171" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B6CCE4" align="center"><font face="Arial" size="2"><? echo $rows['repair']; ?></td> <td width="86" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B6CCE4" align="center"><font face="Arial" size="2"><? echo $rows['dropoff']; ?></td> <td width="33" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B6CCE4" align="center"> <p align="center"><font face="Arial" size="2"><? echo $rows['price']; ?></font></td> <td width="58" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B6CCE4" align="center"> <font face="Arial" size="2">Receipt</font></td> <td width="76" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B6CCE4" align="center" valign="middle"> <form method="POST" action="--WEBBOT-SELF--"> <!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" --> <p><font face="Arial"> <select size="1" name="D1" style="border: 1px solid #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #8DA3BA"> <option>Yes</option> <option>BER</option> <option selected>Pending</option> </select></font></p> </form> </td> </tr> <font face="Arial" size="2"> <? // close while loop } // close connection mysql_close(); ?> </font> </body> </html>
  6. post your script up. or add me on msn Jay_Lewis@Jaydiocity.co.uk
  7. i want it to work every hour like i said. but it doesnt. it just need the times sorting out, wich i cant do.
  8. Hey everyone! I've got this Lottery Script and i want it to work like this: The lottery will be every two hours... So say the lotto starts at 12 oclock, you've got till 1 oclock to buy your tickets but after that, you must wait an hour after the last lottery for the new lottery to start. Confusing Ey? Heres the code: <?php $page = 'Lottery'; $count_aantal = 0; $q1 = mysql_query("SELECT * FROM lotterij WHERE user='$this_user->id' AND name='hour'"); while($admin = mysql_fetch_object($q1)) { $count_aantal++; } $q2 = mysql_query("SELECT * FROM lot WHERE lotterij='hour'"); $win = mysql_fetch_object($q2); $count_mny = 0; $q1 = mysql_query("SELECT * FROM lotterij WHERE name='hour'"); while($admin = mysql_fetch_object($q1)) { $count_mny++; } $price = 10000; /// prijs wat de lotterij kost $mny = $count_mny * $price; /*Cron voor lotterij van elk uur*/ $q1 = mysql_query("SELECT * FROM cron WHERE name='hour'"); $day = mysql_fetch_object($q1); /*einde van cron elk uur*/ mysql_query("INSERT INTO cron (endt) VALUES($day+3600)"); /*begin post van lotterij uur*/ if(isset($_POST['submit'])) { /*checken of de users meer als 50 loten heeft,of meer als 50 wil kopen*/ if($count_aantal >=50) { Messagebox("$page","You already have more then 50 tickets."); return; } if($tickets >=51) { Messagebox("$page","You cannot buy more then 50 tickets."); return; } $geld = $price * $tickets; $geld1 = $this_user->hand - $geld; if($this_user->hand - $geld <= -1) { MessageBox("$page","You dont have enough money."); return; } /*einde check*/ // aantal $aantal= $_POST['tickets']; //$aantal keer herhalen for($i=1;$i<=$aantal;$i++){ mysql_query("INSERT INTO lotterij (id,user,tickets,name) VALUES('','$this_user->id','1','hour')"); } MessageBox("Lotery","You bought some tickets."); mysql_query("UPDATE users SET hand='$geld1' WHERE id='$this_user->id'"); return; } /*einde post*/ AddLog($this_user->id, "$this_user->username visit lottery", $tijd); echo "<table width='300' align='center'>"; echo "<form method='post' name='lotterij'>"; echo "<tr>"; echo "<th class='pic' colspan='6'>Lottery Hour</th>"; echo "</tr>"; echo "<tr>"; echo "<th class='empty' colspan='6'> </th>"; echo "</tr>"; echo "<tr>"; echo "<th width='1%' class='empty'> </th>"; echo "<td width='49%' class='empty'>Buy: <input type'text' name='tickets' maxlength='2' class='trade'> </td>"; echo "<td width='49%' class='empty'><p align='right'>Tickets $count_aantal / 50 </p></td>"; echo "<th width='1%' class='empty'> </th>"; echo "</tr>"; echo "<tr>"; echo "<th width='1%' class='empty'> </th>"; echo "<td width='49%' class='empty'>Ticket Cost:</td>"; echo "<td width='49%' class='empty'>".Tomoney($price)."</td>"; echo "<th width='1%' class='empty'> </th>"; echo "</tr>"; echo "<tr>"; echo "<th width='1%' class='empty'> </th>"; echo "<td width='49%' class='empty'>Money in Pot:</td>"; echo "<td width='49%' class='empty'>".Tomoney($mny)."</td>"; echo "<th width='1%' class='empty'> </th>"; echo "</tr>"; echo "<tr>"; echo "<th width='1%' class='empty'> </th>"; echo "<td width='49%' class='empty'>Start Time:</td>"; echo "<td width='49%' class='empty'>". date('D M jS, H:i:s', $day) ."</td>"; echo "<th width='1%' class='empty'> </th>"; echo "</tr>"; echo "<tr>"; echo "<th width='1%' class='empty'> </th>"; echo "<td width='49%' class='empty'>Buying:</td>"; echo "<td width='49%' class='empty'>". date('D M jS, H:i:s', $tijd) ."</td>"; echo "<th width='1%' class='empty'> </th>"; echo "</tr>"; echo "<tr>"; echo "<th width='1%' class='empty'> </th>"; echo "<td width='49%' class='empty'>Buying Time Ends:</td>"; echo "<td width='49%' class='empty'>". date('D M jS, H:i:s', $tijd+3600) ." </td>"; echo "<th width='1%' class='empty'> </th>"; echo "</tr>"; echo "<tr>"; echo "<th width='1%' class='empty'> </th>"; echo "<td width='49%' class='empty'>Last Winner:</td>"; echo "<td width='49%' class='empty'>"; if($win->winner =='0') { echo "None"; } else { echo "".to_name($win->winner)."</td>"; } echo "<th width='1%' class='empty'> </th>"; echo "</tr>"; echo "<tr>"; echo "<th class='empty' colspan='6'> </th>"; echo "</tr>"; echo "<tr>"; echo "<th class='pic' colspan='6'> <input type='submit' name='submit' class='knop' value='Buy'> </th>"; echo "</tr>"; echo "</table>"; echo "</form>"; /*einde lotterij van elk uur*/ echo "<br>"; ?>
  9. it depends on how you have set it up. I suggest using sessions instead of cookies.
  10. any ideas why its not working? thanks JayLewis x
  11. i get this error: Fatal error: Call to undefined function: makecomma() in /home/frozenf/public_html/Lottery.php on line 88 when using this on line 88: <?php echo "$".makecomma($lotto_inf->jackpot)."";
  12. Thanks alot man, works a treat! And thanks for the quick relpy JayLewis x
  13. I have a anti-scripting check on my site, it displays 2 random number or letters. I want it to show just numbers. can anyone help? <? // *** CAPTCHA image generation *** // *** http://frikk.tk *** session_start(); // *** Tell the browser what kind of file is come'n at 'em! *** header("Content-Type: image/jpeg"); // *** Send a generated image to the browser *** create_image(); die(); // *** Function List *** function create_image() { // *** Generate a passcode using md5 // (it will be all lowercase hex letters and numbers *** $md5 = md5(rand(0,9999)); $pass = substr($md5, 10, 2); // *** Set the session cookie so we know what the passcode is *** $_SESSION["pass"] = $pass; // *** Create the image resource *** $image = ImageCreatetruecolor(100, 20); // *** We are making two colors, white and black *** $clr_white = ImageColorAllocate($image, 255, 255, 255); $clr_black = ImageColorAllocate($image, 0, 0, 0); // *** Make the background black *** imagefill($image, 0, 0, $clr_black); // *** Set the image height and width *** imagefontheight(15); imagefontwidth(15); // *** Add the passcode in white to the image *** imagestring($image, 5, 30, 3, $pass, $clr_white); // *** Throw in some lines to trick those cheeky bots! *** imageline($image, 5, 1, 50, 20, $clr_white); imageline($image, 60, 1, 96, 20, $clr_white); // *** Output the newly created image in jpeg format *** imagejpeg($image); // *** Clear up some memory... *** imagedestroy($image); } ?><p> </p>
  14. Thanks everyone, im looking into it all
  15. Hey all! How would i go about creating a live webcam feed? I have been told it can be done with Windows Media Encoder, but i can only get it working over a local network. I'm not even sure if i'm posting in the correct section. So anybody got any ideas? Regards, Jay Lewis
  16. Yer... it may seem that your loosing nothing, you need to refresh the bar to see you've lost it. im gonna turn that into an iFrame and make it update every 15 seconds.
  17. My whole logged in page. <? session_start(); include "includes/functions.php"; include "includes/db_connect.php"; logincheck(); $username=$_SESSION['username']; $total_regged=mysql_num_rows(mysql_query("SELECT * FROM users")); $admins=mysql_num_rows(mysql_query("SELECT * FROM users WHERE userlevel='2'")); $mods=mysql_num_rows(mysql_query("SELECT * FROM users WHERE userlevel='1'")); $iti=mysql_fetch_object(mysql_query("SELECT * FROM site_stats WHERE id='1'")); $most=$iti->online; $currank=$fetch->rank; $rankp = $fetch->rankpoints; ?> <? $fetch=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'")); ?> <?php $check = mysql_query("SELECT * FROM `inbox` WHERE `read`='0' AND `to`='$username'"); $inbox=mysql_num_rows($check); ?> <? $query1=mysql_query("SELECT * FROM user_info WHERE username='$username'"); $info=mysql_fetch_object($query1); $currank=$fetch->rank; $rankp = $fetch->rankpoints; if ($currank == "Nobody"){ $max = "100"; $old="0"; }elseif ($currank == "Begger"){ $max = "200"; $old="100"; }elseif ($currank == "Rat"){ $max = '400'; $old="200"; }elseif ($currank == "Bag Head"){ $max = '800'; $old="400"; }elseif ($currank == "Scum"){ $max = '1600'; $old="800"; }elseif ($currank == "Tramp"){ $max = '3200'; $old="1600"; }elseif ($currank == "Paper Boy"){ $max = '6400'; $old="3200"; }elseif ($currank == "Thief"){ $max = '12800'; $old="6400"; }elseif ($currank == "Wannabe Thug"){ $max = '25600'; $old="12800"; }elseif ($currank == "Thug"){ $max = '51200'; $old="25600"; }elseif ($currank == "Whygee"){ $max = '102400'; $old="51200"; }elseif ($currank == "Wankster"){ $max = '204800'; $old="102400"; }elseif ($currank == "Gangster"){ $max = '409600'; $old="204800"; }elseif ($currank == "Drug Dealer"){ $max = '819200'; $old="409600"; }elseif ($currank == "Associate"){ $max = '1638400'; $old="819200"; }elseif ($currank == "Made Man"){ $max = '3276800'; $old="1638400"; }elseif ($currank == "Hitman"){ $max = '6553600'; $old="3276800"; }elseif ($currank == "Underboss"){ $max = '13107200'; $old="6553600"; }elseif ($currank == "Godfather"){ $max = '26214400'; $old="131027200"; }elseif ($currank == "God"){ $max = '52428800'; $old="26214400"; }elseif ($currank == "Legend"){ $max = '104857600'; $old="52428800"; }elseif ($currank == "Scouse Saint"){ $max = '209715200'; $old="104857600"; } $percent = round((($rankp-$old)/($max-$old))*100); ?> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- function profile(url) { newwindow=window.open(url,'name','height=385,width=692'); if (window.focus) {newwindow.focus()} return false; } // --> </SCRIPT> <SCRIPT language=JavaScript id="disable right clicking"> <!-- document.oncontextmenu=function(){return false}; if(navigator.appName=="Netscape"){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=function(e) {if(e.which==2||e.which==3)return false} }; //--> </SCRIPT> <script language="javascript"> function Ismell (){ var del = confirm("Are you sure you want to log out?"); if (del == true){ var loc = "index.php?logout=yes"; parent.top.location.href=loc; } } function Toggle(item) { obj=document.getElementById(item); visible=(obj.style.display!="none") key=document.getElementById("x" + item); if (visible) { obj.style.display="none"; } else { obj.style.display="block"; } } </script> <meta http-equiv="refresh" content="300"> <link rel="stylesheet" href="./styles.css" type="text/css"> <body background="images/bg.jpg"> <form name="" method="post" > <table align=center border="1" width="722" height="714" class="tdcell"> <tr> <td height="100" width="712" class="tdcell" colspan="2" style="background-image: url('images/banner.jpg')" valign="bottom"> </td> </tr> <tr> <td height="17" width="712" class="tdcell" colspan="2" style="background-image: url('images/banner.jpg')" valign="bottom"> <font style="font-weight: 700" size="1">Name:</font><font size="1"> <?php echo "$fetch->username"; ?><b> Rank:</b> <?php echo "$fetch->rank"; ?><b> Money:</b> <?php echo "£".makecomma($fetch->money).""; ?> <b> Progress: <?php echo "$percent"; ?>% Energy: <?php echo "$fetch->energy%"; ?> Location: <?php echo "$fetch->location"; ?> <a href="logged_in3.php" style="text-decoration: none">[Refresh]</a></font></td> </tr> <tr> <head> </head><? $fetch=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'")); ?><td height="17" width="177" class="tdcell" style="background-image: url('images/menubg.jpg')"> <font size="1">Make Money</font></td> <td height="483" width="529" class="tdcell" style="background-image: url('images/tdbg.jpg')" rowspan="12"> <font size="1"> <iframe width="529" height="550" src="mainframe.php" name="main" align="middle" border="0" frameborder="0"></iframe> </font></td> <tr> <td height="82" width="177" class="tdcell" style="background-image: url('images/menubg2.jpg')"> <p> <font color="#000000"> <a style="text-decoration: none" target="main" href="jack.php"> <font color="#000000">Car Theft</font></a></font><br> <font color="#000000"> <a style="text-decoration: none" target="main" href="drugs.php"> <font color="#000000">Drugs</font></a></font><font color="black"><br> <font color="#000000"> <a style="text-decoration: none" target="main" href="bank.php"> <font color="#000000">Bank</font></a></font><br> <font color="#000000"> <a style="text-decoration: none" target="main" href="mission.php"> <font color="#000000">Missions</font></a></font><br> <font color="#000000"> <a style="text-decoration: none" target="main" href="ext.php"> <font color="#000000">Extortion</font></a></font><br> <font color="#000000"> <a style="text-decoration: none" target="main" href="crime.php"> <font color="#000000">Petty Crime</font></a></font></font></p> </td> </tr> <tr> <td height="16" width="177" class="tdcell" style="background-image: url('images/menubg.jpg')"> <b><font size="1">Your Cpanel</font></b></td> </tr> <tr> <td height="69" width="177" class="tdcell" style="background-image: url('images/menubg2.jpg')"> <a target="main" href="user.php" style="text-decoration: none"> <font color="#000000">Edit Your Profile</font></a><br> <a target="main" href="you.php" style="text-decoration: none"> <font color="#000000">Your Stats</font></a><br> <a target="main" href="crew.php" style="text-decoration: none"> <font color="#000000">Your Crew</font></a><br> <a target="main" href="baf.php" style="text-decoration: none"> <font color="#000000">Buddy List</font></a><br> <a target="main" href="garage.php" style="text-decoration: none"> <font color="#000000">Your Cars</font></a> <a target="main" href="rest.php" style="text-decoration: none"> <br><font color="#000000">Restraunt</font></a> </td> </tr> <tr> <td height="16" width="177" class="tdcell" style="background-image: url('images/menubg.jpg')"> <b><font size="1">Message Centre</font></b></td> </tr> <tr> <td height="43" width="177" class="tdcell" style="background-image: url('images/menubg2.jpg')"> <a href=inbox.php onclick="javascript:window.opener.location.reload();" target=main> <font color="#000000">Inbox<?php if ($inbox > 0){ echo "<span style=FONT-WEIGHT:bold> ($inbox)</span>"; } ?> </font></a><br> <a style="text-decoration: none" target="main" href="send2.php"> <font color="#000000">Compose</font></a> <br></a><a href="chat.php" target="main"><span style="text-decoration: none"> <font color="#000000">Chat</font></span></a> </tr> <tr> <td height="16" width="177" class="tdcell" style="background-image: url('images/menubg.jpg')"> <b><font size="1">War</font></b></td> </tr> <tr> <td height="56" width="177" class="tdcell" style="background-image: url('images/menubg2.jpg')"> <a target="main" href="kill.php" style="text-decoration: none">Kill</a><br> <a target="main" href="buy.php" style="text-decoration: none">Buy Weapons</a><br> <a target="main" href="sell.php" style="text-decoration: none">Sell Weapons</a><br> <a target="main" href="hitlist.php" style="text-decoration: none">Hit List</a> <br><a target="main" href="bf.php" style="text-decoration: none">Ammo Shop</a></td> </tr> <tr> <td height="16" width="177" class="tdcell" style="background-image: url('images/menubg.jpg')"> <b><font size="1">Gambling</font></b></td> </tr> <tr> <td height="43" width="177" class="tdcell" style="background-image: url('images/menubg2.jpg')"> <a target="main" href="rr.php" style="text-decoration: none"> <font color="#000000">Russian Roulette</font></a><br> <a target="main" href="race.php" style="text-decoration: none"> <font color="#000000">Horses</font></a> <a target="main" href="slots.php" style="text-decoration: none"> <br><font color="#000000">Slots</font></a> </td> </tr> <tr> <td height="16" width="177" class="tdcell" style="background-image: url('images/menubg.jpg')"> <font size="1"><b>MIsc</b></font></td> </tr> <tr> <td height="69" width="177" class="tdcell" style="background-image: url('images/menubg2.jpg')"> <a target="main" href="jail.php" style="text-decoration: none"> <font color="#000000">Jail</font></a><br> <a target="main" href="fly.php" style="text-decoration: none"> <font color="#000000">Travel</font></a><br> <a style="text-decoration: none" target="main" href="countrys.php"> <font color="#000000">Owners</font></a><br> <a target="main" href="search.php" style="text-decoration: none"> <font color="#000000">Search A User</font></a><br> <a target="main" href="stats.php" style="text-decoration: none"> <font color="#000000">Game Stats</font></a><br> <a href="javascript:Ismell()" style="text-decoration: none"> Logout</td> </tr> <tr> <td height="17" width="712" class="tdcell" style="background-image: url('images/menubg.jpg')" colspan="2"> <font size="1">Users Online</font></td> </tr> <tr> <td height="4" width="712" class="tdcell" style="background-image: url('images/tdbg.jpg')" colspan="2"> <font size="1"> <? $timenow=time(); $select = mysql_query("SELECT * FROM users WHERE online > '$timenow' ORDER BY 'users',`rankpoints` DESC "); $num = mysql_num_rows($select); while ($i = mysql_fetch_object($select)){ if ($i->crew == "0"){ $crew="None"; }else{ $crew=$i->crew; } if ($i->last_oc > time()){ $oc="No"; }else{ $oc="Yes"; } if($i->userlevel=="2"){ $echo = "<font color=#D00000>$i->username</font>"; }elseif ($i->userlevel=="1"){ $echo = "<font color=red>$i->username</font>"; }elseif ($i->helper=="1"){ $echo = "<font color=#339900>$i->username</font>"; }else{ $echo = "$i->username"; } $don=mysql_num_rows(mysql_query("SELECT * FROM donaters WHERE username='$i->username'")); if ($don != "0"){ $echo .= "<font color=GOLD>*</font>"; } $rhm=mysql_num_rows(mysql_query("SELECT * FROM crews WHERE rhm='$i->username'")); if ($rhm != "0"){ $echo = "<i>$echo</i>"; } $leader=mysql_num_rows(mysql_query("SELECT * FROM crews WHERE owner='$i->username'")); if ($leader != "0"){ $echo = "<b>$echo</b>"; } $casino=mysql_num_rows(mysql_query("SELECT * FROM casinos WHERE owner='$i->username'")); if ($casino != "0"){ $echo = "$echo"; } $friend=mysql_num_rows(mysql_query("SELECT * FROM friends WHERE person='$i->username' AND type='Friend' AND username='$username'")); if ($friend != "0"){ $echo = "<font color=yellow>$echo</font>"; } echo "<a href='profile.php?viewuser=$i->username' target=main> $echo </a>,"; } ?></font></td> </tr> </table> </body> </html>
  18. <meta http-equiv="refresh" content="3;url=http://www.yoursite.com/ext"> <? echo "thanks for signing the form"; ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.