PHP Classes

File: index.php

Recommend this page to a friend!
  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: 11 years ago
Size: 1,732 bytes


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

<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; }


<table border='0' width='710'><tr><td>
<h1><?php echo H1_IDX; ?></h1>
<?php require(CNT_IDX); ?>
<p><input type="button" value="<?php echo TBT_NLS; ?>" onclick="javascript:window.location='showlist.php'" style="margin-top:25px"></p>
// 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"; }
$server = $_SERVER["SERVER_NAME"];
$page = $_SERVER["SCRIPT_NAME"];
// $header = "From:\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("","[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);