Gazelle/sections/userhistory/index.php

121 lines
2.4 KiB
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
/*****************************************************************
User history switch center
2013-02-22 08:00:24 +00:00
This page acts as a switch that includes the real user history pages (to keep
2011-03-28 14:21:28 +00:00
the root less cluttered).
2013-02-22 08:00:24 +00:00
enforce_login() is run here - the entire user history pages are off limits for
2011-03-28 14:21:28 +00:00
non members.
*****************************************************************/
//Include all the basic stuff...
enforce_login();
if ($_GET['action']) {
switch ($_GET['action']) {
case 'ips':
//Load IP history page
include('ip_history.php');
break;
case 'tracker_ips':
include('ip_tracker_history.php');
break;
case 'passwords':
//Load Password history page
include('password_history.php');
break;
case 'email':
//Load email history page
include('email_history.php');
break;
case 'email2':
//Load email history page
include('email_history2.php');
break;
case 'passkeys':
//Load passkey history page
include('passkey_history.php');
break;
case 'posts':
//Load ratio history page
include('post_history.php');
break;
case 'subscriptions':
// View subscriptions
require('subscriptions.php');
break;
case 'thread_subscribe':
require('thread_subscribe.php');
break;
2013-08-28 23:08:41 +00:00
case 'comments_subscribe':
require('comments_subscribe.php');
break;
2011-03-28 14:21:28 +00:00
case 'catchup':
require('catchup.php');
break;
case 'collage_subscribe':
require('collage_subscribe.php');
break;
case 'subscribed_collages':
require('subscribed_collages.php');
2013-02-07 08:00:47 +00:00
break;
case 'catchup_collages':
require('catchup_collages.php');
break;
case 'token_history':
require('token_history.php');
break;
case 'quote_notifications':
require('quote_notifications.php');
break;
2011-03-28 14:21:28 +00:00
default:
//You trying to mess with me query string? To the home page with you!
header('Location: index.php');
}
}
/* Database Information Regarding This Page
users_history_ips:
id (auto_increment, index)
userid (index)
ip (stored using ip2long())
timestamp
2013-02-22 08:00:24 +00:00
2011-03-28 14:21:28 +00:00
users_history_passwd:
id (auto_increment, index)
userid (index)
changed_by (index)
old_pass
new_pass
timestamp
users_history_email:
id (auto_increment, index)
userid (index)
changed_by (index)
old_email
new_email
timestamp
users_history_passkey:
id (auto_increment, index)
userid (index)
changed_by (index)
old_passkey
new_passkey
timestamp
2013-02-22 08:00:24 +00:00
2011-03-28 14:21:28 +00:00
users_history_stats:
id (auto_increment, index)
userid (index)
uploaded
downloaded
ratio
timestamp
*/
?>