} ?> <hr class="normal"> <ul id="footlink"> <?php } ?> <li><a href="/db/"<?php echo mbi_ack(9); ?> ><?php echo mbi("9."); ?> データベース</a></li> <li><a href="/"<?php echo mbi_ack(0); ?> ><?php echo mbi("0."); ?> トップページ</a></li> </ul> <?php $data->select_id("accesscount", $PAGE_ID); $c_data = $data->fetch(); pagefoot($data->access_count("accesscount", $PAGE_ID, $c_data["count"])); ?> </div> </body> </html>
} if (isset($_SESSION["user"]) && isset($_SESSION["pass"])) { $data = new AdminData($_SESSION["user"], $_SESSION["pass"], "ezdata"); if (!$data->is_admin) { session_destroy(); die("データベースの接続に失敗しました"); } } else { $data = new GuestData($userName, $password, $database); } if (mysqli_connect_error()) { die("データベースの接続に失敗しました"); } $i_name = ""; if ($data->is_added("items", $id)) { $data->select_id("items", $id); $item = $data->fetch(); $i_name = $item["name"]; $category = item_category_id($id); $categoryName = item_category($category); $group = item_group_id($id); $groupName = item_group($group); $i_text = nl2br(str_replace(" ", " ", $item["text"])); $i_rare = item_attribute($item["rare"]); $i_notrade = item_attribute($item["notrade"]); $i_price = item_price($item["price"]); $i_stack = $item["stack"]; $i_note = nl2br($item["note"]); $i_hidden = $item["hidden"]; //未実装アイテム if (!isset($data->is_admin) && $i_hidden) {
} else { die("接続設定の読み込みに失敗しました"); } $data = new GuestData($userName, $password, $database); if (mysqli_connect_error()) { die("データベースの接続に失敗しました"); } $m_name = ""; $column = array("zone", "id"); $value = array($zone, $id); $data->select_column("*", "monster", $column, $value); if ($data->rows()) { $monster = $data->fetch(); $m_name = $monster["name"]; $m_nm = $monster["nm"] ? " class=\"nm\"" : ""; $data->select_id("zone", $zone); $zoneData = $data->fetch(); $zoneName = $zoneData["name"]; $m_categoryId = $monster["category"]; $m_categoryName = $category[$m_categoryId] ?: "不明"; $data->select_column("id", "monster", "category", $m_categoryId); $link_id = $data->rows() < 5 ? 900 : $m_categoryId; $m_image = file_exists("/var/www/img/monster/" . sprintf("%03d", $monster["image"]) . ".gif") ? sprintf("%5d", $monster["image"]) : "00000"; $m_walkspeed = $walkspeed[$monster["walkspeed"]]; $m_delay = monster_delay($monster["delay"]); $m_search = $search[$monster["search"]]; $m_follow = $monster["follow"] == "" ? "不明" : $data->data_link(nl2br($monster["follow"])); $m_link = $monster["link"] == "" ? "不明" : $data->data_link(nl2br($monster["link"])); $m_level = monster_level($monster["maxlevel"], $monster["minlevel"]); $m_repop = $monster["repop"] == "" ? "不明" : $data->data_link(nl2br($monster["repop"])); $m_skill = $monster["skill"] == "" ? "不明" : $data->data_link(nl2br($monster["skill"]));
} $user_file = "/etc/mysql-user/user5000.ini"; if ($fp_user = fopen($user_file, "r")) { $userName = rtrim(fgets($fp_user)); $password = rtrim(fgets($fp_user)); $database = rtrim(fgets($fp_user)); } else { die("接続設定の読み込みに失敗しました"); } $data = new GuestData($userName, $password, $database); if (mysqli_connect_error()) { die("データベースの接続に失敗しました"); } $q_name = ""; if ($data->is_added("quest", $id)) { $data->select_id("quest", $id); $quest = $data->fetch(); $q_name = $quest["name"]; $category = quest_category_array(); $category_id = quest_category_id($category, $id); $category_name = $category[$category_id]; $q_note = $data->data_link(nl2br($quest["note"])); if (!strlen($q_note)) { $q_note .= "準備中"; } $q_updated = $quest["updated"]; $q_count = $data->access_count("quest", $id, $quest["count"]); } else { toppage(); } $title = "クエストデータ {$q_name}";
} $user_file = "/etc/mysql-user/user5000.ini"; if ($fp_user = fopen($user_file, "r")) { $userName = rtrim(fgets($fp_user)); $password = rtrim(fgets($fp_user)); $database = rtrim(fgets($fp_user)); } else { die("接続設定の読み込みに失敗しました"); } $data = new GuestData($userName, $password, $database); if (mysqli_connect_error()) { die("データベースの接続に失敗しました"); } $s_name = ""; if ($data->is_added("skill", $id)) { $data->select_id("skill", $id); $skill = $data->fetch(); $s_name = $skill["name"]; $categories = simplexml_load_file($xml); foreach ($categories->category as $category) { foreach ($category->group as $group) { if ($skill["category"] == $group["id"]) { $category_id = $category["id"]; $category_name = $category["name"]; $group_id = $group["id"]; $group_name = $group["name"]; } } } $s_learning = $data->data_link(nl2br($skill["learning"])); $s_learning = preg_replace("/##group##/", $group_name, $s_learning);
} else { toppage(); } $user_file = "/etc/mysql-user/user5000.ini"; if ($fp_user = fopen($user_file, "r")) { $userName = rtrim(fgets($fp_user)); $password = rtrim(fgets($fp_user)); $database = rtrim(fgets($fp_user)); } else { die("接続設定の読み込みに失敗しました"); } $data = new GuestData($userName, $password, $database); if (mysqli_connect_error()) { die("データベースの接続に失敗しました"); } if ($data->select_id("updinfo", $id)) { $updinfo = $data->fetch(); $detail = $data->data_link(nl2br($updinfo["detail"])); if (!strlen($detail)) { $detail .= "準備中"; } $count = $data->access_count("updinfo", $id, $updinfo["count"]); } else { toppage(); } $title = "アプリ更新情報 {$id}"; ?> <html> <head> <?php echo pagehead($title);
} $user_file = "/etc/mysql-user/user5000.ini"; if ($fp_user = fopen($user_file, "r")) { $userName = rtrim(fgets($fp_user)); $password = rtrim(fgets($fp_user)); $database = rtrim(fgets($fp_user)); } else { die("接続設定の読み込みに失敗しました"); } $data = new GuestData($userName, $password, $database); if (mysqli_connect_error()) { die("データベースの接続に失敗しました"); } $title = "クラスデータ "; if ($data->is_added("class", $id)) { $data->select_id("class", $id); $class = $data->fetch(); $name = $class["name"]; $nameE = $class["nameE"]; $nameS = $class["nameS"]; $dagger = $class["dagger"]; $sword = $class["sword"]; $axe = $class["axe"]; $hammer = $class["hammer"]; $wand = $class["wand"]; $bow = $class["bow"]; $dodge = $class["dodge"]; $shield = $class["shield"]; $element = $class["element"]; $light = $class["light"]; $dark = $class["dark"];
$data = new AdminData($_SESSION["user"], $_SESSION["pass"], "ezdata"); if (!$data->is_admin) { session_destroy(); die("データベースの接続に失敗しました"); } } else { $data = new GuestData($userName, $password, $database); } if (mysqli_connect_error()) { die("データベースの接続に失敗しました"); } if ($id == 0) { $title = "ゾーンデータ"; $PAGE_ID = 30000; } else { if (!$data->select_id("zone", $id)) { toppage(); } $row = $data->fetch(); $name = $row["name"]; $nameE = $row["nameE"]; $event = $row["event"]; $image = file_exists("/var/www/img/zone/" . sprintf("%03d", $id) . $mode . ".gif") ? sprintf("%03d", $id) . $mode : "0000"; $z_count = $data->access_count("zone", $id, $row["count"]); $title = "ゾーンデータ {$name}"; if ($mode == 1) { $title .= " クエスト"; } if ($mode == 2) { $title .= " モンスター"; }