Hack # |
Purpose (more-or-less in alphabetical order) |
File |
Change |
Contributor |
|
Footer
To add my own Footer, below that stock GBook footer
Included in my footer are the following:
|
-
Copyright
-
Google reCAPTCHA v3
-
Hosting Banner
-
TOP button
-
Tracking (phpWebStat)
|
|
footer.php
|
The footer file that comes with GBook is empty:
|
|
|
|
Add these lines in red:
|
|
<?php
if
($_SERVER['REMOTE_ADDR'] == "192.168.2.1") {
include 'D:\Web\_common\_globals\jmm_global_footer.php';
echo '<br>';
include 'D:\Web\_common\_globals\jmm_global_banner_hosting.php';
include 'D:\Web\_common\_globals\jmm_global_tracker_phpwebstats.php';
include 'D:\Web\_common\_globals\jmm_global_code_red-button.php';
include 'D:\Web\_common\_globals\jmm_global_google_recaptcha.php';
} elseif
($_SERVER['REMOTE_ADDR'] != "192.168.2.1") {
include "/home/panauro1/public_html/common/_globals/jmm_global_footer.php";
echo '<br>';
include "/home/panauro1/public_html/common/_globals/jmm_global_banner_hosting.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_tracker_phpwebstats.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_code_red-button.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_google_recaptcha.php";
echo '<br>';
?>
|
|
Figured it out
by myself
|
1 |
Copyright
To add Copyright information
|
footer.php
|
The line(s) in red pertain to the Copyright:
|
|
<?php
if
($_SERVER['REMOTE_ADDR'] == "192.168.2.1") {
include 'D:\Web\_common\_globals\jmm_global_footer.php';
echo '<br>';
include 'D:\Web\_common\_globals\jmm_global_banner_hosting.php';
include 'D:\Web\_common\_globals\jmm_global_tracker_phpwebstats.php';
include 'D:\Web\_common\_globals\jmm_global_code_red-button.php';
include 'D:\Web\_common\_globals\jmm_global_google_recaptcha.php';
} elseif
($_SERVER['REMOTE_ADDR'] != "192.168.2.1") {
include "/home/panauro1/public_html/common/_globals/jmm_global_footer.php";
echo '<br>';
include "/home/panauro1/public_html/common/_globals/jmm_global_banner_hosting.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_tracker_phpwebstats.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_code_red-button.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_google_recaptcha.php";
echo '<br>';
?>
|
|
Figured it out
by myself
|
2 |
Google reCAPTCHA v3
To enable Google reCAPTCHA v3 for GBook Guestbook
|
footer.php
|
The line(s) in red pertain to reCAPTCHA:
|
|
<?php
if
($_SERVER['REMOTE_ADDR'] == "192.168.2.1") {
include 'D:\Web\_common\_globals\jmm_global_footer.php';
echo '<br>';
include 'D:\Web\_common\_globals\jmm_global_banner_hosting.php';
include 'D:\Web\_common\_globals\jmm_global_tracker_phpwebstats.php';
include 'D:\Web\_common\_globals\jmm_global_code_red-button.php';
include 'D:\Web\_common\_globals\jmm_global_google_recaptcha.php';
} elseif
($_SERVER['REMOTE_ADDR'] != "192.168.2.1") {
include "/home/panauro1/public_html/common/_globals/jmm_global_footer.php";
echo '<br>';
include "/home/panauro1/public_html/common/_globals/jmm_global_banner_hosting.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_tracker_phpwebstats.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_code_red-button.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_google_recaptcha.php";
echo '<br>';
?>
|
|
Figured it out
by myself
|
3 |
Hosting Banner
To add a Hosting Banner to the footer
|
footer.php
|
The line(s) in red pertain to the BANNER:
|
|
<?php
if
($_SERVER['REMOTE_ADDR'] == "192.168.2.1") {
include 'D:\Web\_common\_globals\jmm_global_footer.php';
echo '<br>';
include 'D:\Web\_common\_globals\jmm_global_banner_hosting.php';
include 'D:\Web\_common\_globals\jmm_global_tracker_phpwebstats.php';
include 'D:\Web\_common\_globals\jmm_global_code_red-button.php';
include 'D:\Web\_common\_globals\jmm_global_google_recaptcha.php';
} elseif
($_SERVER['REMOTE_ADDR'] != "192.168.2.1") {
include "/home/panauro1/public_html/common/_globals/jmm_global_footer.php";
echo '<br>';
include "/home/panauro1/public_html/common/_globals/jmm_global_banner_hosting.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_tracker_phpwebstats.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_code_red-button.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_google_recaptcha.php";
echo '<br>';
?>
|
|
Figured it out
by myself
|
4 |
TOP button
To place a red TOP button in the bottom-left corned of the page
|
footer.php
|
The line(s) in red pertain to the TOP button:
|
|
<?php
if
($_SERVER['REMOTE_ADDR'] == "192.168.2.1") {
include 'D:\Web\_common\_globals\jmm_global_footer.php';
echo '<br>';
include 'D:\Web\_common\_globals\jmm_global_banner_hosting.php';
include 'D:\Web\_common\_globals\jmm_global_tracker_phpwebstats.php';
include 'D:\Web\_common\_globals\jmm_global_code_red-button.php';
include 'D:\Web\_common\_globals\jmm_global_google_recaptcha.php';
} elseif
($_SERVER['REMOTE_ADDR'] != "192.168.2.1") {
include "/home/panauro1/public_html/common/_globals/jmm_global_footer.php";
echo '<br>';
include "/home/panauro1/public_html/common/_globals/jmm_global_banner_hosting.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_tracker_phpwebstats.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_code_red-button.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_google_recaptcha.php";
echo '<br>';
?>
|
|
Figured it out
by myself
|
5 |
Tracking (phpWebStat)
To track GBook access using phpWebStat
|
footer.php
|
The line(s) in red pertain to phpWebStat:
|
|
<?php
if
($_SERVER['REMOTE_ADDR'] == "192.168.2.1") {
include 'D:\Web\_common\_globals\jmm_global_footer.php';
echo '<br>';
include 'D:\Web\_common\_globals\jmm_global_banner_hosting.php';
include 'D:\Web\_common\_globals\jmm_global_tracker_phpwebstats.php';
include 'D:\Web\_common\_globals\jmm_global_code_red-button.php';
include 'D:\Web\_common\_globals\jmm_global_google_recaptcha.php';
} elseif
($_SERVER['REMOTE_ADDR'] != "192.168.2.1") {
include "/home/panauro1/public_html/common/_globals/jmm_global_footer.php";
echo '<br>';
include "/home/panauro1/public_html/common/_globals/jmm_global_banner_hosting.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_tracker_phpwebstats.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_code_red-button.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_google_recaptcha.php";
echo '<br>';
?>
|
|
Figured it out
by myself
|