Repository navigation
Expand file tree
/
Copy pathframes.php
More file actions
59 lines (49 loc) · 1.85 KB
/
Copy pathframes.php
File metadata and controls
59 lines (49 loc) · 1.85 KB
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
<?php
/**
* frames.php
*
* XNova Renaissance
* Reprise et modernisation : theptitprince (2026)
*
* Travail original :
* frame.php
* @version 1.0
* @copyright 2008 by e-Zobar for XNova
* @license GNU AGPL v3 ou ultérieure (voir NOTICE)
*/
define('INSIDE' , true);
define('INSTALL' , false);
$InLogin = false;
$XNova_Host = $_SERVER['HTTP_HOST'];
$XNova_Script = $_SERVER['SCRIPT_NAME'];
$Uri_Array = explode ('/', $XNova_Script);
// On vire le script
array_pop($Uri_Array);
$XNova_URI = implode ('/', $Uri_Array);
$XNovaRootURL = "http://". $XNova_Host ."/". $XNova_URI ."/";
$xnova_root_path = './';
include($xnova_root_path . 'extension.inc');
include($xnova_root_path . 'common.'.$phpEx);
$page = "<html>";
$page .= "<head>";
$page .= "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=". $langInfos['encoding']."\">";
$page .= "<link rel=\"shortcut icon\" href=\"favicon.ico\">";
$page .= "<title>". htmlspecialchars($game_config['game_name'], ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') ."</title>";
$page .= "</head>";
$page .= "<frameset framespacing=\"0\" border=\"0\" cols=\"190,*\" frameborder=\"0\">";
// Menu defilant si besoin (scrolling="no" d'origine : sur un ecran peu haut, Regles, Contact, Options et
// Deconnexion etaient hors d'atteinte)
$page .= "<frame name=\"LeftMenu\" target=\"Mainframe\" src=\"leftmenu.php\" noresize scrolling=\"auto\" marginwidth=\"0\" marginheight=\"0\">";
$page .= "<frame name=\"Hauptframe\" src=\"overview.php\">";
$page .= "<noframes>";
$page .= "<body>";
$page .= "<p>". ($lang['no_frames'] ?? '') ."</p>";
$page .= "</body>";
$page .= "</noframes>";
$page .= "</frameset>";
$page .= "</html>";
echo $page;
// -----------------------------------------------------------------------------------------------------------
// History version
// 1.0 - Euuhh ... je ne sais plus ...
?>