Changeset 190
- Timestamp:
- 03/16/07 17:12:55 (15 years ago)
- Location:
- dev
- Files:
-
- 62 added
- 58 removed
- 39 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/README.txt
r139 r190 1 This is the EDK - EVE Development Network Killboard v1. 21 This is the EDK - EVE Development Network Killboard v1.3 - Tigerduck Memorial Edition 2 2 3 3 Check out the EVE-Development Network for support, 4 4 bugfixes and new versions at www.eve-dev.net... 5 5 Developers wanted! 6 If you'd like to cont ibute to further version of this killboard, sign up for the EVE-Dev forums!6 If you'd like to contribute to further version of this killboard, sign up for the EVE-Dev forums! 7 7 8 8 Requirements: -
dev/common/about.php
r98 r190 1 1 <?php 2 require_once("db.php"); 3 require_once("class.page.php"); 4 require_once("class.ship.php"); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.ship.php'); 5 4 6 $page = new Page( "About");5 $page = new Page('About'); 7 6 8 $html .= "<div class=block-header2>The Killboard</div>"; 7 // i store the names here for an easy edit 8 $developer = array('exi (Lead Developer)', 9 'knifee (Developer)', 10 'Andrew Gunn (Siteadmin)', 11 'Ganja (Fluff girl)'); 12 13 $contributor = array('JaredC01', 14 'liquidism', 15 'ralle030583', 16 'Mitchman', 17 'Coni', 18 'beansman'); 19 sort($contributor); 20 21 $html .= '<div class=block-header2>The Killboard</div>'; 9 22 10 23 // Please leave the information on the next line as is so that other people can easily find the EVE-Dev website. 11 24 // Remember to share any modifications to the EVE-Dev Killboard. 12 $html .= "This is the EVE Development Network Killboard running version 1.2, created for <a href=\"http://www.eve-online.com/\">EVE Online</a> corporations and alliances.<br/>Based on the EVE-Killboard created by <a href=\"mailto:rig0r@eve-killboard.net\">rig0r</a> it is now developed and maintained by the <a href=\"http://www.eve-dev.net/\">EVE-Dev</a> group.<br/>All EVE graphics and data used are property of <a href=\"http://www.ccpgames.com/\">CCP</a>.<br/><br/>"; 25 $html .= "This is the EVE Development Network Killboard running version 1.3 (Tigerduck Memorial Edition), created for <a href=\"http://www.eve-online.com/\">EVE Online</a> corporations and alliances.<br/>" 26 ."Based on the EVE-Killboard created by <a href=\"mailto:rig0r@eve-killboard.net\">rig0r</a> it is now developed and maintained by the <a href=\"http://www.eve-dev.net/\">EVE-Dev</a> group.<br/>" 27 ."All EVE graphics and data used are property of <a href=\"http://www.ccpgames.com/\">CCP</a>.<br/><br/>"; 28 $html .= '<a href="http://www.eve-dev.net/" target="_blank"><img src="http://www.eve-dev.net/e107_images/evedev_button.png" border="0"/></a><br/><br/>'; 29 30 $html .= '<b>Staff:</b><br/>'; 31 $html .= join(', ', $developer); 32 $html .= '<br/><br/><b>Contributors:</b><br/>'; 33 $html .= join(', ', $contributor); 34 $html .= '<br/><br/>'; 35 13 36 $qry = new DBQuery(); 14 37 $qry->execute("select count(*) as cnt from kb3_kills"); … … 27 50 $row = $qry->getRow(); 28 51 $alliances = $row['cnt']; 52 29 53 // $html .= "<div class=block-header2>Killboard stats</div>"; 30 54 $html .= "This killboard currently contains: <b>" . number_format($kills, 0, ',', '.') . "</b> killmails, <b>" . number_format($items, 0, ',', '.') . "</b> destroyed items, <b>" . number_format($pilots, 0, ',', '.') . "</b> pilots, <b>" . number_format($corps, 0, ',', '.') . "</b> corporations and <b>" . number_format($alliances, 0, ',', '.') . "</b> alliances.<br><br>"; 31 $html .= '<a href="http://www.eve-dev.net/" target="_blank"><img src="http://www.eve-dev.net/e107_images/evedev_button.png" border="0"/></a><br/><br/>';32 55 33 56 $html .= "<div class=block-header2>Portraits</div>"; … … 85 108 } 86 109 87 if ( $config->getConfig('ship_values'))110 if (config::get('ship_values')) 88 111 { 89 112 $sql = 'select kbs.shp_id as id, shp.shp_name, kbs.shp_value, -
dev/common/alliance_detail.php
r172 r190 1 1 <?php 2 require_once("db.php"); 3 require_once("class.page.php"); 4 require_once("class.corp.php"); 5 require_once("class.alliance.php"); 6 require_once("class.killlist.php"); 7 require_once("class.killlisttable.php"); 8 require_once("class.killsummarytable.php"); 9 require_once("class.box.php"); 10 require_once("class.toplist.php"); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.corp.php'); 4 require_once('common/includes/class.alliance.php'); 5 require_once('common/includes/class.killlist.php'); 6 require_once('common/includes/class.killlisttable.php'); 7 require_once('common/includes/class.killsummarytable.php'); 8 require_once('common/includes/class.toplist.php'); 11 9 12 10 $all_id = $_GET['all_id']; 13 11 $alliance = new Alliance(intval($all_id)); 14 $page = new Page( "Alliance details - " .$alliance->getName());12 $page = new Page('Alliance details - '.$alliance->getName()); 15 13 16 14 $html .= "<table class=kb-table width=\"100%\" border=\"0\" cellspacing=1><tr class=kb-table-row-even><td rowspan=8 width=128 align=center bgcolor=black>"; … … 129 127 $list->addInvolvedAlliance($alliance); 130 128 $list->setPodsNoobShips(false); 131 $list->setMonth( date("m"));132 $list->setYear( date("Y"));129 $list->setMonth(kbdate("m")); 130 $list->setYear(kbdate("Y")); 133 131 $table = new TopCorpTable($list, "Kills"); 134 132 $html .= $table->generate(); … … 155 153 $list->addVictimAlliance($alliance); 156 154 $list->setPodsNoobShips(false); 157 $list->setMonth( date("m"));158 $list->setYear( date("Y"));155 $list->setMonth(kbdate("m")); 156 $list->setYear(kbdate("Y")); 159 157 $table = new TopCorpTable($list, "Losses"); 160 158 $html .= $table->generate(); … … 181 179 $list->addInvolvedAlliance($alliance); 182 180 $list->setPodsNoobShips(false); 183 $list->setMonth( date("m"));184 $list->setYear( date("Y"));181 $list->setMonth(kbdate("m")); 182 $list->setYear(kbdate("Y")); 185 183 $table = new TopPilotTable($list, "Kills"); 186 184 $html .= $table->generate(); … … 207 205 $list->addInvolvedAlliance($alliance); 208 206 $list->setPodsNoobShips(true); 209 $list->setMonth( date("m"));210 $list->setYear( date("Y"));207 $list->setMonth(kbdate("m")); 208 $list->setYear(kbdate("Y")); 211 209 $table = new TopPilotTable($list, "Points"); 212 210 $html .= $table->generate(); … … 233 231 $list->addVictimAlliance($alliance); 234 232 $list->setPodsNoobShips(false); 235 $list->setMonth( date("m"));236 $list->setYear( date("Y"));233 $list->setMonth(kbdate("m")); 234 $list->setYear(kbdate("Y")); 237 235 $table = new TopPilotTable($list, "Losses"); 238 236 $html .= $table->generate(); … … 285 283 $sql .= " and inv.ind_all_id = ".$all_id; 286 284 287 $sql .= " and date_format( kll.kll_timestamp, \"%c\" ) = ". date("m")."288 and date_format( kll.kll_timestamp, \"%Y\" ) = ". date("Y")."285 $sql .= " and date_format( kll.kll_timestamp, \"%c\" ) = ".kbdate("m")." 286 and date_format( kll.kll_timestamp, \"%Y\" ) = ".kbdate("Y")." 289 287 group by sys.sys_name 290 288 order by kills desc -
dev/common/awards.php
r104 r190 1 <? 2 require_once( "class.page.php" ); 3 require_once( "class.box.php" ); 4 require_once( "class.toplist.php" ); 5 6 $page = new Page( "Awards" ); 1 <?php 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.toplist.php'); 7 4 8 $month = $_GET['m']; 9 $year = $_GET['y']; 10 11 if ( $month == "" ) 12 $month = date( "m" ) - 1; 13 14 if ( $year == "" ) 15 $year = date( "Y" ); 5 $page = new Page('Awards'); 16 6 17 if ( $month == 0 ) { 7 $month = $_GET['m']; 8 $year = $_GET['y']; 9 10 if ($month == '') 11 $month = kbdate('m') - 1; 12 13 if ($year == '') 14 $year = kbdate('Y'); 15 16 if ($month == 0) 17 { 18 18 $month = 12; 19 19 $year = $year - 1; 20 } 21 22 if ( $month == 12 ) { 20 } 21 22 if ($month == 12) 23 { 23 24 $nmonth = 1; 24 25 $nyear = $year + 1; 25 } 26 else { 26 } 27 else 28 { 27 29 $nmonth = $month + 1; 28 30 $nyear = $year; 29 } 30 if ( $month == 1 ) { 31 } 32 if ($month == 1) 33 { 31 34 $pmonth = 12; 32 35 $pyear = $year - 1; 33 } 34 else { 36 } 37 else 38 { 35 39 $pmonth = $month - 1; 36 40 $pyear = $year; 37 41 } 38 42 39 $monthname = date( "F", strtotime( "2000-".$month."-1" ) ); 40 41 $html .= "<div class=block-header2>Awards for ".$monthname." ".$year."</div>"; 42 43 // main table 44 $html .= "<table height=600 width=\"100%\"><tr>"; 43 $monthname = kbdate("F", strtotime("2000-".$month."-1")); 45 44 46 // top killers 47 $tklist = new TopKillsList(); 48 $tklist->setMonth( $month ); 49 $tklist->setYear( $year ); 50 if ( CORP_ID ) 51 $tklist->addInvolvedCorp( new Corporation( CORP_ID ) ); 52 if ( ALLIANCE_ID ) 53 $tklist->addInvolvedAlliance( new Alliance( ALLIANCE_ID ) ); 54 55 $tklist->generate(); 56 $tkbox = new AwardBox( $tklist, "Top killers", "kills", "kills", "eagle" ); 57 $html .= "<td align=center>".$tkbox->generate()."</td>"; 45 $html .= "<div class=block-header2>Awards for ".$monthname." ".$year."</div>"; 46 // main table 47 $html .= "<table height=600 width=\"100%\"><tr>"; 48 // top killers 49 $tklist = new TopKillsList(); 50 $tklist->setMonth($month); 51 $tklist->setYear($year); 52 if (CORP_ID) 53 $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 54 if (ALLIANCE_ID) 55 $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 58 56 59 // top scorers 60 $killboard = $page->killboard_; 61 $config = $killboard->getConfig(); 62 if ( $config->getKillPoints() ) { 57 $tklist->generate(); 58 $tkbox = new AwardBox($tklist, "Top killers", "kills", "kills", "eagle"); 59 $html .= "<td align=center>".$tkbox->generate()."</td>"; 60 // top scorers 61 $killboard = $page->killboard_; 62 $config = $killboard->getConfig(); 63 if ($config->getKillPoints()) 64 { 63 65 $tklist = new TopScoreList(); 64 $tklist->setMonth( $month);65 $tklist->setYear( $year);66 if ( CORP_ID)67 $tklist->addInvolvedCorp( new Corporation( CORP_ID ));68 if ( ALLIANCE_ID)69 $tklist->addInvolvedAlliance( new Alliance( ALLIANCE_ID ));70 66 $tklist->setMonth($month); 67 $tklist->setYear($year); 68 if (CORP_ID) 69 $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 70 if (ALLIANCE_ID) 71 $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 72 71 73 $tklist->generate(); 72 $tkbox = new AwardBox( $tklist, "Top scorers", "points", "points", "redcross");74 $tkbox = new AwardBox($tklist, "Top scorers", "points", "points", "redcross"); 73 75 $html .= "<td align=center>".$tkbox->generate()."</td>"; 74 } 76 } 77 // top solo killers 78 $tklist = new TopSoloKillerList(); 79 $tklist->setMonth($month); 80 $tklist->setYear($year); 81 if (CORP_ID) 82 $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 83 if (ALLIANCE_ID) 84 $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 75 85 76 // top solo killers 77 $tklist = new TopSoloKillerList(); 78 $tklist->setMonth( $month ); 79 $tklist->setYear( $year ); 80 if ( CORP_ID ) 81 $tklist->addInvolvedCorp( new Corporation( CORP_ID ) ); 82 if ( ALLIANCE_ID ) 83 $tklist->addInvolvedAlliance( new Alliance( ALLIANCE_ID ) ); 84 85 $tklist->generate(); 86 $tkbox = new AwardBox( $tklist, "Top solokillers", "solo kills", "kills", "cross" ); 87 $html .= "<td align=center>".$tkbox->generate()."</td>"; 86 $tklist->generate(); 87 $tkbox = new AwardBox($tklist, "Top solokillers", "solo kills", "kills", "cross"); 88 $html .= "<td align=center>".$tkbox->generate()."</td>"; 89 // top damage dealers 90 $tklist = new TopDamageDealerList(); 91 $tklist->setMonth($month); 92 $tklist->setYear($year); 93 if (CORP_ID) 94 $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 95 if (ALLIANCE_ID) 96 $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 88 97 89 // top damage dealers 90 $tklist = new TopDamageDealerList(); 91 $tklist->setMonth( $month ); 92 $tklist->setYear( $year ); 93 if ( CORP_ID ) 94 $tklist->addInvolvedCorp( new Corporation( CORP_ID ) ); 95 if ( ALLIANCE_ID ) 96 $tklist->addInvolvedAlliance( new Alliance( ALLIANCE_ID ) ); 97 98 $tklist->generate(); 99 $tkbox = new AwardBox( $tklist, "Top damagedealers", "kills w/ most damage", "kills", "wing1" ); 100 $html .= "<td align=center>".$tkbox->generate()."</td>"; 98 $tklist->generate(); 99 $tkbox = new AwardBox($tklist, "Top damagedealers", "kills w/ most damage", "kills", "wing1"); 100 $html .= "<td align=center>".$tkbox->generate()."</td>"; 101 101 102 $html .= "</tr><tr>"; 102 $html .= "</tr><tr>"; 103 // top final blows 104 $tklist = new TopFinalBlowList(); 105 $tklist->setMonth($month); 106 $tklist->setYear($year); 107 if (CORP_ID) 108 $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 109 if (ALLIANCE_ID) 110 $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 103 111 104 // top final blows 105 $tklist = new TopFinalBlowList(); 106 $tklist->setMonth( $month ); 107 $tklist->setYear( $year ); 108 if ( CORP_ID ) 109 $tklist->addInvolvedCorp( new Corporation( CORP_ID ) ); 110 if ( ALLIANCE_ID ) 111 $tklist->addInvolvedAlliance( new Alliance( ALLIANCE_ID ) ); 112 113 $tklist->generate(); 114 $tkbox = new AwardBox( $tklist, "Top finalblows", "final blows", "kills", "skull" ); 115 $html .= "<td align=center>".$tkbox->generate()."</td>"; 112 $tklist->generate(); 113 $tkbox = new AwardBox($tklist, "Top finalblows", "final blows", "kills", "skull"); 114 $html .= "<td align=center>".$tkbox->generate()."</td>"; 115 // top podkillers 116 $tklist = new TopPodKillerList(); 117 $tklist->setMonth($month); 118 $tklist->setYear($year); 119 if (CORP_ID) 120 $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 121 if (ALLIANCE_ID) 122 $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 116 123 117 // top podkillers 118 $tklist = new TopPodKillerList(); 119 $tklist->setMonth( $month ); 120 $tklist->setYear( $year ); 121 if ( CORP_ID ) 122 $tklist->addInvolvedCorp( new Corporation( CORP_ID ) ); 123 if ( ALLIANCE_ID ) 124 $tklist->addInvolvedAlliance( new Alliance( ALLIANCE_ID ) ); 125 126 $tklist->generate(); 127 $tkbox = new AwardBox( $tklist, "Top podkillers", "podkills", "kills", "globe" ); 128 $html .= "<td align=center>".$tkbox->generate()."</td>"; 124 $tklist->generate(); 125 $tkbox = new AwardBox($tklist, "Top podkillers", "podkills", "kills", "globe"); 126 $html .= "<td align=center>".$tkbox->generate()."</td>"; 127 // top griefers 128 $tklist = new TopGrieferList(); 129 $tklist->setMonth($month); 130 $tklist->setYear($year); 131 if (CORP_ID) 132 $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 133 if (ALLIANCE_ID) 134 $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 129 135 130 // top griefers 131 $tklist = new TopGrieferList(); 132 $tklist->setMonth( $month ); 133 $tklist->setYear( $year ); 134 if ( CORP_ID ) 135 $tklist->addInvolvedCorp( new Corporation( CORP_ID ) ); 136 if ( ALLIANCE_ID ) 137 $tklist->addInvolvedAlliance( new Alliance( ALLIANCE_ID ) ); 138 139 $tklist->generate(); 140 $tkbox = new AwardBox( $tklist, "Top griefers", "carebear kills", "kills", "star" ); 141 $html .= "<td align=center>".$tkbox->generate()."</td>"; 142 143 // top capital killers 144 $tklist = new TopCapitalShipKillerList(); 145 $tklist->setMonth( $month ); 146 $tklist->setYear( $year ); 147 if ( CORP_ID ) 148 $tklist->addInvolvedCorp( new Corporation( CORP_ID ) ); 149 if ( ALLIANCE_ID ) 150 $tklist->addInvolvedAlliance( new Alliance( ALLIANCE_ID ) ); 151 152 $tklist->generate(); 153 $tkbox = new AwardBox( $tklist, "Top ISK killers", "capital shipkills", "kills", "wing2" ); 154 $html .= "<td align=center>".$tkbox->generate()."</td>"; 136 $tklist->generate(); 137 $tkbox = new AwardBox($tklist, "Top griefers", "carebear kills", "kills", "star"); 138 $html .= "<td align=center>".$tkbox->generate()."</td>"; 139 // top capital killers 140 $tklist = new TopCapitalShipKillerList(); 141 $tklist->setMonth($month); 142 $tklist->setYear($year); 143 if (CORP_ID) 144 $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 145 if (ALLIANCE_ID) 146 $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 155 147 156 $html .= "</td></tr></table>"; 148 $tklist->generate(); 149 $tkbox = new AwardBox($tklist, "Top ISK killers", "capital shipkills", "kills", "wing2"); 150 $html .= "<td align=center>".$tkbox->generate()."</td>"; 157 151 158 $menubox = new Box("Menu"); 159 $menubox->setIcon("menu-item.gif"); 160 $menubox->addOption("caption", "Navigation" ); 161 $menubox->addOption("link", "Previous month ", "?a=awards&m=".$pmonth."&y=".$pyear ); 162 if ( ! ($month == date( "m" ) - 1 && $year == date( "Y" ) ) ) 163 $menubox->addOption("link", "Next month", "?a=awards&m=".$nmonth."&y=".$nyear ); 164 $page->addContext( $menubox->generate() ); 165 166 $page->setContent( $html ); 167 $page->generate(); 152 $html .= "</td></tr></table>"; 153 154 $menubox = new Box("Menu"); 155 $menubox->setIcon("menu-item.gif"); 156 $menubox->addOption("caption", "Navigation"); 157 $menubox->addOption("link", "Previous month ", "?a=awards&m=".$pmonth."&y=".$pyear); 158 if (! ($month == kbdate("m") - 1 && $year == kbdate("Y"))) 159 $menubox->addOption("link", "Next month", "?a=awards&m=".$nmonth."&y=".$nyear); 160 $page->addContext($menubox->generate()); 161 162 $page->setContent($html); 163 $page->generate(); 168 164 ?> -
dev/common/campaigns.php
r104 r190 1 <? 2 require_once( "class.page.php" ); 3 require_once( "class.contract.php" ); 4 require_once( "class.box.php" ); 5 6 $page = new Page( "Campaigns" ); 1 <?php 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.contract.php'); 7 4 8 switch( $_GET['view'] ) { 9 case "": 10 $activelist = new ContractList(); 11 $activelist->setCampaigns( true ); 12 $activelist->setActive( "yes" ); 13 $page->setTitle( "Active campaigns" ); 14 $table = new ContractListTable( $activelist ); 15 $table->paginate( 10, $_GET['page'] ); 16 $html .= $table->generate(); 17 break; 18 case "past": 19 $pastlist = new ContractList(); 20 $pastlist->setCampaigns( true ); 21 $pastlist->setActive( "no" ); 22 $page->setTitle( "Past campaigns" ); 23 $table = new ContractListTable( $pastlist ); 24 $table->paginate( 10, $_GET['page'] ); 25 $html .= $table->generate(); 26 break; 27 } 5 $page = new Page('Campaigns'); 28 6 29 $menubox = new Box("Menu"); 30 $menubox->setIcon("menu-item.gif"); 31 $menubox->addOption("link", "Active campaigns", "?a=campaigns" ); 32 $menubox->addOption("link", "Past campaigns", "?a=campaigns&view=past" ); 7 switch ($_GET['view']) 8 { 9 case '': 10 $activelist = new ContractList(); 11 $activelist->setCampaigns(true); 12 $activelist->setActive('yes'); 13 $page->setTitle('Active campaigns'); 14 $table = new ContractListTable($activelist); 15 $table->paginate(10, $_GET['page']); 16 $html .= $table->generate(); 17 break; 18 case 'past': 19 $pastlist = new ContractList(); 20 $pastlist->setCampaigns(true); 21 $pastlist->setActive('no'); 22 $page->setTitle('Past campaigns'); 23 $table = new ContractListTable($pastlist); 24 $table->paginate(10, $_GET['page']); 25 $html .= $table->generate(); 26 break; 27 } 33 28 34 $page->addContext( $menubox->generate() ); 35 $page->setContent( $html ); 36 $page->generate(); 29 $menubox = new Box('Menu'); 30 $menubox->setIcon('menu-item.gif'); 31 $menubox->addOption('link', 'Active campaigns', '?a=campaigns'); 32 $menubox->addOption('link', 'Past campaigns', '?a=campaigns&view=past'); 33 34 $page->addContext($menubox->generate()); 35 $page->setContent($html); 36 $page->generate(); 37 37 ?> -
dev/common/cc_detail.php
r188 r190 1 1 <?php 2 require_once("db.php"); 3 require_once("class.page.php"); 4 require_once("class.killlist.php"); 5 require_once("class.killlisttable.php"); 6 require_once("class.killsummarytable.php"); 7 require_once("class.contract.php"); 8 require_once("class.box.php"); 9 require_once("class.toplist.php"); 10 require_once("class.graph.php"); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.killlist.php'); 4 require_once('common/includes/class.killlisttable.php'); 5 require_once('common/includes/class.killsummarytable.php'); 6 require_once('common/includes/class.contract.php'); 7 require_once('common/includes/class.toplist.php'); 11 8 12 9 $ctr_id = $_GET['ctr_id']; … … 15 12 16 13 if ($contract->getCampaign()) 17 $title = "Campaign details";18 else 19 $title = "Contract details";20 21 $page = new Page($title. " - ".$contract->getName());14 $title = 'Campaign details'; 15 else 16 $title = 'Contract details'; 17 18 $page = new Page($title.' - '.$contract->getName()); 22 19 23 20 $html .= "<table align=center class=kb-table width=\"100%\" height=\"80\" border=\"0\" cellspacing=1><tr class=kb-table-row-even><td rowspan=5 align=center width=80 height=80>"; -
dev/common/comments.php
r130 r190 1 1 <?php 2 require_once('c lass.comments.php');2 require_once('common/includes/class.comments.php'); 3 3 4 4 $comments = new Comments($kll_id); … … 14 14 if ($_POST['comment'] == '') 15 15 { 16 $html .= "Error: Silent type hey? good for you, bad for a comment.";16 $html .= 'Error: Silent type hey? good for you, bad for a comment.'; 17 17 } 18 18 else … … 22 22 if ($name == null) 23 23 { 24 $name = "Anonymous";24 $name = 'Anonymous'; 25 25 } 26 26 $comments->addComment($name, $comment); … … 30 30 { 31 31 // Password is wrong 32 $html .= "Error: Wrong Password";32 $html .= 'Error: Wrong Password'; 33 33 } 34 34 } -
dev/common/contracts.php
r104 r190 1 <? 2 require_once( "class.page.php" ); 3 require_once( "class.contract.php" ); 4 require_once( "class.box.php" ); 5 6 $page = new Page( "Contracts" ); 1 <?php 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.contract.php'); 7 4 8 switch( $_GET['view'] ) { 9 case "": 10 $activelist = new ContractList(); 11 $activelist->setCampaigns( false ); 12 $activelist->setActive( "yes" ); 13 $page->setTitle( "Active contracts" ); 14 $table = new ContractListTable( $activelist ); 15 $html .= $table->generate(); 16 break; 17 case "past": 18 $pastlist = new ContractList(); 19 $pastlist->setCampaigns( false ); 20 $pastlist->setActive( "no" ); 21 $page->setTitle( "Past contracts" ); 22 $table = new ContractListTable( $pastlist ); 23 $html .= $table->generate(); 24 break; 25 } 5 $page = new Page('Contracts'); 26 6 27 $menubox = new box("Menu"); 28 $menubox->setIcon("menu-item.gif"); 29 $menubox->addOption("link", "Active contracts", "?a=contracts" ); 30 $menubox->addOption("link", "Past contracts", "?a=contracts&view=past" ); 7 switch ($_GET['view']) 8 { 9 case '': 10 $activelist = new ContractList(); 11 $activelist->setCampaigns(false); 12 $activelist->setActive('yes'); 13 $page->setTitle('Active contracts'); 14 $table = new ContractListTable($activelist); 15 $html .= $table->generate(); 16 break; 17 case 'past': 18 $pastlist = new ContractList(); 19 $pastlist->setCampaigns(false); 20 $pastlist->setActive('no'); 21 $page->setTitle('Past contracts'); 22 $table = new ContractListTable($pastlist); 23 $html .= $table->generate(); 24 break; 25 } 31 26 32 $page->addContext( $menubox->generate() ); 33 $page->setContent( $html ); 34 $page->generate(); 27 $menubox = new box('Menu'); 28 $menubox->setIcon('menu-item.gif'); 29 $menubox->addOption('link', 'Active contracts', '?a=contracts'); 30 $menubox->addOption('link', 'Past contracts', '?a=contracts&view=past'); 31 32 $page->addContext($menubox->generate()); 33 $page->setContent($html); 34 $page->generate(); 35 35 ?> -
dev/common/corp_detail.php
r171 r190 1 1 <?php 2 require_once("db.php"); 3 require_once("class.page.php"); 4 require_once("class.corp.php"); 5 require_once("class.alliance.php"); 6 require_once("class.killlist.php"); 7 require_once("class.killlisttable.php"); 8 require_once("class.killsummarytable.php"); 9 require_once("class.box.php"); 10 require_once("class.toplist.php"); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.corp.php'); 4 require_once('common/includes/class.alliance.php'); 5 require_once('common/includes/class.killlist.php'); 6 require_once('common/includes/class.killlisttable.php'); 7 require_once('common/includes/class.killsummarytable.php'); 8 require_once('common/includes/class.toplist.php'); 11 9 12 10 if (!$crp_id = intval($_GET['crp_id'])) … … 24 22 $summary_html = $kill_summary->generate(); 25 23 26 $page = new Page( "Corporation details - " .$corp->getName());24 $page = new Page('Corporation details - '.$corp->getName()); 27 25 $html .= "<table class=kb-table width=\"100%\" border=\"0\" cellspacing=1><tr class=kb-table-row-even><td rowspan=8 width=128 align=center bgcolor=black>"; 28 26 … … 145 143 $list->addInvolvedCorp($corp); 146 144 $list->setPodsNoobShips(false); 147 $list->setMonth( date("m"));148 $list->setYear( date("Y"));145 $list->setMonth(kbdate("m")); 146 $list->setYear(kbdate("Y")); 149 147 $table = new TopPilotTable($list, "Kills"); 150 148 $html .= $table->generate(); … … 171 169 $list->addInvolvedCorp($corp); 172 170 $list->setPodsNoobShips(true); 173 $list->setMonth( date("m"));174 $list->setYear( date("Y"));171 $list->setMonth(kbdate("m")); 172 $list->setYear(kbdate("Y")); 175 173 $table = new TopPilotTable($list, "Points"); 176 174 $html .= $table->generate(); … … 197 195 $list->addInvolvedCorp($corp); 198 196 $list->setPodsNoobShips(false); 199 $list->setMonth( date("m"));200 $list->setYear( date("Y"));197 $list->setMonth(kbdate("m")); 198 $list->setYear(kbdate("Y")); 201 199 $table = new TopPilotTable($list, "Solokills"); 202 200 $html .= $table->generate(); … … 224 222 $list->addInvolvedCorp($corp); 225 223 $list->setPodsNoobShips(false); 226 $list->setMonth( date("m"));227 $list->setYear( date("Y"));224 $list->setMonth(kbdate("m")); 225 $list->setYear(kbdate("Y")); 228 226 $table = new TopPilotTable($list, "Kills"); 229 227 $html .= $table->generate(); … … 250 248 $list = new TopGrieferList(); 251 249 $list->addInvolvedCorp($corp); 252 $list->setMonth( date("m"));253 $list->setYear( date("Y"));250 $list->setMonth(kbdate("m")); 251 $list->setYear(kbdate("Y")); 254 252 $table = new TopPilotTable($list, "Kills"); 255 253 $html .= $table->generate(); … … 276 274 $list->addVictimCorp($corp); 277 275 $list->setPodsNoobShips(false); 278 $list->setMonth( date("m"));279 $list->setYear( date("Y"));276 $list->setMonth(kbdate("m")); 277 $list->setYear(kbdate("Y")); 280 278 $table = new TopPilotTable($list, "Losses"); 281 279 $html .= $table->generate(); … … 328 326 $sql .= " and inv.ind_all_id = ".$all_id; 329 327 330 $sql .= " and date_format( kll.kll_timestamp, \"%c\" ) = ". date("m")."331 and date_format( kll.kll_timestamp, \"%Y\" ) = ". date("Y")."328 $sql .= " and date_format( kll.kll_timestamp, \"%c\" ) = ".kbdate("m")." 329 and date_format( kll.kll_timestamp, \"%Y\" ) = ".kbdate("Y")." 332 330 group by sys.sys_name 333 331 order by kills desc -
dev/common/feed.php
r175 r190 1 1 <?php 2 ////// 3 ////// ////// 2 //////////// 3 ////// 4 ////// feed writer after 4 5 ////// liq's feed syndication mod v1.5 6 ////// 5 7 //////////// 6 ////////////7 ////////////8 ////////////9 10 8 11 @set_time_limit(0); 12 require_once("class.corp.php"); 13 require_once("class.alliance.php"); 14 require_once("class.killlist.php"); 15 require_once("class.kill.php"); 16 require_once("db.php"); 17 require_once("globals.php"); 9 @set_time_limit(120); 10 require_once('common/includes/db.php'); 11 require_once('common/includes/class.corp.php'); 12 require_once('common/includes/class.alliance.php'); 13 require_once('common/includes/class.killlist.php'); 14 require_once('common/includes/class.kill.php'); 18 15 19 $html .= "<rss version=\"2.0\">16 $html .= '<rss version="2.0"> 20 17 <channel> 21 <title> " . KB_TITLE . "</title>22 <link>http:// " . KB_HOST . "</link>18 <title>'.KB_TITLE.'</title> 19 <link>http://'.KB_HOST.'</link> 23 20 <description>Kill Feed v1.5</description> 24 <copyright>" . KB_TITLE . "</copyright>\n"; 25 26 $klist = new KillList(); 27 $klist->setPodsNoobShips(true); 28 29 if ($_GET['week']) 30 { 31 $klist->setWeek($_GET['week']); 32 } 33 elseif (!$_GET['lastkllid']) 34 { 35 $klist->setWeek(date("W")); 36 } 37 38 if ($_GET['year']) 39 { 40 $klist->setYear($_GET['year']); 41 } 42 elseif (!$_GET['lastkllid']) 43 { 44 $klist->setYear(date("Y")); 45 } 46 47 if ($_GET['lastkllid'] && method_exists($klist, 'setMinKllID')) 48 { 49 $klist->setMinKllID($_GET['lastkllid']); 50 } 51 52 if ($_GET['corp'] || $_GET['corp_name']) 53 { 54 if ($_GET['corp']) 55 { 56 $c = $_GET['corp']; 57 } 58 if ($_GET['corp_name']) 59 { 60 $c = $_GET['corp_name']; 61 } 62 $corp = new Corporation(); 63 $corp->lookup(urldecode($c)); 64 } 65 66 if ($_GET['alli'] || $_GET['alliance_name']) 67 { 68 if ($_GET['alli']) 69 { 70 $a = $_GET['alli']; 71 } 72 if ($_GET['alliance_name']) 73 { 74 $a = $_GET['alliance_name']; 75 } 76 $alli = new Alliance(); 77 $alli->add(urldecode($a)); 78 } 79 80 if ($_GET['losses']) 81 { 82 if (CORP_ID) //local 83 { 84 $klist->addVictimCorp(new Corporation(CORP_ID)); 85 } 86 if (ALLIANCE_ID) //local 87 { 88 $klist->addVictimAlliance(new Alliance(ALLIANCE_ID)); 89 } 90 if ($corp && !$_GET['friend']) //remote 91 { 92 $klist->addInvolvedCorp($corp); 93 } 94 if ($alli && !$_GET['friend']) //remote 95 { 96 $klist->addInvolvedAlliance($alli); 97 } 98 } 99 else 100 { 101 if (CORP_ID) //local 102 { 103 $klist->addInvolvedCorp(new Corporation(CORP_ID)); 104 } 105 if (ALLIANCE_ID) //local 106 { 107 $klist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 108 } 109 if ($corp && !$_GET['friend']) //remote 110 { 111 $klist->addVictimCorp($corp); 112 } 113 if ($alli && !$_GET['friend']) //remote 114 { 115 $klist->addVictimAlliance($alli); 116 } 117 } 118 119 $kills = array(); 120 while ($kill = $klist->getKill()) 121 { 122 $kills[$kill->getID()] = $kill->getTimestamp(); 123 } 124 asort($kills); 125 126 foreach ($kills as $id => $timestamp) 127 { 128 $kill = new Kill($id); 129 $html .= "<item> 21 <copyright>'.KB_TITLE.'</copyright>'."\n"; 22 23 $klist = new KillList(); 24 $klist->setPodsNoobShips(true); 25 26 if ($_GET['week']) 27 { 28 $klist->setWeek($_GET['week']); 29 } 30 elseif (!$_GET['lastkllid']) 31 { 32 $klist->setWeek(kbdate("W")); 33 } 34 35 if ($_GET['year']) 36 { 37 $klist->setYear($_GET['year']); 38 } 39 elseif (!$_GET['lastkllid']) 40 { 41 $klist->setYear(kbdate("Y")); 42 } 43 44 if ($_GET['lastkllid'] && method_exists($klist, 'setMinKllID')) 45 { 46 $klist->setMinKllID($_GET['lastkllid']); 47 } 48 49 if ($_GET['corp'] || $_GET['corp_name']) 50 { 51 if ($_GET['corp']) 52 { 53 $c = $_GET['corp']; 54 } 55 if ($_GET['corp_name']) 56 { 57 $c = $_GET['corp_name']; 58 } 59 $corp = new Corporation(); 60 $corp->lookup(urldecode($c)); 61 } 62 63 if ($_GET['alli'] || $_GET['alliance_name']) 64 { 65 if ($_GET['alli']) 66 { 67 $a = $_GET['alli']; 68 } 69 if ($_GET['alliance_name']) 70 { 71 $a = $_GET['alliance_name']; 72 } 73 $alli = new Alliance(); 74 $alli->add(urldecode($a)); 75 } 76 77 if ($_GET['losses']) 78 { 79 if (CORP_ID) // local 80 { 81 $klist->addVictimCorp(new Corporation(CORP_ID)); 82 } 83 if (ALLIANCE_ID) // local 84 { 85 $klist->addVictimAlliance(new Alliance(ALLIANCE_ID)); 86 } 87 if ($corp && !$_GET['friend']) // remote 88 { 89 $klist->addInvolvedCorp($corp); 90 } 91 if ($alli && !$_GET['friend']) // remote 92 { 93 $klist->addInvolvedAlliance($alli); 94 } 95 } 96 else 97 { 98 if (CORP_ID) // local 99 { 100 $klist->addInvolvedCorp(new Corporation(CORP_ID)); 101 } 102 if (ALLIANCE_ID) // local 103 { 104 $klist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 105 } 106 if ($corp && !$_GET['friend']) // remote 107 { 108 $klist->addVictimCorp($corp); 109 } 110 if ($alli && !$_GET['friend']) // remote 111 { 112 $klist->addVictimAlliance($alli); 113 } 114 } 115 116 $kills = array(); 117 while ($kill = $klist->getKill()) 118 { 119 if ($kill->isClassified()) 120 { 121 continue; 122 } 123 124 $kills[$kill->getID()] = $kill->getTimestamp(); 125 } 126 asort($kills); 127 128 foreach ($kills as $id => $timestamp) 129 { 130 $kill = new Kill($id); 131 $html .= "<item> 130 132 <title>" . $id . "</title> 131 <description><![CDATA[ " . $kill->getRawMail() ." ]]></description>132 <guid>?a=kill_detail&kll_id=" . $id ."</guid>133 <description><![CDATA[ ".$kill->getRawMail()." ]]></description> 134 <guid>?a=kill_detail&kll_id=".$id."</guid> 133 135 <pubDate>" . strftime("%a, %d %b %Y %T %Z", strtotime($timestamp)) . "</pubDate> 134 136 </item>\n"; 135 } 136 137 $html .= "</channel></rss>"; 138 139 if ($_GET['gz']) 140 { 141 echo gzdeflate($html, 9); 142 } 143 else 144 { 145 echo $html; 146 } 137 } 138 $html .= "</channel></rss>"; 139 140 if ($_GET['gz']) 141 { 142 echo gzdeflate($html, 9); 143 } 144 else 145 { 146 echo $html; 147 } 147 148 ?> 148 -
dev/common/home.php
r135 r190 1 1 <?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"); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.killsummarytable.php'); 4 require_once('common/includes/class.corp.php'); 5 require_once('common/includes/class.alliance.php'); 6 require_once('common/includes/class.killlist.php'); 7 require_once('common/includes/class.killlisttable.php'); 8 require_once('common/includes/class.contract.php'); 9 require_once('common/includes/class.toplist.php'); 12 10 13 $week = date("W");14 $year = date("Y");11 $week = kbdate('W'); 12 $year = kbdate('Y'); 15 13 16 $page = new Page( "Week " .$week);14 $page = new Page('Week '.$week); 17 15 18 16 $kslist = new KillList(); … … 40 38 if ($week == 1) 41 39 { 42 $pyear = date("Y") - 1;40 $pyear = kbdate("Y") - 1; 43 41 $pweek = 52; 44 42 } 45 43 else 46 44 { 47 $pyear = date("Y");45 $pyear = kbdate("Y"); 48 46 $pweek = $week - 1; 49 47 } -
dev/common/igb.php
r154 r190 1 1 <?php 2 require_once( "class.page.php");2 require_once('common/includes/class.page.php'); 3 3 4 $page = new Page( "Killboard IGB Menu");4 $page = new Page('Killboard IGB Menu'); 5 5 6 6 $page->setContent($smarty->fetch(get_tpl('igb'))); -
dev/common/igb_home.php
r154 r190 1 1 <?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"); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.killsummarytable.php'); 4 require_once('common/includes/class.corp.php'); 5 require_once('common/includes/class.alliance.php'); 6 require_once('common/includes/class.killlist.php'); 7 require_once('common/includes/class.killlisttable.php'); 8 require_once('common/includes/class.contract.php'); 9 require_once('common/includes/class.toplist.php'); 12 10 13 $week = date("W");14 $year = date("Y");11 $week = kbdate('W'); 12 $year = kbdate('Y'); 15 13 16 $page = new Page( "Week " .$week);14 $page = new Page('Week '.$week); 17 15 18 16 $kslist = new KillList(); … … 39 37 if ($week == 1) 40 38 { 41 $pyear = date("Y") - 1;39 $pyear = kbdate("Y") - 1; 42 40 $pweek = 52; 43 41 } 44 42 else 45 43 { 46 $pyear = date("Y");44 $pyear = kbdate("Y"); 47 45 $pweek = $week - 1; 48 46 } -
dev/common/index.php
r188 r190 1 1 <?php 2 3 /** 4 * The EVE-Development Network Killboard 5 * based on eve-killboard.net created by rig0r 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * any later version. 11 * 12 * This program is distributed in the hope that it will be useful, but 13 * WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 */ 22 2 23 // many ppl had issues with pear and relative paths 3 require_once('common/db.php'); 24 require_once('common/includes/db.php'); 25 require_once('common/includes/class.killboard.php'); 26 require_once('common/includes/class.page.php'); 27 require_once('common/includes/class.event.php'); 28 require_once('common/includes/class.roles.php'); 29 #require_once('common/includes/class.titles.php'); 30 require_once('common/includes/class.user.php'); 31 require_once('common/includes/class.session.php'); 4 32 require_once('smarty/Smarty.class.php'); 5 require_once('class.killboard.php');6 require_once('class.event.php');7 require_once('class.roles.php');8 require_once('class.user.php');9 33 10 34 // smarty doesnt like it 11 35 @set_magic_quotes_runtime(0); 12 36 37 // remove some chars from the request string to avoid 'hacking'-attempts 13 38 $page = str_replace('.', '', $_GET['a']); 14 39 $page = str_replace('/', '', $page); … … 32 57 } 33 58 34 $killboard = new Killboard(KB_SITE); 35 $config = $killboard->getConfig();59 // killboard is instantiated by class::Page 60 //$killboard = new Killboard(KB_SITE); 36 61 37 // setting up smarty 62 // load the config from the database 63 $config = new Config(KB_SITE); 64 65 // setting up smarty and feed it with some config 38 66 $smarty = new Smarty(); 39 67 $smarty->template_dir = './templates'; … … 43 71 $smarty->assign('img_url', IMG_URL); 44 72 $smarty->assign_by_ref('config', $config); 73 74 // set up titles/roles 75 role::init(); 76 #title::init(); 77 78 // start session management 79 Session::init(); 45 80 46 81 // this is to make sure that smarty is able to create output … … 57 92 } 58 93 94 // all admin files are now in the admin directory and preload the menu 95 if (substr($page, 0, 5) == 'admin') 96 { 97 require_once('common/admin/admin_menu.php'); 98 $page = 'admin/'.$page; 99 } 100 101 // old modcode for loading settings 59 102 if (substr($page, 0, 9) == 'settings_') 60 103 { … … 65 108 $settingsPage = false; 66 109 } 67 $mods_active = explode(',', $config->getConfig('mods_active'));110 $mods_active = explode(',', config::get('mods_active')); 68 111 $modOverrides = false; 69 112 foreach ($mods_active as $mod) -
dev/common/kill_detail.php
r155 r190 1 1 <?php 2 require_once("class.kill.php"); 3 require_once("class.page.php"); 4 require_once("class.pilot.php"); 5 require_once("class.corp.php"); 6 require_once("class.box.php"); 7 require_once("class.alliance.php"); 8 require_once("globals.php"); 9 10 $page = new Page("Kill details"); 2 require_once('common/includes/class.kill.php'); 3 require_once('common/includes/class.page.php'); 4 require_once('common/includes/class.pilot.php'); 5 require_once('common/includes/class.corp.php'); 6 require_once('common/includes/class.alliance.php'); 7 8 $page = new Page('Kill details'); 11 9 12 10 if ($config->getConfig('item_values')) … … 21 19 $IID = $_POST['IID']; 22 20 $Val = $_POST[$IID]; 23 //echo "UPDATE kb3_items SET itm_value ='" . $Val . "' WHERE itm_id='" . $IID ."'";21 //echo "UPDATE kb3_items SET itm_value ='".$Val."' WHERE itm_id='".$IID."'"; 24 22 $qry = new DBQuery(); 25 23 $qry->execute("UPDATE kb3_items SET itm_value ='".$Val."' WHERE itm_id='".$IID."'"); … … 47 45 // victim $smarty->assign('',); 48 46 $smarty->assign('VictimPortrait', $kill->getVictimPortrait(64)); 49 $smarty->assign('VictimURL', "?a=pilot_detail&plt_id=" .$kill->getVictimID());47 $smarty->assign('VictimURL', "?a=pilot_detail&plt_id=".$kill->getVictimID()); 50 48 $smarty->assign('VictimName', $kill->getVictimName()); 51 $smarty->assign('VictimCorpURL', "?a=corp_detail&crp_id=" .$kill->getVictimCorpID());49 $smarty->assign('VictimCorpURL', "?a=corp_detail&crp_id=".$kill->getVictimCorpID()); 52 50 $smarty->assign('VictimCorpName', $kill->getVictimCorpName()); 53 $smarty->assign('VictimAllianceURL', "?a=alliance_detail&all_id=" .$kill->getVictimAllianceID());51 $smarty->assign('VictimAllianceURL', "?a=alliance_detail&all_id=".$kill->getVictimAllianceID()); 54 52 $smarty->assign('VictimAllianceName', $kill->getVictimAllianceName()); 55 53 … … 66 64 67 65 $involved[$i]['shipImage'] = $ship->getImage(64); 68 $involved[$i]['PilotURL'] = "?a=pilot_detail&plt_id=" .$pilot->getID();66 $involved[$i]['PilotURL'] = "?a=pilot_detail&plt_id=".$pilot->getID(); 69 67 $involved[$i]['PilotName'] = $pilot->getName(); 70 $involved[$i]['CorpURL'] = "?a=corp_detail&crp_id=" .$corp->getID();68 $involved[$i]['CorpURL'] = "?a=corp_detail&crp_id=".$corp->getID(); 71 69 $involved[$i]['CorpName'] = $corp->getName(); 72 $involved[$i]['AlliURL'] = "?a=alliance_detail&all_id=" .$alliance->getID();70 $involved[$i]['AlliURL'] = "?a=alliance_detail&all_id=".$alliance->getID(); 73 71 $involved[$i]['AlliName'] = $alliance->getName(); 74 72 $involved[$i]['ShipName'] = $ship->getName(); … … 115 113 $smarty->assign('ShipName', $ship->getName()); 116 114 $smarty->assign('ClassName', $shipclass->getName()); 117 $smarty->assign('System', $system->getName()); 118 $smarty->assign('SystemURL', "?a=system_detail&sys_id=".$system->getID()); 119 $smarty->assign('SystemSecurity', $system->getSecurity(true)); 115 116 if ($kill->isClassified()) 117 { 118 $smarty->assign('System', 'Classified'); 119 $smarty->assign('SystemURL', ""); 120 $smarty->assign('SystemSecurity', '0.0'); 121 } 122 else 123 { 124 $smarty->assign('System', $system->getName()); 125 $smarty->assign('SystemURL', "?a=system_detail&sys_id=".$system->getID()); 126 $smarty->assign('SystemSecurity', $system->getSecurity(true)); 127 } 120 128 $smarty->assign('TimeStamp', $kill->getTimeStamp()); 121 129 $smarty->assign('VictimShipImg', $ship->getImage(64)); … … 146 154 { 147 155 $Formatted = number_format($value, 2); 148 $Formatted = $Formatted ." isk";156 $Formatted = $Formatted." isk"; 149 157 } 150 158 … … 154 162 155 163 $Formatted = number_format($Formatted, 2); 156 $Formatted = $Formatted ." K";164 $Formatted = $Formatted." K"; 157 165 } 158 166 … … 161 169 $Formatted = round($value / 1000000, 2); 162 170 $Formatted = number_format($Formatted, 2); 163 $Formatted = $Formatted ." M";171 $Formatted = $Formatted." M"; 164 172 } 165 173 } … … 195 203 if ($kill->relatedKillCount() > 1 || $kill->relatedLossCount() > 1) 196 204 { 197 $menubox->addOption("link", "Related kills (" . $kill->relatedKillCount() . "/" . $kill->relatedLossCount() . ")", "?a=kill_related&kll_id=" .$kill->getID());205 $menubox->addOption("link", "Related kills (".$kill->relatedKillCount()."/".$kill->relatedLossCount().")", "?a=kill_related&kll_id=".$kill->getID()); 198 206 } 199 207 if ($page->isAdmin()) 200 208 { 201 209 $menubox->addOption("caption", "Admin"); 202 $menubox->addOption("link", "Delete", "javascript:openWindow('?a= kill_delete&kll_id=" . $kill->getID() ."', null, 420, 300, '' );");210 $menubox->addOption("link", "Delete", "javascript:openWindow('?a=admin_kill_delete&kll_id=".$kill->getID()."', null, 420, 300, '' );"); 203 211 } 204 212 $page->addContext($menubox->generate()); 205 213 206 if ( $config->getKillPoints())214 if (config::get('kill_points')) 207 215 { 208 216 $scorebox = new Box("Points"); … … 211 219 } 212 220 213 $mapbox = new Box("Map"); 214 $mapbox->addOption("img", "?a=mapview&sys_id=" . $system->getID() . "&mode=map&size=145"); 215 $mapbox->addOption("img", "?a=mapview&sys_id=" . $system->getID() . "&mode=region&size=145"); 216 $mapbox->addOption("img", "?a=mapview&sys_id=" . $system->getID() . "&mode=cons&size=145"); 217 $page->addContext($mapbox->generate()); 221 if (!$kill->isClassified()) 222 { 223 $mapbox = new Box("Map"); 224 $mapbox->addOption("img", "?a=mapview&sys_id=".$system->getID()."&mode=map&size=145"); 225 $mapbox->addOption("img", "?a=mapview&sys_id=".$system->getID()."&mode=region&size=145"); 226 $mapbox->addOption("img", "?a=mapview&sys_id=".$system->getID()."&mode=cons&size=145"); 227 $page->addContext($mapbox->generate()); 228 } 218 229 219 230 $html = $smarty->fetch(get_tpl('kill_detail')); -
dev/common/kill_mail.php
r132 r190 1 1 <?php 2 require_once("db.php"); 3 require_once("class.page.php"); 4 require_once("class.kill.php"); 5 require_once("globals.php"); 2 require_once('common/includes/db.php'); 3 require_once('common/includes/class.page.php'); 4 require_once('common/includes/class.kill.php'); 6 5 7 6 $kll_id = intval($_GET['kll_id']); -
dev/common/kill_related.php
r188 r190 1 1 <?php 2 require_once("class.page.php"); 3 require_once("class.corp.php"); 4 require_once("class.alliance.php"); 5 require_once("class.killlist.php"); 6 require_once("class.killlisttable.php"); 7 require_once("class.killsummarytable.php"); 8 require_once("class.box.php"); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.corp.php'); 4 require_once('common/includes/class.alliance.php'); 5 require_once('common/includes/class.killlist.php'); 6 require_once('common/includes/class.killlisttable.php'); 7 require_once('common/includes/class.killsummarytable.php'); 9 8 10 9 if (!$kll_id = intval($_GET['kll_id'])) … … 14 13 } 15 14 16 $page = new Page( "Related kills & losses");15 $page = new Page('Related kills & losses'); 17 16 18 17 // this is a fast query to get the system and timestamp -
dev/common/kills.php
r188 r190 1 1 <?php 2 require_once("class.page.php"); 3 require_once("class.box.php"); 4 require_once("class.corp.php"); 5 require_once("class.alliance.php"); 6 require_once("class.killlist.php"); 7 require_once("class.ship.php"); 8 require_once("class.killlisttable.php"); 9 require_once("class.killsummarytable.php"); 10 require_once("class.toplist.php"); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.corp.php'); 4 require_once('common/includes/class.alliance.php'); 5 require_once('common/includes/class.killlist.php'); 6 require_once('common/includes/class.ship.php'); 7 require_once('common/includes/class.killlisttable.php'); 8 require_once('common/includes/class.killsummarytable.php'); 9 require_once('common/includes/class.toplist.php'); 11 10 12 11 $week = $_GET['w']; 13 12 $year = $_GET['y']; 14 13 15 if ($week == "")16 $week = date("W");14 if ($week == '') 15 $week = kbdate('W'); 17 16 18 if ($year == "")19 $year = date("Y");17 if ($year == '') 18 $year = kbdate('Y'); 20 19 21 20 if ($week == 52) … … 84 83 $menubox->addOption("caption", "Navigation"); 85 84 $menubox->addOption("link", "Previous week ", "?a=kills&w=".$pweek."&y=".$pyear); 86 if ($week != date("W"))85 if ($week != kbdate("W")) 87 86 { 88 87 $menubox->addOption('link', "Next week", "?a=kills&w=".$nweek."&y=".$nyear); -
dev/common/login.php
r188 r190 1 1 <?php 2 require_once('class.page.php'); 3 require_once('class.user.php'); 2 require_once('common/includes/class.page.php'); 4 3 5 4 $page = new Page('Login'); … … 9 8 if ($_POST['usrlogin'] == '' && $_POST['usrpass'] == ADMIN_PASSWORD) 10 9 { 11 $page->session_->create(1);10 Session::create(true); 12 11 13 12 header('Location: ?a=admin'); -
dev/common/logout.php
r95 r190 1 1 <?php 2 require_once("db.php"); 3 require_once("class.session.php"); 2 require_once('common/includes/class.session.php'); 4 3 5 4 $session = new Session(); -
dev/common/losses.php
r149 r190 1 1 <?php 2 require_once("class.page.php"); 3 require_once("class.box.php"); 4 require_once("class.corp.php"); 5 require_once("class.alliance.php"); 6 require_once("class.killlist.php"); 7 require_once("class.killlisttable.php"); 8 require_once("class.killsummarytable.php"); 9 require_once("class.toplist.php"); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.corp.php'); 4 require_once('common/includes/class.alliance.php'); 5 require_once('common/includes/class.killlist.php'); 6 require_once('common/includes/class.killlisttable.php'); 7 require_once('common/includes/class.killsummarytable.php'); 8 require_once('common/includes/class.toplist.php'); 10 9 11 10 $week = $_GET['w']; 12 11 $year = $_GET['y']; 13 12 14 if ($week == "")15 $week = date("W");13 if ($week == '') 14 $week = kbdate('W'); 16 15 17 if ($year == "")18 $year = date("Y");16 if ($year == '') 17 $year = kbdate('Y'); 19 18 20 19 if ($week == 52) … … 61 60 $html .= $summarytable->generate(); 62 61 // $html .= "<table width=\"99%\" align=center><tr><td class=weeknav align=left>"; 63 // if ( $week != date( "W" ) )62 // if ( $week != kbdate( "W" ) ) 64 63 // $html .= "[<a href=\"?a=losses&w=".$nweek."&y=".$nyear."\"><<</a>]"; 65 64 // $html .= "</td><td class=weeknav align=right>[<a href=\"?a=losses&w=".$pweek."&y=".$pyear."\">>></a>]</td></tr></table>"; … … 84 83 $menubox->addOption("caption", "Navigation"); 85 84 $menubox->addOption("link", "Previous week", "?a=losses&w=".$pweek."&y=".$pyear); 86 if ($week != date("W"))85 if ($week != kbdate("W")) 87 86 { 88 87 $menubox->addOption("link", "Next week", "?a=losses&w=".$nweek."&y=".$nyear); -
dev/common/mapview.php
r155 r190 1 1 <?php 2 require_once( "class.map.php");2 require_once('common/includes/class.map.php'); 3 3 4 4 function checkColors($context) 5 5 { 6 global $ config, $view;6 global $view; 7 7 8 8 $a = array('line', 'bg', 'hl', 'normal', 'capt'); 9 9 foreach ($a as $b) 10 10 { 11 if ($string = $config->getConfig('map_'.$context.'_cl_'.$b))11 if ($string = config::get('map_'.$context.'_cl_'.$b)) 12 12 { 13 13 $tmp = explode(',', $string); 14 14 $function = 'set'.$b.'color'; 15 eval('$view->'.$function.'($tmp[0], $tmp[1], $tmp[2]);');15 $view->$function($tmp[0], $tmp[1], $tmp[2]); 16 16 } 17 17 } … … 24 24 case "map": 25 25 $view->setTitle("Region"); 26 $view->showLines( $config->getConfig('map_map_showlines'));27 $view->paintSecurity( $config->getConfig('map_map_security'));26 $view->showLines(config::get('map_map_showlines')); 27 $view->paintSecurity(config::get('map_map_security')); 28 28 checkColors('map'); 29 29 break; 30 30 case "region": 31 31 $view->setTitle("Constellation"); 32 $view->showLines( $config->getConfig('map_reg_showlines'));33 $view->paintSecurity( $config->getConfig('map_reg_security'));32 $view->showLines(config::get('map_reg_showlines')); 33 $view->paintSecurity(config::get('map_reg_security')); 34 34 $view->setOffset(25); 35 35 checkColors('reg'); 36 36 break; 37 37 case "cons": 38 $view->showLines( $config->getConfig('map_con_showlines'));39 $view->showSysNames( $config->getConfig('map_con_shownames'));40 $view->paintSecurity( $config->getConfig('map_con_security'));38 $view->showLines(config::get('map_con_showlines')); 39 $view->showSysNames(config::get('map_con_shownames')); 40 $view->paintSecurity(config::get('map_con_security')); 41 41 $view->setOffset(25); 42 42 checkColors('con'); -
dev/common/pilot_detail.php
r165 r190 1 1 <?php 2 require_once("class.page.php"); 3 require_once("class.pilot.php"); 4 require_once("class.corp.php"); 5 require_once("class.alliance.php"); 6 require_once("class.kill.php"); 7 require_once("class.killlist.php"); 8 require_once("class.killlisttable.php"); 9 require_once("class.killsummarytable.php"); 10 require_once("class.box.php"); 11 require_once("class.toplist.php"); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.pilot.php'); 4 require_once('common/includes/class.corp.php'); 5 require_once('common/includes/class.alliance.php'); 6 require_once('common/includes/class.kill.php'); 7 require_once('common/includes/class.killlist.php'); 8 require_once('common/includes/class.killlisttable.php'); 9 require_once('common/includes/class.killsummarytable.php'); 10 require_once('common/includes/class.toplist.php'); 12 11 13 12 $pilot = new Pilot($_GET['plt_id']); 14 13 $corp = $pilot->getCorp(); 15 14 $alliance = $corp->getAlliance(); 16 $page = new Page( "Pilot details - " .$pilot->getName());15 $page = new Page('Pilot details - '.$pilot->getName()); 17 16 18 17 if (!$pilot->exists()) 19 18 { 20 $html = "That pilot doesn't exist.";19 $html = 'That pilot doesn\'t exist.'; 21 20 $page->generate($html); 22 21 exit; … … 36 35 37 36 $html .= "<tr class=kb-table-row-even>"; 38 $html .= "<td rowspan=8 width=128><img src=\"" . $pilot->getPortraitURL(128) ."\" border=\"0\" width=\"128\" heigth=\"128\"></td>";37 $html .= "<td rowspan=8 width=128><img src=\"".$pilot->getPortraitURL(128)."\" border=\"0\" width=\"128\" heigth=\"128\"></td>"; 39 38 40 $html .= "<td class=kb-table-cell width=160><b>Corporation:</b></td><td class=kb-table-cell><a href=\"?a=corp_detail&crp_id=" . $corp->getID() . "\">" . $corp->getName() ."</a></td></tr>";39 $html .= "<td class=kb-table-cell width=160><b>Corporation:</b></td><td class=kb-table-cell><a href=\"?a=corp_detail&crp_id=".$corp->getID()."\">".$corp->getName()."</a></td></tr>"; 41 40 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Alliance:</b></td><td class=kb-table-cell>"; 42 41 if ($alliance->getName() == "Unknown" || $alliance->getName() == "None") 43 $html .= "<b>" . $alliance->getName() ."</b>";42 $html .= "<b>".$alliance->getName()."</b>"; 44 43 else 45 $html .= "<a href=\"?a=alliance_detail&all_id=" . $alliance->getID() . "\">" . $alliance->getName() ."</a>";46 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Kills:</b></td><td class=kl-kill>" . $klist->getCount() ."</td></tr>";47 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Real kills:</b></td><td class=kl-kill>" . $tklist->getCount() ."</td></tr>";48 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>" . $llist->getCount() ."</td></tr>";49 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>" . $klist->getISK() ."M</td></tr>";50 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>" . $llist->getISK() ."M</td></tr>";44 $html .= "<a href=\"?a=alliance_detail&all_id=".$alliance->getID()."\">".$alliance->getName()."</a>"; 45 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Kills:</b></td><td class=kl-kill>".$klist->getCount()."</td></tr>"; 46 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Real kills:</b></td><td class=kl-kill>".$tklist->getCount()."</td></tr>"; 47 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>".$llist->getCount()."</td></tr>"; 48 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($klist->getISK()/1000000,2)."M</td></tr>"; 49 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($llist->getISK()/1000000,2)."M</td></tr>"; 51 50 52 51 $html .= "</td></tr>"; … … 150 149 $menubox->setIcon("menu-item.gif"); 151 150 $menubox->addOption("caption","Kills & losses"); 152 $menubox->addOption("link","Recent activity", "?a=pilot_detail&plt_id=" . $pilot->getID() ."&view=recent");153 $menubox->addOption("link","Kills", "?a=pilot_detail&plt_id=" . $pilot->getID() ."&view=kills");154 $menubox->addOption("link","Losses", "?a=pilot_detail&plt_id=" . $pilot->getID() ."&view=losses");151 $menubox->addOption("link","Recent activity", "?a=pilot_detail&plt_id=".$pilot->getID()."&view=recent"); 152 $menubox->addOption("link","Kills", "?a=pilot_detail&plt_id=".$pilot->getID()."&view=kills"); 153 $menubox->addOption("link","Losses", "?a=pilot_detail&plt_id=".$pilot->getID()."&view=losses"); 155 154 $menubox->addOption("caption","Statistics"); 156 $menubox->addOption("link","Ships & weapons", "?a=pilot_detail&plt_id=" . $pilot->getID() ."&view=ships_weapons");157 if (strstr( $config->getConfig("mods_active"), 'signature_generator'))155 $menubox->addOption("link","Ships & weapons", "?a=pilot_detail&plt_id=".$pilot->getID()."&view=ships_weapons"); 156 if (strstr(config::get("mods_active"), 'signature_generator')) 158 157 { 159 158 $menubox->addOption("caption","Signature"); 160 $menubox->addOption("link","Link", "?a=sig_list&i=" .$pilot->getID());159 $menubox->addOption("link","Link", "?a=sig_list&i=".$pilot->getID()); 161 160 } 162 161 $page->addContext($menubox->generate()); 163 162 164 if ( $config->getKillPoints())163 if (config::get('kill_points')) 165 164 { 166 165 $scorebox = new Box("Kill points"); … … 168 167 $page->addContext($scorebox->generate()); 169 168 } 170 if ( $config->getConfig('loss_points'))169 if (config::get('loss_points')) 171 170 { 172 171 $scorebox = new Box("Loss points"); … … 174 173 $page->addContext($scorebox->generate()); 175 174 } 176 if ( $config->getConfig('total_points'))175 if (config::get('total_points')) 177 176 { 178 177 $scorebox = new Box("Total points"); -
dev/common/portrait_grab.php
r47 r190 1 1 <?php 2 require_once( "class.page.php");3 require_once( "class.pilot.php");4 require_once( "class.corp.php");5 require_once( "class.alliance.php");2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.pilot.php'); 4 require_once('common/includes/class.corp.php'); 5 require_once('common/includes/class.alliance.php'); 6 6 7 $page = new Page( "Capture portrait");7 $page = new Page('Capture portrait'); 8 8 9 $html .= "<html><head><title>Update portrait</title></head><body>";9 $html .= '<html><head><title>Update portrait</title></head><body>'; 10 10 11 11 if (!$page->igb()) 12 12 { 13 $html .= "You need to access this page from the EVE ingame browser.";13 $html .= 'You need to access this page from the EVE ingame browser.'; 14 14 } 15 15 else … … 17 17 if (($_SERVER['HTTP_EVE_TRUSTED'] == 'no')) 18 18 { 19 Header('eve.trustme:http://' . $_SERVER['HTTP_HOST'] .'/::Need trust to grab character portrait.');19 Header('eve.trustme:http://'.$_SERVER['HTTP_HOST'].'/::Need trust to grab character portrait.'); 20 20 $html .= '<h1>Trust Required</h1>'; 21 21 $html .= 'This site needs to be trusted in order to grab your character portrait.'; … … 32 32 $plt_id = $pilot->add($_SERVER['HTTP_EVE_CHARNAME'], $corp, $now); 33 33 $pilot->setCharacterID($_SERVER['HTTP_EVE_CHARID']); 34 @unlink("cache/portraits/" . $_SERVER['HTTP_EVE_CHARID'] . "_32.jpg"); 35 @unlink("cache/portraits/" . $_SERVER['HTTP_EVE_CHARID'] . "_64.jpg"); 36 @unlink("cache/portraits/" . $_SERVER['HTTP_EVE_CHARID'] . "_128.jpg"); 37 @unlink("cache/portraits/" . $_SERVER['HTTP_EVE_CHARID'] . "_512.jpg"); 38 //$html .= "<img src=\"".$pilot->getPortraitURL(64).".jpg\" border=\"0\">"; 34 @unlink("cache/portraits/".$_SERVER['HTTP_EVE_CHARID']."_32.jpg"); 35 @unlink("cache/portraits/".$_SERVER['HTTP_EVE_CHARID']."_64.jpg"); 36 @unlink("cache/portraits/".$_SERVER['HTTP_EVE_CHARID']."_128.jpg"); 37 @unlink("cache/portraits/".$_SERVER['HTTP_EVE_CHARID']."_256.jpg"); 38 @unlink("cache/portraits/".$_SERVER['HTTP_EVE_CHARID']."_512.jpg"); 39 $html .= "<img src=\"".$pilot->getPortraitURL(64).".jpg\" border=\"0\">"; 39 40 $html .= "Character portrait updated !<br>"; 40 41 $html .= "<a href=\"?a=igb\">Return</a><br>"; … … 46 47 $html .= "</body></html>"; 47 48 48 echo $html; 49 $page->setContent($html); 50 $page->generate(); 51 52 /* 49 53 if ($updated) 50 54 { … … 67 71 } 68 72 } 73 */ 69 74 ?> -
dev/common/post.php
r181 r190 1 1 <?php 2 require_once( "class.page.php");3 require_once( "class.killboard.php");4 require_once( "class.parser.php");5 require_once( "class.phpmailer.php");6 require_once( "class.kill.php");2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.killboard.php'); 4 require_once('common/includes/class.parser.php'); 5 require_once('common/includes/class.phpmailer.php'); 6 require_once('common/includes/class.kill.php'); 7 7 8 $page = new Page( "Post killmail");8 $page = new Page('Post killmail'); 9 9 $kb = new Killboard(KB_SITE); 10 10 … … 16 16 17 17 // Filtering 18 if (config::get( "filter_apply"))18 if (config::get('filter_apply')) 19 19 { 20 $filterdate = config::get( "filter_date");20 $filterdate = config::get('filter_date'); 21 21 $year = substr($_POST['killmail'], 0, 4); 22 22 $month = substr($_POST['killmail'], 5, 2); … … 65 65 elseif ($killid == -3) 66 66 { 67 $filterdate = date("j F Y", config::get("filter_date"));67 $filterdate = kbdate("j F Y", config::get("filter_date")); 68 68 $html = "You are not allowed to post killmails older than $filterdate."; 69 69 } -
dev/common/post_igb.php
r157 r190 1 1 <?php 2 require_once( "class.page.php");3 require_once( "class.killboard.php");4 require_once( "class.parser.php");5 require_once( "class.phpmailer.php");6 require_once( "class.kill.php");2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.killboard.php'); 4 require_once('common/includes/class.parser.php'); 5 require_once('common/includes/class.phpmailer.php'); 6 require_once('common/includes/class.kill.php'); 7 7 8 8 $kb = new Killboard(KB_SITE); 9 9 10 $html = "<html><head><title>" . KB_TITLE . " Killboard - Post Mail" . "</title></head></html><body>";10 $html = '<html><head><title>'.KB_TITLE.' Killboard - Post Mail</title></head></html><body>'; 11 11 12 12 if (isset($_POST['killmail'])) … … 34 34 elseif ($killid == -3) 35 35 { 36 $filterdate = date("j F Y", $config->getConfig("filter_date"));36 $filterdate = kbdate("j F Y", $config->getConfig("filter_date")); 37 37 $html = "You are not allowed to post killmails older than $filterdate."; 38 38 } -
dev/common/register.php
r188 r190 1 1 <?php 2 require_once('c lass.killboard.php');3 require_once('c lass.page.php');2 require_once('common/includes/class.killboard.php'); 3 require_once('common/includes/class.page.php'); 4 4 5 5 $killboard = new Killboard(KB_SITE); -
dev/common/search.php
r92 r190 1 1 <?php 2 require_once("db.php"); 3 require_once("class.page.php"); 4 require_once("globals.php"); 2 require_once('common/includes/class.page.php'); 5 3 6 $page = new Page( "Search");4 $page = new Page('Search'); 7 5 8 6 $html .= "<form id=search action=\"?a=search\" method=post>"; -
dev/common/standings.php
r134 r190 1 1 <?php 2 require_once('db.php'); 3 require_once('class.page.php'); 4 require_once('class.corp.php'); 5 require_once('class.alliance.php'); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.corp.php'); 4 require_once('common/includes/class.alliance.php'); 6 5 7 6 $page = new Page(); -
dev/common/system_detail.php
r155 r190 1 1 <?php 2 require_once("db.php"); 3 require_once("class.page.php"); 4 require_once('class.system.php'); 5 require_once('class.killlist.php'); 6 require_once('class.killlisttable.php'); 7 require_once('class.killsummarytable.php'); 8 require_once('class.box.php'); 2 require_once('common/includes/class.page.php'); 3 require_once('common/includes/class.system.php'); 4 require_once('common/includes/class.killlist.php'); 5 require_once('common/includes/class.killlisttable.php'); 6 require_once('common/includes/class.killsummarytable.php'); 9 7 10 8 $sys_id = intval($_GET['sys_id']); -
dev/common/thumb.php
r158 r190 1 1 <?php 2 require_once('c lass.thumb.php');2 require_once('common/includes/class.thumb.php'); 3 3 4 4 $thumb = new thumb($_GET['id'], $_GET['size'], $_GET['type']); -
dev/index.php
r181 r190 1 1 <?php 2 3 /* 4 * Request forwarder, look at common/index.php for the action and license 5 */ 6 2 7 @error_reporting(E_ALL ^ E_NOTICE); 8 if (PHP_OS != 'Linux') 9 { 10 @ini_set('include_path', ini_get('include_path').';.\\common\\includes'); 11 } 12 else 13 { 14 @ini_set('include_path', ini_get('include_path').':./common/includes'); 15 } 3 16 include('common/index.php'); 4 17 ?> -
dev/install/index.php
r88 r190 34 34 </div></td> 35 35 </tr></table> 36 <div class="counter"><font style="font-size: 9px;">©2006 <a href="http://www.eve-dev.net/" target="_blank">EVE Development Network</a></font></div>36 <div class="counter"><font style="font-size: 9px;">©2006-2007 <a href="http://www.eve-dev.net/" target="_blank">EVE Development Network</a></font></div> 37 37 </td></tr></table> 38 38 </body> -
dev/mods/mail_forward/init.php
r185 r190 6 6 function handler($object) 7 7 { 8 require_once('common/ class.http.php');8 require_once('common/includes/class.http.php'); 9 9 10 10 $req = new http_request(config::get('forward_site').'?a=post'); -
dev/mods/rss_feed/rss.php
r149 r190 7 7 */ 8 8 9 require_once("common/ class.corp.php");10 require_once("common/ class.alliance.php");11 require_once("common/ class.killlist.php");12 require_once("common/ class.killlisttable.php");9 require_once("common/includes/class.corp.php"); 10 require_once("common/includes/class.alliance.php"); 11 require_once("common/includes/class.killlist.php"); 12 require_once("common/includes/class.killlisttable.php"); 13 13 require_once("class.rss.php"); 14 14 -
dev/mods/signature_generator/sig.php
r165 r190 23 23 errorPic('No pilot id specified.'); 24 24 } 25 require_once("common/ class.pilot.php");26 require_once("common/ class.corp.php");27 require_once("common/ class.alliance.php");28 require_once("common/ class.killlist.php");25 require_once("common/includes/class.pilot.php"); 26 require_once("common/includes/class.corp.php"); 27 require_once("common/includes/class.alliance.php"); 28 require_once("common/includes/class.killlist.php"); 29 29 30 30 $pilot = new Pilot($plt_id); -
dev/mods/signature_generator/sig_list.php
r87 r190 1 1 <?php 2 require_once( "common/class.page.php");2 require_once('common/includes/class.page.php'); 3 3 4 $page = new Page( "Signature Listing");4 $page = new Page('Signature Listing'); 5 5 6 6 $signatures = array(); -
dev/templates/admin_options_field_head.tpl
r177 r190 1 <form id="options 2name="options" method="post" action="?a=admin&field={$field}&sub={$sub}">1 <form id="options" name="options" method="post" action="?a=admin&field={$field}&sub={$sub}"> 2 2 <input type="hidden" name="field" value="{$field}"> 3 3 <input type="hidden" name="sub" value="{$sub}"> -
dev/templates/block_comments.tpl
r133 r190 13 13 <p>{$comments[i].comment}</p> 14 14 {if $page->isAdmin()} 15 <a href="javascript:openWindow('?a= comments_delete&c_id={$comments[i].id}', null, 480, 350, '' );">Delete Comment</a>15 <a href="javascript:openWindow('?a=admin_comments_delete&c_id={$comments[i].id}', null, 480, 350, '' );">Delete Comment</a> 16 16 {/if} 17 17 </td>