Witam.
Na mojej stronie widnieje taki błąd:
Tak wygląda index.php:
Na mojej stronie widnieje taki błąd:
Tak wygląda index.php:
Warning: require(/api/openid.php): failed to open stream: No such file or directory in /usr/home/Tastey/domains/csgotrain.cf/public_html/index.php on line 107
Warning: require(/api/openid.php): failed to open stream: No such file or directory in /usr/home/Tastey/domains/csgotrain.cf/public_html/index.php on line 107
<!DOCTYPE html>
<html>
<head>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="materialize/css/materialize.min.css" media="screen,projection"/>
<link href="/css/zmd.hierarchical-display.min.css" rel="stylesheet">
<link rel="icon" href="/favicon.ico?" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style> body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
.logo {
height: 50px;
margin-top: 6px;
}
.hoverable:hover {
transition: all .3s ease-out;
}
</style>
</head>
<body class="grey lighten-1">
<header>
<?php
include 'header.php';
?>
</header>
<main>
<div class="container">
<div class="card">
<div class="card-content">
<span class="card-title valign-wrapper">Settings</span>
<div class="container">
<?php
if(isset($_GET['tradeurl'])) {
if($_GET['tradeurl'] == 'success') {
echo '<span class="green-text">Successfully modified trade URL</span>';
} elseif ($_GET['tradeurl'] == 'invalid') {
echo '<span class="red-text">Invalid URL</span>';
} elseif ($_GET['tradeurl'] == 'error') {
echo '<span class="red-text">A database error occurred.</span>';
} elseif ($_GET['tradeurl'] == 'missing') {
echo '<span class="red-text">Your trade link is required to deposit.</span>';
}
}
?>
<form method="POST" action="/updateTradeURL.php" id="tradeURLForm" autocomplete="off">
<?php
mysql_connect("host", "login", "haslo") or die(mysql_error());
mysql_select_db("login") or die(mysql_error());
$steamid = $_SESSION['steamid'];
$query0 = mysql_query("SELECT * FROM `steam_users` WHERE steamid='$steamid'");
$result = mysql_fetch_array($query1);
?>
<div class="row valign-wrapper" style="align-items: baseline;">
<div class="input-field col s10"><label for="tradeurl">Set Trade URL</label><input name="tradeurl" id="tradeurl" type="text" style="margin:0;" value="<?php echo $result['tradeurl']; ?>"></div>
<input class="col s2 btn green" type="submit" value="Update">
</div>
</form>
<?php
if(isset($_GET['ref_code'])) {
if($_GET['ref_code'] == 'success') {
echo '<span class="green-text">Successfully modified referral code</span>';
} elseif ($_GET['ref_code'] == 'invalid') {
echo '<span class="red-text">Referral code must be <i>EXACTLY</i> 8 characters long and certain characters are not allowed</span>';
} elseif ($_GET['ref_code'] == 'error') {
echo '<span class="red-text">A database error occurred.</span>';
} elseif ($_GET['ref_code'] == 'taken') {
echo '<span class="red-text">That code is in use, please use a different code.</span>';
}
}
?>
<form method="POST" action="/updateRefCode.php" id="refCodeForm" autocomplete="off">
<div class="row valign-wrapper" style="align-items: baseline;">
<div class="input-field col s10"><label for="code">Set your referral code</label><input name="code" id="code" type="text" style="margin:0;" value="<?php echo $result['ref_code']; ?>"></div>
<input class="col s2 btn green" type="submit" value="Update">
</div>
</form>
</div>
</div>
</div>
</div>
</main>
<footer class="page-footer" style="padding:0;">
<?php
include "footer.php";
?>
</footer>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="/materialize/js/materialize.min.js"></script>
<script>
$(".button-collapse").sideNav();
</script>
</body>
</html>
$query0 = mysql_query("SELECT * FROM steam_users WHERE steamid='$steamid'");
3 gości