Changeset 300
- Timestamp:
- 12/23/07 18:10:16 (15 years ago)
- Location:
- dev/common
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/includes/class.config.php
r289 r300 134 134 { 135 135 // add important upgrade configs here, they will return the default if not set 136 // they will be shown as set but take no space in the database 136 137 $defaults = array('summarytable_rowcount' => 6); 137 138 -
dev/common/includes/class.killlist.php
r213 r300 22 22 $this->realkillcounter_ = 0; 23 23 $this->ordered_ = false; 24 $this->walked = false; 24 25 } 25 26 … … 264 265 } 265 266 266 $this->killisk_ += $row['scl_value']; 267 $this->killpoints_ += $row['kll_points']; 267 if ($this->walked == false) 268 { 269 $this->killisk_ += $row['scl_value']; 270 $this->killpoints_ += $row['kll_points']; 271 } 268 272 269 273 $kill = new Kill($row['kll_id']); … … 303 307 return $kill; 304 308 } 305 else return null; 309 else 310 { 311 $this->walked = true; 312 return null; 313 } 306 314 } 307 315 -
dev/common/kill_detail.php
r294 r300 19 19 $Val = $_POST[$IID]; 20 20 $qry = new DBQuery(); 21 $qry->execute(" UPDATE kb3_items SET itm_value ='".$Val."' WHERE itm_id='".$IID."'");21 $qry->execute("INSERT INTO kb3_item_price (typeID, price) VALUES ('".$IID."', '".$Val."') ON DUPLICATE KEY UPDATE price = '".$Val."'"); 22 22 } 23 23 } … … 26 26 if ($page->isAdmin()) 27 27 { 28 if (isset($_GET['view']) && $_GET['view']== 'FixSlot') {29 $smarty->assign('fixSlot', 'true'); 30 } 31 32 33 34 35 36 37 38 39 40 41 42 43 28 if (isset($_GET['view']) && $_GET['view']== 'FixSlot') 29 { 30 $smarty->assign('fixSlot', 'true'); 31 } 32 33 $smarty->assign('admin', 'true'); 34 if (isset($_POST['submit']) && $_POST['submit'] == 'UpdateSlot') 35 { 36 $IID = $_POST['IID']; 37 $KID = $_POST['KID']; 38 $Val = $_POST[$IID]; 39 $table = $_POST['TYPE']; 40 $old = $_POST['OLDSLOT']; 41 $qry = new DBQuery(); 42 $qry->execute("UPDATE kb3_items_".$table." SET itd_itl_id ='".$Val."' WHERE itd_itm_id=".$IID." AND itd_kll_id = ".$KID." AND itd_itl_id = ".$old); 43 } 44 44 } 45 45 … … 241 241 $menubox->addOption("link", "Delete", "javascript:openWindow('?a=admin_kill_delete&kll_id=".$kill->getID()."', null, 420, 300, '' );"); 242 242 $menubox->addOption("link", "Fix Slots", "?a=kill_detail&kll_id=".$kill->getID()."&view=FixSlot"); 243 243 244 244 } 245 245 $page->addContext($menubox->generate());