Exemple #1
0
<?php

require '../include/init.inc';
$uid = auth('uid');
$user = User::find_by_pk($uid, array());
$expire_in = $user->expire_in;
$u = Radacct::find_by_sql("select sum(acctinputoctets) as i,sum(acctoutputoctets) as o from `radacct` r where r.username='******'");
?>
<!DOCTYPE html>
<html>
<head>
<title><?php 
t('我的账号', 'My account');
?>
</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../css/bootstrap.min.css" rel="stylesheet" media="screen">
<style type="text/css"></style>
<body>
	<?php 
include 'top_nav.inc';
?>
	<div class="container" style="margin-top: 50px;">
		<h4><?php 
t('欢迎您', 'Welcome, ');
echo auth('nickname');
?>
</h4>
		<div class="row">
			<?php