C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\portal\top.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/////////////////////////////////////////////
//            Shadowed Portal              //
/////////////////////////////////////////////
//  Copyright (C) 2003 by Shadowed Works.  //
//  Please read our terms and conditions   //
//  at http://www.shad0wed.com/.           //
/////////////////////////////////////////////
//        !Donnot Edit This File!          //
/////////////////////////////////////////////
require("config.php");
$online 0;
$u_rank = -1;
require(
$root."/code.php");
if(
$xcode == "*") {
echo 
"Not installed.";
exit;
}
$code $xcode;
require(
$root."/globals.php");
require(
$root."/functions.php");
if((isset(
$rank_required)) || (isset($_GET['rank_required'])) || (isset($HTTP_POST_VARS['rank_required']))) {
derr("Variable <i>rank_required</i> cannot be set.");
exit;
}
require(
$root."/rank_required.php");
require(
$root."/includes/styles.php");
// Get Cookies //
$usr $HTTP_COOKIE_VARS[vusr];
$pwd $HTTP_COOKIE_VARS[vpwd];
//////////////////////////////
if(file_exists($root."/users/".strtolower($usr).".php")) {
require(
$root."/users/".strtolower($usr).".php");
}
if(
$online == 1) {
setcookie("vusr",$usr,time() + 31535999);
setcookie("vpwd",$pwd,time() + 31535999);
require(
$root."/users/".strtolower($usr).".php");
$user_online 1;
$login_time $t_minutes_f;
$remote_ip $_SERVER['REMOTE_ADDR'];
require(
$root."/user_info.php");
wf($root."/users/".strtolower($usr).".php","w",$user_info);
if((
$viv == "Profile") && ($do == "edit") && ($m == "go") && ($HTTP_POST_VARS['new_password'] != "")) {
$password md5($HTTP_POST_VARS['new_password']);
setcookie("vpwd",$password);
}
}
require(
$root."/users_recall.php");
require(
$root."/includes/set_vars.php");
require(
$root."/header.php");
if(
$hh_code != $xcode) {
echo 
add_url($header);
}
if((
$online == 1) && ($viv != "Logout")) {
echo 
"<center>Welcome <b>$usr</b>. [<a href=\"$url/control.php?act=logout\">Logout</a>]</center><br><br>";
}
?>