Example #1
0
 * 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;
    $deleted = $gamehandset->del($_REQUEST['id']);
Example #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("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();
$handset = new Handsets();
$conditions = array();
//$conditions[] = "brand_name <> ''";
//$conditions[] = "brand_name = 'nokia'";
$fields = null;
$tpl_file = "handset";
if (!empty($pid)) {
    $vals['product_id'] = $pid;
}
if (!empty($id)) {
    $vals['modified'] = $time_stamp;
    $result = $handset->save($vals, "update", $id);
}
if (isset($_REQUEST['del']) && !empty($_REQUEST['id'])) {
    $deleted = false;
    $deleted = $handset->del($_REQUEST['id']);
Example #3
0
<?php

/**
 * PHPB2B :  Opensource B2B Script (http://www.phpb2b.com/)
 * Copyright (C) 2007-2010, Ualink. All Rights Reserved.
 * 
 * Licensed under The Languages Packages Licenses.
 * Support : phpb2b@hotmail.com
 * 
 * @version $Revision: 1393 $
 */
require "../libraries/common.inc.php";
require "room.share.php";
require LIB_PATH . 'time.class.php';
uses("handset");
$handset = new Handsets();
$sql = "select * from terawurflmerge where actual_device_root =1";
$result = $pdb->GetArray($sql);
//print_r($result);exit;
$i = 0;
foreach ($result as $key => $val) {
    $capabilities = unserialize($val['capabilities']);
    print_r($capabilities);
    continue;
    $vals['deviceID'] = $capabilities['id'];
    $vals['user_agent'] = $capabilities['user_agent'];
    $vals['brand_name'] = $capabilities['product_info']['brand_name'];
    $vals['model_name'] = $capabilities['product_info']['model_name'];
    $vals['width'] = $capabilities['display']['resolution_width'];
    $vals['height'] = $capabilities['display']['resolution_height'];
    $vals['j2me'] = serialize($capabilities['j2me']);