-
Notifications
You must be signed in to change notification settings - Fork 0
/
credits.php
88 lines (76 loc) · 2.7 KB
/
credits.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
/**
*@file credits.php
*@package php-shtooka-get
*@brief credits and copyrights specification
*@author see below and read the following statement:
* This work is heavily based on the work of Nicolas Vion who made swac tools available
*and is under copyrights of the author mentioned under RELEASE_AUTHOR
*@version V1.0
*@note
* V1.0 (31.01.2017) First version
**/
//==============8< CREDITS STARTS HERE===========8<=====================
define("RELEASE_PROJECT","php-shtooka-get");
define("RELEASE_VERSION","1.0");
define("RELEASE_DATE","31.01.2017");
define('RELEASE_COPYRIGHT','2017');
define("RELEASE_AUTHOR","Olivier Lutzwiller, Nicolas Vion");
define("RELEASE_LANGUAGE", "fr");
//==============8< CREDITS ENDS HERE=============8<=====================
/**
*@name Cache_Disallow
*@brief Prevent the browser from caching the result.
*@access public
*@note this function ensures all the page will be completely processed
**/
function Cache_Disallow(){
//----------------------------------
// Date in the past
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT') ;
// always modified
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT') ;
// HTTP/1.1
header('Cache-Control: no-store, no-cache, must-revalidate') ;
header('Cache-Control: post-check=0, pre-check=0', false) ;
// HTTP/1.0
header('Pragma: no-cache') ;
// Set the response format.
header( 'Content-Type:text/html; charset=utf-8' ) ;
clearstatcache();
}
/**
*@name Credits_start
*@brief Generates the credits with the head of the page
*@access public
*@internal In XHTML or in HTML with DTD, iframe 100% height fails..
*@note this function loads the engine for reporting results in live
**/
function Credits_start() {
//------------------------------------
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
echo '<html lang="'.RELEASE_LANGUAGE.'">';
echo '<head><title>'.RELEASE_PROJECT.' '.RELEASE_VERSION.' (©'.RELEASE_AUTHOR.')</title>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>';
echo '<meta name="author" content="'.RELEASE_AUTHOR.'"/>';
echo '<meta name="copyright" content="© copyright '.RELEASE_COPYRIGHT.',
'.RELEASE_AUTHOR.'"/>';
echo '<meta name="robots" content="noindex, nofollow" />';
echo '</head>';
echo "\n<body>";
}
function get_credits() {
//-----------------------------
return 'Welcome on '.RELEASE_PROJECT.' v'.RELEASE_VERSION." ( ".RELEASE_DATE. ' by '.RELEASE_AUTHOR.' )';
}
/**
*@name Credits_stop
*@brief Generates the footer
*@access public
*@note this closes the XHTML page
**/
function Credits_stop() {
//--------------------------------------
echo "</body></html>";
}
?>