<?php /**************************************************************************** * Name: about.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: About page *****************************************************************************/ getGlobals_about($getPage_connection2); showTitle("About"); compileMenu($getPage_connection2, "about"); showWarning($getPage_connection2); showPageTitle($getPage_connection2, "About", false); showAboutInfo($getPage_connection2); require "section4.txt"; resetSession(true);
<?php /**************************************************************************** * Name: forum.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Forum page *****************************************************************************/ getGlobals_forum($getPage_connection2); showTitle("Forum"); compileMenu($getPage_connection2, "forum"); showWarning($getPage_connection2); showForumInfo($getPage_connection2); require "section4.txt"; resetSession(true);
<?php /**************************************************************************** * Name: info.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Info page *****************************************************************************/ if (count($_POST)) { getGlobals_info($getPage_connection2); performAction_info($getPage_connection2); getGlobals_info($getPage_connection2); header("Location: index.php?page=info"); exit; } else { getGlobals_info($getPage_connection2); showTitle("Info"); compileMenu($getPage_connection2, "info"); showWarning($getPage_connection2); showPageTitle($getPage_connection2, "Info", false); showInfoInfo($getPage_connection2); require "section4.txt"; resetSession(true); } // else
<?php /**************************************************************************** * Name: help.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Help page *****************************************************************************/ getGlobals_help($getPage_connection2); showTitle("Help"); compileMenu($getPage_connection2, "help"); showWarning($getPage_connection2); showHelpInfo($getPage_connection2); require "section4.txt"; resetSession(true);
<?php /**************************************************************************** * Name: admin.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Admin page *****************************************************************************/ if ($_SESSION["admin"] == 1) { if (count($_POST)) { getGlobals_admin($getPage_connection2); performAction_admin($getPage_connection2, $getPage_connection3); getGlobals_admin($getPage_connection2); header("Location: index.php?page=admin"); exit; } else { getGlobals_admin($getPage_connection2); showTitle("Admin"); compileMenu($getPage_connection2, "admin"); showWarning($getPage_connection2); showAdminInfo($getPage_connection2); require "section4.txt"; resetSession(true); } // else } else { echo "Illegal administration attempt: you do not have the required admin clearance to use this script."; } // else
<?php /**************************************************************************** * Name: terms.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Terms page *****************************************************************************/ getGlobals_terms($getPage_connection2); showTitle("Terms"); compileMenu($getPage_connection2, "terms"); showWarning($getPage_connection2); showPageTitle($getPage_connection2, "Terms and Conditions and Privacy Policy", false); showTermsInfo($getPage_connection2); require "section4.txt"; resetSession(true);
<?php /**************************************************************************** * Name: policies.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Policies page *****************************************************************************/ if (count($_POST)) { getGlobals_policies($getPage_connection2); performAction_policies($getPage_connection2); getGlobals_policies($getPage_connection2); header("Location: index.php?page=policies"); exit; } else { getGlobals_policies($getPage_connection2); showTitle("Policies"); compileMenu($getPage_connection2, "policies"); showWarning($getPage_connection2); showPoliciesInfo($getPage_connection2); require "section4.txt"; resetSession(true); } // else
<?php /**************************************************************************** * Name: organizations.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Organizations page *****************************************************************************/ if (count($_POST)) { getGlobals_organizations($getPage_connection2); performAction_organizations($getPage_connection2); getGlobals_organizations($getPage_connection2); header("Location: index.php?page=organizations"); exit; } else { getGlobals_organizations($getPage_connection2); showTitle("Organizations"); compileMenu($getPage_connection2, "organizations"); showWarning($getPage_connection2); showOrganizationsInfo($getPage_connection2); require "section4.txt"; resetSession(true); } // else
<?php /**************************************************************************** * Name: settings.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Settings page *****************************************************************************/ if (count($_POST)) { getGlobals_settings($getPage_connection2); performAction_settings($getPage_connection2); getGlobals_settings($getPage_connection2); header("Location: index.php?page=settings"); exit; } else { getGlobals_settings($getPage_connection2); showTitle("Settings"); compileMenu($getPage_connection2, "settings"); showWarning($getPage_connection2); showSettingsInfo($getPage_connection2); require "section4.txt"; resetSession(true); } // else
<?php /**************************************************************************** * Name: deactivate.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Deactivate page *****************************************************************************/ if (count($_POST)) { getGlobals_deactivate($getPage_connection2); performAction_deactivate($getPage_connection2); getGlobals_deactivate($getPage_connection2); header("Location: index.php?page=deactivate"); exit; } else { getGlobals_deactivate($getPage_connection2); showTitle("Deactivate"); compileMenu($getPage_connection2, "deactivate"); showWarning($getPage_connection2); showDeactivateInfo($getPage_connection2); require "section4.txt"; resetSession(true); } // else
<?php /**************************************************************************** * Name: map.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Map page *****************************************************************************/ if (count($_POST)) { getGlobals_map($getPage_connection2); performAction_map($getPage_connection2); getGlobals_map($getPage_connection2); header("Location: index.php?page=map"); exit; } else { getGlobals_map($getPage_connection2); showTitle("Map"); compileMenu($getPage_connection2, "map"); showWarning($getPage_connection2); showMap($getPage_connection2); showMapInfo($getPage_connection2); require "section4.txt"; resetSession(true); } // else
/**************************************************************************** * Name: home.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Home page *****************************************************************************/ if (count($_POST)) { getGlobals_home($getPage_connection2); performAction_home($getPage_connection2); getGlobals_home($getPage_connection2); header("Location: index.php?page=home"); exit; } else { if (count($_GET) > 1) { getGlobals_home($getPage_connection2); performAction_home($getPage_connection2); getGlobals_home($getPage_connection2); header("Location: index.php?page=home"); exit; } else { getGlobals_home($getPage_connection2); showTitle("Home"); compileMenu($getPage_connection2, "home"); showWarning($getPage_connection2); showHomeTitle($getPage_connection2); showHomeInfo($getPage_connection2); require "section4.txt"; resetSession(true); } } // else
<?php /**************************************************************************** * Name: trade.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Trade page *****************************************************************************/ if (count($_POST)) { getGlobals_trade($getPage_connection2); performAction_trade($getPage_connection2); getGlobals_trade($getPage_connection2); header("Location: index.php?page=trade"); exit; } else { getGlobals_trade($getPage_connection2); showTitle("Trade"); compileMenu($getPage_connection2, "trade"); showWarning($getPage_connection2); showTradeInfo($getPage_connection2); require "section4.txt"; resetSession(true); } // else
<?php /**************************************************************************** * Name: search.php * Author: Ben Barnes * Date: 2016-02-20 * Purpose: Search page *****************************************************************************/ if (count($_POST)) { getGlobals_search($getPage_connection2); performAction_search($getPage_connection2); getGlobals_search($getPage_connection2); header("Location: index.php?page=search"); exit; } else { getGlobals_search($getPage_connection2); showTitle("Search"); compileMenu($getPage_connection2, "search"); showWarning($getPage_connection2); showPageTitle($getPage_connection2, "Search", true); showSearchInfo($getPage_connection2); require "section4.txt"; resetSession(true); } // else