Error with my header showing in index.php (Worked locally)
Posted: Thu May 05, 2016 1:16 pm
Hey guys, so ive been working on a site locally for the past few weeks and everything has gone fine, got other friends to test it and also tested it in an Ubuntu 15.10 VM. Everything worked fine.
I recently went to publish my website live with OVH and i installed everything like normal on a windows machine. Anyway the header wasn't importing properly and looked like this... (Windows machine error) So i swapped over to Ubuntu and began to have the exact same issue again. At this point i was really confused. Can anyone help?
P.S (The site should look like this...) Thanks to anyone who is able to help!
Here is my index page.
Thanks to anyone that can help!
I recently went to publish my website live with OVH and i installed everything like normal on a windows machine. Anyway the header wasn't importing properly and looked like this... (Windows machine error) So i swapped over to Ubuntu and began to have the exact same issue again. At this point i was really confused. Can anyone help?
P.S (The site should look like this...) Thanks to anyone who is able to help!
Here is my index page.
Code: Select all
<?php
@include_once('set.php');
$loggedin = false;
require('steamauth/steamauth.php');
if(isset($_SESSION["steamid"])) {
$loggedin = true;
include_once('steamauth/userInfo.php');
if(!fetchinfo('id', 'users', 'steamid', $_SESSION["steamid"])){
$clst = generateCLST();
mysql_query("INSERT users (`name`,`img`,`steamid`, `ref_code`) VALUES ('".$steamprofile['personaname']."', '".$steamprofile['avatarfull']."', '".$_SESSION["steamid"]."', '".$clst."')");
} else {
mysql_query("UPDATE users SET name='".$steamprofile['personaname']."', img='".$steamprofile['avatarfull']."' WHERE steamid='".$_SESSION["steamid"]."'");
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Loading...</title>
<script src="/js/jquery-1.10.2.js"></script>
<script src="/js/jquery-ui-1.10.4.custom.min.js"></script>
<script src="https://cdn.socket.io/socket.io-1.3.7.js"></script>
<script src="https://cdn.socket.io/socket.io-1.3.7.js"></script>
<script src="/js/main18.js"></script>
<link rel="stylesheet" href="/css/styles1.css">
<link rel="stylesheet" href="/css/styles_additional.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<header>
<nav>
<ul id="dropdown-menu">
<? @include_once("header.php"); ?>
<?
if($loggedin){
//echo '<li><img style="width:55px;height:55px;border-radius:10000px;" src="'.$steamprofile['avatarfull'].'"><div class="nickname"><b>'.$steamprofile['personaname'].'</b></div> </li><li><div class="li"><a href="steamauth/logout.php" style="text-decoration:none;color:inherit;">Logout</a></div></li>';
echo '<input id="steamid" type="hidden" value="'.$_SESSION["steamid"].'">';
echo '<script>$(document).ready(function(){loadInvItems('.substr($_SESSION["steamid"],-15).')});</script>';
echo '<a style="float: right; height: 100%; margin-top: 23px;" class="user" href="steamauth/logout.php">(logout)</a>
<div class="user">
<a href="#" class="user-image" style="padding-top:0px;padding-bottom:0px;line-height:50px"> <img class="rounded" src="'.$steamprofile['avatarfull'].'"><b class="user-name">'.$steamprofile['personaname'].'</b></a>
</div>';
} else {
steamlogin();
echo '<li id="log-in"><a href="?login"><i class="fa fa-steam"></i> Log in via Steam</a></li>';
}
?>
</ul>
<div class="handle">
<p>☰</p>
</div>
</nav>
</header>
<script>page = 1;</script>
<div id="roulette-info" class="box npad">
<div id="progress-bar"><div style="width: 100%;" class="bar"></div>
<p class="remaining">Rolling in ???</p>
</div>
<div id="cases">
<div id="pointer"></div>
</div>
</div>
<div id="last-games" class="box pad">
<div id="game-holder">
</div>
</div>
<div id="balance" class="box pad">
<span id="notify"><div class="attention-warning"><b class="text-attention">Connecting...</b></div></span>
<div class="row">
<div class="col col--6-of-12">
<p class="balance">Balance: <span id="pts-amount" class="coins-amout"><img src="css/img/preloader.gif" style="position:relative;top:2px;"></span>pts</p>
<form>
<input id="betamount" type="text" placeholder="Bet Amount..." value="0">
<button type="button" class="balance-button" onclick="clearr();">Clear</button>
<button type="button" class="balance-button" onclick="plus1();">+1</button>
<button type="button" class="balance-button" onclick="plus10();">+10</button>
<button type="button" class="balance-button" onclick="plus100();">+100</button>
<button type="button" class="balance-button" onclick="plus1000();">+1000</button>
<button type="button" class="balance-button" onclick="dev2();">1/2</button>
<button type="button" class="balance-button" onclick="x2();">x2</button>
<button type="button" class="balance-button" onclick="max();">Max</button>
</form>
</div>
<div class="col col--6-of-12">
<p class="balance">Stats: </p>
<table id="tbl_statistics">
<tr>
<td><i class="fa fa-star-o"></i> Total games</td>
<td><span id="games"><img src="css/img/preloader.gif" style="position:relative;top:5px;"></span></td>
</tr>
<tr>
<td><i class="fa fa-user"></i> Players online</td>
<td><span id="online"><img src="css/img/preloader.gif" style="position:relative;top:5px;"></span></td>
</tr>
<tr>
<td><i class="fa fa-usd"></i> Total withdrawals</td>
<td><span id="totalwithdrawals"><img src="css/img/preloader.gif" style="position:relative;top:5px;"></span>$</td>
</tr>
<!--tr>
<td><i class="fa fa-usd"></i> Biggest win</td>
<td>$???</td>
</tr-->
<!--tr>
<td><i class="fa fa-trophy"></i> Lucky player</td>
<td>[nic] <span style="color:#999;">Won [count] in a row!</span></td>
</tr-->
</table>
</div>
</div>
</div>
<div id="bets" class="box npad">
<div class="row row--no-gutter">
<div class="col col--4-of-12">
<div class="head">
<div class="all"><span id="red-all"><img src="css/img/preloader.gif" style="position:relative;top:-5px;"></span><span class="credits-text">pts</span></div>
<button onclick='bet("red");' id="red-button" type="button">1-7 (x2)</button>
</div>
<div class="bet">
<p id="your-red-bet" class="betp">Your bet: <span id="your-bet-red">0</span></p>
</div>
<div class="people" id="red">
</div>
</div>
<div class="col col--4-of-12">
<div class="head">
<div class="all"><span id="green-all"><img src="css/img/preloader.gif" style="position:relative;top:-5px;"></span><span class="credits-text">pts</span></div>
<button onclick='bet("green");' id="green-button" type="button">0 (x14)</button>
</div>
<div class="bet">
<p id="your-green-bet" class="betp">Your bet: <span id="your-bet-green">0</span></p>
</div>
<div class="people" id="green">
</div>
</div>
<div class="col col--4-of-12">
<div class="head">
<div class="all"><span id="black-all"><img src="css/img/preloader.gif" style="position:relative;top:-5px;"></span><span class="credits-text">pts</span></div>
<button onclick='bet("black");' id="black-button" type="button">8-14 (x2)</button>
</div>
<div class="bet">
<p id="your-black-bet" class="betp">Your bet: <span id="your-bet-black">0</span></p>
</div>
<div class="people" id="black">
</div>
</div>
</div>
</div>
<div>
<div id="social" class="box pad">
<div class="row social_row ">
<div class="col col--centered col--push-3-of-12 col--6-of-12">
<h2>Subscribe to our social media</h2>
<div class="line"> </div>
<div class="social_link_wrap">
<a href="http://steamcommunity.com/groups/pivotbetting" class="social_link col--4-of-12"><figure class="circle"><i class="fa fa-steam"></i></figure></a>
<a href="#" class="social_link col--4-of-12"><figure class="circle"><i class="fa fa-facebook"></i></figure></a>
</div>
</div>
</div>
</div>
</div>
<script src="/js/jquery.countTo.js"></script>Thanks to anyone that can help!