コード例 #1
0
ファイル: Logout.php プロジェクト: SkysteedDevelopment/Deity
 public static function server()
 {
     // Log the user out of the server
     Cookie_Server::deleteAll();
     // Remove the Session Values
     unset($_SESSION['login']);
     unset($_SESSION['uni_id']);
     unset($_SESSION['user']);
 }
コード例 #2
0
ファイル: install.php プロジェクト: SkysteedDevelopment/Deity
<?php

// Destroy all cookies and sessions
Cookie_Server::deleteAll();
session_destroy();
unset($_SESSION);
unset($_COOKIE);
// Installation Header
require dirname(ROUTE_SECOND_PATH) . "/includes/install_header.php";
// Run Global Script
require dirname(ROUTE_SECOND_PATH) . "/includes/install_global.php";
// Display the Header
require dirname(ROUTE_SECOND_PATH) . "/includes/admin_header.php";
echo '
<h1>Installation</h1>
<p>Welcome to the installer! This installer will walk you through the necessary steps to set up your application (your site).</p>

<h3>Helpful Notes</h3>
<p>Here are a few helpful pointers that may help you understand certain elements of installation:</p>

<p>
<strong>User Handles:</strong>
<br />A "handle" (or "user handle") is the username of one of your UniFaction users (profiles). Handles are often indicated by a "@" sign, such as "@joesmith1" or "@spiderman", and are important for referencing other users on UniFaction.

<br /><br />To access one of your user handles, log into your UniFaction account and click on one of your users. The user that you click on should tell you what your handle is.

<br /><br />The installation will prompt you for your administrator handle. The user you choose (by entering it\'s handle) will be granted admin rights to your site.

<br /><br /><strong>Site Handles:</strong>
<br />A "site handle" is different than a "user handle". You can think of it like referencing your site rather than a UniFaction user. Your site handle will allow UniFaction (and other sites connected to UniFaction) to identify your site and interact with it.