Ejemplo n.º 1
0
/**
 * 注册会员
 * @param string $openid
 * @param string $nickname
 * @return string 会员账号
 */
function register_openid($openid, $nickname, $parent_id = 0)
{
    global $db;
    global $log;
    $db->begin();
    $member_data = array('account' => get_account(), 'wx_openid' => $openid, 'wx_nickname' => $nickname, 'name' => $nickname, 'add_time' => time(), 'recommend_id' => $parent_id, 'level_id' => 1);
    if ($db->autoInsert('member', array($member_data))) {
        $update_data = array();
        $path = '';
        $id = $db->get_last_id();
        if ($parent_id) {
            $get_parent = 'select `recommend_path`,`account` from ' . $db->table('member') . ' where `id`=' . $parent_id;
            $parent = $db->fetchRow($get_parent);
            $path = $parent['recommend_path'];
            $update_data['recommend'] = $parent['account'];
        }
        $path .= $id . ',';
        $update_data['recommend_path'] = $path;
        if ($db->autoUpdate('member', $update_data, '`id`=' . $id)) {
            $log->record_array($member_data);
            $db->commit();
            return $member_data['account'];
        }
    }
    $db->rollback();
    return false;
}
Ejemplo n.º 2
0
     echo get_discussions($_GET);
 } else {
     if (strpos($uri, '/projects') !== false) {
         echo get_projects($_GET);
     } else {
         if (strpos($uri, '/companies') !== false) {
             echo get_company($_GET);
         } else {
             if (strpos($uri, '/company_reviews') !== false) {
                 echo get_company_review($_GET);
             } else {
                 if (strpos($uri, '/add_review_company') !== false) {
                     echo add_company_review($_POST);
                 } else {
                     if (strpos($uri, '/get_account') !== false) {
                         echo get_account($_GET);
                     } else {
                         if (strpos($uri, '/components') !== false) {
                             echo get_components($_GET);
                         } else {
                             if (strpos($uri, '/documents') !== false) {
                                 echo get_documents($_GET);
                             } else {
                                 if (strpos($uri, '/products') !== false) {
                                     echo get_products($_GET);
                                 } else {
                                     if (strpos($uri, '/add_to_project') !== false) {
                                         echo add_to_project($_POST);
                                     } else {
                                         if (strpos($uri, '/remove_from_project') !== false) {
                                             echo remove_from_project($_POST);
Ejemplo n.º 3
0
 private function _process_get_auction_listing_fee($item_id, $ebay_id)
 {
     $app_tokens = $this->config->item('appToken');
     $app_token = $app_tokens[$ebay_id];
     $itemsPerPage = 200;
     $pageIndex = 1;
     $this->ebay_config['siteToUseID'] = 0;
     $this->ebay_config['callName'] = 'GetAccount';
     $this->load->library('ebayapi/EbaySession', $this->ebay_config);
     $has_more = true;
     while ($has_more) {
         $itemInfo = array('itemsPerPage' => $itemsPerPage, 'pageIndex' => $pageIndex, 'itemId' => $item_id);
         $xml = get_account($app_token, $itemInfo);
         $resp = $this->xmlRequest($this->ebaysession, $xml);
         if (!isset($resp->HasMoreTransactions) || $resp->HasMoreTransactions == 'false') {
             $has_more = false;
         }
         if ($resp->Ack == 'Failure') {
             return false;
         }
         if (!isset($resp->AccountEntries)) {
             break;
         }
         $accounts = $resp->AccountEntries->AccountEntry;
         foreach ($accounts as $account) {
             // check the listing fee.
             if ($account->AccountDetailsEntryType == 'FeeInsertion') {
                 $listing_fee = (string) $account->GrossDetailAmount;
                 return $listing_fee;
             }
         }
         $pageIndex++;
     }
     break;
 }
Ejemplo n.º 4
0
 //使用余额
 if ($real_amount > 0 && $use_balance) {
     $log->record('use balance');
     if ($real_amount > $member_info['balance']) {
         $balance_paid = $member_info['balance'];
         $real_amount -= $member_info['balance'];
     } else {
         $balance_paid = $total_amount;
         $real_amount = 0;
     }
 }
 $db->begin();
 $recommend_info = $db->fetchRow($get_recommend_info);
 $recommend = $recommend_info['account'];
 //注册会员
 $register_data = array('name' => $name, 'level_id' => $level_id, 'mobile' => $mobile, 'recommend' => $recommend, 'add_time' => time(), 'account' => get_account(), 'recommend_id' => $recommend_info['id'], 'from' => 'wechat', 'status' => 1);
 // 365会员身份将在365天后过期
 if ($level_id == 2) {
     $register_data['level_expired'] = time();
 }
 if ($db->autoInsert('member', array($register_data))) {
     $account = $register_data['account'];
     $register_id = $db->get_last_id();
     if ($db->autoUpdate('member', array('recommend_path' => $recommend_info['recommend_path'] . $register_id . ','), '`account`=\'' . $account . '\'')) {
         //插入订单
         $pay_order_data = array('add_time' => time(), 'total_amount' => $total_amount, 'real_amount' => $real_amount, 'integral_amount' => 0, 'integral_given_amount' => 0, 'item_name' => $lang['level'][$level_id] . '注册', 'recommend' => $recommend, 'recommend_id' => $recommend_info['id'], 'payment_id' => 1, 'payment_name' => '微信支付', 'payment_code' => 'Wechat', 'type' => 1, 'balance_paid' => $balance_paid, 'reward_paid' => $reward_paid, 'account' => $account);
         $response['status'] = 1;
         if ($real_amount == 0) {
             $response['status'] = 3;
             $pay_order_data['status'] = 3;
             $pay_order_data['pay_time'] = time();
Ejemplo n.º 5
0
unset($deny, $not_logged);
// loaded account;


if ($_GET['uid']){
	$Loaded=new Client($_GET['uid'], 'uid');
	$_SESSION['clid']=$Loaded->client_id;
	$_SESSION['uid']=$Loaded->account_uid;
}elseif ($_SESSION['clid']){
	$Loaded=new Client($_SESSION['clid'], 'id');
}else{
	$Loaded=new Client($_SESSION['uid']);
}

$SHWUID=$_SESSION['clid']?'&uid='.get_account($_SESSION['clid'], 'uid'):'';

// *******************************************************************************
class TSell extends Table {
	// *******************************************************************************
	function TSell($intid) { // set Admin object

		$this->Table('trades');
		$this->get_fields('trade_id='.$intid);
		
		$sql='SELECT trade_id, trade_position FROM trades WHERE trade_rel='.$intid.' AND trade_status>0 AND trade_order=-1 ORDER BY trade_add';
		$rs=mysql_query($sql);
		if ($rs){
			$row=mysql_fetch_assoc($rs);
			$i=1;
			$pos_left=$this->trade_position;
Ejemplo n.º 6
0
function url_action_pop_fetch($tools, $get, $post)
{
    if (!$tools->logged_in()) {
        $tools->page_not_found();
    }
    /* get saved settings and accounts */
    $pop_accounts = $tools->get_setting('pop_fetch_accounts');
    $folders = $tools->imap_get_folders();
    $pd = array();
    $pd['mode'] = 'add';
    $pd['notices'] = array();
    $pd['pop_account_name'] = '';
    $pd['pop_account_host'] = '';
    $pd['pop_account_port'] = 110;
    $pd['pop_account_user'] = '';
    $pd['pop_account_password'] = '';
    $pd['pop_account_ssl'] = '';
    $pd['pop_account_starttls'] = '';
    $pd['pop_account_id'] = '';
    $pd['pop_account_folder'] = '';
    $pd['pop_account_keep'] = '';
    /* edit form */
    if (isset($get['edit_id'])) {
        $atts = get_account($get['edit_id'], $pop_accounts);
        if (!empty($atts)) {
            $pd['mode'] = 'edit';
            $pd['pop_account_id'] = $atts[0];
            $pd['pop_account_name'] = $atts[1];
            $pd['pop_account_host'] = $atts[2];
            $pd['pop_account_port'] = $atts[3];
            $pd['pop_account_user'] = $atts[6];
            $pd['pop_account_password'] = $atts[7];
            $pd['pop_account_folder'] = $atts[8];
            if ($atts[4]) {
                $pd['pop_account_ssl'] = 'checked="checked"';
            }
            if ($atts[5]) {
                $pd['pop_account_starttls'] = 'checked="checked"';
            }
            if ($atts[9]) {
                $pd['pop_account_keep'] = 'checked="checked"';
            }
        } elseif (!isset($post['delete_pop_account'])) {
            $tools->send_notice('Could not the requested account');
        }
    }
    /* update general settings */
    if (isset($post['update_pop_fetch'])) {
        if (isset($post['account_update_interval']) && intval($post['account_update_interval']) > 0 && intval($post['account_update_interval']) <= 60 * 60) {
            $tools->save_setting('pop_update_interval', intval($post['account_update_interval']));
        } else {
            $tools->save_setting('pop_update_interval', 0);
        }
        if (isset($post['account_folder_tree'])) {
            $tools->save_setting('pop_folder_tree', 1);
        } else {
            $tools->save_setting('pop_folder_tree', 0);
        }
        $tools->send_notice('Settings Updated');
    } elseif (isset($post['delete_pop_account'])) {
        if (isset($get['edit_id'])) {
            $atts = get_account($get['edit_id'], $pop_accounts);
            if (!empty($atts)) {
                $new_accounts = array();
                foreach ($pop_accounts as $vals) {
                    if ($vals[0] == $atts[0]) {
                        continue;
                    }
                    $new_accounts[] = $vals;
                }
                $pop_accounts = $new_accounts;
                $tools->save_setting('pop_fetch_accounts', $pop_accounts);
                $tools->send_notice('Account Deleted');
                $pd['mode'] = 'add';
                $pd['pop_account_name'] = '';
                $pd['pop_account_host'] = '';
                $pd['pop_account_port'] = '';
                $pd['pop_account_user'] = '';
                $pd['pop_account_password'] = '';
                $pd['pop_account_ssl'] = '';
                $pd['pop_account_starttls'] = '';
                $pd['pop_account_id'] = '';
                $pd['pop_account_folder'] = '';
                $pd['pop_account_keep'] = '';
            }
        }
    } elseif (isset($post['edit_pop_account'])) {
        $pop_account_name = '';
        $pop_account_host = '';
        $pop_account_port = 110;
        $pop_account_user = '';
        $pop_account_password = '';
        $pop_account_ssl = '';
        $pop_account_starttls = '';
        $pop_account_id = '';
        $pop_account_folder = '';
        $pop_account_keep = '';
        if (isset($get['edit_id']) && trim($get['edit_id'])) {
            $pop_account_id = $get['edit_id'];
        } else {
            $pd['notices'][] = 'Account id is required';
        }
        if (isset($post['pop_account_folder']) && trim($post['pop_account_folder'])) {
            $pop_account_folder = $post['pop_account_folder'];
        } else {
            $pd['notices'][] = 'Destination folder is required';
        }
        if (isset($post['pop_account_name']) && trim($post['pop_account_name'])) {
            $pop_account_name = $post['pop_account_name'];
        } else {
            $pd['notices'][] = 'Account name is required';
        }
        if (isset($post['pop_account_host']) && trim($post['pop_account_host'])) {
            $pop_account_host = $post['pop_account_host'];
        } else {
            $pd['notices'][] = 'Account host is required';
        }
        if (isset($post['pop_account_port']) && trim($post['pop_account_port'])) {
            $pop_account_port = $post['pop_account_port'];
        } else {
            $pd['notices'][] = 'Account port is required';
        }
        if (isset($post['pop_account_user']) && trim($post['pop_account_user'])) {
            $pop_account_user = $post['pop_account_user'];
        } else {
            $pd['notices'][] = 'Account username is required';
        }
        if (isset($post['pop_account_password']) && trim($post['pop_account_password'])) {
            $pop_account_password = $post['pop_account_password'];
        } else {
            $pd['notices'][] = 'Account password is required';
        }
        if (isset($post['pop_account_starttls'])) {
            $pop_account_starttls = true;
        } else {
            $pop_account_starttls = false;
        }
        if (isset($post['pop_account_ssl'])) {
            $pop_account_ssl = true;
        } else {
            $pop_account_ssl = false;
        }
        if (isset($post['pop_account_keep'])) {
            $pop_account_keep = true;
        } else {
            $pop_account_keep = false;
        }
        if (empty($pd['notices'])) {
            $pop_account = array($pop_account_id, $pop_account_name, $pop_account_host, $pop_account_port, $pop_account_ssl, $pop_account_starttls, $pop_account_user, $pop_account_password, $pop_account_folder, $pop_account_keep);
            if ($pop_account_id) {
                $atts = get_account($pop_account_id, $pop_accounts);
                foreach ($pop_accounts as $index => $vals) {
                    if ($vals[0] == $atts[0]) {
                        $pop_accounts[$index] = $pop_account;
                        break;
                    }
                }
                $tools->save_setting('pop_fetch_accounts', $pop_accounts);
                $tools->send_notice('Account Updated');
                $pd['mode'] = 'add';
                $pd['pop_account_name'] = '';
                $pd['pop_account_host'] = '';
                $pd['pop_account_port'] = '';
                $pd['pop_account_user'] = '';
                $pd['pop_account_password'] = '';
                $pd['pop_account_ssl'] = '';
                $pd['pop_account_starttls'] = '';
                $pd['pop_account_id'] = '';
                $pd['pop_account_folder'] = '';
                $pd['pop_account_keep'] = '';
            }
        }
    } elseif (isset($post['add_pop_account'])) {
        $pop_account_name = '';
        $pop_account_host = '';
        $pop_account_port = '';
        $pop_account_user = '';
        $pop_account_password = '';
        $pop_account_ssl = '';
        $pop_account_starttls = '';
        $pop_account_folder = '';
        $pop_account_keep = '';
        if (isset($post['pop_account_folder']) && trim($post['pop_account_folder'])) {
            $pop_account_folder = $post['pop_account_folder'];
        } else {
            $pd['notices'][] = 'Destination folder is required';
        }
        if (isset($post['pop_account_name']) && trim($post['pop_account_name'])) {
            $pop_account_name = $post['pop_account_name'];
        } else {
            $pd['notices'][] = 'Account name is required';
        }
        if (isset($post['pop_account_host']) && trim($post['pop_account_host'])) {
            $pop_account_host = $post['pop_account_host'];
        } else {
            $pd['notices'][] = 'Account host is required';
        }
        if (isset($post['pop_account_port']) && trim($post['pop_account_port'])) {
            $pop_account_port = $post['pop_account_port'];
        } else {
            $pd['notices'][] = 'Account port is required';
        }
        if (isset($post['pop_account_user']) && trim($post['pop_account_user'])) {
            $pop_account_user = $post['pop_account_user'];
        } else {
            $pd['notices'][] = 'Account username is required';
        }
        if (isset($post['pop_account_password']) && trim($post['pop_account_password'])) {
            $pop_account_password = $post['pop_account_password'];
        } else {
            $pd['notices'][] = 'Account password is required';
        }
        if (isset($post['pop_account_starttls'])) {
            $pop_account_starttls = true;
        } else {
            $pop_account_starttls = false;
        }
        if (isset($post['pop_account_ssl'])) {
            $pop_account_ssl = true;
        } else {
            $pop_account_ssl = false;
        }
        if (isset($post['pop_account_keep'])) {
            $pop_account_keep = true;
        } else {
            $pop_account_keep = false;
        }
        if (empty($pd['notices'])) {
            $pop_account_id = md5(uniqid(rand(), 1));
            $pop_accounts[] = array($pop_account_id, $pop_account_name, $pop_account_host, $pop_account_port, $pop_account_ssl, $pop_account_starttls, $pop_account_user, $pop_account_password, $pop_account_folder, $pop_account_keep);
            $tools->save_setting('pop_fetch_accounts', $pop_accounts);
        } else {
            $pd['pop_account_name'] = $pop_account_name;
            $pd['pop_account_host'] = $pop_account_host;
            $pd['pop_account_port'] = $pop_account_port;
            $pd['pop_account_user'] = $pop_account_user;
            $pd['pop_account_password'] = $pop_account_password;
            if ($pop_account_ssl) {
                $pd['pop_account_ssl'] = 'checked="checked"';
            }
            if ($pop_account_starttls) {
                $pd['pop_account_starttls'] = 'checked="checked"';
            }
            if ($pop_account_keep) {
                $pd['pop_account_keep'] = 'checked="checked"';
            }
        }
    }
    $pd['account_update_interval'] = $tools->get_setting('pop_update_interval');
    $fetch_link = $tools->get_setting('pop_folder_tree');
    if ($fetch_link) {
        $pd['account_folder_tree'] = 'checked="checked"';
    } else {
        $pd['account_folder_tree'] = '';
    }
    $pd['folder_options'] = $tools->print_folder_dropdown($folders, array($pd['pop_account_folder']), true);
    $pd['pop_accounts'] = $pop_accounts;
    foreach ($pd['notices'] as $notice) {
        $tools->send_notice($notice);
    }
    $tools->set_title('Fetch Mail');
    return $pd;
}
Ejemplo n.º 7
0
 public function __construct()
 {
     parent::__construct();
     is_null($this->table) and $this->_set_table();
     $this->account = get_account();
 }
Ejemplo n.º 8
0
<?php

$invoice = get_invoice($invoice_id);
$account = get_account($invoice['account_id']);
?>

<ol class="breadcrumb">
	<li><a href="<?php 
echo site_url('');
?>
"><?php 
lang('Dashboard');
?>
</a></li>
	<li><a href="<?php 
echo site_url('payment');
?>
"><?php 
lang('Payment');
?>
</a></li>
    <li><a href="<?php 
echo site_url('payment/payment_list');
?>
"><?php 
lang('Payment List');
?>
</a></li>
	<li class="active">
		<?php 
if ($invoice['in_out'] == 0) {
Ejemplo n.º 9
0
			<div class="bs-callout bs-callout-danger">
      			<h4>' . get_lang('Product Card') . ': <a href="' . site_url('account/get_account/' . $account['id']) . '" target="_blank">' . $account['name'] . '</a> <small>' . $account['county'] . '/' . $account['city'] . '</small></h4>
				
				<small><strong>' . get_lang('phone') . '</strong>:' . $account['phone'] . '  <strong>' . get_lang('gsm') . '</strong>:' . $account['gsm'] . '</small>
				<br />
      			<ul>
	  				<li>' . get_lang('Barcode Code') . ': <code>' . $account['code'] . '</code></li>
					<li>' . get_lang('Balance') . ': <code>' . get_account_balance($account['balance']) . '</code></li>
				</ul>
			</div>
			<br />';
    $custom_title = get_lang('Account Card') . ': ' . $account['name'];
}
if (isset($_GET['invoice_id'])) {
    $invoice = get_invoice($_GET['invoice_id']);
    $account = get_account(array('id' => $invoice['account_id']));
    $plus_content = '
			<div class="bs-callout bs-callout-danger">
      			<h4>' . get_lang('Invoice') . ': <a href="' . site_url('invoice/view/' . $invoice['id']) . '" target="_blank">#' . $invoice['id'] . '</a> / <small>' . $account['name'] . '</small></h4>
				<br />
      			<ul>
					<li>' . get_lang('Invoice') . ': <code><a href="' . site_url('invoice/view/' . $invoice['id']) . '" target="_blank">#' . $invoice['id'] . '</a></code></li>
	  				<li>' . get_lang('Account Card') . ': <code><a href="' . site_url('account/get_account/' . $account['id']) . '" target="_blank">' . $account['code'] . '</a></code></li>
					<li>' . get_lang('Grand Total') . ': <code>' . get_account_balance($invoice['grand_total']) . '</code></li>
				</ul>
			';
    $this->db->where('status', 1);
    $this->db->where('invoice_id', $invoice['id']);
    $items = $this->db->get('invoice_items')->result_array();
    $plus_content = $plus_content . '
			<br />
Ejemplo n.º 10
0
 private function _process_get_auction_listing_fee($ebay_id, $begin_time, $end_time)
 {
     $app_tokens = $this->config->item('appToken');
     $app_token = $app_tokens[$ebay_id];
     $itemsPerPage = 200;
     $pageIndex = 1;
     $this->ebay_config['siteToUseID'] = 0;
     $this->ebay_config['callName'] = 'GetAccount';
     $this->load->library('ebayapi/EbaySession', $this->ebay_config);
     $this->ebaysession->init($this->ebay_config);
     $has_more = true;
     do {
         $itemInfo = array('itemsPerPage' => $itemsPerPage, 'pageIndex' => $pageIndex, 'beginTime' => $begin_time, 'endTime' => $end_time);
         $xml = get_account($app_token, $itemInfo);
         $resp = $this->xmlRequest($this->ebaysession, $xml);
         if (!isset($resp->Ack) || $resp->Ack == 'Failure') {
             echo "Listing Fee Error\n";
             die('');
         }
         $total_pages = $resp->PaginationResult->TotalNumberOfPages;
         if (!isset($resp->AccountEntries)) {
             break;
         }
         $accounts = $resp->AccountEntries->AccountEntry;
         foreach ($accounts as $account) {
             // check the listing fee.
             if ($account->AccountDetailsEntryType == 'FeeInsertion') {
                 $amount_attr = $account->GrossDetailAmount->attributes();
                 $currency_code = '';
                 foreach ($amount_attr as $key => $value) {
                     if ($key == 'currencyID') {
                         $currency_code = (string) $value;
                         break;
                     }
                 }
                 $listing_fee = (string) $account->GrossDetailAmount;
                 $item_id = (string) $account->ItemID;
                 echo "item id: " . $item_id . "\n";
                 $data = array('item_id' => $item_id, 'ebay_id' => $ebay_id, 'listing_fee' => $listing_fee, 'listing_fee_currency' => $currency_code);
                 $this->ebay_order_model->save_myebay_listing_fee($data);
             }
         }
         $pageIndex++;
     } while ($pageIndex <= $total_pages);
     return TRUE;
 }
Ejemplo n.º 11
0
/**
 * 注册会员信息
 * @param string $openid
 * @return string 会员账号
 */
function register_member($openid, $parent_id = 0)
{
    global $db;
    global $log;
    $db->begin();
    $member_data = array('account' => get_account(), 'openid' => $openid, 'add_time' => time(), 'parent_id' => $parent_id, 'sex' => 'N');
    if ($db->autoInsert('member', array($member_data))) {
        $path = '';
        $id = $db->get_last_id();
        $kf_id = 0;
        if ($parent_id) {
            $get_parent_path = 'select `path` from ' . $db->table('member') . ' where `id`=' . $parent_id;
            $path = $db->fetchOne($get_parent_path);
            $get_kf_id = 'select `kf_id` from ' . $db->table('member') . ' where `id`=' . $parent_id;
            $kf_id = $db->fetchOne($get_kf_id);
        } else {
            $get_kf_id = 'select `kf_id`,count(*) as c from ' . $db->table('member') . ' group by `kf_id` order by c';
            $kf_id = $db->fetchOne($get_kf_id);
        }
        $path .= $id . ',';
        $update_data = array('path' => $path, 'kf_id' => $kf_id);
        if ($db->autoUpdate('member', $update_data, '`id`=' . $id)) {
            $log->record_array($member_data);
            $db->commit();
            return $member_data['account'];
        }
    }
    $db->rollback();
    return false;
}
Ejemplo n.º 12
0
<meta charset="utf-8" />
<?php 
$account = get_account(array('id' => $account_id));
?>
<a href="javascript:;" class="img-thumbnail" onclick="print_barcode();">
    <img src="<?php 
echo get_barcode($account['code']);
?>
" class="img-responsive" />
</a>
<p></p>
<table width="100%">
	<tr>
    	<th style="border:1px solid #000;"><?php 
lang('Name');
?>
</th>
        <td style="border:1px solid #000;"><?php 
echo $account['name'];
?>
</td>
    </tr>
    <tr>
    	<th style="border:1px solid #000;"><?php 
lang('Phone');
?>
</th>
        <td style="border:1px solid #000;"><?php 
echo $account['phone'];
?>
</td>
Ejemplo n.º 13
0
     $wx_openid = $db->escape($wx_openid);
 }
 //微信unionid
 if (empty($wx_unionid)) {
     $wx_unionid = '';
 } else {
     $wx_unionid = $db->escape($wx_unionid);
 }
 //密码
 if (empty($password)) {
     $password = '';
 } else {
     $password = md5($password . PASSWORD_END);
 }
 if (count($response['errcontent']) == 0 && $response['errmsg'] == '') {
     $account = get_account();
     if ($account) {
         $member_data = array('account' => $account, 'add_time' => time(), 'name' => $name, 'mobile' => $mobile, 'email' => $email, 'wx_openid' => $wx_openid, 'wx_unionid' => $wx_unionid, 'status' => $status, 'level_id' => $level_id, 'from' => $from, 'password' => $password);
         if ($recommend_info) {
             $member_data['recommend'] = $recommend_info['account'];
             $member_data['recommend_id'] = $recommend_info['id'];
         }
         if ($place_info) {
             $member_data['place'] = $place_info['account'];
             $member_data['place_id'] = $place_info['id'];
         }
         if ($db->autoInsert('member', array($member_data))) {
             $member_id = $db->get_last_id();
             $member_path = array();
             if ($recommend_info) {
                 $member_path['recommend_path'] = $recommend_info['recommend_path'] . $member_id . ',';
Ejemplo n.º 14
0
                    <?php 
    }
}
?>
                </ul>
            </div>
        </div>
    </div>
    <div class="iirig">
        <h5>公众号扫描排行</h5>
        <div class="content">
            <div class="iwohh-class">
                <ul>
                    <?php 
if (is_array(get_account(2))) {
    foreach (get_account(2) as $one) {
        ?>
                    <li><span class="ol"><a href="<?php 
        echo url('public/category', array('id' => $one['uniacid'], 'key' => $one['industry_parent']));
        ?>
" target="_blank" title="<?php 
        echo $one['name'];
        ?>
"><img src="<?php 
        echo $_W['attachurl'];
        echo $one['uniacid'];
        ?>
/headimg_<?php 
        echo $one['uniacid'];
        ?>
.jpg?acid=<?php 
Ejemplo n.º 15
0
<?php

include_once '_approot.php';
include_once APPROOT . '/lib/header.php';
session_check(null);
$method = $_REQUEST['method'];
switch ($method) {
    case 'getAccountManageData':
        get_account_manage_data();
        break;
    case 'getAccountList':
        get_account_list();
        break;
    case 'getAccount':
        get_account();
        break;
    case 'setAccountDefault':
        set_account_default();
        break;
    case 'updateAccount':
        update_account();
        break;
    case 'deleteAccount':
        delete_account();
        break;
    case 'getAccountSimpleList':
        get_account_simple_list();
    default:
        break;
}
/**