ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE/branches/kunitada/MyNETS/trunk/webapp/lib/db/read/api.php @ 3043

Last change on this file since 3043 was 3043, checked in by kunitada, 16 years ago

MyNETS1.0.1 merge

File size: 1.4 KB
Line 
1<?php
2
3/* ========================================================================
4 *
5 * @license This source file is subject to version 3.01 of the PHP license,
6 *              that is available at http://www.php.net/license/3_01.txt
7 *              If you did not receive a copy of the PHP license and are unable
8 *              to obtain it through the world-wide-web, please send a note to
9 *              license@php.net so we can mail you a copy immediately. 
10 *
11 * @category   Application of MyNETS
12 * @project    OpenPNE UsagiProject 2006-2007
13 * @package    MyNETS
14 * @author     UsagiProject <info@usagi.mynets.jp>
15 * @copyright  2006-2007 UsagiProject <author member ad http://usagi.mynets.jp/member.html>
16 * @version    MyNETS,v 1.0.0
17 * @since      File available since Release 1.0.0 Nighty
18 * @chengelog  [2007/02/17] Ver1.1.0Nighty package
19 *             [2007/02/28] Tabele Prefix
20 * ========================================================================
21 */
22
23/**
24 * OpenPNE
25 * @copyright 2005-2006 OpenPNE Project
26 * @link      http://www.tejimaya.com/openpne.shtml
27 *
28 */
29
30function db_api_get_member_token($c_member_id)
31{
32    $sql = 'SELECT token FROM ' . MYNETS_PREFIX_NAME . 'c_api_member WHERE c_member_id = ?';
33    $params = array(intval($c_member_id));
34    if ($token = db_get_one($sql, $params)) {
35        return $token;
36    } else {
37        return db_api_insert_token($c_member_id);
38    }
39}
40
41?>
Note: See TracBrowser for help on using the repository browser.