public function ItemBuy() { $ItemMap = MapItemQuery::create()->findOneByIdMapItem($_POST['id']); if (!$ItemMap && $_POST['id'] <= GlobalVar::ITEM_MAP) { $ItemBuy = new MapItem(); $ItemBuy->setIdMapItem($_POST['id']); $ItemBuy->save(); echo 'kupiłeś item: ' . $_POST['id']; } else { echo 'item zajety'; } }
</div> <?php } ?> <div class="page-header" style="margin: 0 0 20px;"> <h2> <a href="<?php echo URL::route('home'); ?> " class="pull-right btn btn-default">Back to List</a> Timer Details </h2> </div> <?php $name = MapItem::find($timer->itemID); $user = ApiUser::find($timer->user_id); $sys_tmp = preg_split("/\\ [IVX]+/", $name->itemName); $system = $sys_tmp[0]; ?> <h3><a href="http://evemaps.dotlan.net/system/<?php echo $system; ?> "><?php echo $name->itemName; ?> </a></h3> <h4><?php echo date('Y-m-d H:i:s e', strtotime($timer->timeExiting)); ?> - <?php
function GroupItem($aItemtype) { parent::MapItem(); global $gl_standardtag; $this->itemtype = $aItemtype; $this->tagname = $gl_standardtag; $this->itemid = -1; $this->parentid = -1; $this->usrid = -1; $this->itemname = "new item"; $this->tags = null; $this->children = array(); $this->id = ""; $this->isvirtual = false; $this->user = null; }
public function searchCelestialAction() { $line = new stdClass(); $line->locations = array(); $text = Input::get('q'); // did we get passed an ID? if (ctype_digit($text)) { $result = MapItem::where('itemID', '=', $text)->whereIn('groupID', array('7', '8'))->where('security', '<', '0.8')->take(1)->get(); if ($result != false) { $result = $result[0]; $line->locations = array('text' => $result->itemName, 'id' => $result->itemID); goto endGetLocation; // OH GOD AAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH // MY EYES MY EYES ARE BURNING WITH ACID IT HURTS OHHHHH GODDDD IT HUURRRTTTTTSSSSSSSss.. } } $search = MapItem::where('itemName', 'like', $text . '%')->whereIn('groupID', array('7', '8'))->where('security', '<', '0.8')->take(40)->get(); foreach ($search as $row) { $line->locations[] = array('text' => $row->itemName, 'id' => $row->itemID); } // GOTO END endGetLocation: if (!Input::has('callback')) { return Response::json($line); } else { return Response::json($line)->setCallback(Input::get('callback')); } }