Changeset 190 for dev/common/home.php

Show
Ignore:
Timestamp:
03/16/07 17:12:55 (16 years ago)
Author:
exi
Message:

This is a big update...
Moved all admin scripts to common/admin.
Moved all includes and classes to common/includes.
Edited all include-paths to reflect the movement.
Fixed a bug with the session system allowing every registered user to access admin pages.
Replaced calls to date() to use a wrapper so gmdate can be used.
Replaced some calls to $config with calls to the static object.
Fixed a big which caused the portrait_grab to not download a new picute.
Added a classified-state to kills.
Removed the sync_server server script in this tree.
Added code to help modules find the includes to index.php.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/home.php

    r135 r190  
    11<?php 
    2 require_once("class.page.php"); 
    3 require_once("class.killsummarytable.php"); 
    4 require_once("class.box.php"); 
    5 require_once("class.corp.php"); 
    6 require_once("class.alliance.php"); 
    7 require_once("class.killlist.php"); 
    8 require_once("class.killlisttable.php"); 
    9 require_once("class.contract.php"); 
    10 require_once("class.graph.php"); 
    11 require_once("class.toplist.php"); 
     2require_once('common/includes/class.page.php'); 
     3require_once('common/includes/class.killsummarytable.php'); 
     4require_once('common/includes/class.corp.php'); 
     5require_once('common/includes/class.alliance.php'); 
     6require_once('common/includes/class.killlist.php'); 
     7require_once('common/includes/class.killlisttable.php'); 
     8require_once('common/includes/class.contract.php'); 
     9require_once('common/includes/class.toplist.php'); 
    1210 
    13 $week = date("W"); 
    14 $year = date("Y"); 
     11$week = kbdate('W'); 
     12$year = kbdate('Y'); 
    1513 
    16 $page = new Page("Week " . $week); 
     14$page = new Page('Week '.$week); 
    1715 
    1816$kslist = new KillList(); 
     
    4038if ($week == 1) 
    4139{ 
    42     $pyear = date("Y") - 1; 
     40    $pyear = kbdate("Y") - 1; 
    4341    $pweek = 52; 
    4442} 
    4543else 
    4644{ 
    47     $pyear = date("Y"); 
     45    $pyear = kbdate("Y"); 
    4846    $pweek = $week - 1; 
    4947}