PHP Classes

eXperience GuestBook: Application for users to send guestbook messages

Recommend this page to a friend!
  Info   View files Example   View files View files (170)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-12-26 (11 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 30 This week: 1All time: 10,940 This week: 256Up
Version License PHP version Categories
experience-guestbook 1.0Custom (specified...8PHP 5, Content management, Applications
Description 

Author

This package provides an application for users to send guestbook messages.

It presents Web pages allowing users to enter messages and their email address and country that will be stored in a MySQL database.

The application can also list the messages entered by the users replacing smiley characters with the respective icons.

Picture of Luca Liscio
  Performance   Level  
Name: Luca Liscio <contact>
Classes: 4 packages by
Country: Italy Italy
Age: 42
All time rank: 4138167 in Italy Italy
Week rank: 223 Up4 in Italy Italy Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php
   
/*
     * index.php
     *
     * __ __ _
     * ___\ \/ /_ __ ___ _ __(_) ___ _ __ ___ ___
     * / _ \\ /| '_ \ / _ \ '__| |/ _ \ '_ \ / __/ _ \
     * | __// \| |_) | __/ | | | __/ | | | (_| __/
     * \___/_/\_\ .__/ \___|_| |_|\___|_| |_|\___\___|
     * |_| HZKnight free PHP Scripts
     *
     * lucliscio <lucliscio@h0model.org>, ITALY
     *
     * GuestBook Ver.1.0.0
     *
     * -------------------------------------------------------------------------------------------
     * Lincense
     * -------------------------------------------------------------------------------------------
     * Copyright (C)2022 HZKnight
     *
     * This program is free software: you can redistribute it and/or modify
     * it under the terms of the GNU Affero 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 Affero General Public License for more details.
     *
     * You should have received a copy of the GNU Affero General Public License
     * along with this program. If not, see <http://www.gnu.org/licenses/agpl-3.0.html>.
     * -------------------------------------------------------------------------------------------
     */

    /**
     * Modulo di avvio dell'applicazione.
     *
     * @author lucliscio <lucliscio@h0model.org>
     * @version v 1.0.0
     * @copyright Copyright 2022 HZKnight
     * @license http://www.gnu.org/licenses/agpl-3.0.html GNU/AGPL3
     *
     * @package eXperience
     * @filesource
     */

    //Request
   
require_once "env/config.class.php";
    require
"env/exceptions.def.php";
    require_once
"env/dbmanager.class.php";
    require
"env/rain.tpl.class.php";
    require
"env/httprequest.class.php";
    require
"env/controller.class.php";
    require
"env/php7support.inc.php";
   
    include
"assets/lang/it_IT.php"; //default language
  
   
   
$config;
   
$db;
   
$view;
     
    try{
      
       
$config = new Config("./config.json");
       
$db = new DbManager($config->get_param('database'));
       
$req = new HttpRequest();
       
$app = new Controller();
      
       
RainTPL::$tpl_ext = "tpl";
       
RainTPL::$tpl_dir = "assets/templates/";
       
RainTPL::$cache_dir = "temp/templates_c/";
       
RainTPL::$path_replace = false;
       
$view = new RainTPL();
      
       
$view->assign("base_path", get_basePath());
       
$view->assign("ver", $config->get_param("version"));
       
$view->assign("title", $config->get_param("title"));
      
       
//Verifico se devo aggiungere l'action di default
       
if(!$req->has("action")){
           
$req->setParam("action", "guestbook");
        }

       
//Avvio l'aplicazione
       
$app->doService($req);
          
    } catch (
ConfigException $ex) {
        echo
$ex->getCode()." - ".$ex->getMessage()."<br><pre>".$ex->getTraceAsString()."</pre>";
    } catch (
PDOException $ex) {
        echo
$ex->getCode()." - ".$ex->getMessage()."<br><pre>".$ex->getTraceAsString()."</pre>";
    } catch (
Exception $ex) {
        echo
$ex->getCode()." - ".$ex->getMessage()."<br><pre>".$ex->getTraceAsString()."</pre>";
    }

    function
get_basePath(){
        return (
dirname($_SERVER['PHP_SELF']) == "/") ? dirname($_SERVER['PHP_SELF']) : dirname($_SERVER['PHP_SELF'])."/";
    }
?>


Details

#eXperiance GuestBook

Experience-GuestBook Release Pre-release) Lincense Issue Code Climate Open Source Love

Lincenses

  • eXperience GuestBook code 2022 by HZKnight is licensed under AGPL 3.0
  • eXperience GuestBook User Guide and all related documentation 2022 by HZKnight is licensed under CC BY 4.0

Descriprion

A small PHP Guestbook

Docker image: https://hub.docker.com/r/h0model/experience-guestbook


  Files folder image Files  
File Role Description
Files folder image.github (1 directory)
Files folder image.vscode (1 file)
Files folder imagedoc (36 files, 1 directory)
Files folder imageDocker (4 files)
Files folder imagesrc (4 files, 5 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file Dockerfile Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .github  
File Role Description
Files folder imageworkflows (1 file)

  Files folder image Files  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file php.yml Data Auxiliary data

  Files folder image Files  /  .vscode  
File Role Description
  Accessible without login Plain text file launch.json Data Auxiliary data

  Files folder image Files  /  doc  
File Role Description
Files folder imageresources (11 files)
  Accessible without login HTML file 404.html Doc. Documentation
  Accessible without login HTML file class-Config.html Doc. Documentation
  Accessible without login HTML file class-ConfigException.html Doc. Documentation
  Accessible without login HTML file class-Controller.html Doc. Documentation
  Accessible without login HTML file class-DbManager.html Doc. Documentation
  Accessible without login HTML file class-Exception.html Doc. Documentation
  Accessible without login HTML file class-home.html Doc. Documentation
  Accessible without login HTML file class-HttpRequest.html Doc. Documentation
  Accessible without login HTML file class-PDOException.html Doc. Documentation
  Accessible without login HTML file class-RainTPL.html Doc. Documentation
  Accessible without login HTML file class-RainTpl_Exception.html Doc. Documentation
  Accessible without login HTML file class-RainTpl_NotFoundException.html Doc. Documentation
  Accessible without login HTML file class-RainTpl_SyntaxException.html Doc. Documentation
  Accessible without login HTML file class-Result.html Doc. Documentation
  Accessible without login HTML file class-RuntimeException.html Doc. Documentation
  Accessible without login HTML file class-send.html Doc. Documentation
  Accessible without login Plain text file elementlist.js Data Auxiliary data
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login HTML file package-HZGuestBook.Env.html Doc. Documentation
  Accessible without login HTML file package-HZGuestBook.html Doc. Documentation
  Accessible without login HTML file package-None.html Doc. Documentation
  Accessible without login HTML file package-PHP.html Doc. Documentation
  Accessible without login HTML file package-rubrica.html Doc. Documentation
  Accessible without login HTML file source-class-Config.html Doc. Documentation
  Accessible without login HTML file source-class-ConfigException.html Doc. Documentation
  Accessible without login HTML file source-class-Controller.html Doc. Documentation
  Accessible without login HTML file source-class-DbManager.html Doc. Documentation
  Accessible without login HTML file source-class-home.html Doc. Documentation
  Accessible without login HTML file source-class-HttpRequest.html Doc. Documentation
  Accessible without login HTML file source-class-RainTPL.html Doc. Documentation
  Accessible without login HTML file source-class-RainTpl_Exception.html Doc. Documentation
  Accessible without login HTML file source-class-RainT...FoundException.html Doc. Documentation
  Accessible without login HTML file source-class-RainT...yntaxException.html Doc. Documentation
  Accessible without login HTML file source-class-Result.html Doc. Documentation
  Accessible without login HTML file source-class-send.html Doc. Documentation
  Accessible without login HTML file tree.html Doc. Documentation

  Files folder image Files  /  doc  /  resources  
File Role Description
  Accessible without login Image file collapsed.png Icon Icon image
  Accessible without login Plain text file combined.js Data Auxiliary data
  Accessible without login Image file footer.png Data Auxiliary data
  Accessible without login Image file inherit.png Icon Icon image
  Accessible without login Image file resize.png Icon Icon image
  Accessible without login Image file sort.png Icon Icon image
  Accessible without login Plain text file style.css Data Auxiliary data
  Accessible without login Image file tree-cleaner.png Icon Icon image
  Accessible without login Image file tree-hasnext.png Icon Icon image
  Accessible without login Image file tree-last.png Data Auxiliary data
  Accessible without login Image file tree-vertical.png Icon Icon image

  Files folder image Files  /  Docker  
File Role Description
  Accessible without login Plain text file 000-default.conf Data Auxiliary data
  Accessible without login Plain text file config.json Data Auxiliary data
  Accessible without login Plain text file hzsystem.sql Data Auxiliary data
  Accessible without login Plain text file start-apache.sh Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageassets (3 directories)
Files folder imageenv (8 files)
Files folder imageinstall (1 file)
Files folder imagejob (1 directory)
Files folder imagejs (3 files)
  Accessible without login Plain text file config.json Data Auxiliary data
  Accessible without login Image file favicon.ico Data Auxiliary data
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Plain text file script.js Data Auxiliary data

  Files folder image Files  /  src  /  assets  
File Role Description
Files folder imageimages (49 files, 1 directory)
Files folder imagelang (1 file)
Files folder imagetemplates (1 file, 4 directories)

  Files folder image Files  /  src  /  assets  /  images  
File Role Description
Files folder imageicons_128x128 (32 files)
  Accessible without login Image file 47_47.png Icon Icon image
  Accessible without login Image file 48_48.png Icon Icon image
  Accessible without login Image file 49_49.png Icon Icon image
  Accessible without login Image file 50_50.png Icon Icon image
  Accessible without login Image file 51_51.png Icon Icon image
  Accessible without login Image file 52_52.png Icon Icon image
  Accessible without login Image file 71_71.png Icon Icon image
  Accessible without login Image file 72_72.png Icon Icon image
  Accessible without login Image file 74_74.png Icon Icon image
  Accessible without login Image file 75_75.png Icon Icon image
  Accessible without login Image file 77_77.png Icon Icon image
  Accessible without login Image file angel_smile.png Icon Icon image
  Accessible without login Image file angry_smile.png Icon Icon image
  Accessible without login Image file back.jpg Icon Icon image
  Accessible without login Image file bigsmile.png Icon Icon image
  Accessible without login Image file browser.gif Icon Icon image
  Accessible without login Image file calendar.png Icon Icon image
  Accessible without login Image file calentario20x20.png Icon Icon image
  Accessible without login Image file cat.png Icon Icon image
  Accessible without login Image file confused.png Icon Icon image
  Accessible without login Image file cry_smile.png Icon Icon image
  Accessible without login Image file devil_smile.gif Icon Icon image
  Accessible without login Image file devil_smile.png Icon Icon image
  Accessible without login Image file dog.png Icon Icon image
  Accessible without login Image file emoji_u1f973.png Icon Icon image
  Accessible without login Image file guestbook.png Icon Icon image
  Accessible without login Image file help.gif Icon Icon image
  Accessible without login Image file home.gif Icon Icon image
  Accessible without login Image file lavoro5.gif Icon Icon image
  Accessible without login Image file lente.gif Icon Icon image
  Accessible without login Image file mail.png Icon Icon image
  Accessible without login Image file menu-sfondo-blu.png Icon Icon image
  Accessible without login Image file moon.png Icon Icon image
  Accessible without login Image file nation.png Icon Icon image
  Accessible without login Image file new002.GIF Icon Icon image
  Accessible without login Image file omg.png Icon Icon image
  Accessible without login Image file preferiti.gif Icon Icon image
  Accessible without login Image file print.gif Icon Icon image
  Accessible without login Image file red_smile.png Icon Icon image
  Accessible without login Image file sad_smile.png Icon Icon image
  Accessible without login Image file sfondo.png Data Auxiliary data
  Accessible without login Image file shades_smile.png Icon Icon image
  Accessible without login Image file smile.png Icon Icon image
  Accessible without login Image file toung.png Icon Icon image
  Accessible without login Image file transparent.gif Icon Icon image
  Accessible without login Image file user.png Icon Icon image
  Accessible without login Image file utenti.gif Icon Icon image
  Accessible without login Image file what_smile.png Icon Icon image
  Accessible without login Image file wink.png Icon Icon image

  Files folder image Files  /  src  /  assets  /  images  /  icons_128x128  
File Role Description
  Accessible without login Image file 47_47.png Icon Icon image
  Accessible without login Image file 48_48.png Icon Icon image
  Accessible without login Image file 49_49.png Icon Icon image
  Accessible without login Image file 50_50.png Icon Icon image
  Accessible without login Image file 51_51.png Icon Icon image
  Accessible without login Image file 52_52.png Icon Icon image
  Accessible without login Image file 71_71.png Icon Icon image
  Accessible without login Image file 72_72.png Icon Icon image
  Accessible without login Image file 75_75.png Icon Icon image
  Accessible without login Image file 77_77.png Icon Icon image
  Accessible without login Image file angel_smile.png Icon Icon image
  Accessible without login Image file angry_smile.png Icon Icon image
  Accessible without login Image file bigsmile.png Icon Icon image
  Accessible without login Image file calendar.png Icon Icon image
  Accessible without login Image file cat.png Icon Icon image
  Accessible without login Image file confused.png Icon Icon image
  Accessible without login Image file cry_smile.png Icon Icon image
  Accessible without login Image file devil_smile.png Icon Icon image
  Accessible without login Image file dog.png Icon Icon image
  Accessible without login Image file emoji_u1f973.png Icon Icon image
  Accessible without login Image file mail.png Icon Icon image
  Accessible without login Image file moon.png Icon Icon image
  Accessible without login Image file nation.png Icon Icon image
  Accessible without login Image file omg.png Icon Icon image
  Accessible without login Image file red_smile.png Icon Icon image
  Accessible without login Image file sad_smile.png Icon Icon image
  Accessible without login Image file shades_smile.png Icon Icon image
  Accessible without login Image file smile.png Icon Icon image
  Accessible without login Image file toung.png Icon Icon image
  Accessible without login Image file user.png Icon Icon image
  Accessible without login Image file what_smile.png Icon Icon image
  Accessible without login Image file wink.png Icon Icon image

  Files folder image Files  /  src  /  assets  /  lang  
File Role Description
  Accessible without login Plain text file it_IT.php Aux. Auxiliary script

  Files folder image Files  /  src  /  assets  /  templates  
File Role Description
Files folder imagecss (4 files)
Files folder imagedefault (2 files)
Files folder imagefonts (2 files)
Files folder imageguestbook (3 files)
  Accessible without login Plain text file main.tpl Data Auxiliary data

  Files folder image Files  /  src  /  assets  /  templates  /  css  
File Role Description
  Accessible without login Plain text file bootstrap.min.css Data Auxiliary data
  Accessible without login Plain text file bootstrap.min.css.map Data Auxiliary data
  Accessible without login Plain text file hzgrid.css Data Auxiliary data
  Accessible without login Plain text file stile.css Data Auxiliary data

  Files folder image Files  /  src  /  assets  /  templates  /  default  
File Role Description
  Accessible without login Plain text file footer.tpl Data Auxiliary data
  Accessible without login Plain text file header.tpl Data Auxiliary data

  Files folder image Files  /  src  /  assets  /  templates  /  fonts  
File Role Description
  Accessible without login Plain text file jacky.fnt.css Data Auxiliary data
  Accessible without login Plain text file jack_armstrong-webfont.svg Data Auxiliary data

  Files folder image Files  /  src  /  assets  /  templates  /  guestbook  
File Role Description
  Accessible without login Plain text file header.tpl Data Auxiliary data
  Accessible without login Plain text file post.tpl Data Auxiliary data
  Accessible without login Plain text file send.tpl Data Auxiliary data

  Files folder image Files  /  src  /  env  
File Role Description
  Plain text file config.class.php Class Class source
  Plain text file controller.class.php Class Class source
  Plain text file dbmanager.class.php Class Class source
  Plain text file exceptions.def.php Class Class source
  Plain text file httprequest.class.php Class Class source
  Accessible without login Plain text file php7support.inc.php Example Example script
  Accessible without login Plain text file phpinfo.php Aux. Auxiliary script
  Plain text file rain.tpl.class.php Class Class source

  Files folder image Files  /  src  /  install  
File Role Description
  Accessible without login Plain text file table_definition.sql Data Auxiliary data

  Files folder image Files  /  src  /  job  
File Role Description
Files folder imageguestbook (2 files, 1 directory)

  Files folder image Files  /  src  /  job  /  guestbook  
File Role Description
Files folder imageincludes (1 file)
  Plain text file home.class.php Class Class source
  Plain text file send.class.php Class Class source

  Files folder image Files  /  src  /  job  /  guestbook  /  includes  
File Role Description
  Plain text file share.class.php Class Class source

  Files folder image Files  /  src  /  js  
File Role Description
  Accessible without login Plain text file bootstrap.bundle.min.js Data Auxiliary data
  Accessible without login Plain text file bootstrap.bundle.min.js.map Data Auxiliary data
  Accessible without login Plain text file clock.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:30
This week:1
All time:10,940
This week:256Up