Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak dodać skrypt w php do strony w js...
hulton
post
Post #1





Grupa: Zarejestrowani
Postów: 27
Pomógł: 0
Dołączył: 6.04.2013

Ostrzeżenie: (0%)
-----


Cześć,
może po prostu pokaże wam skrypt mojej stronki:

CODE
<!DOCTYPE html>

<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Serwer jest zamkniety</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">


<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/vintageTxt.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body>
<!--[if lt IE 9]>
<p class="chromeframe">Uzywasz <strong>nieaktualnej</strong> przegladarki. Prosze <a href="http://browsehappy.com/">pobierz nowa wersje</a> lub <a href="http://www.google.com/chromeframe/?redirect=true">Aktywuj Google Chrome Frame</a> by byc fajny (IMG:style_emoticons/default/tongue.gif) .</p>
<![endif]-->



<div id="miniTxt"></div>
<div id="doThis"></div>
<div id="meStuff">

</div>
<div id="imgCred">Image Credit: Profiles In History</div>

<script src="js/vendor/jquery-1.9.0.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script src="js/jquery.vintageTxt.js"></script>

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
/*
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
*/
</script><script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36251023-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

</body>
</html>


Nie zwracajcie uwagi na komentarze (IMG:style_emoticons/default/tongue.gif)

Do stronki chciałbym dodać taki kod:


CODE
<?
$banned[0]="00.000.00.000";


if (in_array($_SERVER['REMOTE_ADDR'],$banned)) header("HTTP/1.1 403 Forbidden");
?>


Gdzie powinienem go wstawić by zadziałał?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 4.10.2025 - 02:12