|
|
|
|
@ -20,293 +20,126 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-12 col-sm-12">
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
|
|
|
|
|
<div class="card-inner margin-bottom-no">
|
|
|
|
|
<div class="tile-wrap">
|
|
|
|
|
<p class="card-heading">免费用户节点</p>
|
|
|
|
|
{$id=0}
|
|
|
|
|
{foreach $node_prefix as $prefix => $nodes}
|
|
|
|
|
{if $node_isv6[$prefix] == 0 && $node_class[$prefix]==0}
|
|
|
|
|
{foreach $classes as $class => $node_prefix}
|
|
|
|
|
<p class="card-heading">{if $class==0}免费用户节点{else}VIP{$class}用户节点{/if}</p>
|
|
|
|
|
{foreach $node_prefix as $prefix => $nodes}
|
|
|
|
|
{$id=$id+1}
|
|
|
|
|
{foreach $nodes as $node}
|
|
|
|
|
|
|
|
|
|
<div class="tile tile-collapse">
|
|
|
|
|
<div data-toggle="tile" data-target="#heading{$node_order->$prefix}">
|
|
|
|
|
<div class="tile-side pull-left" data-ignore="tile">
|
|
|
|
|
<div class="avatar avatar-sm">
|
|
|
|
|
<span class="icon {if $node_heartbeat[$prefix]=='在线'}text-green{else}{if $node_heartbeat[$prefix]=='暂无数据'}text-orange{else}text-red{/if}{/if}">{if $node_heartbeat[$prefix]=="在线"}backup{else}{if $node_heartbeat[$prefix]=='暂无数据'}report{else}warning{/if}{/if}</span>
|
|
|
|
|
{foreach $nodes as $node}
|
|
|
|
|
<div class="tile tile-collapse">
|
|
|
|
|
<div data-toggle="tile" data-target="#heading{$node_order->$prefix}">
|
|
|
|
|
<div class="tile-side pull-left" data-ignore="tile">
|
|
|
|
|
<div class="avatar avatar-sm">
|
|
|
|
|
<span class="icon {if $node_heartbeat[$prefix]=='在线'}text-green{else}{if $node_heartbeat[$prefix]=='暂无数据'}text-orange{else}text-red{/if}{/if}">{if $node_heartbeat[$prefix]=="在线"}backup{else}{if $node_heartbeat[$prefix]=='暂无数据'}report{else}warning{/if}{/if}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tile-inner">
|
|
|
|
|
<div class="text-overflow">
|
|
|
|
|
<font color="#383838"><img src="/images/prefix/{$prefix}.jpg" height="22" width="40"> {$prefix}</font> | {if $user->class!=0}<font color="#ff9000"><i class="icon icon-lg">flight_takeoff</i></font> <strong>{else}{/if}<b><font color="#474747">{$node_alive[$prefix]}</font></b></strong> | <font color="#ff9000"><i class="icon icon-lg">cloud</i></font> <font color="#828282">负载:{$node_latestload[$prefix]}%</font> | <font color="#ff9000"><i class="icon icon-lg">import_export</i></font> <font color="#828282">{$node_method[$prefix]}</font> | <font color="#ff9000"><i class="icon icon-lg">equalizer</i></font> {if isset($node_bandwidth[$prefix])==true}<font color="#aaaaaa">{$node_bandwidth[$prefix]}</font>{else}N/A{/if} | <font color="#ff9000"><i class="icon icon-lg">network_check</i></font> <font color="#a5a5a5">{$node->traffic_rate} 倍率</font> | <font color="#ff9000"><i class="icon icon-lg">notifications_none</i></font> <font color="#c4c4c4">{$node->status}</font>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tile-inner">
|
|
|
|
|
<div class="text-overflow">
|
|
|
|
|
<font color="#383838"><img src="/images/prefix/{$prefix}.jpg" height="22" width="40"> {$prefix}</font> | {if $user->class!=0}<font color="#ff9000"><i class="icon icon-lg">flight_takeoff</i></font> <strong>{else}{/if}<b><font color="#474747">{$node_alive[$prefix]}</font></b></strong> | <font color="#ff9000"><i class="icon icon-lg">cloud</i></font> <font color="#828282">负载:{$node_latestload[$prefix]}%</font> | <font color="#ff9000"><i class="icon icon-lg">import_export</i></font> <font color="#828282">{$node_method[$prefix]}</font> | <font color="#ff9000"><i class="icon icon-lg">equalizer</i></font> {if isset($node_bandwidth[$prefix])==true}<font color="#aaaaaa">{$node_bandwidth[$prefix]}</font>{else}N/A{/if} | <font color="#ff9000"><i class="icon icon-lg">network_check</i></font> <font color="#a5a5a5">{$node->traffic_rate} 倍率</font> | <font color="#ff9000"><i class="icon icon-lg">notifications_none</i></font> <font color="#c4c4c4">{$node->status}</font>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="collapsible-region collapse" id="heading{$node_order->$prefix}">
|
|
|
|
|
<div class="tile-sub">
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if $node->node_class > $user->class}
|
|
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
<div class="card-inner">
|
|
|
|
|
<p class="card-heading" align="center"><b> <i class="icon icon-lg">visibility_off</i> {$user->user_name},您无查看VIP节点权限,如需购买VIP请<a href="/user/shop">点击这里</a>。</b></p>
|
|
|
|
|
</div></div></div>
|
|
|
|
|
{else}
|
|
|
|
|
{$relay_rule = null}
|
|
|
|
|
{if $node->sort == 10}
|
|
|
|
|
{$relay_rule = $tools->pick_out_relay_rule($node->id, $user->port, $relay_rules)}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if $node->mu_only != 1}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="card-inner">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="card-heading" >
|
|
|
|
|
<a href="javascript:void(0);" onClick="urlChange('{$node->id}',0,{if $relay_rule != null}{$relay_rule->id}{else}0{/if})">{$node->name}{if $relay_rule != null} - {$relay_rule->dist_node()->name}{/if}</a>
|
|
|
|
|
<span class="label label-brand-accent">←点击节点查看配置信息</span>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>备注:{$node->info}</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if $node->sort == 0 || $node->sort == 10}
|
|
|
|
|
{$point_node=$node}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if ($node->sort == 0 || $node->sort == 10) && $node->custom_rss == 1 && $node->mu_only != -1}
|
|
|
|
|
{foreach $node_muport as $single_muport}
|
|
|
|
|
|
|
|
|
|
{if !($single_muport['server']->node_class <= $user->class && ($single_muport['server']->node_group == 0 || $single_muport['server']->node_group == $user->node_group))}
|
|
|
|
|
{continue}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if !($single_muport['user']->class >= $node->node_class && ($node->node_group == 0 || $single_muport['user']->node_group == $node->node_group))}
|
|
|
|
|
{continue}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{$relay_rule = null}
|
|
|
|
|
{if $node->sort == 10 && $single_muport['user']['is_multi_user'] != 2}
|
|
|
|
|
{$relay_rule = $tools->pick_out_relay_rule($node->id, $single_muport['server']->server, $relay_rules)}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
<div class="card-inner">
|
|
|
|
|
<p class="card-heading" >
|
|
|
|
|
<a href="javascript:void(0);" onClick="urlChange('{$node->id}',{$single_muport['server']->server},{if $relay_rule != null}{$relay_rule->id}{else}0{/if})">{$prefix} {if $relay_rule != null} - {$relay_rule->dist_node()->name}{/if} - 单端口 Shadowsocks - {$single_muport['server']->server} 端口</a>
|
|
|
|
|
<span class="label label-brand-accent">{$node->status}</span>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p>{$node->info}</p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/foreach}
|
|
|
|
|
{/if}
|
|
|
|
|
{/if}
|
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if isset($point_node)}
|
|
|
|
|
{if $point_node!=null}
|
|
|
|
|
<div class="collapsible-region collapse" id="heading{$node_order->$prefix}">
|
|
|
|
|
<div class="tile-sub">
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
{if $node->node_class > $user->class}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
<div class="card-inner" id="info{$id}">
|
|
|
|
|
|
|
|
|
|
<div class="card-inner">
|
|
|
|
|
<p class="card-heading" align="center"><b> <i class="icon icon-lg">visibility_off</i> {$user->user_name},您无查看VIP节点权限,如需购买VIP请<a href="/user/shop">点击这里</a>。</b></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$().ready(function(){
|
|
|
|
|
$('#heading{$node_order->$prefix}').on("shown.bs.tile", function() {
|
|
|
|
|
$("#info{$id}").load("/user/node/{$point_node->id}/ajax");
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
{/if}
|
|
|
|
|
{/if}
|
|
|
|
|
{else}
|
|
|
|
|
|
|
|
|
|
{$point_node=null}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="card-heading">VIP用户节点</p>
|
|
|
|
|
|
|
|
|
|
{$id=1000}
|
|
|
|
|
{foreach $node_prefix as $prefix => $nodes}
|
|
|
|
|
{if $node_isv6[$prefix] == 0 && $node_class[$prefix]!=0}
|
|
|
|
|
{$id=$id+1}
|
|
|
|
|
{foreach $nodes as $node}
|
|
|
|
|
|
|
|
|
|
<div class="tile tile-collapse">
|
|
|
|
|
<div data-toggle="tile" data-target="#heading{$node_order->$prefix}">
|
|
|
|
|
<div class="tile-side pull-left" data-ignore="tile">
|
|
|
|
|
<div class="avatar avatar-sm">
|
|
|
|
|
<span class="icon {if $node_heartbeat[$prefix]=='在线'}text-green{else}{if $node_heartbeat[$prefix]=='暂无数据'}text-orange{else}text-red{/if}{/if}">{if $node_heartbeat[$prefix]=="在线"}backup{else}{if $node_heartbeat[$prefix]=='暂无数据'}report{else}warning{/if}{/if}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tile-inner">
|
|
|
|
|
<div class="text-overflow">
|
|
|
|
|
<font color="#383838"><img src="/images/prefix/{$prefix}.jpg" height="22" width="40"> {$prefix}</font> | {if $user->class!=0}<font color="#ff9000"><i class="icon icon-lg">flight_takeoff</i></font> <strong>{else}{/if}<b><font color="#474747">{$node_alive[$prefix]}</font></b></strong> | <font color="#ff9000"><i class="icon icon-lg">import_export</i></font> <font color="#828282">{$node_method[$prefix]}</font> | <font color="#ff9000"><i class="icon icon-lg">equalizer</i></font> {if isset($node_bandwidth[$prefix])==true}<font color="#aaaaaa">{$node_bandwidth[$prefix]}</font>{else}N/A{/if} | <font color="#ff9000"><i class="icon icon-lg">network_check</i></font> <font color="#a5a5a5">{$node->traffic_rate} 倍率</font> | <font color="#ff9000"><i class="icon icon-lg">notifications_none</i></font> <font color="#c4c4c4">{$node->status}</font>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="collapsible-region collapse" id="heading{$node_order->$prefix}">
|
|
|
|
|
<div class="tile-sub">
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if $node->node_class > $user->class}
|
|
|
|
|
{$relay_rule = null}
|
|
|
|
|
{if $node->sort == 10}
|
|
|
|
|
{$relay_rule = $tools->pick_out_relay_rule($node->id, $user->port, $relay_rules)}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if $node->mu_only != 1}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
<div class="card-inner">
|
|
|
|
|
<p class="card-heading" align="center"><b> <i class="icon icon-lg">visibility_off</i> {$user->user_name},您无查看VIP节点权限,如需购买VIP请<a href="/user/shop">点击这里</a>。</b></p>
|
|
|
|
|
</div></div></div>
|
|
|
|
|
{else}
|
|
|
|
|
{$relay_rule = null}
|
|
|
|
|
{if $node->sort == 10}
|
|
|
|
|
{$relay_rule = $tools->pick_out_relay_rule($node->id, $user->port, $relay_rules)}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if $node->mu_only != 1}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="card-inner">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="card-heading" >
|
|
|
|
|
<a href="javascript:void(0);" onClick="urlChange('{$node->id}',0,{if $relay_rule != null}{$relay_rule->id}{else}0{/if})">{$node->name}{if $relay_rule != null} - {$relay_rule->dist_node()->name}{/if}</a>
|
|
|
|
|
<span class="label label-brand-accent">←点击节点查看配置信息</span>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>备注:{$node->info}</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if $node->sort == 0 || $node->sort == 10}
|
|
|
|
|
{$point_node=$node}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if ($node->sort == 0 || $node->sort == 10) && $node->custom_rss == 1 && $node->mu_only != -1}
|
|
|
|
|
{foreach $node_muport as $single_muport}
|
|
|
|
|
|
|
|
|
|
{if !($single_muport['server']->node_class <= $user->class && ($single_muport['server']->node_group == 0 || $single_muport['server']->node_group == $user->node_group))}
|
|
|
|
|
{continue}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if !($single_muport['user']->class >= $node->node_class && ($node->node_group == 0 || $single_muport['user']->node_group == $node->node_group))}
|
|
|
|
|
{continue}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{$relay_rule = null}
|
|
|
|
|
{if $node->sort == 10 && $single_muport['user']['is_multi_user'] != 2}
|
|
|
|
|
{$relay_rule = $tools->pick_out_relay_rule($node->id, $single_muport['server']->server, $relay_rules)}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
<div class="card-inner">
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
<div class="card-inner">
|
|
|
|
|
<p class="card-heading" >
|
|
|
|
|
<a href="javascript:void(0);" onClick="urlChange('{$node->id}',{$single_muport['server']->server},{if $relay_rule != null}{$relay_rule->id}{else}0{/if})">{$prefix} {if $relay_rule != null} - {$relay_rule->dist_node()->name}{/if} - 单端口 Shadowsocks - {$single_muport['server']->server} 端口</a>
|
|
|
|
|
<span class="label label-brand-accent">{$node->status}</span>
|
|
|
|
|
<a href="javascript:void(0);" onClick="urlChange('{$node->id}',0,{if $relay_rule != null}{$relay_rule->id}{else}0{/if})">{$node->name}{if $relay_rule != null} - {$relay_rule->dist_node()->name}{/if}</a>
|
|
|
|
|
<span class="label label-brand-accent">←点击节点查看配置信息</span>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p>{$node->info}</p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<p>备注:{$node->info}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/foreach}
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if $node->sort == 0 || $node->sort == 10}
|
|
|
|
|
{$point_node=$node}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if ($node->sort == 0 || $node->sort == 10) && $node->custom_rss == 1 && $node->mu_only != -1}
|
|
|
|
|
{foreach $node_muport as $single_muport}
|
|
|
|
|
|
|
|
|
|
{if !($single_muport['server']->node_class <= $user->class && ($single_muport['server']->node_group == 0 || $single_muport['server']->node_group == $user->node_group))}
|
|
|
|
|
{continue}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if !($single_muport['user']->class >= $node->node_class && ($node->node_group == 0 || $single_muport['user']->node_group == $node->node_group))}
|
|
|
|
|
{continue}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{$relay_rule = null}
|
|
|
|
|
{if $node->sort == 10 && $single_muport['user']['is_multi_user'] != 2}
|
|
|
|
|
{$relay_rule = $tools->pick_out_relay_rule($node->id, $single_muport['server']->server, $relay_rules)}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
<div class="card-inner">
|
|
|
|
|
<p class="card-heading" >
|
|
|
|
|
<a href="javascript:void(0);" onClick="urlChange('{$node->id}',{$single_muport['server']->server},{if $relay_rule != null}{$relay_rule->id}{else}0{/if})">{$prefix} {if $relay_rule != null} - {$relay_rule->dist_node()->name}{/if} - 单端口 Shadowsocks - {$single_muport['server']->server} 端口</a>
|
|
|
|
|
<span class="label label-brand-accent">{$node->status}</span>
|
|
|
|
|
</p>
|
|
|
|
|
<p>{$node->info}</p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/foreach}
|
|
|
|
|
{/if}
|
|
|
|
|
{/if}
|
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if isset($point_node)}
|
|
|
|
|
</div>
|
|
|
|
|
{if isset($point_node)}
|
|
|
|
|
{if $point_node!=null}
|
|
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-main">
|
|
|
|
|
<div class="card-inner" id="info{$id}">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-inner" id="info{$id}"> </div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$().ready(function(){
|
|
|
|
|
$('#heading{$node_order->$prefix}').on("shown.bs.tile", function() {
|
|
|
|
|
$("#info{$id}").load("/user/node/{$point_node->id}/ajax");
|
|
|
|
|
$().ready(function(){
|
|
|
|
|
$('#heading{$node_order->$prefix}').on("shown.bs.tile", function() {
|
|
|
|
|
$("#info{$id}").load("/user/node/{$point_node->id}/ajax");
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
{/if}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{$point_node=null}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
|
|
{/foreach}
|
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div aria-hidden="true" class="modal modal-va-middle fade" id="nodeinfo" role="dialog" tabindex="-1">
|
|
|
|
|
@ -315,7 +148,10 @@
|
|
|
|
|
<iframe class="iframe-seamless" title="Modal with iFrame" id="infoifram"></iframe>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
|
|
|
|
|