?> </a></td> </tr> <?php } ?> <?php if (is_vip($pd_uid) && $auth[open_downline2]) { ?> <tr> <td>系统指定下线数量:</td> <td><?php echo $downline_num; ?> / <?php echo get_vip(get_profile($pd_uid, 'vip_id'), 'downline_num'); ?> </td> </tr> <?php } ?> <tr> <td><?php echo __('contact_qq'); ?> :</td> <td><?php echo $pd_email; ?> </td>
if ($settings['connect_uc_type'] == 'phpwind') { uc_user_edit($pd_uid, $pd_username, $pd_username, $password, $email); } else { $ucresult = uc_user_edit($username, $old_pwd, $password, $email, 1); if ($ucresult < 0) { $error = true; $sysmsg[] = 'UC:' . __('update_password_error'); } } } if (!$error) { if ($auth[pd_a]) { update_seo('space', $uid, $meta_title, $meta_keywords, $meta_description); } $curr_plan_id = get_profile($uid, 'plan_id'); $ins = array('password' => $md5_pwd, 'email' => $email, 'qq' => $qq, 'is_locked' => $is_locked, 'gid' => $gid, 'credit' => $credit, 'dl_credit' => (int) $dl_credit, 'dl_credit2' => (int) $dl_credit2, 'wealth' => $wealth, 'credit_rate' => merge_rate($how_downs_credit, $how_money_credit), 'downline_income' => $downline_income, 'discount_rate' => $discount_rate, 'open_custom_stats' => $open_custom_stats, 'stat_code' => $stat_code ? base64_encode($stat_code) : '', 'check_custom_stats' => $check_custom_stats, 'space_pwd' => $space_pwd, 'income_pwd' => $income_pwd, 'plan_id' => (int) $plan_id, 'vip_id' => (int) $vip_id, 'vip_end_time' => $timestamp + get_vip($vip_id, 'days') * 86400); $db->query_unbuffered("update {$tpf}users set " . $db->sql_array($ins) . " where userid='{$uid}';"); if ($plan_id && $curr_plan_id != $plan_id) { conv_credit($uid); $db->query_unbuffered("update {$tpf}users set credit_rate='" . get_plans($plan_id, 'income_rate') . "' where userid='{$uid}' limit 1"); } $sysmsg[] = __('user_edit_success'); redirect(urr(ADMINCP, "item=users&menu=user&action=user_edit&uid={$uid}"), $sysmsg); } else { redirect('back', $sysmsg); } } else { $q = $db->query("select gid,group_name,group_type from {$tpf}groups order by gid asc"); $groups = array(); while ($rs = $db->fetch_array($q)) { $rs['txtcolor'] = $rs['group_type'] ? 'txtblue' : '';
"); }else{ alert("<?php echo __('not_ie_copy_tips'); ?> "); } } } </script> <?php } ?> </div> <!-- end not action --> <?php } ?> <div class="clear"></div> </div> <?php if (!$pd_uid || !$settings['open_vip']) { echo stripslashes(base64_decode(get_plans(get_profile($file[userid], 'plan_id'), 'viewfile_code'))); } elseif ($settings['open_vip'] && get_profile($pd_uid, 'vip_end_time') < $timestamp || get_vip(get_profile($pd_uid, 'vip_id'), 'pop_ads')) { echo stripslashes(base64_decode(get_plans(get_profile($file[userid], 'plan_id'), 'viewfile_code'))); } if (get_profile($file[userid], 'open_custom_stats') && get_profile($file[userid], 'check_custom_stats')) { echo stripslashes(get_stat_code($file[userid])); } ?> <br /><br />
function get_loadiong_secs() { global $settings, $timestamp, $pd_uid; $vip_id = get_profile($pd_uid, 'vip_id'); $loading_secs = (int) $settings['global_sec_loading']; if ($vip_id) { $vip_end_time = get_profile($pd_uid, 'vip_end_time'); if ($vip_end_time > $timestamp) { $loading_secs = (int) get_vip($vip_id, 'down_second'); } } return $loading_secs; }
?> <a href="javascript:alert('<?php echo __('vip_user_download'); ?> ');"><?php echo $v['file_name_all']; ?> </a><br /><span class="txtgray"><?php echo $v['file_description']; ?> </span> <?php } elseif (get_profile($pd_uid, 'vip_end_time') > $timestamp) { ?> <?php if (get_vip(get_profile($pd_uid, 'vip_id'), 'search_down')) { ?> <?php echo file_icon($v['file_extension']); ?> <a href="javascript:alert('<?php echo __('vip_user_download'); ?> ');"><?php echo $v['file_name_all']; ?> </a><br /><span class="txtgray"><?php echo $v['file_description']; ?> </span> <?php
$rs = $db->fetch_one_array("select order_id,vip_id,pay_status from {$tpf}vip_orders where order_number='{$r6_Order}' and pay_method='{$action}' and userid='{$pd_uid}'"); if ($rs) { $vip_id = $rs[vip_id]; $order_id = (int) $rs['order_id']; $pay_status = $rs[pay_status]; } unset($rs); if ($pay_status == 'pendding') { if ($bRet) { if ($r1_Code == "1") { if ($r9_BType == "1") { if (get_profile($pd_uid, 'vip_end_time') > $timestamp && get_profile($pd_uid, 'vip_id')) { $back_money = @round(get_vip(get_profile($pd_uid, 'vip_id'), 'price') / get_vip(get_profile($pd_uid, 'vip_id'), 'days') * ((get_profile($pd_uid, 'vip_end_time') - $timestamp) / 86400), 4); } $db->query_unbuffered("update {$tpf}users set wealth=wealth+{$back_money},vip_id=0,vip_end_time=0 where userid='{$pd_uid}'"); $ins = array('vip_id' => $vip_id, 'vip_end_time' => $timestamp + get_vip($vip_id, 'days') * 86400); $db->query_unbuffered("update {$tpf}users set " . $db->sql_array($ins) . " where userid='{$pd_uid}'"); $db->query_unbuffered("update {$tpf}vip_orders set pay_status='success' where order_id='{$order_id}'"); $s_title = __('pay_success'); $msg = __('your_order') . ': ' . $r6_Order . ',' . __('pay_success'); } elseif ($r9_BType == "2") { } else { $db->query_unbuffered("update {$tpf}users set wealth=wealth+{$r3_Amt} where userid='{$pd_uid}' limit 1"); $db->query_unbuffered("update {$tpf}vip_orders set pay_status='fail' where order_id='{$order_id}'"); $s_title = __('pay_fail'); $msg = __('your_order') . ': ' . $r6_Order . ',' . __('pay_fail'); } } } else { echo __('sign_pay_error'); }