コード例 #1
0
ファイル: dbconn.php プロジェクト: bubutrip/bubutrip
 public static function query_allmemneweve()
 {
     $sql = "SELECT * FROM `tk_buburegusr`";
     $result = dbconn::db_GetAll($sql);
     $m = 0;
     foreach ($result as $row) {
         $result[$m]['sns_info'] = dbconn::getFBUserById($row['usr_uid']);
         $result[$m]['definfo'] = dbconn::get_oneusr($row['usr_uid']);
         $sql2 = "SELECT * FROM `tk_bubu_deviceids` WHERE `dev_uid` = '" . $result[$m]['definfo']['id'] . "';";
         $result[$m]['deviceids'] = dbconn::db_GetAll($sql2);
         $result[$m]['countn'] = dbconn::count_member_xu($row['usr_uid']);
         #$count = dbconn::count_comkey( $result[$m]['usr_makekey'] );
         #$result[$m]['countn'] = $count + ( count( $result[$m]['deviceids'] ) * 50 ) ;
         $m++;
     }
     return $result;
 }
コード例 #2
0
ファイル: fbsharer2.php プロジェクト: bubutrip/bubutrip
<?php

#載入預設系統
include_once "libraries/load.php";
#執行應用程式
$keyid = !empty($_GET['keyid']) ? $_GET['keyid'] : 0;
if (!empty($_GET['keyid'])) {
    $userdata['definfo'] = dbconn::get_oneusr($_GET['keyid']);
    $userdata['othinfo'] = dbconn::get_usruid($_GET['keyid']);
    $count = dbconn::count_comkey($userdata['othinfo']['usr_makekey']);
    $userdata['count'] = $count['countn'];
} else {
    $userdata['othinfo']['usr_makekey'] = '';
}
/*
	<!--meta property="og:image" content="http://www.bubutrip.com.tw/event/2015Anniversary/resources/images/fb_share.jpg"></meta-->	
	<!--meta property="og:image" content="http://theme.jake.tw/fb_share.jpg"></meta-->	
*/
?>
<html lang="en">
	<head>
		<meta charset="utf-8">		

		<meta property="og:locale" content="zh_TW" />		
		<meta property="og:type" content="website" />
		<meta property="og:site_name" content="BuBuTrip週年慶,我的住宿券要靠你!" />		
		<meta property="og:title" content="BuBuTrip週年慶,我的住宿券要靠你!" />			
		<meta property="og:url" content="http://www.bubutrip.com.tw/event/2015Anniversary/fbsharer2.php">
		<meta property="og:description" content="新朋友註冊成功後,除了能替好友累積中獎機會,還可抽7-11佰元禮券。同時也會產生專屬招待碼,抽親子住宿券喔!" />
	</head>
	<body></body>
コード例 #3
0
ファイル: index.php プロジェクト: bubutrip/bubutrip
<?php

#載入預設系統
include_once "libraries/load.php";
#執行應用程式
$userdata['definfo'] = dbconn::get_oneusr($_SESSION['user']['id']);
$userdata['othinfo'] = dbconn::get_usruid($_SESSION['user']['id']);
$userdata['count'] = dbconn::count_member_xu($_SESSION['user']['id']);
#載入View
if ($_SESSION['checkmobile'] == 1) {
    $view = 'views/mobile/m.index.php';
} else {
    $view = 'views/web/index.php';
}
include_once $view;