Changeset 213
- Timestamp:
- 05/08/07 16:40:42 (15 years ago)
- Location:
- dev
- Files:
-
- 37 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/README.txt
r190 r213 18 18 - Point your webbrowser to /install inside the EDK-Directory 19 19 - Follow the instructions 20 - Don't forget to delete the install folder after installation or restrict the access to it! 20 21 - Have fun ;) 21 22 -
dev/common/admin/admin_mapoptions.php
r207 r213 10 10 if ($_POST['submit']) 11 11 { 12 $config->checkCheckbox('map_map_showlines');13 $config->checkCheckbox('map_reg_showlines');14 $config->checkCheckbox('map_con_showlines');15 $config->checkCheckbox('map_con_shownames');16 $config->checkCheckbox('map_map_security');17 $config->checkCheckbox('map_reg_security');18 $config->checkCheckbox('map_con_security');12 config::checkCheckbox('map_map_showlines'); 13 config::checkCheckbox('map_reg_showlines'); 14 config::checkCheckbox('map_con_showlines'); 15 config::checkCheckbox('map_con_shownames'); 16 config::checkCheckbox('map_map_security'); 17 config::checkCheckbox('map_reg_security'); 18 config::checkCheckbox('map_con_security'); 19 19 20 20 foreach ($_POST as $key => $value) … … 45 45 } 46 46 $string = implode(',', $val); 47 $config->setConfig($key, $string);47 config::set($key, $string); 48 48 } 49 49 else 50 50 { 51 $config->delConfig($key);51 config::del($key); 52 52 } 53 53 } -
dev/common/admin/admin_mods.php
r212 r213 19 19 } 20 20 $activemods = substr($activemods, 0, strlen($activemods)-1); 21 config::set Config("mods_active", $activemods);21 config::set("mods_active", $activemods); 22 22 } 23 $activemods = explode(",", config::get Config("mods_active"));23 $activemods = explode(",", config::get("mods_active")); 24 24 $html = <<<HTML 25 25 <form action="?a=admin_mods" method="post"> -
dev/common/alliance_detail.php
r212 r213 518 518 $menubox->addOption("caption","Pilot statistics"); 519 519 $menubox->addOption("link","Top killers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=pilot_kills"); 520 if (config::get Config('kill_points'))520 if (config::get('kill_points')) 521 521 { 522 522 $menubox->addOption('link', "Top scorers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=pilot_scores"); -
dev/common/awards.php
r212 r213 59 59 // top scorers 60 60 $killboard = $page->killboard_; 61 if (config::get KillPoints())61 if (config::get('kill_points')) 62 62 { 63 63 $tklist = new TopScoreList(); -
dev/common/cc_detail.php
r212 r213 221 221 $page->addContext($tkbox->generate()); 222 222 223 if (config::get KillPoints())223 if (config::get('kill_points')) 224 224 { 225 225 $tklist = new TopContractScoreList(); -
dev/common/comments.php
r212 r213 6 6 { 7 7 $pw = false; 8 if (!config::get Config('comments_pw') || $page->isAdmin())8 if (!config::get('comments_pw') || $page->isAdmin()) 9 9 { 10 10 $pw = true; 11 11 } 12 if ($_POST['password'] == $config->getPostPassword() || $pw)12 if ($_POST['password'] == config::get("post_password") || $pw) 13 13 { 14 14 if ($_POST['comment'] == '') -
dev/common/corp_detail.php
r212 r213 408 408 409 409 $killboard = $page->killboard_; 410 if (config::get KillPoints())410 if (config::get('kill_points')) 411 411 $menubox->addOption("link","Top scorers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_scores"); 412 412 $menubox->addOption("link","Top solokillers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_solo"); -
dev/common/home.php
r212 r213 67 67 68 68 // bad hax0ring, we really need mod callback stuff 69 if (strpos(config::get Config('mods_active'), 'rss_feed') !== false)69 if (strpos(config::get('mods_active'), 'rss_feed') !== false) 70 70 { 71 71 $html .= "<div class=kb-kills-header><a href=\"?a=rss\"><img src=\"mods/rss_feed/rss_icon.png\" alt=\"RSS-Feed\" border=\"0\"></a> 20 most recent kills</div>"; … … 116 116 $page->addContext($tkbox->generate()); 117 117 118 if ( $config->getKillPoints())118 if (config::get('kill_points')) 119 119 { 120 120 $tklist = new TopScoreList(); -
dev/common/igb_home.php
r212 r213 108 108 $page->addContext($tkbox->generate()); 109 109 110 if (config::get KillPoints())110 if (config::get('kill_points')) 111 111 { 112 112 $tklist = new TopScoreList(); -
dev/common/includes/class.config.php
r209 r213 1 1 <?php 2 3 2 class Config 4 3 { … … 8 7 } 9 8 10 function getPostPassword()11 {12 return config::get('post_password');13 }14 15 function getPostMailto()16 {17 return config::get('post_mailto');18 }19 20 function getKillPoints()21 {22 return config::get('kill_points');23 }24 25 function getLeastActive()26 {27 return config::get('least_active');28 }29 30 function getConfig($key)31 {32 return config::get($key);33 }34 35 function setConfig($key, $value)36 {37 config::set($key, $value);38 }39 40 function delConfig($key)41 {42 config::del($key, $value);43 }44 45 9 function checkCheckbox($name) 46 10 { 47 11 if ($_POST[$name] == 'on') 48 12 { 49 $this->setConfig($name, '1');13 config::set($name, '1'); 50 14 return true; 51 15 } 52 $this->setConfig($name, '0');16 config::set($name, '0'); 53 17 return false; 54 }55 56 function setStyleName($name)57 {58 $this->setConfig("style_name", $name);59 }60 61 function setStyleBanner($banner)62 {63 $this->setConfig("style_banner", $banner);64 }65 66 function setPostPassword($password)67 {68 $this->setConfig("post_password", $password);69 }70 71 function setPostMailto($mailto)72 {73 $this->setConfig("post_mailto", $mailto);74 }75 76 function setKillPoints($flag)77 {78 $this->setConfig("kill_points", $flag);79 }80 81 function setLeastActive($flag)82 {83 $this->setConfig("least_active", $flag);84 18 } 85 19 -
dev/common/includes/class.item.php
r212 r213 87 87 if (!isset($row['itm_id'])) 88 88 { 89 if (config::get Config('adapt_items'))89 if (config::get('adapt_items')) 90 90 { 91 91 // if the item is a tec2 we likely have the tec1 -
dev/common/includes/class.killboard.php
r194 r213 1 1 <?php 2 require_once('common/includes/db.php');3 2 require_once('common/includes/class.config.php'); 4 3 -
dev/common/includes/class.killlist.php
r212 r213 42 42 fbcrp.crp_name as fbcrp_name'; 43 43 44 if (config::get Config('ship_values'))44 if (config::get('ship_values')) 45 45 { 46 46 $this->sql_ .= ', ksv.shp_value'; … … 56 56 inner join kb3_ship_classes scl 57 57 on ( scl.scl_id = shp.shp_class )"; 58 if (config::get Config('ship_values'))58 if (config::get('ship_values')) 59 59 { 60 60 $this->sql_ .= ' left join kb3_ships_values ksv on (shp.shp_id = ksv.shp_id) '; -
dev/common/includes/class.killlisttable.php
r212 r213 32 32 $this->kill_list_->rewind(); 33 33 $smarty->assign('daybreak', $this->daybreak_); 34 $smarty->assign('comments_count', config::get Config('comments_count'));34 $smarty->assign('comments_count', config::get('comments_count')); 35 35 36 36 // evil hardcode-hack, don't do this at home kids ! ;) 37 if (config::get Config('style_name') == 'revelations')37 if (config::get('style_name') == 'revelations') 38 38 { 39 39 $smarty->assign('comment_white', '_white'); … … 97 97 $kll['plext'] = null; 98 98 } 99 if (config::get Config('comments_count'))99 if (config::get('comments_count')) 100 100 { 101 101 $kll['commentcount'] = $kill->countComment($kill->getID()); -
dev/common/includes/class.killsummarytable.php
r212 r213 108 108 109 109 $sql = 'SELECT count(*) AS knb, scl_id, scl_class,'; 110 if (config::get Config('ship_values'))110 if (config::get('ship_values')) 111 111 { 112 112 $sql .= ' sum(ifnull(ksv.shp_value,scl.scl_value)) AS kisk FROM kb3_kills kll … … 142 142 143 143 $sql = 'SELECT count(*) AS lnb, scl_id, scl_class,'; 144 if (config::get Config('ship_values'))144 if (config::get('ship_values')) 145 145 { 146 146 $sql .= ' sum(ifnull(ksv.shp_value,scl.scl_value)) AS lisk FROM kb3_kills kll -
dev/common/includes/class.parser.php
r212 r213 296 296 if (!$authorized) 297 297 { 298 if ($string = config::get Config('post_permission'))298 if ($string = config::get('post_permission')) 299 299 { 300 300 if ($string == 'all') -
dev/common/includes/globals.php
r212 r213 1 1 <?php 2 2 // current subversion revision 3 preg_match('/\$Re'.'vision: (.*?) \$/', '$Revision: 21 0$', $match);3 preg_match('/\$Re'.'vision: (.*?) \$/', '$Revision: 213 $', $match); 4 4 define('SVN_REV', $match[1]); 5 5 -
dev/common/kill_detail.php
r212 r213 7 7 $page = new Page('Kill details'); 8 8 9 if ( $config->getConfig('item_values'))9 if (config::get('item_values')) 10 10 { 11 11 $smarty->assign('item_values', 'true'); … … 96 96 $smarty->assign_by_ref('involved', $involved); 97 97 98 if ( $config->getConfig('comments'))98 if (config::get('comments')) 99 99 { 100 100 include('comments.php'); … … 147 147 { 148 148 $item = $destroyed->getItem(); 149 if ( $config->getConfig('item_values'))149 if (config::get('item_values')) 150 150 { 151 151 $value = $destroyed->getValue(); -
dev/common/post.php
r212 r213 69 69 else 70 70 { 71 if (config::get PostMailto() != "")71 if (config::get('post_mailto') != "") 72 72 { 73 73 $mailer = new PHPMailer(); -
dev/common/post_igb.php
r212 r213 10 10 if (isset($_POST['killmail'])) 11 11 { 12 if ($_POST['password'] == config::get PostPassword())12 if ($_POST['password'] == config::get('post_mailto')) 13 13 { 14 14 $parser = new Parser($_POST['killmail']); … … 32 32 elseif ($killid == -3) 33 33 { 34 $filterdate = kbdate("j F Y", $config->getConfig("filter_date"));34 $filterdate = kbdate("j F Y", config::get("filter_date")); 35 35 $html = "You are not allowed to post killmails older than $filterdate."; 36 36 } … … 40 40 else 41 41 { 42 if ( $config->getPostMailTo() != "")42 if (config::get("post_mailto") != "") 43 43 { 44 44 $mailer = new PHPMailer(); 45 45 $kill = new Kill($killid); 46 46 47 $mailer->From = "mailer@". $config->getConfig('mail_host');48 $mailer->FromName = $config->getConfig('mail_host');47 $mailer->From = "mailer@".config::get('mail_host'); 48 $mailer->FromName = config::get('mail_host'); 49 49 $mailer->Subject = "Killmail #" . $killid; 50 50 $mailer->Host = "localhost"; … … 52 52 $mailer->Helo = "localhost"; 53 53 $mailer->Mailer = "smtp"; 54 $mailer->AddReplyTo("no_reply@". $config->getConfig('mail_host'), "No-Reply");55 $mailer->Sender = "mailer@". $config->getConfig('mail_host');54 $mailer->AddReplyTo("no_reply@".config::get('mail_host'), "No-Reply"); 55 $mailer->Sender = "mailer@".config::get('mail_host'); 56 56 $mailer->Body = $kill->getRawMail(); 57 $mailer->AddAddress( $config->getPostMailto());57 $mailer->AddAddress(config::get('post_mailto')); 58 58 $mailer->Send(); 59 59 } … … 75 75 } 76 76 } 77 elseif (! $config->getConfig('post_forbid'))77 elseif (!config::get('post_forbid')) 78 78 { 79 79 $html .= "Paste the killmail from your EVEMail inbox into the box below. Make sure you post the <b>ENTIRE</b> mail.<br>Posting fake or otherwise edited mails is not allowed. All posts are logged."; -
dev/mods/example_mod/home.php
r212 r213 108 108 $page->addContext($tkbox->generate()); 109 109 110 if (config::get KillPoints())110 if (config::get('kill_points')) 111 111 { 112 112 $tklist = new TopScoreList(); -
dev/mods/feed_syndication/feed_fetcher.php
r193 r213 25 25 $link = ""; 26 26 $x=0; 27 28 function setConfig($key, $value) {29 global $config;30 if (method_exists($config, 'setConfig'))31 return $config->setConfig($key, $value);32 $qry = new DBQuery();33 $qry->execute("select cfg_value from kb3_config34 where cfg_key = '".$key."' and cfg_site = '".KB_SITE."'");35 if ($qry->recordCount())36 $sql = "update kb3_config set cfg_value = '".$value."'37 where cfg_site = '".KB_SITE."' and cfg_key = '".$key."'";38 else39 $sql = "insert into kb3_config values ( '".KB_SITE."','".$key."','".$value."' )";40 $qry->execute($sql);41 }42 43 function getConfig($key) {44 global $config;45 if (method_exists($config, 'getConfig'))46 return $config->getConfig($key);47 $qry = new DBQuery();48 $qry->query("select ".$key." from kb3_config where cfg_site = '".KB_SITE."'");49 $row = $qry->getRow();50 if (isset($row[$key]))51 return $row[$key];52 return false;53 }54 55 function delConfig($key) {56 global $config;57 $qry = new DBQuery();58 $qry->execute("delete from kb3_config where cfg_key = '".$key."' and cfg_site = '".KB_SITE."'");59 }60 27 61 28 class Fetcher { … … 89 56 xml_parser_free($xml_parser); 90 57 91 if ( getConfig('fetch_verbose') ) {58 if (config::get('fetch_verbose') ) { 92 59 if ($x) 93 60 $html .= "<div class=block-header2>".$x." kills added from feed: ".$url."<br>".$str." <i><br>(".$cprs.")</i><br><br></div>"; … … 120 87 $killid = $parser->parse( true ); 121 88 if ( $killid == 0 || $killid == -1 || $killid == -2 ) { 122 if ( $killid == 0 && getConfig('fetch_verbose') )89 if ( $killid == 0 && config::get('fetch_verbose') ) 123 90 $html .= "Killmail is malformed.<br>"; 124 if ( $killid == -2 && getConfig('fetch_verbose') )91 if ( $killid == -2 && config::get('fetch_verbose') ) 125 92 $html .= "Killmail is not related to ".KB_TITLE.".<br>"; 126 if ( $killid == -1 && getConfig('fetch_verbose') )93 if ( $killid == -1 && config::get('fetch_verbose') ) 127 94 $html .= "Killmail already posted <a href=\"?a=kill_detail&kll_id=".$parser->dupeid_."\">here</a>.<br>"; 128 95 } … … 132 99 $html .= "Killmail succsessfully posted <a href=\"?a=kill_detail&kll_id=".$killid."\">here</a>.<br>"; 133 100 134 if (class_exists('Comments') && getConfig('fetch_comment')) { // for the Eve-Dev Comment Class101 if (class_exists('Comments') && config::get('fetch_comment')) { // for the Eve-Dev Comment Class 135 102 $comments = new Comments($killid); 136 $comments->addComment("liq's feed syndication", getConfig('fetch_comment')." mail fetched from: ".$uurl.")");103 $comments->addComment("liq's feed syndication", config::get('fetch_comment')." mail fetched from: ".$uurl.")"); 137 104 } 138 if (class_exists('Comment') && getConfig('fetch_comment')) { // for the D2 Killboard Comment Class105 if (class_exists('Comment') && config::get('fetch_comment')) { // for the D2 Killboard Comment Class 139 106 $comment = new Comment($killid); 140 $comment->postComment( getConfig('fetch_comment')." \n\n\n <i>mail fetched from:\n ".$uurl."</i>", "liquidism");107 $comment->postComment(config::get('fetch_comment')." \n\n\n <i>mail fetched from:\n ".$uurl."</i>", "liquidism"); 141 108 } 142 109 $x++; -
dev/mods/feed_syndication/settings.php
r212 r213 40 40 $html .= '<div class="kl-loss">Cant retrieve version information from: '.$versionserver.'</div><br><br>'; 41 41 42 if ( getConfig('fetch_feed_count'))43 $feedcount = getConfig('fetch_feed_count');42 if (config::get('fetch_feed_count')) 43 $feedcount = config::get('fetch_feed_count'); 44 44 else 45 45 $feedcount = 3; … … 49 49 if ( ctype_digit($_POST['fetch_feed_count']) && $_POST['fetch_feed_count'] > 0) { 50 50 $feedcount = $_POST['fetch_feed_count']; 51 setConfig('fetch_feed_count', $feedcount);51 config::set('fetch_feed_count', $feedcount); 52 52 for ($i = 99; $i>=$feedcount; $i--) { 53 delConfig('fetch_url_'.$i);53 config::del('fetch_url_'.$i); 54 54 } 55 55 } 56 56 if ( $_POST['fetch_verbose'] ) 57 setConfig('fetch_verbose', '1');58 else 59 setConfig('fetch_verbose', '0');57 config::set('fetch_verbose', '1'); 58 else 59 config::set('fetch_verbose', '0'); 60 60 61 61 if ( $_POST['fetch_compress'] ) 62 setConfig('fetch_compress', '0');63 else 64 setConfig('fetch_compress', '1');62 config::set('fetch_compress', '0'); 63 else 64 config::set('fetch_compress', '1'); 65 65 66 66 if ( $_POST['fetch_comment'] ) 67 setConfig('fetch_comment', $_POST['fetch_comment']);68 else 69 setConfig('fetch_comment', '');67 config::set('fetch_comment', $_POST['fetch_comment']); 68 else 69 config::set('fetch_comment', ''); 70 70 71 71 for ($i = 1; $i<=$feedcount; $i++) { … … 75 75 $friends = "on"; 76 76 else $friends = ""; 77 setConfig($url, $_POST[$url].':::'.$time[$i].':::'.$friends);77 config::set($url, $_POST[$url].':::'.$time[$i].':::'.$friends); 78 78 $feed[$i] = $_POST[$url]; 79 79 } else 80 setConfig($url, '');80 config::set($url, ''); 81 81 $feed[$i] = ''; 82 82 } … … 84 84 $feed = array(); 85 85 for ($i = 1; $i<=$feedcount; $i++) { 86 $str = getConfig('fetch_url_'.$i);86 $str = config::gset('fetch_url_'.$i); 87 87 $tmp = explode(':::', $str); 88 88 $feed[$i] = $tmp[0]; … … 113 113 if ( $_POST['fetch_losses'] ) 114 114 $str .= "&losses=1"; 115 if ( ! getConfig('fetch_compress') )115 if ( !config::get('fetch_compress') ) 116 116 $str .= "&gz=1"; 117 117 if ( $_POST['range1'] && $_POST['range2'] ) { … … 130 130 $html .= $feedfetch->grab( $feed[$i], $myid.$str ); 131 131 } 132 setConfig($cfg, $feed[$i].':::'.$lastkllid.':::'.$friend);132 config::set($cfg, $feed[$i].':::'.$lastkllid.':::'.$friend); 133 133 $time[$i] = $lastkllid; 134 134 } … … 203 203 $html .= "<tr><td height=50px width=150px><b>Comment for automatically parsed killmails?</b></td>"; 204 204 $html .= "<td><input type=text size=50 class=password name=fetch_comment id=fetch_comment value=\""; 205 if ( getConfig('fetch_comment') )206 $html .= getConfig('fetch_comment');205 if ( config::get('fetch_comment') ) 206 $html .= config::get('fetch_comment'); 207 207 $html .= "\"><br><i> (leave blank for none)</i><br></td></tr>"; 208 208 $html .= "<tr><td height=30px width=150px><b>Enable compression?</b></td>"; 209 209 $html .= "<td><input type=checkbox name=fetch_compress id=fetch_compress"; 210 if ( ! getConfig('fetch_compress') )210 if ( !config::get('fetch_compress') ) 211 211 $html .= " checked=\"checked\""; 212 212 $html .= "><i> (enables GZip compression for feeds that support this feature, for streams that do not support GZip compression regular html mode will be used automatically)</i></td>"; … … 214 214 $html .= "<tr><td height=30px width=150px><b>Verbose mode?</b></td>"; 215 215 $html .= "<td><input type=checkbox name=fetch_verbose id=fetch_verbose"; 216 if ( getConfig('fetch_verbose') )216 if ( config::get('fetch_verbose') ) 217 217 $html .= " checked=\"checked\""; 218 218 $html .= "><i> (displays advanced feed request information and errormessages when the imported mail is rejected for being malformed, already exists or is not related to your corp or alliance)</i></td>"; -
dev/mods/forum_post/cc_detail.php
r212 r213 229 229 230 230 $killboard = $page->killboard_; 231 if (config::get KillPoints())231 if (config::get('kill_points')) 232 232 { 233 233 $tklist = new TopContractScoreList(); -
dev/mods/forum_post/class.killsummarytable.php
r212 r213 108 108 109 109 $sql = 'SELECT count(*) AS knb, scl_id, scl_class,'; 110 if (config::get Config('ship_values'))110 if (config::get('ship_values')) 111 111 { 112 112 $sql .= ' sum(ifnull(ksv.shp_value,scl.scl_value)) AS kisk FROM kb3_kills kll … … 142 142 143 143 $sql = 'SELECT count(*) AS lnb, scl_id, scl_class,'; 144 if (config::get Config('ship_values'))144 if (config::get('ship_values')) 145 145 { 146 146 $sql .= ' sum(ifnull(ksv.shp_value,scl.scl_value)) AS lisk FROM kb3_kills kll … … 401 401 402 402 // Build our Post 403 $set_colours = unserialize(config::get Config('forum_post_colours')); //load colour settings403 $set_colours = unserialize(config::get('forum_post_colours')); //load colour settings 404 404 if(!is_array($set_colours)) { $set_colours = array(); } // if the settings have been reset create an empty array so as not to brake the code later on 405 $set_styles = unserialize(config::get Config('forum_post_styles')); //load style settings405 $set_styles = unserialize(config::get('forum_post_styles')); //load style settings 406 406 if(!is_array($set_styles)) { $set_styles = array(); } // if the settings have been reset create an empty array so as not to brake the code later on 407 $set_isk = config::get Config('forum_post_isk',$_POST['isk']); // load isk setting407 $set_isk = config::get('forum_post_isk',$_POST['isk']); // load isk setting 408 408 409 409 //print_r($set_styles); … … 441 441 $style_close = ""; 442 442 } 443 $order = config::get Config('forum_post_order');443 $order = config::get('forum_post_order'); 444 444 445 445 if($order == "first"){ -
dev/mods/forum_post/settings.php
r212 r213 24 24 if(isset($_POST['Reset'])) 25 25 { 26 config::set Config('forum_post_colours',"");27 config::set Config('forum_post_styles',"");26 config::set('forum_post_colours',""); 27 config::set('forum_post_styles',""); 28 28 $confirm = "<strong>Settings Reset</strong><br/>"; 29 29 } … … 56 56 57 57 } 58 config::set Config('forum_post_colours',serialize($forum_post_colours) );59 config::set Config('forum_post_styles',serialize($forum_post_styles));60 config::set Config('forum_post_isk',$_POST['isk']);61 config::set Config('forum_post_order',$_POST['order']);58 config::set('forum_post_colours',serialize($forum_post_colours) ); 59 config::set('forum_post_styles',serialize($forum_post_styles)); 60 config::set('forum_post_isk',$_POST['isk']); 61 config::set('forum_post_order',$_POST['order']); 62 62 63 63 $confirm = "<strong>Settings Saved</strong><br/>"; … … 68 68 $html .= $confirm; 69 69 70 $set_colours = unserialize(config::get Config('forum_post_colours')); //load colour settings70 $set_colours = unserialize(config::get('forum_post_colours')); //load colour settings 71 71 if(!is_array($set_colours)) { $set_colours = array(); } // if the settings have been reset create an empty array so as not to brake the code later on 72 $set_styles = unserialize(config::get Config('forum_post_styles')); //load style settings72 $set_styles = unserialize(config::get('forum_post_styles')); //load style settings 73 73 if(!is_array($set_styles)) { $set_styles = array(); } // if the settings have been reset create an empty array so as not to brake the code later on 74 $set_isk = config::get Config('forum_post_isk',$_POST['isk']); // load isk setting74 $set_isk = config::get('forum_post_isk',$_POST['isk']); // load isk setting 75 75 76 76 //print_r($set_styles); … … 142 142 143 143 Place ship class at start or end of each line?<br/>'; 144 if(config::get Config('forum_post_order') != "last"){144 if(config::get('forum_post_order') != "last"){ 145 145 146 146 $html .= '<input name="order" type="radio" value="first" checked="checked"/>Start<br/> -
dev/mods/known_members/corp_detail.php
r212 r213 406 406 407 407 case "known_members": 408 if( $config->getConfig('known_members_own'))408 if(config::get('known_members_own')) 409 409 { 410 410 $alliance->getID(); … … 432 432 $qry->execute($query); 433 433 $cnt = $qry->recordCount(); 434 $clmn = $config->getConfig('known_members_clmn');434 $clmn = config::get('known_members_clmn'); 435 435 436 436 $html .= "<div class=block-header2>Known Pilots (".$cnt.")</div>"; … … 535 535 $menubox->addOption("link","Top killers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_kills"); 536 536 537 if (config::get KillPoints())537 if (config::get('kill_points')) 538 538 $menubox->addOption("link","Top scorers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_scores"); 539 539 $menubox->addOption("link","Top solokillers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_solo"); -
dev/mods/known_members/settings.php
r212 r213 4 4 if ($_POST['submit']) 5 5 { 6 if($_POST['known_members_own']){ 7 $config->setConfig('known_members_own', '1'); 8 } 9 else 10 { 11 $config->setConfig('known_members_own', '0'); 12 } 13 14 $clmn = ""; 15 if($_POST['img']) {$clmn .=",img";} 16 if($_POST['kll_pnts']) {$clmn .=",kll_pnts";} 17 if($_POST['dmg_dn']) {$clmn .=",dmg_dn";} 18 if($_POST['dmg_rcd']) {$clmn .=",dmg_rcd";} 19 if($_POST['eff']) {$clmn .=",eff";} 20 if($_POST['lst_sn']) {$clmn .=",lst_sn";} 21 $config->setConfig('known_members_clmn', $clmn); 22 23 $html .= "Setting Saved"; 6 if($_POST['known_members_own']){ 7 config::set('known_members_own', '1'); 8 } 9 else 10 { 11 config::set('known_members_own', '0'); 12 } 13 $clmn = ""; 14 if($_POST['img']) {$clmn .=",img";} 15 if($_POST['kll_pnts']) {$clmn .=",kll_pnts";} 16 if($_POST['dmg_dn']) {$clmn .=",dmg_dn";} 17 if($_POST['dmg_rcd']) {$clmn .=",dmg_rcd";} 18 if($_POST['eff']) {$clmn .=",eff";} 19 if($_POST['lst_sn']) {$clmn .=",lst_sn";} 20 config::set('known_members_clmn', $clmn); 21 $html .= "Setting Saved"; 24 22 } 25 23 … … 30 28 $html .= "<table class=kb-subtable>"; 31 29 $html .= "<tr><td><b>Remove Known Members page for board owner:</b></td><td><input type=checkbox name=known_members_own id=known_members_own"; 32 if ( $config->getConfig('known_members_own'))30 if (config::get('known_members_own')) 33 31 { 34 32 $html .= " checked=\"checked\""; … … 39 37 $html .= "<div class=block-header2>Show Columns</div>"; 40 38 $html .= "<table class=kb-subtable>"; 41 $clmn = $config->getConfig('known_members_clmn');39 $clmn = config::get('known_members_clmn'); 42 40 43 41 $html .= "<tr><td><b>Add Char. Portrait:</b></td><td><input type=checkbox name=img id=img"; -
dev/templates/admin_mapoptions.tpl
r123 r213 11 11 {section name=opt loop=$options[id].option} 12 12 {assign var="o" value=$options[id].option[opt]} 13 <tr><td width="120"><b>{$o.descr}:</b></td><td><input type="checkbox" name="{$o.name}" id="{$o.name}"{if $config->get Config($o.name)}checked="checked"{/if}></td></tr>13 <tr><td width="120"><b>{$o.descr}:</b></td><td><input type="checkbox" name="{$o.name}" id="{$o.name}"{if $config->get($o.name)}checked="checked"{/if}></td></tr> 14 14 {/section} 15 15 {section name=opt loop=$options[id].color} 16 16 {assign var="o" value=$options[id].color[opt]} 17 <tr><td width="120"><b>{$o.descr}:</b></td><td><input type="edit" name="{$o.name}" id="{$o.name}"{if $config->get Config($o.name)} value="{$config->getConfig($o.name)}"{/if}></td></tr>17 <tr><td width="120"><b>{$o.descr}:</b></td><td><input type="edit" name="{$o.name}" id="{$o.name}"{if $config->get($o.name)} value="{$config->get($o.name)}"{/if}></td></tr> 18 18 {/section} 19 19 </table> -
dev/templates/admin_options_checkbox.tpl
r188 r213 2 2 <tr><td width="160"><b>{$opt.descr}:</b></td><td> 3 3 <input type="checkbox" id="option[{$opt.name}]" name="option[{$opt.name}]" 4 {if $config->get Config($opt.name)} checked="checked"{/if}>4 {if $config->get($opt.name)} checked="checked"{/if}> 5 5 {if $opt.hint} 6 6 ({$opt.hint}) -
dev/templates/admin_options_edit.tpl
r188 r213 2 2 <tr><td width="160"><b>{$opt.descr}:</b></td><td> 3 3 <input type="edit" id="option[{$opt.name}]" name="option[{$opt.name}]" 4 value="{$config->get Config($opt.name)}" size="{$options.size}" maxlength="{$options.maxlength}">4 value="{$config->get($opt.name)}" size="{$options.size}" maxlength="{$options.maxlength}"> 5 5 {if $opt.hint} 6 6 ({$opt.hint}) -
dev/templates/admin_postperm.tpl
r134 r213 23 23 {/if} 24 24 <br/> 25 {if $config->get Config('post_permission')=='all'}25 {if $config->get('post_permission')=='all'} 26 26 Authorization checking is disabled, people stil need to know the postpassword, though.<br/> 27 27 <a href="?a=admin_postperm&authall=0">Enable authorization checking.</a> -
dev/templates/battle_overview_table.tpl
r188 r213 16 16 </td> 17 17 {if $i.podded} 18 {if $config->get Config('bs_podlink')}18 {if $config->get('bs_podlink')} 19 19 <td class="kb-table-cell"> 20 20 <b><a href="?a=pilot_detail&plt_id={$pilot}">{$i.name}</a> <a href="?a=kill_detail&kll_id={$i.podid}">[Pod]</a></b><br/>{$i.ship} -
dev/templates/block_comments.tpl
r190 r213 29 29 <b>Name:</b> 30 30 <input style="position:relative; right:-3px;" class="comment-button" name="name" type="text" size="24" maxlength="24"> 31 {if $config->get Config('comments_pw') and !$page->isAdmin()}31 {if $config->get('comments_pw') and !$page->isAdmin()} 32 32 <br/> 33 33 <b>Password:</b> -
dev/templates/kill_detail.tpl
r174 r213 39 39 {/foreach} 40 40 </table> 41 {if $config->get Config('comments')}{$comments}{/if}41 {if $config->get('comments')}{$comments}{/if} 42 42 </td> 43 43 <td width=50> </td> … … 66 66 <td class="item-icon" width="32"><img src="{$img_url}/{$slot.img}" alt="{$slot.text}" border="0"></td> 67 67 <td colspan="2" class="kb-table-cell"><b>{$slot.text}</b> </td> 68 {if $config->get Config('item_values')}68 {if $config->get('item_values')} 69 69 <td align="center" class="kb-table-cell"><b>Value</b></td> 70 70 {/if} … … 75 75 <td class="kb-table-cell">{$i.Name}</td> 76 76 <td width="30" align="center">{$i.Quantity}</td> 77 {if $config->get Config('item_values')}77 {if $config->get('item_values')} 78 78 <td align="center">{$i.Value}</td> 79 79 {/if} 80 80 </tr> 81 {if $admin and $config->get Config('item_values')}81 {if $admin and $config->get('item_values')} 82 82 <tr class="kb-table-row-even"> 83 83 <form method="post" action=""> -
dev/templates/user_register.tpl
r188 r213 13 13 <td><input type="password" name="usrpass" maxlength="32"></td> 14 14 </tr> 15 {if $config->get Config('user_regpass')}15 {if $config->get('user_regpass')} 16 16 <tr> 17 17 <td width="160"><b>Registration Password:</b></td>