Jump to content

flemingmike

Members
  • Posts

    472
  • Joined

  • Last visited

Posts posted by flemingmike

  1. i think i might have done something simple to screw this up.

     

    <?
    function get_content($url)
    {
       $ch = curl_init();
    
       curl_setopt ($ch, CURLOPT_URL, $url);
       curl_setopt ($ch, CURLOPT_HEADER, 0);
    
       ob_start();
    
       curl_exec ($ch);
       curl_close ($ch);
       $string = ob_get_contents();
    
       ob_end_clean();
      
       return $string;   
    } 
    
    header("Content-Type: text/xml");
    echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n\n";
    echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n";
    echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n";
    echo "<rss version=\"0.91\">\n\n";
    echo "<channel>\n";
    
    echo "<title>MLB Scores</title>\n";
    echo "<link>http://www.mlb.com</link>\n";
    echo "<description>MLB Scores</description>\n";
    echo "<language>en-us</language>\n";
    echo "<image>\n";
    echo " <title>MLB Scores</title>\n";
    echo " <url>http://www.durhamit.ca/test/mlb.gif</url>\n";
    echo " <link>http://www.mlb.com</link>\n";
    echo "</image>\n";
    echo "<webMaster>info@mlb.com</webMaster>\n";
    
    $content = get_content ("http://sports.espn.go.com/mlb/bottomline/scores");
    
    $content_array=explode("&", $content);
    $scorearray = array();
    $i=0;
    foreach($content_array as $content) {
    if (strpos($content, "_left")) {
    	$equalpos = strpos($content, "=");
    	$end = strlen($content);
    	$title = substr($content, ($equalpos+1), $end);
    	$title = str_replace("^", "", $title);
    	$title = str_replace("%20", " ", $title);
    	$scorearray[$i]["title"] = $title;
    
    }
    if (strpos($content, "_url")) {
    	$equalpos = strpos($content, "=");
    	$end = strlen($content);
    	$url = substr($content, ($equalpos+1), $end);
    	$url = str_replace("^", "", $url);
    	$url = str_replace("%20", " ", $url);
    	$scorearray[$i]["url"] = $url;
    			$i++;
    
    }
    }
    
    foreach($scorearray as $score) {
    echo "<item>\n";
    echo "<title>".$score["title"]."</title>\n";
    echo "<link>".$score["url"]."</link>\n";
    echo "</item>\n";
    }
    
    echo "</channel>\n";
    echo "</rss>\n";
    ?>

     

    any ideas?

     

     

  2. hi all, i found a sample code for displaying sports scores, it is in cfm, and i dont have cold fusion on my server.  here is the code below.

     

    <!--- 
    
    Joel Hill
    www.WeCodeThings.com
    jiggidyuo@yahoo.com
    
    --->
    
    <!--- Script can be a scheduled task or ran when the user requests it --->
    
    <!--- This script works only with NFL and NCAA Football --->
    
    <!--- Things that might be useful that I know about the String that comes from ESPN for NFL and NCAA Football --->
    <!---
    1.  When the game is over, the matchArray[i].matchDate = "FINAL" OR  NEQ "FINAL - OT"
    2.  When the game is at halftime, the matchArray[i].matchDate = "HALFTIME"
    3.  These are the only times when matchArray[i].matchDate is not a date, but a string
    4.  The URL string is updated ever 120 seconds
    5.  NBA, NHL are a little more tricky because it lists some stats after the game 
        (Anybody who decides to parse these, please let me know. I don't have the need right now
        but I would like to have the code
    --->
    
    <!--- Known ESPN URL STRINGS --->
    <!---
    NFL:            http://sports.espn.go.com/nfl/bottomline/scores
    NBA:            http://sports.espn.go.com/nba/bottomline/scores
    MLB:            http://sports.espn.go.com/mlb/bottomline/scores
    NHL:            http://sports.espn.go.com/nhl/bottomline/scores
    NCAA Football:  http://sports.espn.go.com/ncf/bottomline/scores
    GOLF:           http://sports.espn.go.com/sports/golf/bottomLineGolfLeaderboard
    Nascar:         http://sports.espn.go.com/rpm/bottomline/race
    WNBA:           http://sports.espn.go.com/wnba/bottomline/scores
    ESPN Headlines: http://sports.espn.go.com/espn/bottomline/news
    --->
    
    <!--- To debug, try removing the cftry's --->
    <!--- Set to false to hide the string and url --->
    <cfset ShowNFLEspnString = false>
    
    <!--- Set to false to hide the dump of the games --->
    <cfset ShowGameDump = false>
    
    <!--- Set to false to hide the Pass | Fail Message  --->
    <cfset ShowPassFail = false>
    
    <!--- And away... We... GO! --->
    <cftry>
        
    <!--- Lets do NFL --->    
    <cfset espn = "http://sports.espn.go.com/nfl/bottomline/scores">
    
    <cfhttp url="#espn#" method="get" resolveurl="yes" throwonerror="yes" />
    <cfset myArray = arrayNew(1) />
    <cfset myResult = #CFHTTP.FileContent# />
    
    <cfif ShowNFLEspnString EQ true>
    <cfoutput>
        <br />
        ESPN NFL String URL: <a href="#espn#">#espn#</a><br />
        <br />
        #myResult#<br />
        <br />
        </cfoutput>
    </cfif>
    
    <cfset j = 1 />
    <!---parse the urls, don't touch --->
    <cfset newResult = #REReplace(myResult, "%20%20", "@", "all")# />
    <cfset newResult = #REReplace(newResult, "%20", " ", "all")# />
    <cfset newResult = #REReplace(newResult, "%26", "", "all")# />
    <cfset newResult = #REReplace(newResult, "[(][0-9][)]", "", "all")# />
    <cfset newResult = #REReplace(newResult, "[(][0-9][0-9][)]", "", "all")# />
    <cfset newResult = #REReplace(newResult, "[(][A-Z][A-Z][)]", "", "all")# />
    <cfset newResult = #REReplace(newResult, "\^", "", "all")# />
    <cfset newResult = #REReplace(newResult, "[ \t][a-z][a-z][ \t]", "@", "all")# />
    <cfset newResult = #REReplace(newResult, "[(]", "@(", "all")# />
    <cfset newResult = #REReplace(newResult, "[()]", "", "all")# />
    
    <!---loop over the urls and store the teams in a array--->
    <cfloop list="#newResult#" index="i" delimiters="#chr(38)#">
        <!--- Sometimes espn has a item with no teams or scores --->
        <!--- If this is the case, a try catch will keep the loop going so it doesn't crash --->
        <cftry>
    	<cfset myArray[j] = listgetat("#i#", 2, "=") />
            <cfset j = j + 1 />
        <cfcatch>
        	<!--- Don't care what the extra garbage is --->
        </cfcatch>
        </cftry>
    </cfloop>
    
    <cfset gamesArray = arrayNew(1) />
    <cfset j = 1 />
    
    <cfloop from="3" to="#arraylen(myArray)#" index="m" step="3">
        <cfset gamesArray[j] = #myArray[m]# & "&"  />
        <cfset j =  j + 1 />
    </cfloop>
    
    <!---remove garbage character at the end of the array--->
    <cfset delete = #arrayDeleteAt(gamesArray, j-1)# />
    
    <!---turn the array back into a list for fun --->
    <cfset breakUp = #arrayToList(gamesArray,"")# />
    <cfset matchArray = arrayNew(1) />
    <cfloop list="#breakUp#" index="z" delimiters="#chr(38)#">
        <cftry>
    	<cfset matchup = structNew() />
            <cfset matchup.teamOne = trim(listgetat("#z#", 1, "@")) />
             
            <!--- Get the score start and end places --->
            <cfset teamOneScoreStringStart = #findoneof("0123456789",matchup.teamOne)#>
            <cfset teamOneScoreStringEnd = #LEN(matchup.teamOne)#>
            
            <!--- Team 1 Score --->
            <cfif teamOneScoreStringStart EQ 0>
                <cfset matchup.teamOneScore = 0>
            <cfelse>
                <cfset matchup.teamOneScore =#Mid(matchup.teamOne,teamOneScoreStringStart,teamOneScoreStringEnd)#>
            </cfif>
            <!--- Remove Score from teamOne String --->
            <cfif teamOneScoreStringStart NEQ 0>
                <cfset teamOneScoreStringStart = teamOneScoreStringStart - 1>
                <cfset matchup.teamOne = #Mid(matchup.teamOne,1,teamOneScoreStringStart)#>
            </cfif> 
                    
            <cfset matchup.teamTwo = trim(listgetat("#z#", 2, "@")) />
            
            <!--- Get the score start and end places --->
            <cfset teamTwoScoreStringStart = #findoneof("0123456789",matchup.teamTwo)#>
            <cfset teamTwoScoreStringEnd = #LEN(matchup.teamTwo)#>
            
            <!--- Team 2 Score --->
            <cfif teamTwoScoreStringStart EQ 0>
                <cfset matchup.teamTwoScore = 0>
            <cfelse>
                <cfset matchup.teamTwoScore =#Mid(matchup.teamTwo,teamTwoScoreStringStart,teamTwoScoreStringEnd)#>
            </cfif>
            <!--- Remove Score from teamTwo String --->
            <cfif teamTwoScoreStringStart NEQ 0>
                <cfset teamTwoScoreStringStart = teamTwoScoreStringStart - 1>
                <cfset matchup.teamTwo = #Mid(matchup.teamTwo,1,teamTwoScoreStringStart)#>
            </cfif> 
         
         	<cfset matchup.matchDate = trim(listgetat("#z#", 3, "@")) />
         
        <cfcatch>
        	<!--- Don't care, just make sure it doesn't crash --->
        </cfcatch>
        </cftry>
            
        <cfset arrayAppend(matchArray,matchup) />
        
    </cfloop>
    
    <!--- LETS SEE OUR LIVE SCORES!!!! --->
    <cfif ShowGameDump EQ true>
    <cfdump var="#matchArray#" />
    </cfif>    
    
    <!--- Ok lets do something with our live scores, loop through the array and add total score --->
    <!--- This will be our new array to hold our information --->
    <cfset matchInfoArray = arrayNew(1)>				
    <cfloop from="1" to="#arraylen(matchArray)#" index="i">
    
    <cfset matchupinfo = structNew() />
            
    <!--- Set MATCHDATE --->
        <cfset matchupinfo.matchdate = matchArray[i].matchdate>
        
        <!--- Set TOTAL POINTS --->
        <cfif isnumeric(matchArray[i].teamonescore) AND isnumeric(matchArray[i].teamtwoscore)>
            <cfset matchupinfo.total = (matchArray[i].teamonescore + matchArray[i].teamtwoscore)>
        <cfelse>
            <cfset matchupinfo.total = 0>
        </cfif>
        
        <!--- Set TEAM ONE --->
        <cfset matchupinfo.teamOne = matchArray[i].teamOne />
        
        <!--- Set TEAM ONE SCORE --->
        <cfset matchupinfo.teamOneScore = matchArray[i].teamonescore />
        
        <!--- Set TEAM TWO --->
        <cfset matchupinfo.teamTwo = matchArray[i].teamTwo />
        
        <!--- Set TEAM ONE SCORE --->
        <cfset matchupinfo.teamTwoScore = matchArray[i].teamtwoscore />
        
        <!--- Add game info to the array --->
    <cfset arrayAppend(matchInfoArray,matchupinfo) />
        
    </cfloop>
    
    <cfif ShowPassFail EQ true>
    <font size="2" style="color:green;">Live Scoring Template Updated Successfully </font><br /><br /><br /><br />
    </cfif>    
    <cfset variables.UpdatePassed = true>
    
    <cfcatch type="any">
    <!--- If something went wrong, lets let display an error message and dump the catch --->
        <cfif ShowPassFail EQ true>
    	<font size="2" style="color:red;">Live Scoring Template Failed to Update </font><br />
        </cfif>    
    <cfset variables.UpdatePassed = false>
    <cfdump var="#cfcatch#">
    </cfcatch>
    
    </cftry>
    
    
    <!--- Lets make the display a little nicer  --->
    <table width="100%" border="1">
    
    <tr align="center">
    <td>
        	Team 1
        </td>
        <td>
        	Game Info
        </td>
        <td>
        	Team 2
        </td>
    </tr>
    
    <cfloop from="1" to="#arraylen(matchInfoArray)#" index="i">
    
    <cfoutput>
    
        <tr>
    	<td width="40%" align="left">
            	<table border="0" width="100%">
                	<tr> 	
                        <td align="center" width="60%">
                            <font size="4">
                            	#matchInfoArray[i].teamOne# 
                             </font>
                        </td>
                        <td align="right">
                            <font size="6">
                            #matchInfoArray[i].teamOneScore#  
                           	</font>
                        </td>
                    </tr>
                </table>
    	</td>
    	<td width="20%" align="center">
                Total: #matchInfoArray[i].total#<br />
                #matchInfoArray[i].matchDate#
    	</td>
    	<td width="40%">
            	<table border="0" width="100%">
                	<tr> 	
                    	<td align="left">
                            <font size="6">
                            	 
                                #matchInfoArray[i].teamTwoScore#
                            </font>
                        </td>
                        <td align="center" width="60%">
                            <font size="4">
                                #matchInfoArray[i].teamTwo#
                            </font>
                        </td>
                    </tr>
                </table>
    	</td>
    </tr>
    </cfoutput>
    </cfloop>
    </table>
    
    
    
    
    

     

    thanks.

    mike

  3. Hey everyone,

    i have a project, should be extremely easy if anyone has any interest, plus you can own the rights to it.  I am putting a computer into my kitchen, but guess what??? nobody has any kind of software for this.  im looking to have a single page that is the main.  on it we will have stuff like local weather, sports scores, news, a family calendar, and links to programs on the pc, such as itunes, recipe book, etc. 

     

    anyone interested?  let me know.

     

    thanks,

    mike

  4. sorry about that, here is signup.php

     

    <?php
    require('includes/application_top.php');
    require('includes/classes/crypto.php');
    include('includes/classes/class.formvalidation.php');
    include('includes/classes/class.phpmailer.php');
    
    if (!$allow_signup) {
    header('location: login.php?signup=no');
    exit;
    }
    
    if (isset($_POST['submit'])) {
    
    $my_form = new validator;
    $mail = new PHPMailer();
    
    if($my_form->checkEmail($_POST['email'])) { // check for good mail
    
    	if ($my_form->validate_fields('firstname,lastname,email,username,password')) { // comma delimited list of the required form fields
    		if ($_POST['password'] == $_POST['password2']) {
    			//create new user, disabled
    			$username = mysql_real_escape_string(str_replace(' ', '_', $_POST['username']));
    			$sql = "SELECT userName FROM " . $db_prefix . "users WHERE userName='".$username."';";
    			$result = mysql_query($sql);
    			if(mysql_numrows($result) > 0){
    				$display = '<div class="responseError">User already exists, please try another username.</div><br/>';
    			} else {
    				$sql = "SELECT email FROM " . $db_prefix . "users WHERE email='".$email."';";
    				$result = mysql_query($sql);
    				if(mysql_numrows($result) > 0){
    					$display = '<div class="responseError">Email address already exists.  If this is your email account, please log in or reset your password.</div><br/>';
    				} else {
    					$crypto = new phpFreaksCrypto;
    					$salt = substr($crypto->encrypt((uniqid(mt_rand(), true))), 0, 10);
    					$secure_password = $crypto->encrypt($salt . $crypto->encrypt($password));
    					$sql = "INSERT INTO " . $db_prefix . "users (userName, password, salt, firstname, lastname, email, status) 
    						VALUES ('".$username."', '".$secure_password."', '".$salt."', '".$firstname."', '".$lastname."', '".$email."', 1);";
    					mysql_query($sql) or die(mysql_error());
    
    					//send confirmation email
    					$mail->IsHTML(true);
    
    					$mail->From = $user->email; // the email field of the form
    					$mail->FromName = 'NFL Pick \'Em Admin'; // the name field of the form
    
    					$mail->AddAddress($_POST['email']); // the form will be sent to this address
    					$mail->Subject = 'NFL Pick \'Em Confirmation'; // the subject of email
    
    					// html text block
    					$mail->Body = '<p>Thank you for signing up for the NFL Pick \'Em Pool.  Please click the below link to confirm your account:<br />' . "\n" . 
    					$siteUrl . 'signup.php?confirm=' . $crypto->encrypt($username) . '</p>';
    
    					//$mail->Send();
    
    					header('Location: login.php');
    				}
    			}
    		} else {
    			$display = '<div class="responseError">Passwords do not match, please try again.</div><br/>';
    		}
    	} else {
    		$display = str_replace($_SESSION['email_field_name'], 'Email', $my_form->error);
    		$display = '<div class="responseError">' . $display . '</div><br/>';
    	}
    } else {
    	$display = '<div class="responseError">There seems to be a problem with your email address, please check.</div><br/>';
    }
    }
    ?><!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" xml:lang="en" lang="en">
    <head>
    <title>NFL Pick 'Em Signup</title>
    <link href="includes/css/main.css" rel="stylesheet" type="text/css" media="screen" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    </head>
    
    <body>
    <style>
    body {
    	width: 550px;
    }
    #login {
    	margin: 20px auto;
    }
    </style>
    <div id="login">
    <table>
    	<tr valign="top">
    		<td><img src="images/logos/nfl-logo.png" /></td>
    		<td> </td>
    		<td>
    			<h1>NFL Pick 'Em Signup</h1>
    			<?php 
    				if(isset($display)) {
    					echo $display;
    				}
    			?>
    			<form action="signup.php" method="post" name="addnewuser">	
    				<fieldset>
    				<legend style="font-weight:bold;">Sign Up</legend>
    					<table cellpadding="3" cellspacing="0" border="0">
    						<tr><td>First Name:</td><td><input type="text" name="firstname" value="<?php echo $_POST['firstname']; ?>"></td></tr>
    						<tr><td>Last Name:</td><td><input type="text" name="lastname" value="<?php echo $_POST['lastname']; ?>"></td></tr>
    						<tr><td>Email:</td><td><input type="text" name="email" value="<?php echo $_POST['email']; ?>" size="30"></td></tr>
    						<tr><td>User Name:</td><td><input type="text" name="username" value="<?php echo $_POST['username']; ?>"></td></tr>
    						<tr><td>Password:</td><td><input type="password" name="password" value=""></td></tr>
    						<tr><td>Confirm Password:</td><td><input type="password" name="password2" value=""></td></tr>
    						<tr><td> </td><td><input type="submit" name="submit" value="Submit"></td></tr>
    					</table>
    				</fieldset>
    			</form>
    		</td>
    	</tr>
    </table>
    <?php
    include('includes/footer.php');
    ?>

     

     

    here is crypto.php

     

    <?php
    
    
    
    /*
    
    * crypto.php -> phpFreaksCrypto Class (PHP4)
    
    * http://www.phpfreaks.com/tutorials/128/1.php
    
    */
    
    
    
    /**
    
      * @author Dustin Whittle
    
      * @version 0.01
    
      */
    
    
    
    if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME']))
    
    {
    
      // tell people trying to access this file directly goodbye...
    
      exit('This file can not be accessed directly...');
    
    }
    
    
    
    class phpFreaksCrypto
    
    {
    
    
    
      var $td;
    
    
    
      // this gets called when class is instantiated
    
      function phpFreaksCrypto($key = 'a843l?nv89rjfd}O(jdnsleken0', $iv = false, $algorithm = 'tripledes', $mode = 'ecb')
    
      {
    
    
    
        if(extension_loaded('mcrypt') === FALSE)
    
        {
    
          $prefix = (PHP_SHLIB_SUFFIX == 'dll') ? 'php_' : '';
    
          dl($prefix . 'mcrypt.' . PHP_SHLIB_SUFFIX) or die('The Mcrypt module could not be loaded.');
    
        }
    
    
    
        if($mode != 'ecb' && $iv === false)
    
        {
    
          /*
    
            the iv must remain the same from encryption to decryption and is usually
    
            passed into the encrypted string in some form, but not always.
    
          */
    
          die('In order to use encryption modes other then ecb, you must specify a unique and consistent initialization vector.');
    
        }
    
    
    
        // set mcrypt mode and cipher
    
        $this->td = mcrypt_module_open($algorithm, '', $mode, '') ;
    
    
    
        // Unix has better pseudo random number generator then mcrypt, so if it is available lets use it!
    
        //$random_seed = strstr(PHP_OS, "WIN") ? MCRYPT_RAND : MCRYPT_DEV_RANDOM;
    
        $random_seed = MCRYPT_RAND;
    
    
    
        // if initialization vector set in constructor use it else, generate from random seed
    
        $iv = ($iv === false) ? mcrypt_create_iv(mcrypt_enc_get_iv_size($this->td), $random_seed) : substr($iv, 0, mcrypt_enc_get_iv_size($this->td));
    
    
    
        // get the expected key size based on mode and cipher
    
        $expected_key_size = mcrypt_enc_get_key_size($this->td);
    
    
    
        // we dont need to know the real key, we just need to be able to confirm a hashed version
    
        $key = substr(md5($key), 0, $expected_key_size);
    
    
    
        // initialize mcrypt library with mode/cipher, encryption key, and random initialization vector
    
        mcrypt_generic_init($this->td, $key, $iv);
    
      }
    
    
    
      function encrypt($plain_string)
    
      {
    
        /*
    
          encrypt string using mcrypt and then encode any special characters
    
          and then return the encrypted string
    
        */
    
        return base64_encode(mcrypt_generic($this->td, $plain_string));
    
      }
    
    
    
      function decrypt($encrypted_string)
    
      {
    
        /*
    
          remove any special characters then decrypt string using mcrypt and then trim null padding
    
          and then finally return the encrypted string
    
        */
    
        return trim(mdecrypt_generic($this->td, base64_decode($encrypted_string)));
    
      }
    
    
    
      // since php 4 does not have deconstructors, we will need to manually call this function
    
      function __destruct()
    
      {
    
        // shutdown mcrypt
    
        mcrypt_generic_deinit($this->td);
    
    
    
        // close mcrypt cipher module
    
        mcrypt_module_close($this->td);
    
      }
    
    
    
    }
    
    ?>

     

    if you need any other files, let me know.

     

    thx.

  5. here is line 55 from signup:

     

    header('Location: login.php');

     

    here is line 69-81 from crypt0:

     

    {
    
          /*
    
            the iv must remain the same from encryption to decryption and is usually
    
            passed into the encrypted string in some form, but not always.
    
          */
    
          die('In order to use encryption modes other then ecb, you must specify a unique and consistent initialization vector.');
    
        }

  6. hi all, im having a problem while trying to signup to my site.

     

    here is the error message im recieveing. (everything else on the site is working)

     

    Warning: mcrypt_generic() [function.mcrypt-generic]: An empty string was passed in /home/content/m/a/s/mash905/html/nfl/includes/classes/crypto.php on line 69

     

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/a/s/mash905/html/nfl/includes/classes/crypto.php:69) in /home/content/m/a/s/mash905/html/nfl/signup.php on line 55

     

     

    if i can provide any further info, please let me know what to provide.

     

    thanks.

    mike

  7. <!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" lang="en" xml:lang="en">
    <head>
    <title><? echo"$config[sitename]" ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="robots" content="ALL" />
    <meta http-equiv="language" content="eng" />
    <meta http-equiv="dialect" content="us" />
    <meta name="classification" content="Online Games" />
    <meta name="revisit-after" content="10 days" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <style type="text/css">
    body{
    font-size:11px;
    color:#FFFFFF;
    font-family:"Arial", Times, serif;
    background-color:#202020; 
    margin:0;
    padding:0;
    background-image: url('./theme/default/images/bgtile.png');
    background-repeat: repeat
    }
    A:link {color:#00BFFF}
    A:visited {color:#00BFFF}
    A:hover {color:#FFFFFF}
    #wrap {
    background-color:#0e0e0e;
    width:1000px;
    margin:0 auto;
    overflow:hidden;
    padding:0;
    position:relative;
    }
    #header {
    width:1000px;
    margin:0;
    height:188px;
    padding:0;
    }
    .htopspace {
    background:url(./theme/default/images/htopspace.gif) no-repeat;
    width:1000px;
    height:25px;
    margin:0;
    padding:0;
    }
    .himage1 {
    background:url(./theme/default/images/index_03.png) no-repeat;
    height:163px;
    width:1000px;
    float:left;
    
    }
    #menu {
    width:1000px;
    margin:0;
    padding:0;
    height:37px;
    }
    .mhome a, .mforum a, .mstaff a {
    color: #B1B1B1; 
    font-weight: bold;
    text-decoration:none !important;
    }
    .mhome a:hover, .mforum a:hover, .mstaff a:hover {
    color: #f1f1f1; 
    font-weight: bold;
    }
    .mhome {
    background:url(./theme/default/images/index_06.png) no-repeat;
    height:37px;
    width:79px;
    float:left;
    color: #B1B1B1; 
    font-weight: bold;
    text-align:center;
    line-height:37px;
    }
    .mforum {
    background:url(./theme/default/images/index_gap.png) ;
    height:37px;
    
    float:left;
    color: #B1B1B1; 
    font-weight: bold;
    text-align:center;
    line-height:37px;
    }
    .mstaff {
    background:url(./theme/default/images/index_13.png) no-repeat;
    height:37px;
    width:78px;
    float:left;
    color: #B1B1B1; 
    font-weight: bold;
    text-align:center;
    line-height:37px;
    }
    .msspace {
    background:url(./theme/default/images/msspace.gif) no-repeat;
    width:16px;
    height:37px;
    float:left;
    } 
    .msspace2 {
    background:url(./theme/default/images/msspace2.gif) no-repeat;
    width:4px;
    height:37px;
    float:left;
    }
    .msearch {
    background:url(./theme/default/images/msearchbg.gif) repeat-x;
    
    height:37px;
    float:left;
    }
    .sbox {
    border:1px solid #000000;
    background-color:#303030;
    height:14px;
    width:200px;
    color:#ffffff;
    font-size:11px;
    margin:8px 0 0 37px;
    }
    .logbox {
    border:1px solid #000000;
    background-color:#303030;
    height:14px;
    width:140px;
    color:#ffffff;
    font-size:11px;
    margin:8px 0 0 0px;
    }
    .logbut {
    border:1px solid #000000;
    background-color:#303030;
    color:#ffffff;
    font-size:11px;
    margin:4px 0 0 0px;
    }
    .sbutton{
    margin:5px 0 0 0;
    }
    #main {
    width:1000px;
    margin:0;
    padding:0;
    }
    .index19 {
    background:url(./theme/default/images/index_19.png) no-repeat;
    width:1000px;
    height:7px;
    margin:0;
    padding:0;
    }
    /*left sidebar*/
    .topleftnav {
    background:url(./theme/default/images/topleftsidebarnavtitle1.gif) no-repeat;
    height:30px;
    width:182px;
    text-align:center;
    line-height:30px;
    color: #C0C0C0;
    font-weight: bold;
    margin:0;
    padding:0;
    }
    .leftsidebarbg1 {
    background:url(./theme/default/images/leftsidebarbg1.gif) repeat-y;
    width:173px;
    margin:0;
    padding:0 0 0 9px;
    }
    .bottomleftsidebar {
    background:url(./theme/default/images/leftsidebarbottom1.gif) no-repeat;
    height:7px;
    width:182px;
    margin:0;
    padding:0;
    }
    /*left sidebar 2*/
    .topleftnav2 {
    background:url(./theme/default/images/topleftsidebarnavigation2.gif) no-repeat;
    height:11px;
    width:182px;
    text-align:center;
    line-height:30px;
    margin:0;
    padding:0;
    }
    .topleftnavtitle {
    background:url(./theme/default/images/topleftsidebarnavtitle2.gif) no-repeat;
    height:30px;
    width:182px;
    text-align:center;
    line-height:30px;
    margin:0;
    padding:0;
    }
    .leftsidebarbg2 {
    background:url(./theme/default/images/leftsidebarbg2.gif) repeat-y;
    width:172px;
    margin:0;
    padding:0 0 0 10px;
    }
    .bottomleftsidebar2 {
    background:url(./theme/default/images/leftsidebarbottom2.gif) no-repeat;
    height:7px;
    width:182px;
    margin:0;
    padding:0;
    }
    .leftsidebarsubcat a {
    color: #1c1c1c;
    text-decoration:none;
    }
    .leftsidebarsubcat a:hover {
    color: #000000;
    text-decoration:none;
    }
    .leftsidebarcat {
    background:url(./theme/default/images/index_31.png) no-repeat;
    width:163;
    height:26px;
    text-align:center;
    line-height:26px;
    color: 1c1c1c;
    font-weight: bold;
    }
    .leftsidebarsubcat {
    background:url(./theme/default/images/index_33.png) no-repeat;
    width:163;
    height:25px;
    text-align:center;
    line-height:25px;
    color: #FFFFFF;
    font-weight: bold;
    }
    /*main content*/
    .flashintro {
    background:url(./theme/default/images/flashintrobg.jpg) no-repeat;
    height:186px;
    width:627px;
    padding:0 0 0 9px;
    margin:0;
    }
    .topmaincontent {
    background:url(./theme/default/images/topmaincontent.gif) no-repeat;
    width:636px;
    height:9px;
    }
    .maincontentbg {
    background:url(./theme/default/images/maincontentbg.gif) repeat-y;
    width:626px;
    padding:0 0 0 10px;
    }
    .bottommaincontent {
    background:url(./theme/default/images/bottommaincontent.gif) no-repeat;
    width:636px;
    height:7px;
    }
    /* right sidebar */
    .toprightsidebar {
    background:url(./theme/default/images/toprightsidebar.gif) no-repeat;
    height:121px;
    width:170px;
    text-align:center;
    padding:0 0 0 12px;
    margin:0;
    }
    .toprighsidebartitle {
    background:url(./theme/default/images/toprightsidebar1.gif) no-repeat;
    height:22px;
    width:182px;
    text-align:center;
    color: #C0C0C0;
    font-weight: bold;
    padding:15px 0 0 0;
    }
    .toprighsidebarbg {
    background:url(./theme/default/images/toprightsidebarbg.gif) repeat-y;
    width:182px;
    text-align:center;
    }
    .bottomrighsidebar {
    background:url(./theme/default/images/bottomrightsidebarbg.gif) no-repeat;
    height:9px;
    width:182px;
    }
    .toprighsidebartitle1 {
    background:url(./theme/default/images/toprightsidebar1.gif) no-repeat;
    height:22px;
    width:182px;
    color: #C0C0C0;
    text-align:center;
    font-weight: bold;
    padding:15px 0 0 0;
    }
    .toprighsidebarbg1 {
    background:url(./theme/default/images/toprightsidebarbg.gif) repeat-y;
    width:182px;
    text-align:center;
    }
    .bottomrighsidebar1 {
    background:url(./theme/default/images/bottomrightsidebarbg.gif) no-repeat;
    height:9px;
    width:182px;
    }
    /*footer*/
    #footer {
    background:url(./theme/default/images/index_86.png) no-repeat;
    width:1000px;
    height:52px;
    clear:both;
    }
    .input {
    border:1px solid #000000;
    background-color:#303030;
    height:14px;
    color:#ffffff;
    font-size:11px;
    }
    .button {
    border:1px solid #000000;
    background-color:#303030;
    color:#ffffff;
    font-size:11px;
    margin:2px 0 0 0px;
    }
    </style>
    </head>
    <div id="wrap">
    <!-- header start -->
    <div id="header">
    <div class="htopspace"></div>
    <div class="himage1"></div>
    </div>
    <!-- header end -->
    <!-- menu start -->
    <div id="menu">
    <?
    if(isset($_COOKIE["user"])){
    echo"
    <div class='mhome'><a href='./index.php?action=myhome'>Profile</a></div>";
    }else{
    echo"
    <div class='mhome'><a href='./index.php'>Home</a></div>";
    }
    ?>
    <div class="mforum"><a href="./invite.php">  Invite Your Friends  </a></div>
    <div class="mforum"><a href="./paypal.php">  Cashier  </a></div>
    <div class="mforum"><a href="./ps3.php">  PS3 Games  </a></div>
    <div class="mforum"><a href="./xbox360.php">  XBox 360 Games  </a></div>
    <div class="mforum"><a href="./psp.php">  PSP Games  </a></div>
    <div class="mforum"><a href="./tournaments.php">  Tournaments  </a></div>
    <div class="mforum"><a href="./ticket.php">  Disputes  </a></div>
    <div class="mforum">   </div>
    <div class="msspace"> </div>
    <div class="msearch">
    <form method="post" action="./search.php">
    <input type="text" name="search[string]" class="sbox" maxlength="30" style="vertical-align:middle;" value="Find a Player" onClick="this.value=''">
    <input type="hidden" name="search[type]" value="ladd"> 
    <input type="image" src="./theme/default/images/index_16.png" name="button" class="sbutton" style="vertical-align:middle;">
    </form>
    </div>
    <div class="msspace2"></div>
    </div>
    <!-- menu end -->
    
    <!-- main start -->
    <div id="main">
    <div class="index19"></div>
    <!-- left sidebar -->
    <div style="float:left; width:182px;">
    <div class="topleftnav">Navigation</div>
    <div class="leftsidebarbg1">
    <div class="leftsidebarcat">Main</div>
    <div class="leftsidebarsubcat"><a href="./index.php">News</a></div>
    <div class="leftsidebarsubcat"><a href="./report.php">Report a Win</a></div>
    <div class="leftsidebarsubcat"><a href="./find.php">Create Challenge</a></div>
    <div class="leftsidebarsubcat"><a href="./view.php">Current Challenges</a></div>
    <div class="leftsidebarsubcat"><a href="./allchallenges.php">My Challenges</a></div>
    <div class="leftsidebarsubcat"><a href="./compmatches.php">My Game History</a></div>
    <div class="leftsidebarsubcat"><a href="./oldtourney.php">Completed Tournaments</a></div>
    
    
    <?
    if(isset($_COOKIE["user"])){
    echo"<div class='leftsidebarcat'>My Account</div>
    <div class='leftsidebarsubcat'><a href='./index.php?action=myhome'>My Portal</a></div>
    <div class='leftsidebarsubcat'><a href='./manager.php'>Account Manager</a></div>
    <div class='leftsidebarsubcat'><a href='./mailbox.php'>Mailbox</a></div>
    <div class='leftsidebarsubcat'><a href='./join.php'>Select a Game</a></div>";
    }else{
    echo"
    <div class='leftsidebarcat'>My Account</div>
    <div class='leftsidebarsubcat'><a href='./register.php'><b>Register</b></a></div>
    <div class='leftsidebarsubcat'><a href='./login.php'>Login</a></div>";
    }
    ?>
    <div class="leftsidebarcat">Support Center</div>
    <div class="leftsidebarsubcat"><a href="./ticket.php">Ticket Manager</a></div>
    <div class="leftsidebarsubcat"><a href="./apply.php">Staff Application</a></div>
    <div class="leftsidebarsubcat"><a href="./staff.php">Staff Page</a></div>
    </div>
    <div class="bottomleftsidebar"></div>
    
    
    
    
    
    
    <div class="toprighsidebartitle">Newest Members</div>
    <div class="toprighsidebarbg"><table width="90%" align="center" bgcolor="#000000" cellspacing="1">
    <?
    //Newest Members Block 
    $newest=mysql_query("SELECT id,name FROM members ORDER BY id DESC LIMIT 0,6");
    while(list($id,$name)=mysql_fetch_row($newest)){
    if($config[cellbgx]==$config[cellbg]){$config[cellbgx]="$config[cellbg2]";}else{$config[cellbgx]="$config[cellbg]";}
    echo"<tr bgcolor='$config[altcolora]'><td background='$config[cellbgx]'><a href='./profile.php?account=$id'><span style='color:#FFFFFF;'>$name</span></a></td></tr>";
    }
    //End Newest Members
    ?></table>
    </div>
    <div class="bottomrighsidebar"></div>
    
    </div>
    <!-- end left sidebar -->
    <!--main content -->
    <div style='float:left;'>
    <?
    //Featured Block ////////////////////////////////////////////////////////////////////////////////
    if($index == yes){
    echo"
    <div class='flashintro'>
    <script language=\"JavaScript\" src=\"http://advertise.vgbetting.com/adpeeps.php?bfunction=showad&uid=100000&bmode=off&gpos=center&gwidth=616&bzone=homepage&bsize=616x176&btype=3&bpos=default&ver=2.0&btotal=1&btarget=_blank&brefresh=5&bborder=0&showhorizontally=1\" type=\"text/javascript\">
    </script>
    
    
    
    </div>
    <div class='topmaincontent'></div>";
    }
    //End Featured/////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ?>
    <div class="maincontentbg"><? 
    //Output Content
    echo $out[news].$out[body]; 
    ?></div>
    <div class="bottommaincontent"></div>
    </div>
    <!--end main content -->
    <!-- right sidebar -->
    <div style="float:left;">
    <div class="toprightsidebar">
    <?
    //Login Block ////////////////////////////////////////////////////////////////////////////////////
    if (isset($_COOKIE["user"])){
    $member=mysql_query("SELECT * FROM members WHERE id='{$_COOKIE['tid']}' AND password='{$_COOKIE['pass']}'");
    $member=mysql_fetch_array($member);
    $newpm=mysql_query("SELECT COUNT(*) FROM messages WHERE toid='{$_COOKIE['tid']}' AND active='1' AND grid='1'");
    $newpm=mysql_fetch_array($newpm);
    $newpm="$newpm[0]";
    $newin=mysql_query("SELECT COUNT(*) FROM messages WHERE toid='{$_COOKIE['tid']}' AND grid='2'");
    $newin=mysql_fetch_array($newin);
    $newin="$newin[0]";
    $newfriends=mysql_query("SELECT COUNT(*) FROM friend_requests WHERE userid='{$_COOKIE['tid']}'");
    $newfriends=mysql_fetch_array($newfriends);
    $newfriends="$newfriends[0]";
    if($newfriends == 0){$currentf="$newfriends Friend Invites";}else if($newfriends == 1){$currentf="<font color='red'><b>$newfriends Friend Invites</b></font>";}else{
    $currentf="<font color='red'><b>$newfriends Friend Invites</b></font>";}
    if($newpm == 0){$currentm="$newpm Unread Messages";}else if($newpm == 1){$currentm="<font color='red'><b>$newpm Unread Message</b></font>";}else{
    $currentm="<font color='red'><b>$newpm Unread Messages</b></font>";}
    if($newin == 0){$currentin="$newin Current Team Invites";}else if($newin == 1){$currentin="<font color='green'><b>$newin Current Team Invite</b></font>";}else{
    $currentin="<font color='green'><b>$newin Current Team Invites</b></font>";}
    echo"<br /><div align='center'><b>Welcome Back $member[name]!  </b><br /><br />";
    echo"<a href='./mailbox.php'>$currentm</a>   <br />"; 
    echo"<a href='./mailbox.php?action=invites'>$currentin</a>   <br />";
    echo"<a href='./mailbox.php?action=friends'>$currentf</a>   <br /><br />
    [<a href='./manager.php'><span style='color:#FFFFFF;'>Manager</span></a>] [<a href='./profile.php?account=$member[id]'><span style='color:#FFFFFF;'>My Profile</span></a>] 
    [<a href='./login.php?act=logout'><span style='color:#FFFFFF;'>Logout</span></a>]  </div>";
    }else{echo"<div align='center'></form><form method='post' action='./login.php'>
    <input type='text' class='logbox' name='login[name]' value='Username' maxlength='20' onClick=\"this.value=''\">  <br />
    <input type='password' class='logbox' name='login[pass]' maxlength='20' onClick=\"this.value=''\">  <br />
    Remember: <select name='login[clength]' class='logbut'>  
    <option value='60'>1 Hour</option>
    <option value='1440'>1 Day</option>
    <option value='10080'>1 Week</option>
    <option value='43200'>1 Month</option>
    <option value='83200' selected='selected'>Forever</option></select><br />
    <input type='hidden' name='act' value='setlogin'>
    <a href='./register.php'>Register Now!</a>  <input type='submit' class='logbut' name='submit' value='Login >>'>  </form></div>";}
    //End Login Block////////////////////////////////////////////////////////////////////////////////////////////////////////
    ?>
    </div>
    <script type='text/javascript'>
      <!--
        function ChallengeBar( id, login ) {
          window.open('./scheduler.php?chall_id='+id + 'login[id2]='+login, '_details', 'width=600,height=500,toolbar=0,statusbar=0,scrollbars=0,menubar=0');
        }
        function tChallengeBar( id, login ) {
          window.open('./tourneyscheduler.php?chall_id='+id + 'login[id2]='+login, '_details', 'width=600,height=500,toolbar=0,statusbar=0,scrollbars=0,menubar=0');
        }
      //-->
      </script>
    
    <div class="toprighsidebartitle">Newest Challenges</div>
    <div class="toprighsidebarbg"><table width="90%" align="center" bgcolor="#000000" cellspacing="1">
    <?
    //Newest Teams Block //////////////////////////////////////////////////////////////////////////
    //$newest=mysql_query("SELECT id,name FROM teams ORDER BY id DESC LIMIT 0,6");
    $challenges=mysql_query("SELECT membersteams.teamid,ladders.name,challid,challgrid,challgdid,challgrname,challgdname,DATE_FORMAT(challenges.created,'%M %d at %l:%i %p') FROM membersteams,challenges left join ladders on (challenges.ladderid=ladders.id) WHERE membersteams.memberid='" . $_COOKIE['tid']."' and (challgrid=membersteams.teamid OR challgdid=membersteams.teamid)  ORDER BY challenges.created DESC LIMIT 0,5");
    while(list($teamid,$gamename,$challid,$challgrid,$challgdid,$challgrname,$challgdname,$created)=mysql_fetch_row($challenges)){
    
    $team[id] = $teamid;
    $check=mysql_query("SELECT * FROM chall_chat WHERE chall_id='$challid'");
    $check=mysql_fetch_array($check);
    
    if ($check[ed_status]==Accepted OR $check[er_status]==Accepted){
    
    $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>";
    }elseif ($check[ed_status]==Declined OR $check[er_status]==Declined){
    
    
    $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>";
    }elseif ($check[ed_status]==Pending OR $check[er_status]==Pending){
    
    
    $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>";
    }else{
    
    
    $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>"; }
    
    if($config[cellbgx]==$config[cellbg]){$config[cellbgx]="$config[cellbg2]";}else{$config[cellbgx]="$config[cellbg]";}
    echo"<tr bgcolor='$config[altcolora]'><td background='$config[cellbgx]'>$calendarimg</td></tr>";
    }
    
    
    $challenges=mysql_query("SELECT membersteams.teamid,tourneys.name,challid,challgrid,challgdid,challgrname,challgdname,DATE_FORMAT(tchallenges.created,'%M %d at %l:%i %p') FROM membersteams,tchallenges left join tourneys on (tchallenges.tourneyid=tourneys.id) WHERE membersteams.memberid='" . $_COOKIE['tid']."' and (challgrid=membersteams.teamid OR challgdid=membersteams.teamid)  ORDER BY tchallenges.created DESC LIMIT 0,5");
    while(list($teamid,$gamename,$challid,$challgrid,$challgdid,$challgrname,$challgdname,$created)=mysql_fetch_row($challenges)){
    
    $team[id] = $teamid;
    $check=mysql_query("SELECT * FROM chall_chat WHERE chall_id='$challid'");
    $check=mysql_fetch_array($check);
    
    if ($check[ed_status]==Accepted OR $check[er_status]==Accepted){
    
    $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>";
    }elseif ($check[ed_status]==Declined OR $check[er_status]==Declined){
    
    
    $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>";
    }elseif ($check[ed_status]==Pending OR $check[er_status]==Pending){
    
    
    $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>";
    }else{
    
    
    $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>"; }
    
    if($config[cellbgx]==$config[cellbg]){$config[cellbgx]="$config[cellbg2]";}else{$config[cellbgx]="$config[cellbg]";}
    echo"<tr bgcolor='$config[altcolora]'><td background='$config[cellbgx]'>$calendarimg</td></tr>";
    }
    
    //End Newest Teams////////////////////////////////////////////////////////////////////////////////////////////////////////
    ?>
    <tr><td><a href="allchallenges.php"><span style='color:##00BFFF;'>View Your Challenges</span></a></td></tr>
    </table>
    </div>
    <div class="bottomrighsidebar"></div>
    
    
    <div class="toprighsidebartitle">Advertisements</div>
    <div class="toprighsidebarbg"><table width="90%" align="center" bgcolor="#000000" cellspacing="1">
    <script type="text/javascript" src="http://advertise.vgbetting.com/adpeeps.php?bfunction=showad&uid=100000&bmode=off&gpos=center&colwidth=163&bzone=sidebar&bsize=161x125&btype=3&bpos=default&ver=2.0&btotal=1&btarget=_blank&brefresh=15&bborder=0">
    </script>
    <noscript>
    <a href="http://advertise.vgbetting.com/adpeeps.php?bfunction=clickad&uid=100000&bmode=off&bzone=sidebar&bsize=161x125&btype=1&bpos=default&ver=2.0" target="_blank">
    <img src="http://advertise.vgbetting.com/adpeeps.php?bfunction=showad&uid=100000&bmode=off&bzone=sidebar&bsize=161x125&btype=1&bpos=default&ver=2.0" width="161" height="125" alt="Click Here!" title="Click Here!" border="0" /></a>
    </noscript>
    </table>
    </div>
    <div class="bottomrighsidebar"></div>
    
    
    <div class="toprighsidebartitle1">Recent Matches</div>
    <div class="toprighsidebarbg1">
    <table width="90%" bgcolor="#000000" align="center" cellspacing="1">
    <tr bgcolor='<?=$config[altcolora]?>'><td width='50%'>Winner</td><td width='50%'>Loser</td></tr>
    <?
    //Recent Matches Block 
    $rematch=mysql_query("SELECT wid,lid,wname,lname FROM matchdb ORDER BY reported DESC LIMIT 0,6");
    while(list($wid,$lid,$wname,$lname)=mysql_fetch_row($rematch)){
    $max_length = 10;
    if (strlen($wname) > $max_length){
      $wname = substr($wname,0,$max_length);
      $wname .= "..."; }
    if (strlen($lname) > $max_length){
      $lname = substr($lname,0,$max_length);
      $lname .= "..."; }
    if($config[cellbgx]==$config[cellbg]){$config[cellbgx]="$config[cellbg2]";}else{$config[cellbgx]="$config[cellbg]";}
    echo"<tr bgcolor='$config[altcolora]'><td width='50%' background='$config[cellbgx]'><a href='./stats.php?account=$wid'><span style='color:#FFFFFF;'>$wname</span></a></td>
    <td width='50%' background='$config[cellbgx]'><a href='./stats.php?account=$lid'><span style='color:#FFFFFF;'>$lname</span></a></td></tr>";
    }
    //End Recent Matches
    ?></table>
    </div>
    <div class="bottomrighsidebar1"></div>
    
    
    
    <div class="toprighsidebartitle1">Members Online</div>
    <div class="toprighsidebarbg1">
    <?
    //Users Online Block ///////////////////////////////////////////////////////////////////////////
    $timeoutseconds = 300;
    $timestamp = time();
    $timeout = $timestamp-$timeoutseconds;
    $uonline = mysql_num_rows(mysql_query("SELECT id FROM members WHERE lastactive>$timeout"));
    if($uonline == 1){echo"There is $uonline user online.</div><div class='leftsidebarbg2'>";
    }else{echo"There are $uonline users online.</div><div class='leftsidebarbg2'>";}
    $whosonline=mysql_query("SELECT id,name FROM members WHERE lastactive>$timeout ORDER BY name");
    while(list($id,$name)=mysql_fetch_row($whosonline)){
    $max_length = 13;
    if (strlen($name) > $max_length){
      $name = substr($name,0,$max_length);
      $name .= "..."; }
    if($uonline == 1){$outuseron.="<a href='./profile.php?account=$id'><font color='gray'>$name</font></a>";
    }else{$outuseron.="<a href='./profile.php?account=$id'><font color='gray'>$name</font></a>, ";}
    }
    if ($uonline > 1){
      $outuseron = substr($outuseron,0,-2);
      $outuseron.= "."; }
    echo"$outuseron";
    //End Users Online/////////////////////////////////////////////////////////////////////////////////////////////////////////
    ?><br /><br />
    </div>
    <div class="bottomleftsidebar2"></div>
    
    
    
    
    
    </div>
    <!-- end right sidebar -->
    </div>
    <!-- main end -->
    <div id="footer" align="left"><br />
    <?
    //Begin Theme Selector
    echo"<table width='100%'><tr><td width='25%'><form><select class='button' onchange='if(options[selectedIndex].value){location = options[selectedIndex].value}'>
    <optgroup label='Style Chooser'>\n";
    $style=mysql_query("SELECT id,name,dir FROM styles WHERE active='1'");
    while(list($id,$name,$dir)=mysql_fetch_row($style)){
    if($_COOKIE['style']==$id){$id2="SELECTED";}else{$id2="";}
    echo"<option value='$config[scripturl]/index.php?action=setstyle&style=$id' $id2>$name</option>\n";
    }
    echo"</select>";
    //End Theme Selector
    ?>
    </td><td align='center'>
    <?
    //You Must Leave This Copyright. Removal Will Lead To License Suspension
    echo"Copyright &copy <a href='http://www.vgbetting.com'>
    <span style='color:#FFFFFF;'>VGBetting.com</span></a>";
    //End Copyright
    ?>
    </td><td align='right'>
    <?
    //Facebook
    echo"<a target='_blank ' href='http://www.facebook.com/pages/VGBETTINGcom-Think-you-got-game/57307786049?ref=mf'><img src='http://www.vgbetting.com/betting/theme/default/images/facebook.gif' border='0'></a>";
    //End Facebook
    ?>
    </td></tr></table>
    </div>
    </div>
    <!-- wrap end -->
    
    
    <!-- Do Not Edit Below This Line -->
    <script type="text/javascript" src="./js/olib/overlib.js">
    </script>
    <script type="text/javascript" src="./js/includes.js"></script>
    <style type="text/css">
    #fixedtipdiv{
    position:absolute;
    padding: 2px;
    border:1px solid black;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    }
    </style>
    </body>
    </html>

  8. anyone able to help?

     

    old code (working)

    <!--main content -->
    <div style='float:left;'>
    <?
    //Featured Block ////////////////////////////////////////////////////////////////////////////////
    if($index == yes){
    echo"
    <script language=\"JavaScript\" src=\"./js/magicimage.js\" type=\"text/javascript\"></script>
    <div class='flashintro'>
    <table cellspacing='0' cellpadding='0'><tr><td colspan='12'>
    <div id='MagicImage'></div></td></tr>
    </table>
    </div>
    <div class='topmaincontent'></div>";
    }
    //End Featured/////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ?>
    <div class="maincontentbg"><? 
    //Output Content
    echo $out[news].$out[body]; 
    ?></div>
    <div class="bottommaincontent"></div>
    </div>
    <!--end main content -->

     

    i want to replace the magicimage script

     

    new code: (not working)

     

    <!--main content -->
    <div style='float:left;'>
    <?
    //Featured Block ////////////////////////////////////////////////////////////////////////////////
    if($index == yes){
    echo"
    <script type="text/javascript" src="/adpeeps.php?bfunction=showad&uid=100000&bmode=off&gpos=center&gwidth=616&bzone=homepage&bsize=616x176&btype=3&bpos=default&ver=2.0&btotal=1&btarget=_blank&brefresh=5&bborder=0&showhorizontally=1">
    </script>
    <div class='flashintro'>
    <table cellspacing='0' cellpadding='0'><tr><td colspan='12'>
    <div id='MagicImage'></div></td></tr>
    </table>
    </div>
    <div class='topmaincontent'></div>";
    }
    //End Featured/////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ?>
    <div class="maincontentbg"><? 
    //Output Content
    echo $out[news].$out[body]; 
    ?></div>
    <div class="bottommaincontent"></div>
    </div>
    <!--end main content -->

  9. hi, how can i make this centered?

     

    <div class="toprighsidebartitle">Advertisements</div>
    <div class="toprighsidebarbg"><table width="90%" align="center" bgcolor="#000000" cellspacing="1">
    <script type="text/javascript" src="http://www.vgbetting.com/advertise/adpeeps.php?bfunction=showad&uid=100000&bmode=off&gpos=center&colwidth=163&bzone=sidebar&bsize=161x125&btype=3&bpos=default&ver=2.0&btotal=1&btarget=_blank&brefresh=15&bborder=0">
    </script>
    <noscript>
    <a href="http://www.vgbetting.com/advertise/adpeeps.php?bfunction=clickad&uid=100000&bmode=off&bzone=sidebar&bsize=161x125&btype=1&bpos=default&ver=2.0" target="_blank">
    <img src="/adpeeps.php?bfunction=showad&uid=100000&bmode=off&bzone=sidebar&bsize=161x125&btype=1&bpos=default&ver=2.0" width="161" height="125" alt="Click Here!" title="Click Here!" border="0" /></a>
    </noscript>
    </table>
    </div>
    <div class="bottomrighsidebar"></div>

  10. same thing:

     

    Return-path: <mash905@carrera.mochahost.com>
    Envelope-to: mikef@vgbetting.com
    Delivery-date: Sat, 25 Apr 2009 23:45:06 -0500
    Received: from mash905 by carrera.mochahost.com with local (Exim 4.69)
    (envelope-from <mash905@carrera.mochahost.com>)
    id 1LxwEk-0006SS-6z
    for mikef@vgbetting.com; Sat, 25 Apr 2009 23:45:06 -0500
    To: mikef@vgbetting.com
    Subject:  Video Games Online
    From: vgbet@hotmail.com
    Reply-To: vgbet@hotmail.com
    Message-Id: <E1LxwEk-0006SS-6z@carrera.mochahost.com>
    Sender:  <mash905@carrera.mochahost.com>
    Date: Sat, 25 Apr 2009 23:45:06 -0500
    

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