Se connecter / S'enregistrer
Votre question

Inserer une barre de chargement dans une page PHP

Tags :
  • software
  • Programmation
Dernière réponse : dans Programmation
21 Août 2007 12:37:47

Bonjour, j'aimerai savoir comment insérer le code qui se trouve ici :

http://www.infos-du-net.com/forum/110487-21-barre-charg...

Dans le code suivant (qui est l'index de mon site [http://coxygene.fr.nf]) :

Citation :
<?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 = "";

$session_admin = admin_check();

$check_ip = banip();

if ($check_ip != "")
{
$url_ban = "ban.php?ip_ban=" . $check_ip;
redirect($url_ban, 0);
exit();
}

if (isset($nuked_nude) && $nuked_nude != "") $im_file = $nuked_nude;
else if (isset($page) && $page != "") $im_file = $page;
else $im_file = "index";

// Securite par phpSecure.info
if (ereg("\.\.", $theme) || ereg("\.\.", $language) || ereg("\.\.", $file) || ereg("\.\.", $im_file) || eregi("http\:\/\/", $file) || eregi("http\:\/\/", $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);
$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 if (($file == "Admin" || $page == "admin" || $nuked_nude == "admin") && $session_admin == 0)
{
include ("themes/" . $theme . "/colors.php");
include ("themes/" . $theme . "/theme.php");
translate("lang/" . $language . ".lang.php");

if (!isset($nuked_nude)) top();

include("modules/Admin/login.php");

if (!isset($nuked_nude))
{
footer();
include("Includes/copyleft.php");
}
}
else
{
if ($file != "Admin" && $page != "admin" && $nuked_nude != "admin" && $op != "smilies" && $session_admin == 1) setcookie($cookie_admin, "", time() - 86400);

include ("themes/" . $theme . "/colors.php");
include ("themes/" . $theme . "/theme.php");
translate("lang/" . $language . ".lang.php");

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 (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_dhtml\" style=\"position:absolute;top:0;left:0;visibility:visible;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");
}
}

?>




Merci d'avance à tous pour votre aide !

Autres pages sur : inserer barre chargement page php

21 Août 2007 12:49:36

Fait sa :
  1. <html>
  2. <head>
  3. Debut script de chargement ici !
  4. </head>
  5. <body>
  6. La suite du code
  7. +
  8. Le contenu de ta page d'index !
  9. </body>
  10. </html>
21 Août 2007 12:58:56

Ok et je la met en .php ou en .htm la page ?
21 Août 2007 13:02:52

.php > car sinon tout le contenu de ta page ne fonctionnera plus...
Tom's guide dans le monde
  • Allemagne
  • Italie
  • Irlande
  • Royaume Uni
  • Etats Unis
Suivre Tom's Guide
Inscrivez-vous à la Newsletter
  • ajouter à twitter
  • ajouter à facebook
  • ajouter un flux RSS