Problème de PHP Site!
Dernière réponse : dans Programmation
Bonjour à tous...
Etant donné que mon server Verygames va fermer ces portes, j'ai décidé de copier tout ce qu'il y avait du FTP sur mon PC, pour essayer de remettre le site en place..
Après la fin de tous telechargements, j'ouvre le fichier index.htm qui se trouve dans le dossier: www
Quand je l'ouvre j'obtient bien l'intro du site, mais lorsque je demande de passer celui-ci, il me met une erreur de PHP.. La voici, un peu longue!
<?php
// -------------------------------------------------------------------------//
// Nuked-KlaN - PHP Portal //
// http://www.nuked-klan.org //
// -------------------------------------------------------------------------//
// This program is free software. you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License. //
// -------------------------------------------------------------------------//
define ("INDEX_CHECK", 1);
include ("conf.inc.php");
if (!defined("NK_OPEN"))
{
echo "<br /><br /><br /><div style=\"text-align: center;\"><big>Sorry, this website is momently closed, Please try again later.</big></div>";
exit();
}
if (!defined("NK_INSTALLED"))
{
if (is_file("install.php"))
{
header("location: install.php");
}
}
else
{
if (is_file("install.php") || is_file("update.php"))
{
echo "<br /><br /><br /><div style=\"text-align: center;\"><big>Warning ! <b>install.php</b> and <b>update.php</b> must be removed before continuing !</big></div>";
exit();
}
}
include ("nuked.php");
$session = session_check();
if ($session == 1)
{
$user = secure();
}
else
{
$user = "";
}
$check_ip = banip();
if ($check_ip != "")
{
$url_ban = "ban.php?ip_ban=" . $check_ip;
redirect($url_ban, 0);
exit();
}
// Securite par phpSecure.info
if (ereg("\.\.", $theme) || ereg("\.\.", $language))
{
die("<br /><br /><br /><div style=\"text-align: center;\"><big>What are you trying to do ?</big></div>");
}
$theme = trim($theme);
$language = trim($language);
// Fin
if ($nuked['nk_status'] == "closed" && $user[1] < 9 && $op != "login_screen" && $op != "login_message" && $op != "login")
{
include ("themes/" . $theme . "/colors.php");
translate("lang/" . $language . ".lang.php");
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\">\n"
. "<head><title>" . $nuked['name'] . " :: " . $nuked['slogan'] . " ::</title>\n"
. "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n"
. "<meta http-equiv=\"content-style-type\" content=\"text/css\" />\n"
. "<link title=\"style\" type=\"text/css\" rel=\"stylesheet\" href=\"themes/" . $theme . "/style.css\" /></head>\n"
. "<body style=\"background: " . $bgcolor2 . ";\"><div><br /><br /><br /><br /><br /><br /><br /><br /></div>\n"
. "<table style=\"margin-left: auto;margin-right: auto;text-align: left;background: " . $bgcolor3 . ";\" cellspacing=\"1\" cellpadding=\"20\">\n"
. "<tr><td style=\"background: " . $bgcolor1 . ";\" align=\"center\"><big><b>" . $nuked['name'] . " - " . $nuked['slogan'] . "</b></big><br /><br />\n"
. _SITECLOSED . "</td></tr></table></body></html>";
}
else
{
include ("themes/" . $theme . "/colors.php");
include ("themes/" . $theme . "/theme.php");
translate("lang/" . $language . ".lang.php");
$im_file = $nuked_nude;
visits();
if (!isset($nuked_nude))
{
if (defined("NK_GZIP") && @extension_loaded('zlib') && !@ini_get('zlib.output_compression') && @phpversion() >= "4.0.4")
{
ob_start("ob_gzhandler");
}
top();
echo "<script type=\"text/javascript\" src=\"infobulle.js\"></script>"
. "<script type=\"text/javascript\">InitBulle('" . $bgcolor2 . "', '" . $bgcolor3 . "', 2);</script>";
if ($nuked['nk_status'] == "closed" && $user[1] == 9)
{
echo "<table style=\"background: " . $bgcolor3 . ";\" width=\"100%\" cellspacing=\"1\" cellpadding=\"8\">\n"
."<tr><td style=\"background: " . $bgcolor2 . ";\" ><big><b>" . _YOURSITEISCLOSED . " :<br /><br/ >" . $nuked['url'] . "/index.php?file=User&op=login_screen</b></big></td></tr></table><br />\n";
}
if ($page != "")
{
$im_file = $page;
}
else
{
$im_file = "index";
}
}
// Securite par phpSecure.info
if (ereg("\.\.", $file) || ereg("\.\.", $im_file))
{
die("<br /><br /><br /><div style=\"text-align: center;\"><big>What are you trying to do ?</big></div>");
}
$file = trim($file);
$im_file = trim($im_file);
// Fin
if (is_file("modules/" . $file . "/" . $im_file . ".php"))
{
include("modules/" . $file . "/" . $im_file . ".php");
}
else
{
include("modules/404/index.php");
}
if (!isset($nuked_nude))
{
if ($user[5] > 0 && !isset($_COOKIE['popup']) && $file != "User" && $file != "Userbox")
{
echo "<div id=\"popup\" style=\"position:absolute;top:0;left:0;z-index:10\"></div>\n"
. "<script type=\"text/javascript\" src=\"popup.js\"></script>\n"
. "<script type=\"text/javascript\">popup('" . $bgcolor2 . "', '" . $bgcolor3 . "', '" . _NEWMESSAGESTART . " " . $user[5] . " " . _NEWMESSAGEEND . "', '" . _CLOSEWINDOW . "', 'index.php?file=Userbox', 350, 100);</script>\n";
}
footer();
include("Includes/copyleft.php");
}
}
Voilà...
Quand j'ouvre l'index.htm avec le Bloc-note j'obtiens ceci:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>introsite</title>
<style type="text/css">
<!--
.style1 {color: #FF9900}
-->
</style>
</head>
<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<div align="center">
<p>
<object classid="clsid
27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash..." width="550" height="400" id="introsite" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="introsite.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="introsite.swf" loop="false" menu="false" quality="high" bgcolor="#000000" width="550" height="400" name="introsite" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</p>
<p class="style1"><a href="index.php" class="style1">Passer l'intro </a> </p>
</div>
</body>
</html>
Merci de bien vouloir essayer de m'aider à remettre le site en place!
Etant donné que mon server Verygames va fermer ces portes, j'ai décidé de copier tout ce qu'il y avait du FTP sur mon PC, pour essayer de remettre le site en place..
Après la fin de tous telechargements, j'ouvre le fichier index.htm qui se trouve dans le dossier: www
Quand je l'ouvre j'obtient bien l'intro du site, mais lorsque je demande de passer celui-ci, il me met une erreur de PHP.. La voici, un peu longue!
<?php
// -------------------------------------------------------------------------//
// Nuked-KlaN - PHP Portal //
// http://www.nuked-klan.org //
// -------------------------------------------------------------------------//
// This program is free software. you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License. //
// -------------------------------------------------------------------------//
define ("INDEX_CHECK", 1);
include ("conf.inc.php");
if (!defined("NK_OPEN"))
{
echo "<br /><br /><br /><div style=\"text-align: center;\"><big>Sorry, this website is momently closed, Please try again later.</big></div>";
exit();
}
if (!defined("NK_INSTALLED"))
{
if (is_file("install.php"))
{
header("location: install.php");
}
}
else
{
if (is_file("install.php") || is_file("update.php"))
{
echo "<br /><br /><br /><div style=\"text-align: center;\"><big>Warning ! <b>install.php</b> and <b>update.php</b> must be removed before continuing !</big></div>";
exit();
}
}
include ("nuked.php");
$session = session_check();
if ($session == 1)
{
$user = secure();
}
else
{
$user = "";
}
$check_ip = banip();
if ($check_ip != "")
{
$url_ban = "ban.php?ip_ban=" . $check_ip;
redirect($url_ban, 0);
exit();
}
// Securite par phpSecure.info
if (ereg("\.\.", $theme) || ereg("\.\.", $language))
{
die("<br /><br /><br /><div style=\"text-align: center;\"><big>What are you trying to do ?</big></div>");
}
$theme = trim($theme);
$language = trim($language);
// Fin
if ($nuked['nk_status'] == "closed" && $user[1] < 9 && $op != "login_screen" && $op != "login_message" && $op != "login")
{
include ("themes/" . $theme . "/colors.php");
translate("lang/" . $language . ".lang.php");
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\">\n"
. "<head><title>" . $nuked['name'] . " :: " . $nuked['slogan'] . " ::</title>\n"
. "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n"
. "<meta http-equiv=\"content-style-type\" content=\"text/css\" />\n"
. "<link title=\"style\" type=\"text/css\" rel=\"stylesheet\" href=\"themes/" . $theme . "/style.css\" /></head>\n"
. "<body style=\"background: " . $bgcolor2 . ";\"><div><br /><br /><br /><br /><br /><br /><br /><br /></div>\n"
. "<table style=\"margin-left: auto;margin-right: auto;text-align: left;background: " . $bgcolor3 . ";\" cellspacing=\"1\" cellpadding=\"20\">\n"
. "<tr><td style=\"background: " . $bgcolor1 . ";\" align=\"center\"><big><b>" . $nuked['name'] . " - " . $nuked['slogan'] . "</b></big><br /><br />\n"
. _SITECLOSED . "</td></tr></table></body></html>";
}
else
{
include ("themes/" . $theme . "/colors.php");
include ("themes/" . $theme . "/theme.php");
translate("lang/" . $language . ".lang.php");
$im_file = $nuked_nude;
visits();
if (!isset($nuked_nude))
{
if (defined("NK_GZIP") && @extension_loaded('zlib') && !@ini_get('zlib.output_compression') && @phpversion() >= "4.0.4")
{
ob_start("ob_gzhandler");
}
top();
echo "<script type=\"text/javascript\" src=\"infobulle.js\"></script>"
. "<script type=\"text/javascript\">InitBulle('" . $bgcolor2 . "', '" . $bgcolor3 . "', 2);</script>";
if ($nuked['nk_status'] == "closed" && $user[1] == 9)
{
echo "<table style=\"background: " . $bgcolor3 . ";\" width=\"100%\" cellspacing=\"1\" cellpadding=\"8\">\n"
."<tr><td style=\"background: " . $bgcolor2 . ";\" ><big><b>" . _YOURSITEISCLOSED . " :<br /><br/ >" . $nuked['url'] . "/index.php?file=User&op=login_screen</b></big></td></tr></table><br />\n";
}
if ($page != "")
{
$im_file = $page;
}
else
{
$im_file = "index";
}
}
// Securite par phpSecure.info
if (ereg("\.\.", $file) || ereg("\.\.", $im_file))
{
die("<br /><br /><br /><div style=\"text-align: center;\"><big>What are you trying to do ?</big></div>");
}
$file = trim($file);
$im_file = trim($im_file);
// Fin
if (is_file("modules/" . $file . "/" . $im_file . ".php"))
{
include("modules/" . $file . "/" . $im_file . ".php");
}
else
{
include("modules/404/index.php");
}
if (!isset($nuked_nude))
{
if ($user[5] > 0 && !isset($_COOKIE['popup']) && $file != "User" && $file != "Userbox")
{
echo "<div id=\"popup\" style=\"position:absolute;top:0;left:0;z-index:10\"></div>\n"
. "<script type=\"text/javascript\" src=\"popup.js\"></script>\n"
. "<script type=\"text/javascript\">popup('" . $bgcolor2 . "', '" . $bgcolor3 . "', '" . _NEWMESSAGESTART . " " . $user[5] . " " . _NEWMESSAGEEND . "', '" . _CLOSEWINDOW . "', 'index.php?file=Userbox', 350, 100);</script>\n";
}
footer();
include("Includes/copyleft.php");
}
}
Voilà...
Quand j'ouvre l'index.htm avec le Bloc-note j'obtiens ceci:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>introsite</title>
<style type="text/css">
<!--
.style1 {color: #FF9900}
-->
</style>
</head>
<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<div align="center">
<p>
<object classid="clsid
27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash..." width="550" height="400" id="introsite" align="middle"><param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="introsite.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="introsite.swf" loop="false" menu="false" quality="high" bgcolor="#000000" width="550" height="400" name="introsite" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</p>
<p class="style1"><a href="index.php" class="style1">Passer l'intro </a> </p>
</div>
</body>
</html>
Merci de bien vouloir essayer de m'aider à remettre le site en place!
Autres pages sur : probleme php site
Lassé par la pub ? Créez un compte
Je ne trouve pas de fichier nommé config.php.. Dans mon dossier j'ai:
config.inc
ban.php
bbcode.php
globals.php
nuked.php
popup.php
infobulle.php
Voilà... Par contre, qu'entends-tu par Identifiants?
Car dans le fichier: config.inc il y a bien des identifiants:
$global['db_host'] = 'sql.verygames.net';
$global['db_user'] = 'server355';
$global['db_pass'] = 'ku3cak6n';
$global['db_name'] = 'server355';
$db_prefix = 'nuked';
Qui reflecte effectivement les identifiants, telle que le mot de passe, l'utilisateur et le serveur..
Dois-je remplacer ces identifiants, par ceux de mon serveur?
config.inc
ban.php
bbcode.php
globals.php
nuked.php
popup.php
infobulle.php
Voilà... Par contre, qu'entends-tu par Identifiants?
Car dans le fichier: config.inc il y a bien des identifiants:
$global['db_host'] = 'sql.verygames.net';
$global['db_user'] = 'server355';
$global['db_pass'] = 'ku3cak6n';
$global['db_name'] = 'server355';
$db_prefix = 'nuked';
Qui reflecte effectivement les identifiants, telle que le mot de passe, l'utilisateur et le serveur..
Dois-je remplacer ces identifiants, par ceux de mon serveur?
Lassé par la pub ? Créez un compte
- Contenus similaires :
Tags :
- ForumPhp site multi langues
- ForumRedirection php sur un site securise
- solutionsRécupérer php site
- ForumErreur php site free
- ForumProblème php
- ForumProbleme acces site par easy php apache
- ForumProbleme site internet php accent
- solutionsPhp probleme site avec formulaire de modif
- ForumCoder un site en php
- ForumProbleme positionnement div css sur site php
- Voir plus