mysqli_sql_exception (1045)
Access denied for user 'carschrotter_db'@'localhost' (using password: YES) mysqli_sql_exception thrown with message "Access denied for user 'carschrotter_db'@'localhost' (using password: YES)" Stacktrace: #4 mysqli_sql_exception in /srv/http/carschrotter/mn-hegenbarth.de/www/src/include/myPHP_Guestbook_4.10.3/includes/functions.inc.php:66 #3 mysqli:__construct in /srv/http/carschrotter/mn-hegenbarth.de/www/src/include/myPHP_Guestbook_4.10.3/includes/functions.inc.php:66 #2 require_once in /srv/http/carschrotter/mn-hegenbarth.de/www/src/include/myPHP_Guestbook_4.10.3/gbook.head.php:32 #1 include_once in /srv/http/carschrotter/mn-hegenbarth.de/www/site_confic/gb_confic.php:7 #0 include in /srv/http/carschrotter/mn-hegenbarth.de/www/index.php:32
Stack frames (5)
4
mysqli_sql_exception
/src/include/myPHP_Guestbook_4.10.3/includes/functions.inc.php66
3
mysqli __construct
/src/include/myPHP_Guestbook_4.10.3/includes/functions.inc.php66
2
require_once
/src/include/myPHP_Guestbook_4.10.3/gbook.head.php32
1
include_once
/site_confic/gb_confic.php7
0
include
/index.php32
/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&auml;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";
}
 

Environment & details:

Key Value
ordner1 gb
userlang
empty
empty
empty
empty
Key Value
REDIRECT_HTTPS on
REDIRECT_STATUS 200
HTTPS on
HTTP_HOST www.mn-hegenbarth.de
HTTP_X_FORWARDED_SCHEME https
HTTP_X_FORWARDED_PROTO https
HTTP_X_REAL_IP 3.227.239.160
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_REFERER http://www.mn-hegenbarth.de/gb/gaestbuch.php
PATH /usr/local/sbin:/usr/local/bin:/usr/bin
SERVER_SIGNATURE <address>Apache/2.4.58 (Unix) Server at www.mn-hegenbarth.de Port 443</address>
SERVER_SOFTWARE Apache/2.4.58 (Unix)
SERVER_NAME www.mn-hegenbarth.de
SERVER_ADDR 192.168.1.3
SERVER_PORT 443
REMOTE_ADDR 3.227.239.160
DOCUMENT_ROOT /srv/http/carschrotter/mn-hegenbarth.de/www
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /srv/http/carschrotter/mn-hegenbarth.de/www
SERVER_ADMIN you@example.com
SCRIPT_FILENAME /srv/http/carschrotter/mn-hegenbarth.de/www/index.php
REMOTE_PORT 41036
REDIRECT_URL /gb/gaestbuch.php
REDIRECT_QUERY_STRING ordner1=gb&
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING ordner1=gb&
REQUEST_URI /gb/gaestbuch.php
SCRIPT_NAME /index.php
PATH_INFO /
PATH_TRANSLATED /srv/http/carschrotter/mn-hegenbarth.de/www/index.php
PHP_SELF /index.php/
REQUEST_TIME_FLOAT 1711646120.9563
REQUEST_TIME 1711646120
empty
0. Whoops\Handler\PrettyPageHandler