-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
310 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* SS-Panel | ||
* A simple Shadowsocks management system | ||
* Author: Sendya <18x@loacg.com> | ||
*/ | ||
namespace Controller; | ||
|
||
use Core\Template; | ||
use Model\User; | ||
|
||
class Ticket | ||
{ | ||
public function index() | ||
{ | ||
Template::putContext('user', User::getCurrent()); | ||
Template::setView('panel/ticket'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
class UpdateVersion112 extends AbstractMigration | ||
{ | ||
public function change() | ||
{ | ||
// 2016-04-26 add custom mail content. | ||
$option = [ | ||
[ | ||
'k' => 'custom_mail_stop_expire_content', | ||
'v' => '您的账户已用流量 {useTraffic}, 账户到期时间为 {expireTime} 已经被停止使用<br/><br/>Yours, The {SITE_NAME} Team' | ||
], [ | ||
'k' => 'custom_mail_forgePassword_content', | ||
'v' => 'Dear {nickname}:<br/>Use this code to disable your password and access your {SITE_NAME} account:<br/>(这个验证码是用于停止您当前 {SITE_NAME} 所在账户的旧密码):<br/><br/>Code: {code}<br/><br/><b>请将验证码在找回密码页面输入才能确认重置密码!</b><br/>Yours,The {SITE_NAME} Team' | ||
],[ | ||
'k' => 'custom_mail_forgePassword_content_2', | ||
'v' => 'Dear {nickname}:<br/>Here\'s your new password<br/>(这是你的新密码)<br/><br/>Password: {newPassword}<br/><br/><b>ATTENTION: PLEASE CHANGE THE PASSWORD AND DELETE THIS EMAIL IMMEDIATELY ALTER LOG IN YOUR ACCOUNT FOR SECURITY PURPOSES.</b><b>请在登录后立即修改密码,并且删除此邮件.</b><br/><br/>Yours, The {SITE_NAME} Team' | ||
], [ | ||
'k' => 'custom_mail_register_content', | ||
'v' => 'Dear {nickname}:<br/>this is your registration email for {SITE_NAME} Service.<br/><br/>Yours, The {SITE_NAME} Team' | ||
] | ||
]; | ||
$this->execute("DELETE FROM `options` WHERE `k` LIKE '%custom_mail_%'"); | ||
$this->insert('options', $option); | ||
// update table column 20160427073456 | ||
$table = $this->table('card'); | ||
$table->renameColumn('pram1', 'expireTime'); | ||
$table->changeColumn('expireTime', 'integer', ['null'=> true, 'default'=> 0]); | ||
$table->save(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,258 @@ | ||
<import template="/panel/_head" /> | ||
<body class="page-body"> | ||
<div class="modal fade" id="modal-1" style="display: none;" aria-hidden="true"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
<h4 class="modal-title">提示</h4> | ||
</div> | ||
<div class="modal-body"></div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-white" data-dismiss="modal">取消</button> | ||
<button type="button" class="btn btn-info" data-dismiss="modal">确定</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="page-loading-overlay"> | ||
<div class="loader-2"></div> | ||
</div> | ||
<div class="settings-pane"> | ||
<a href="javascript:;" data-toggle="settings-pane" data-animate="true">×</a> | ||
<div class="settings-pane-inner"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="user-info"> | ||
<div class="user-image"> | ||
<a href="/member"> | ||
<img src="{(\Helper\Utils::gravatar($user->email))}" class="img-responsive img-circle" /> | ||
</a> | ||
</div> | ||
<div class="user-details"> | ||
<h3> | ||
<a href="/member">{$user->nickname}</a> | ||
<!-- Available statuses: is-online, is-idle, is-busy and is-offline --> | ||
<span class="user-status is-online"></span> | ||
</h3> | ||
<p class="user-title">加入时间:{(date('Y-m-d H:i:s', $user->regDateLine))}</p> | ||
<div class="user-links"> | ||
<a href="/member/info" class="btn btn-primary">个人资料</a> | ||
<a href="/auth/logout" class="btn btn-success">退出</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-6 link-blocks-env"> | ||
<div class="links-block left-sep"> | ||
<h4> | ||
<a href="javascript:;"> | ||
<span>帮助</span> | ||
</a> | ||
</h4> | ||
<ul class="list-unstyled"> | ||
<li> | ||
<a href="/support/tos"> | ||
<i class="fa-angle-right"></i> | ||
支持中心 | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/ticket"> | ||
<i class="fa-angle-right"></i> | ||
提交问题 | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/support/tos"> | ||
<i class="fa-angle-right"></i> | ||
使用协议 | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/support/tos"> | ||
<i class="fa-angle-right"></i> | ||
服务条款 | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<nav class="navbar horizontal-menu navbar-fixed-top"> | ||
<div class="navbar-inner"> | ||
<!-- Navbar Brand --> | ||
<div class="navbar-brand"> | ||
<a href="dashboard-1.html" class="logo"> | ||
<img src="{RESOURCE}/images/logo-white-bg@2x.png" width="80" alt="" class="hidden-xs" /> | ||
<img src="{RESOURCE}/images/logo@2x.png" width="80" alt="" class="visible-xs" /> | ||
</a> | ||
<a href="#" data-toggle="settings-pane" data-animate="true"> | ||
<i class="linecons-cog"></i> | ||
</a> | ||
</div> | ||
<div class="nav navbar-mobile"> | ||
<div class="mobile-menu-toggle"> | ||
<a href="#" data-toggle="settings-pane" data-animate="true"> | ||
<i class="linecons-cog"></i> | ||
</a> | ||
|
||
<a href="#" data-toggle="user-info-menu-horizontal"> | ||
<i class="fa-bell-o"></i> | ||
<span class="badge badge-success">7</span> | ||
</a> | ||
|
||
<a href="#" data-toggle="mobile-menu-horizontal"> | ||
<i class="fa-bars"></i> | ||
</a> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="navbar-mobile-clear"></div> | ||
|
||
|
||
|
||
<!-- main menu --> | ||
|
||
<ul class="navbar-nav"> | ||
<li class="{(\Helper\Utils::menuActive('member', 'opened'))}"> | ||
<a href="/member"> | ||
<i class="linecons-cog"></i> | ||
<span class="title">仪表盘</span> | ||
</a> | ||
</li> | ||
<li class="{(\Helper\Utils::menuActive('node'))}"> | ||
<a href="/member/node"> | ||
<i class="linecons-params "></i> | ||
<span class="title">节点列表</span> | ||
</a> | ||
</li> | ||
<li class="{(\Helper\Utils::menuActive('info'))}"> | ||
<a href="/member/info"> | ||
<i class="linecons-user "></i> | ||
<span class="title">个人资料</span> | ||
</a> | ||
</li> | ||
<li class="{(\Helper\Utils::menuActive('Change|actCard', ' opened expanded'))} has-sub"> | ||
<a href="javascript:;"> | ||
<i class="linecons-user"></i> | ||
<span class="title">资料修改</span> | ||
</a> | ||
<ul> | ||
<li class="{(\Helper\Utils::menuActive('ChangePassword'))}"> | ||
<a href="/member/changePassword"> | ||
<span class="title">密码修改</span> | ||
</a> | ||
</li> | ||
<li class="{(\Helper\Utils::menuActive('ChangeNickname'))}"> | ||
<a href="/member/changeNickname"> | ||
<span class="title">昵称修改</span> | ||
</a> | ||
</li> | ||
<li class="{(\Helper\Utils::menuActive('ChangePlan'))}"> | ||
<a href="/member/changePlan"> | ||
<span class="title">续费升级</span> | ||
</a> | ||
</li> | ||
<li class="{(\Helper\Utils::menuActive('actCard'))}"> | ||
<a href="/member/actCard"> | ||
<span class="title">套餐卡</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</li> | ||
<li class="{(\Helper\Utils::menuActive('invite'))}"> | ||
<a href="/member/invite"> | ||
<i class="linecons-heart "></i> | ||
<span class="title">邀请好友</span> | ||
</a> | ||
</li> | ||
<li class="has-sub"> | ||
<a href="javascript:;"> | ||
<i class="linecons-paper-plane"></i> | ||
<span class="title">SS服务</span> | ||
</a> | ||
<ul> | ||
<li><a href="/ticket"> | ||
<i class="entypo-flow-line"></i> | ||
<span class="title">Ticket</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://cn.gravatar.com/" target="_blank" title="Gravatar 全球通用头像"> | ||
<i class="entypo-flow-line"></i> | ||
<span class="title">修改头像</span> | ||
</a> | ||
</li> | ||
<li><a href="support/tos"> | ||
<i class="entypo-flow-line"></i> | ||
<span class="title">关于{SITE_NAME}</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</li> | ||
<if condition="$user->isAdmin()"> | ||
<li> | ||
<a href="/admin"> | ||
<i class="linecons-cog"></i> | ||
<span class="title">管理员后台</span> | ||
</a> | ||
</li> | ||
</if> | ||
</ul> | ||
|
||
|
||
<!-- notifications and other links --> | ||
<ul class="nav nav-userinfo navbar-right"> | ||
|
||
<li class="dropdown user-profile"> | ||
<a href="#" data-toggle="dropdown"> | ||
<img src="{(\Helper\Utils::gravatar($user->email))}" alt="user-image" class="img-circle img-inline userpic-32" width="28" /> | ||
<span> | ||
{$user->nickname} | ||
<i class="fa-angle-down"></i> | ||
</span> | ||
</a> | ||
|
||
<ul class="dropdown-menu user-profile-menu list-unstyled"> | ||
<li> | ||
<a href="/member/info"> | ||
<i class="fa-user"></i> | ||
个人资料 | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/member/changePassword"> | ||
<i class="fa-wrench"></i> | ||
设置 | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/support/help"> | ||
<i class="fa-info"></i> | ||
帮助 | ||
</a> | ||
</li> | ||
<li class="last"> | ||
<a href="auth/logout"> | ||
<i class="fa-lock"></i> | ||
登出 | ||
</a> | ||
</li> | ||
</ul> | ||
</li> | ||
|
||
</ul> | ||
|
||
</div> | ||
|
||
</nav> | ||
|
||
<div class="page-container"> | ||
WTF | ||
</div> | ||
<import template="/panel/_footer" /> |