/** * Set the root directory to be used for class files. * * @param string $dir The root directory to use for includes. */ public static function setRoot($dir) { if (substr($dir, -1) != "/") { $dir .= "/"; } self::$dir = $dir; }
edkloader::register('TopCorpLossesList', 'common/includes/class.toplist.php'); edkloader::register('TopFinalBlowList', 'common/includes/class.toplist.php'); edkloader::register('TopDamageDealerList', 'common/includes/class.toplist.php'); edkloader::register('TopSoloKillerList', 'common/includes/class.toplist.php'); edkloader::register('TopPodKillerList', 'common/includes/class.toplist.php'); edkloader::register('TopGrieferList', 'common/includes/class.toplist.php'); edkloader::register('TopCapitalShipKillerList', 'common/includes/class.toplist.php'); edkloader::register('TopContractKillsList', 'common/includes/class.toplist.php'); edkloader::register('TopContractScoreList', 'common/includes/class.toplist.php'); edkloader::register('TopPilotTable', 'common/includes/class.toplist.php'); edkloader::register('TopCorpTable', 'common/includes/class.toplist.php'); edkloader::register('TopShipList', 'common/includes/class.toplist.php'); edkloader::register('TopShipListTable', 'common/includes/class.toplist.php'); edkloader::register('TopWeaponList', 'common/includes/class.toplist.php'); edkloader::register('TopWeaponListTable', 'common/includes/class.toplist.php'); edkloader::register('thumbInt', 'common/includes/class.thumb.php'); require_once 'common/includes/db.php'; function slashfix($fix) { return addslashes(stripslashes($fix)); } function roundsec($sec) { if ($sec <= 0) { $s = 0.0; } else { $s = $sec; } return number_format(round($s, 1), 1); } /**
<?php /** * @package EDK */ edkloader::register('shipImage', dirname(__FILE__) . "/shipImage.php"); ob_start(); if (!($sig_name = edkURI::getArg('s', 2))) { $sig_name = 'default'; } $sig_name = str_replace('.', '', $sig_name); $sig_name = str_replace('/', '', $sig_name); function errorPic($string) { $im = imagecreate(200, 60); $black = imagecolorallocate($im, 0, 0, 0); $red = imagecolorallocate($im, 250, 200, 20); imagefill($im, 1, 1, $black); imagestring($im, 3, 10, 10, 'Error: ' . $string, $red); header('Content-Type: image/jpeg'); imagejpeg($im); exit; } function lastKill($id) { $id = (int) $id; if (!$id) { return false; } $sql = "SELECT UNIX_TIMESTAMP(max(ind_timestamp)) as last " . "FROM kb3_inv_detail WHERE ind_plt_id = {$id}"; $qry = DBFactory::getDBQuery();