/srv/http/carschrotter/mn-hegenbarth.de/www/src/include/myPHP_Guestbook_4.10.3/includes/functions.inc.php
$maxSmilies = 10; // Total number of emojis allowed in a post (if control is activated)
// #### from here on do not change any more #### //
$langArray = array("de","en","nl","pl","pt","cz","sk");
$allowed_characters = 'ÀÁÂÃÄÅĄÆÇČĎÈÉÊËĚĘÌÍÎÏÐĽĹŁŇÑŃÒÓÔÕÖØŔŘŠŚŤŮÙÚÛÜÝŽŹŻÞßàáâãäåąæçčćďěèéêëęìíîïľĺłŁňñńðòóôõöøŕřšśťůùúûüýþÿžźż';
$masterIP = $_SERVER['REMOTE_ADDR'];
$fontsizeClass = 'small-02';
$linkSymClass = 'external';
// Generate "dead" sender e-mail address
$mail_abs = "noreply@".str_replace("www.", "", $_SERVER['SERVER_NAME'])."";
// Empty variables (for older versions)
$timezone = $dateFormat = $main_path = "";
// Include configuration file
require_once("config.inc.php");
// Connecting to the database
$gbook = new mysqli($host, $username, $password, $database);
$gbook->set_charset('utf8');
// Set date format and correct time zone for entries in myPHP-Guestbook; see "config.inc.php" (from myPHP-Guestbook v.4.5.6 +)
// The time zone must be supported by PHP, e.g. to be processed by the function "date_default_timezone_set()";
// For a list of supported time zones see: <http://php.net/manual/de/timezones.php>
if ($timezone != "") {
(function_exists('date_default_timezone_set')) ? (date_default_timezone_set($timezone)) : (ini_set('date.timezone', $timezone));
}
$sql_date_format = $gbook->query("SELECT `flag` FROM `".$table."_properties`");
list($dateFormat) = $sql_date_format->fetch_row();
($dateFormat === "us") ? define('GB_DATE', date("m-d-Y")) : define('GB_DATE', date("d.m.Y"));
// Anonymize IP
function anonymizeIp($masterIP) {
global $main_path;
$matchIP = array('/[0-9]+\z/','/[\da-f]*:[\da-f]*:[\da-f]*$/');
$replaceIP = array('0','0:0:0');
/srv/http/carschrotter/mn-hegenbarth.de/www/src/include/myPHP_Guestbook_4.10.3/includes/functions.inc.php
$maxSmilies = 10; // Total number of emojis allowed in a post (if control is activated)
// #### from here on do not change any more #### //
$langArray = array("de","en","nl","pl","pt","cz","sk");
$allowed_characters = 'ÀÁÂÃÄÅĄÆÇČĎÈÉÊËĚĘÌÍÎÏÐĽĹŁŇÑŃÒÓÔÕÖØŔŘŠŚŤŮÙÚÛÜÝŽŹŻÞßàáâãäåąæçčćďěèéêëęìíîïľĺłŁňñńðòóôõöøŕřšśťůùúûüýþÿžźż';
$masterIP = $_SERVER['REMOTE_ADDR'];
$fontsizeClass = 'small-02';
$linkSymClass = 'external';
// Generate "dead" sender e-mail address
$mail_abs = "noreply@".str_replace("www.", "", $_SERVER['SERVER_NAME'])."";
// Empty variables (for older versions)
$timezone = $dateFormat = $main_path = "";
// Include configuration file
require_once("config.inc.php");
// Connecting to the database
$gbook = new mysqli($host, $username, $password, $database);
$gbook->set_charset('utf8');
// Set date format and correct time zone for entries in myPHP-Guestbook; see "config.inc.php" (from myPHP-Guestbook v.4.5.6 +)
// The time zone must be supported by PHP, e.g. to be processed by the function "date_default_timezone_set()";
// For a list of supported time zones see: <http://php.net/manual/de/timezones.php>
if ($timezone != "") {
(function_exists('date_default_timezone_set')) ? (date_default_timezone_set($timezone)) : (ini_set('date.timezone', $timezone));
}
$sql_date_format = $gbook->query("SELECT `flag` FROM `".$table."_properties`");
list($dateFormat) = $sql_date_format->fetch_row();
($dateFormat === "us") ? define('GB_DATE', date("m-d-Y")) : define('GB_DATE', date("d.m.Y"));
// Anonymize IP
function anonymizeIp($masterIP) {
global $main_path;
$matchIP = array('/[0-9]+\z/','/[\da-f]*:[\da-f]*:[\da-f]*$/');
$replaceIP = array('0','0:0:0');
/srv/http/carschrotter/mn-hegenbarth.de/www/src/include/myPHP_Guestbook_4.10.3/gbook.head.php
License, or (at your option) any later version.
myPHP Guestbook 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.
13.04.2019
*/
// fuer Neuinstallationen ab dem 02.01.2016 bzw. ab V.4.5.6 die Zeile 26 unverändert auskommentiert lassen oder ganz löschen,
// (nur) fuer aeltere Installationen die Auskommentierung am Anfang der Zeile 26 (die beiden ersten slashes "//") entfernen!
// require_once("".$gbook_folder."/includes/url.inc.php"); // Zeile 26
$thisGBPage = array('myPHPGBook' => 1);
$_GET['userlang'] = isset($_GET['userlang']) ? htmlspecialchars($_GET['userlang'], ENT_QUOTES) : "";
require_once("".$gbook_folder."/includes/functions.inc.php");
if(in_array($_GET['userlang'], $langArray, true)) {
setcookie("myphpgb-language",$_GET['userlang'],NULL,"/","","",true);
header("Location: ".$url02."gbook.php");
}
else {
$_GET['userlang'] = "";
}
$sql_properties = $gbook->query("SELECT `admin_email`,`bbcode`,`check_email`,`check_homepage`,`deactivate_html`,`default_style`,`default_template`,`entries_per_site`,`guestbook_status`,`guestbook_title`,`images_in_entries`,`links_in_sitefunction`,`max_word_length`,`release_entries`,
`smilies`,`statistic`,`statistic_ban`,`quote_func`,`link_entry`,`check_town`,`check_country`,`button_link`,`rating`,`rating_text`,`choose_lang`, `administration`,`check_banner`,`privacy_hint`,`privacy_url`,`search_func`,`permalink`
FROM `".$table."_properties`") or die();
$properties = $sql_properties->fetch_assoc();
$default_style = $properties['default_style'];
if (!empty($properties['search_func'])) {
session_start();
}
$bad = $good = $separated_red = $separated_gray = $rating_entry = $show_rating_infos = $privMargLe = $star_ico = $quotation01 = $quotation02 = $quotation03 = $quotation04 = $buttonReset = $errorSearch = $error_msg = $countMySearch = $search = $mySearch = $mySearchResult = $noSearch = $foundResults = $searchInfo = $pl_hind = "";
/srv/http/carschrotter/mn-hegenbarth.de/www/site_confic/gb_confic.php
<?php
global $gbook_folder; // Ordner, in dem sich die Gaestebuchdateien befinden (hier: myPHP_Guestbook), anpassen!
$gbook_folder = APP_DIR . "/src/include/myPHP_Guestbook_4.10.3";
// Folder in which the guestbook files are located (here:
include_once ($gbook_folder."/gbook.head.php"); // nicht ändern - do not change!
$ie_hack = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--[if IE 9]><html id="ie9" dir="ltr" lang="'.$lang_short.'"><![endif]-->
<!--[if IE 8]><html id="ie8" dir="ltr" lang="'.$lang_short.'"><![endif]-->
<!--[if IE 7]><html id="ie7" dir="ltr" lang="'.$lang_short.'"><![endif]-->
<!--[if !(IE 7) | !(IE 8) | !(IE 9) ]><!-->
<html xml:lang="'.$lang_short.'" lang="'.$lang_short.'" xmlns="http://www.w3.org/1999/xhtml">
<!--<![endif]-->';
ob_start();
include_once ($gbook_folder."/style.myphpgb.php"); // nicht ändern - do not change!
$Link .= ob_get_clean();
//Inhaltsdatei
if (strpos($_SERVER['REQUEST_URI'] , '/gb/gbook_insert.php') !== false ) {
$Inhalt = $incpfad . 'gb/gbook_insert.php';
} else {
$Inhalt = $incpfad . 'gb/gbook.php';
}
//Seiten Title
$Title = $title = ' Gästebuch';
//Meta Daten
$keywords_content = 'Michael, Hegenbarth, walheim, heimat';
$description_content = 'Michael Hegenbarth: Bildausschnitte von meiner Heimat Walheim...';
$page_topic_content = "Informationen";
//ENDE
/* -- Stylset vom Gästebuch wird Hier angezeigt: -- */
$Link .= "
<style type=\"text/css\">
#text div.break {
clear: left;
/srv/http/carschrotter/mn-hegenbarth.de/www/index.php
$header = '';
if(DEBUG) {
error_reporting(E_ERROR);
ini_set('display_errors', 1);
} else {
ini_set('display_errors', 0);
}
// eine session starten
session_start();
#variablen.php wandelt die benötigten getvariablen in globale variablen um
require MNHcCML_INCLUDE."variablen.php";
require MNHcCML_INCLUDE. "load_function.php";
#hier wird das template system geladen
include('layout/tp_contentload.php');
if (file_exists('site_confic/' . $folder[1] . '_confic.php')) {
include('site_confic/' . $folder[1] . '_confic.php');
} elseif (empty($folder[1]) || $folder[1] == "home") {
$folder[1] = "index";
include('site_confic/index_confic.php');
} else {
$header .= "\n" . 'HTTP/1.0 404 Not Found';
include('site_confic/error_confic.php');
}
if (empty($tp_filename)) {
$tp_filename = "layout/tpl/layout_blue_v3.phtml";
}
if (empty($charset)) {
$charset = "UTF-8";
}
if (empty($languag)) {
$language = "de";
}