Home Page Encrypted Messenger PHP

Home Page

Encrypted Messenger PHP

A home page is generally the main page a visitor navigating to a website from a web search engine will see, and it may also serve as a landing page to attract visitors.
The home page is used to facilitate navigation to other pages on the site by providing links to prioritized and recent articles and pages, and possibly a search box.
For example, a news website may present headlines and first paragraphs of top stories, with links to full articles, in a dynamic web page that reflects the popularity and recentness of stories.
Meanwhile, other websites use the homepage to attract users to create an account.
Once they are logged in, the homepage may be redirected to their profile page.
This may in turn be referred to as the “personal home page”.

The die() function prints a message and exits the current script.
This function is an alias of the exit() function.


The set_error_handler() function sets a user-defined error handler function.
The standard PHP error handler is completely bypassed if this function is used, and the user-defined error handler must terminate the script, die(), if necessary.
If errors occur before the script is executed the custom error handler cannot be used since it is not registered at that time.


A session is started with the session_start() function.
Session variables are set with the PHP global variable: $_SESSION.

Create a file named index.php

function secured_error () { die("Secured By Omid Bahrami"); }

require '../secured/secured-structure.php';
require '../secured/secured-database.php';
require '../secured/secured-encryption.php';
require '../secured/secured-validation.php';

<div class="jumbotron">
<?php gns_welcome(); ?>
<?php gns_foot(); ?>

Full structure is available at Encrypted Messenger PHP