Ejemplo n.º 1
0
<?php

/**
 */
require "../libraries/common.inc.php";
require "wap.share.php";
require "../share.inc.php";
require CACHE_PATH . "cache_typeoption.php";
//require(LIB_PATH. 'page.class.php');
require APP_ROOT . './libraries/page.class.php';
//require(LIB_PATH."Tera-WURFL/TeraWurfl.php");
uses("product", "gamehandset", "game");
$product = new Products();
$gamehandset = new Gamehandsets();
$game = new Games();
$page = new Pages();
$page->pagetpl_dir = $theme_name;
if (isset($_GET['id'])) {
    $id = intval($_GET['id']);
}
$info = $product->getProductById($id);
if (empty($info) || !$info) {
    flash("không có dữ liệu thỏa mãn yêu cầu!", '', 0);
}
$gamehandset_info = $gamehandset->getInfo($pid, $device_id);
if (!empty($gamehandset_info)) {
    $game_id = $gamehandset_info['game_id'];
}
$game_info = $game->getInfoById($game_id);
$attach_id = $game_info['attachment_id'];
if (empty($attach_id)) {
Ejemplo n.º 2
0
 * Licensed under The Languages Packages Licenses.
 * Support : phpb2b@hotmail.com
 * 
 * @version $Revision$
 */
require "../libraries/common.inc.php";
//require("session_cp.inc.php");
require "room.share.php";
uses("gamehandset", "handset");
require LIB_PATH . 'time.class.php';
require APP_ROOT . 'libraries/page.class.php';
require LIB_PATH . "cache.class.php";
include CACHE_PATH . "cache_type.php";
$page = new Pages();
$cache = new Caches();
$gamehandset = new Gamehandsets();
$handset = new Handsets();
$conditions = array();
//$conditions[] = "brand_name <> ''";
//$conditions[] = "brand_name = 'nokia'";
$fields = null;
$tpl_file = "gamehandset";
if (!empty($id)) {
    $vals['created'] = $time_stamp;
    $handsetinfo = $handset->read("*", $id);
    $vals['device_id'] = $handsetinfo['deviceID'];
    $vals['brand_name'] = $handsetinfo['brand_name'];
    $vals['model_name'] = $handsetinfo['model_name'];
}
if (isset($_REQUEST['del']) && !empty($_REQUEST['id'])) {
    $deleted = false;