<?php
require 'conn.php';
?>
<?php
$add_site = true;
include "include/function.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<head>
<title>
<?php echo Title
($_GET['go']); ?></title>
<style type="text/css">
<!--
body {
font-family: Verdana Arial;
font-size: 12px;
}
-->
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" colspan="3"><?php include "include/naglowek.php"; ?></td>
</tr>
<tr>
<td width="15%" valign="top"><?php include "include/menu_lewe.php"; ?></td>
<td width="70%" valign="top">
<?php
$id=$temp['tytul'];
$id2=$temp['tresc'];
$go = $_GET['go'];
if(is_file("page/$go.php")) include "page/$go.php"; else echo "<br />Nie ma taki ej strony :-("; }
else include "page/start.html";
?>
</td>
<td width="15%" valign="top"><?php include "include/menu_prawe.php"; ?></td>
</tr>
<tr>
<td width="100%" colspan="3"><?php include "include/stopka.php"; ?></td>
</tr>
</table>
</body>
</html>
<?php
function IP_prawdziwe(){
if ($_SERVER['HTTP_X_FORWARDED_FOR']) {
$ip_prawdziwe = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
else {
$ip_prawdziwe = $_SERVER['REMOTE_ADDR'];
}
return $ip_prawdziwe;
}
?>
Witam powyżej jest kod do index.php
i jest taki problem.
Strona wygląda tak
http://jackraymund.xaa.pl/aha/aha/index.phpPrzy każdej podstronie jest ten news jak zrobić aby był tylko na index.php?
Wykonuje zlecenia na pobieranie danych ze stron i różne boty.