Example #1
0
<?php

require_once '_main.php';
if (!empty($_POST)) {
    $node_name = $_POST['node_name'];
    $node_type = $_POST['node_type'];
    $node_server = $_POST['node_server'];
    $node_method = $_POST['node_method'];
    $node_info = $_POST['node_info'];
    $node_status = $_POST['node_status'];
    $node_order = $_POST['node_order'];
    $node = new Ss\Node\Node();
    $query = $node->Add($node_name, $node_type, $node_server, $node_method, $node_info, $node_status, $node_order);
    if ($query) {
        echo ' <script>alert("添加成功!")</script> ';
        echo " <script>window.location='node.php';</script> ";
    }
}
?>

<!-- =============================================== -->

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            节点添加
            <small>Add Node</small>
        </h1>
    </section>
Example #2
0
<?php

require_once '_main.php';
$node = new Ss\Node\Node();
?>

    <!-- =============================================== -->

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                节点列表
                <small>Node List</small>
            </h1>
        </section>

        <!-- Main content -->
        <section class="content">
            <!-- START PROGRESS BARS -->
            <div class="row">
                <div class="col-md-6">
                    <div class="box box-solid">
                        <div class="box-header">
                            <i class="fa fa-th-list"></i>
                            <h3 class="box-title">免费节点</h3>
                        </div><!-- /.box-header -->
                        <div class="box-body">
                            <div class="callout callout-warning">
                                <h4>注意!</h4>
Example #3
0
            <div class="row">
                <div class="col-xs-12">
                    <p> <a class="btn btn-success btn-sm" href="node_add.php">添加</a> </p>
                    <div class="box">
                        <div class="box-body table-responsive no-padding">
                            <table class="table table-hover">
                                <tr>
                                    <th>ID</th>
                                    <th>节点</th>
                                    <th>加密</th>
                                    <th>描述</th>
                                    <th>排序</th>
                                    <th>操作</th>
                                </tr>
                                <?php 
$n = new \Ss\Node\Node();
$nodes = $n->AllNode();
foreach ($nodes as $rs) {
    ?>
                                    <tr>
                                        <td>#<?php 
    echo $rs['id'];
    ?>
</td>
                                        <td> <?php 
    echo $rs['node_name'];
    ?>
</td>
                                        <td> <?php 
    echo $rs['node_method'];
    ?>
Example #4
0
<?php

require_once '_main.php';
$node = new Ss\Node\Node();
$node0 = $node->NodesArray(0);
// 普通节点数组
$node1 = $node->NodesArray(1);
// Pro节点数组
$smarty->assign('oo', $oo);
$smarty->assign('node', $node);
$smarty->assign('node0', $node0);
$smarty->assign('node1', $node1);
$varsarray = get_defined_vars();
$smarty->assign("user_node_Announcement_node", Ss\ac::get('user_node_Announcement_node', $varsarray));
// 普通节点公告内容
$smarty->assign("user_node_Announcement_node_pro", Ss\ac::get('user_node_Announcement_node_pro', $varsarray));
// pro节点公告内容
$smarty->display('user/node.tpl');
Example #5
0
<?php

//引入配置文件
require_once 'user_check.php';
$node = new Ss\Node\Node();
?>
<!DOCTYPE html>
<html>
<head>
    <title><?php 
echo $site_name;
?>
</title>
    <?php 
include_once 'lib/header.inc.php';
?>
</head>
<body class="skin-blue">
<?php 
include_once 'lib/nav.inc.php';
include_once 'lib/slidebar_left.inc.php';
?>
<!-- Right side column. Contains the navbar and content of the page -->
<aside class="right-side">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            节点列表
            <small>Node List</small>
        </h1>
    </section>
Example #6
0
<?php

require_once '_main.php';
$n = new \Ss\Node\Node();
$node = $n->AllNode();
$smarty->assign('node', $node);
$smarty->display('admin/node.tpl');