示例#1
0
文件: game.php 项目: KDE/ocs-server
<?php

include "gfx3/lib.php";
$gameid = EHeaderDataParser::db_get("id");
EStructure::load("game");
$client = new OCSClient();
$data = $client->get("v1/content/data/{$gameid}/");
if (EUser::nick() == $data["ocs"]["data"]["content"]["personid"]) {
    EStructure::module("mod_game_menu", "mod_game");
}
EStructure::code();
echo stripslashes($data["ocs"]["data"]["content"]["name"]);
Estructure::insert("game_title");
EStructure::code();
echo stripslashes($data["ocs"]["data"]["content"]["summary"]);
Estructure::insert("game_summary");
//features
EStructure::code();
echo stripslashes($data["ocs"]["data"]["content"]["description"]);
Estructure::insert("game_description");
EStructure::code();
echo stripslashes($data["ocs"]["data"]["content"]["changelog"]);
Estructure::insert("game_changelog");
EStructure::code();
$person = $data["ocs"]["data"]["content"]["personid"];
echo "<a data-toggle=\"modal\" href=\"#viewSelfProfileModal\" class=\"modalButton bold\" target=\"/viewProfileModal.php?login={$person}\">{$person}</a>";
Estructure::insert("game_author");
EStructure::code();
echo stripslashes($data["ocs"]["data"]["content"]["version"]);
Estructure::insert("game_version");
EStructure::code();