style.css
// script.php => script.js
error_reporting(E_ALL);
/*
HLKMemo CMS - Core part of DragonFly project
Tiny Dynamic Web Text Editor and Content Management System
Copyright (C)2007/2011-01-27 STJO/SIII
Official Web site : http://hlka.free.fr
v2.9 : HlkInternalStyle function
v2.8 : NewPage and DeletePage admin buttons
v2.7 : Separate Header page management, Style Input Variable, New comment presentation
v2.6.3 : Replacing index.php forms with "/" (canceled)
v2.6.2 : Adding browse.php and upload.php for CKEditor
v2.6.1 : CKEditor Integration
// http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Integration
// http://stackoverflow.com/questions/1498628/how-can-you-integrate-a-custom-file-browser-uploader-with-ckeditor
v2.6 : HLKNOTEDIT avoid visual modification
v2.5 : HTML 5 compliant
v2.4.3 : new multiple gopage post value
v2.4.2 : slash at style and script for URL forwarding compatibility
v2.4.1 : include security.php cookie management if exists
v2.4 : Manage multiple content/visual edit buttons
v2.3 : Manage FCKEditor 2 option
v2.2 : Double admin level adding simple backoffice manager
v2.1 : PHP Writing Rules, fix empty no-UTF8 file reading bug
v2.0 : UTF8 Support
v1.9.2 : Title in config
v1.9.1 : Creates default design file
v1.9.0 : Creates default style, script and function files, style.php replaces style.css, script.php replaces script.js
v1.8.2 : XHTML 1.0 w3c compliant
v1.8.1 : Fix script ref
v1.8.0 : External link to style.css, add script.js and meta edition, chmod 755
v1.7.4 : Fix functions file can null empty
v1.7.3 : Page allowed by post, functions included once
v1.7.2 : Remove Google verify tag
v1.7.1 : External configuration
v1.7 : Document File management
v1.6.3 : Fix logout with globals off
v1.6.2 : Fix include constaint
v1.6.1 : Fix textarea bug and html entities bug
v1.6 : Separate Edition of the optional Function PHP file
v1.5.1 : Fix quote bug
v1.5 : Multi PHP Version (for PHP5)
v1.4 : Edition of dynamic includes using PHP files
v1.3 : Creation of the Design concept Edition including all HTML files
v1.2 : Separate Edition of the optional CSS Style file
v1.1 : Securization of Edition by Cookies authentification and PHP variables protection
v1.0 : Simple HTML file save via TEXTAREA Edition
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
if (file_exists("security.php"))
{
include "security.php";
}
// Default home page name
$HLKDEFAULTPAGE = "home";
// Default page extention
$HLKDEFAULTEXT = "php";
// Location of uploaded files
$HLKDOCUMENTDIR = "img";
// Default style file name
$HLKSTYLEFILE = "style.css";
// Default script file name
$HLKSCRIPTFILE = "script.js";
// Default design file name
$HLKDESIGNFILE = "design.$HLKDEFAULTEXT";
// Default meta file name
$HLKMETAFILE = "meta.$HLKDEFAULTEXT";
// Default function file name
$HLKFUNCTIONFILE = "functions.$HLKDEFAULTEXT";
// Default config file name
$HLKCONFIGFILE = "config.$HLKDEFAULTEXT";
// UTF8 Start file if needed
$HLKMAGIC = ""; // "\xEF\xBB\xBF";
// Default Header extention (.+)
$HLKDESCRIPTIONEXT = "header.php";
// Default editor width
$HLKNBCOL = "75";
// Default editor height
$HLKNBROW = "20";
// External WYSIWYG Editor presence
//$HLKVISUALEDITOR = "fckeditor/fckeditor.php";
$HLKVISUALEDITOR = "ckeditor/ckeditor_php5.php";
// CSS Style for Text Input
$HLKINPUTSTYLE = "color:#000000;background-color:#EEEEEE;font-family:Courier New;font-size:16px;font-weight:bold;";
// Generate default config file if not exists
if (!file_exists("$HLKCONFIGFILE"))
{
$fileout = fopen("$HLKCONFIGFILE", "w+");
fputs($fileout, $HLKMAGIC);
fputs($fileout, "\r");
fputs($fileout, " // Default site name\r");
fputs($fileout, " $"."SITENAME=\"HLKMemo default site name\";\r");
fputs($fileout, "\r");
fputs($fileout, " // Default admin cookie name\r");
fputs($fileout, " $"."HLKADMINKEY=\"admin\";\r");
fputs($fileout, " // Default admin cookie value\r");
fputs($fileout, " $"."HLKADMINVALUE=\"password\";\r");
fputs($fileout, " // Default backoffice cookie value\r");
fputs($fileout, " $"."HLKBACKVALUE=\"pass\";\r");
fputs($fileout, "?>");
fclose($fileout);
}
@include "$HLKCONFIGFILE";
@$logout = $_REQUEST["logout"];
if ($logout != "")
{
SetCookie("$HLKADMINKEY", "0", time()+3600*24*30, "/", "");
$admin = "";
}
else
{
@$admin = $_COOKIE["$HLKADMINKEY"];
}
@$page = str_replace("/", "", strtolower($_REQUEST["page"]));
@$newpagename = $_POST["newpagename"];
if ($newpagename != "")
{
$page = $newpagename;
}
if (($page == "")
|| ($page == "index")
|| ($page == "design"))
{
$page = $HLKDEFAULTPAGE;
}
if (isset ($_REQUEST["page"])){
if ($_REQUEST["page"] == 'video/loi-girardin-industriel')
{
header('Status: 301 Moved Permanently', false, 301);
header('Location: http://www.girardin-industriel.com/loi-girardin-industriel.htm');
}elseif ($_REQUEST["page"] == 'girardin-industriel-actualites.htm?produit=SNC-LOGSOC')
{
header('Status: 301 Moved Permanently', false, 301);
header('Location: http://www.girardin-industriel.com');
}
}
switch ($page) {
case "girardin-industriel-2010":
header('Status: 301 Moved Permanently', false, 301);
header('Location: http://www.girardin-industriel.com/girardin-industriel-2012.htm');
break;
case "girardin-industriel-contact":
header('Status: 301 Moved Permanently', false, 301);
header('Location: http://www.girardin-industriel.com/girardin-industriel-quisommesnous.htm');
break;
case "girardin-industriel-coordonnees":
header('Status: 301 Moved Permanently', false, 301);
header('Location: http://www.girardin-industriel.com/girardin-industriel-quisommesnous.htm');
break;
case "girardin-industriel-photovoltaique":
header('Status: 301 Moved Permanently', false, 301);
header('Location: http://www.girardin-industriel.com/girardin-industriel-realisation.htm');
break;
case "girardin-industriel-simulateur":
header('Status: 301 Moved Permanently', false, 301);
header('Location: http://www.girardin-industriel.com/girardin-industriel-exemples.htm');
break;
case "/video/loi-girardin-industriel":
header('Status: 301 Moved Permanently', false, 301);
header('Location: http://www.girardin-industriel.com/loi-girardin-industriel.htm');
break;
case "seminaires-girardin-industriel":
header('Status: 301 Moved Permanently', false, 301);
header('Location: http://www.girardin-industriel.com');
break;
case "plan-site":
header('Status: 301 Moved Permanently', false, 301);
header('Location: http://www.girardin-industriel.com');
break;
default:
break;
}
print "\r";
print "\r";
print "