Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Pierre FAUQUE  >  Genealogy Classes  >  index.php  >  Download  
File: index.php
Role: Application script
Content type: text/plain
Description: Index page
Class: Genealogy Classes
Manage genealogy trees for a family
Author: By
Last change:
Date: 3 years ago
Size: 1,732 bytes
 

Contents

Class file image Download
<?php require("init.php"); ?>
<html>

<head>
<title><?php echo TIT_IDX.' '.PDFOBJ?></title>
<style type="text/css">
body, td, p { font-family:arial; font-size:11pt; background-color:#D0D0D0; }
a           { text-decoration:none; }
h1          { font-family:"times new roman"; font-size:20pt; font-weight:bold; font-style:italic; color:#000080; }
</style>
</head>

<body>

<form>
<center>
<table border='0' width='710'><tr><td>
<h1><?php echo H1_IDX?></h1>
<?php require(CNT_IDX); ?>
</td></tr></table>
<p>&nbsp;</p>
<p><input type="button" value="<?php echo TBT_NLS?>" onclick="javascript:window.location='showlist.php'" style="margin-top:25px"></p>
</center>
</form>
<?php
// date_default_timezone_set('GMT'); // You have to verify if this function runs on your web server

$vis_ip   $_SERVER["REMOTE_ADDR"];
$vis_host gethostbyaddr($vis_ip);
$moment   date("d/m/Y \a H:i:s $hour");
$referer  $_SERVER["HTTP_REFERER"];
// if(!$referer) { $referer="Accès direct"; }
if(!$referer) { $referer="Direct access"; }
$agent    $_SERVER["HTTP_USER_AGENT"];
$server   $_SERVER["SERVER_NAME"];
$page     $_SERVER["SCRIPT_NAME"];
// $header = "From: surveillance@fauque.net\r\n";
$header   "From: keep-watch-on-gen@your_isp.tld\r\n";

// $body = "Le $moment\nl'utilisateur situé en $vis_ip ($vis_host)\na vu la page http://$server"."$page\navec $agent\nIl venait de : $referer";
// mail("pierre@fauque.net","[GEN] Visiteur",$body,$header);

// $body = "On $moment\nthe visitor located in $vis_ip ($vis_host)\nhas seen the page http://$server"."$page\nwith $agent\nHe came from : $referer";
// mail("your.mail@your_isp.tld","[GEN] Visitor",$body,$header);
?>
</body>

</html>