Complex Server Manager [In-Progress]

Status
Not open for further replies.

ryuma

Member
May 30, 2016
36
1
43
Life Hack
Create access levels fo users :)
1) SQL
Code:
ALTER TABLE tbl_users ADD COLUMN level enum('Guest', 'Base', 'Extandet', 'Blocked', 'Banned') NOT NULL DEFAULT 'Guest' AFTER admin;
2) Add new style "\desing\dist\css\AdminLTE.min.css
Code:
.callout.callout-not-warning{background-color:#659c4f !important}
.callout.callout-block-warning{background-color:#e65d5d !important}
3) replace home.php
PHP:
<?php
    session_start();
    require_once 'functions/class.user.php';
 
    $user_home = new USER();
 
 
    if(!$user_home->is_logged_in())
    {
        $user_home->redirect('index.php');
    }
 
 
    $stmt = $user_home->runQuery("SELECT * FROM tbl_users WHERE userID=:uid");
    $stmt->execute(array(":uid"=>$_SESSION['userSession']));
    $userdates = $stmt->fetch(PDO::FETCH_ASSOC);
    $error = 0;
 
    require_once('configs/settingsts3.php');
    require_once('libs/TeamSpeak3/TeamSpeak3.php');
 
 
    try    {
        $ts3_server = TeamSpeak3::factory("serverquery://".$ts3_user.":".$ts3_pass."@".$ts3_ip.":".$ts3_queryport."");
        $ts3 = $ts3_server->serverGetByPort($userdates['port']);
        $ts3->execute("clientupdate", array("client_nickname" => $ts3_queryname));
    }
    catch(TeamSpeak3_Exception $e)
    {
        $error = 1;
    }
 
?>
<?php include("desing/aside.php"); ?>

    <div class="content-wrapper">
        <section class="content-header">
            <h1>
                ComplexServer
                <small>Dashboard</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Server</a></li>
                <li class="active">Dashboard</li>
            </ol>
        </section>
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title"><? echo $ServerQS ?></h3>
                        </div>                 
                        <div class="box box-default">
                     
                            <!--MESSAGE FOR NEW USER-->
                            <?     if($userdates['level'] == 'Guest'){ ?>
                            <div class="callout callout-warning">
                                <h4><?php echo $userdates['level'];?> account</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</p>
                            </div>
                            <? } ?>
                         
                            <!--MESSAGE AND PERSONAL INFO FOR ACTIVE ACCOUNTS -->
                            <?     if($userdates['level'] == 'Extandet' OR $userdates['level'] == 'Base'){ ?>
                            <div class="callout callout-not-warning">
                                <h4><?php echo $userdates['level'];?> account</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</p>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</p>
                            </div>
                            <div class="box-body table-responsive no-padding">
                                <table class="table table-hover">
                                    <tr>
                                        <th>IP / PORT</th>
                                        <th>Name</th>
                                        <th>Slots</th>
                                        <th>Uptime</th>
                                    </tr>
                                    <tr>
                                        <td><a href="ts3server://<?php echo $ts3->getAdapterHost() ?>/?port=<?php echo $userdates['port'];?>&nickname=PanelTS3Worhost"><?php echo $ts3->getAdapterHost() ?>:<?php echo $userdates['port']; ?></td>
                                            <td><?php echo $ts3->virtualserver_name ?></td>
                                            <td><?php echo $ts3->virtualserver_clientsonline ?> / <?php echo $ts3->virtualserver_maxclients ?></td>
                                            <td><?php echo TeamSpeak3_Helper_Convert::seconds($ts3->virtualserver_uptime) ?></td>
                                        </tr>
                                    </tr>
                                </table>
                            </div>
                            <? } ?> 
                            <!--MESSAGE FOR BANNED DLOCKED USERS-->
                            <?     if($userdates['level'] == 'Blocked' OR $userdates['level'] == 'Banned'){ ?>
                            <div class="callout callout-block-warning">
                                <h4><?php echo $userdates['level'];?> account</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</p>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</p>
                            </div>
                            <? } ?> 

                         
                        </div>                 
                    </div>
                </div>
            </div>
            <div class="box">
                <table class="table table-bordered table-condensed f11 content-panel">
                    <tr>
                        <td colspan="2" align="center" class="info"><b>Account Info</b></td>
                    </tr>
                    <tr>
                        <td><b>Access Level:</b></td>
                        <td><?php echo $userdates['level'];?></td></td>
                    </tr>                 
                    <tr>
                        <td width="35%"><b>User ID:</b></td>
                        <td width="65%"><?php echo $userdates['userID'];?></td>
                    </tr>
                    <tr>
                        <td width="35%"><b>Name:</b></td>
                        <td width="65%"><?php echo $userdates['userName'];?></td>
                    </tr>
                    <tr>
                        <td width="35%"><b>User Email:</b></td>
                        <td width="65%"><?php echo $userdates['userEmail'];?></td>
                    </tr>
                    <tr>
                        <td width="35%"><b>Created:</b></td>
                        <td width="65%"><?php echo $userdates['date'];?></td>
                    </tr>
                    <?     if($userdates['level'] == 'Extandet' OR $userdates['level'] == 'Base'){ ?>
                    <tr>
                        <td width="35%"><b>Server Port:</b></td>
                        <td width="65%"><?php echo $userdates['port'];?></td>
                    </tr>
                    <tr>
                        <td width="35%"><b>Server Slots:</b></td>
                        <td width="65%"><?php echo $userdates['slots'];?></td>
                    </tr>
                    <tr>
                        <td><b>Admin Access:</b></td>
                        <td><?php echo ($userdates['admin'] == 1) ? 'Yes' : 'No';?></td>
                    </tr>
                    <tr>
                        <td><b>Vip Access:</b></td>
                        <td><?php echo ($userdates['vip'] == 1) ? 'Yes' : 'No - Get It <a href= "ordervip.php">Here</a>';?></td>
                    </tr>
                    <? } ?>
                </table>
            </div>
        </section>
    </div>
<?php  include("desing/footer.php"); ?>

Ia0UVm2.png

V4cydxu.png

iXJ72ru.png
It is possible to accurately determine the status of your account and withdraw the necessary sites and information, a more compact code,
 

ryuma

Member
May 30, 2016
36
1
43
Integration Simple Server Creator [Web]
EscuderoKevin
https://r4p3.net/threads/simple-clean-server-creator-web.2536/
1) folder "servercreator" of decompress in a folder "pages"
2) add /desing/aside.php ~ line 265 after
PHP:
<? } ?>
code
PHP:
                                <?php if($userdates['admin'] == 1){ ?>
                                <li <?php  if($dir == '/complexserver/pages/servercreator') { echo 'class="active treeview"'; } else { 'class="treeview"'; } ?>>
                                    <a href="#">
                                        <i class="fa fa-edit"></i> <span>Simple Server Creator</span>
                                        <span class="pull-right-container">
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </span>
                                    </a>
                                    <ul class="treeview-menu">
                                        <li class="treeview">
                                            <li <?php  if($_SERVER['REQUEST_URI'] == '/complexserver/pages/servercreator/index.php') { echo 'class="active"'; } ?>>  <a href="/complexserver/pages/servercreator/index.php">
                                                <i class="fa fa-dashboard"></i> <span>Create Server</span>
                                                <span class="pull-right-container">
                                                    <i class="fa fa-hand-peace-o"></i>
                                                </span>
                                            </a>
                                            </li>                                     
                                        </li>                                     
                                    </ul>
                                  
                                <? } ?>
VR0KWYl.png


download servercreator https://yadi.sk/d/-4nKcE9evjAQD
 
Last edited:

DBrO

Member
Mar 8, 2016
8
1
35

Need help! when I do, "login" but on the page "home.php"
give me error 500

note: premissoes are correct, will be the firewall ports?
 
Aug 12, 2016
11
1
35
Integration Simple Server Creator [Web]
EscuderoKevin
https://r4p3.net/threads/simple-clean-server-creator-web.2536/
1) folder "servercreator" of decompress in a folder "pages"
2) add /desing/aside.php ~ line 265 after
PHP:
<? } ?>
code
PHP:
                                <?php if($userdates['admin'] == 1){ ?>
                                <li <?php  if($dir == '/complexserver/pages/servercreator') { echo 'class="active treeview"'; } else { 'class="treeview"'; } ?>>
                                    <a href="#">
                                        <i class="fa fa-edit"></i> <span>Simple Server Creator</span>
                                        <span class="pull-right-container">
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </span>
                                    </a>
                                    <ul class="treeview-menu">
                                        <li class="treeview">
                                            <li <?php  if($_SERVER['REQUEST_URI'] == '/complexserver/pages/servercreator/index.php') { echo 'class="active"'; } ?>>  <a href="/complexserver/pages/servercreator/index.php">
                                                <i class="fa fa-dashboard"></i> <span>Create Server</span>
                                                <span class="pull-right-container">
                                                    <i class="fa fa-hand-peace-o"></i>
                                                </span>
                                            </a>
                                            </li>                                    
                                        </li>                                    
                                    </ul>
                                 
                                <? } ?>
VR0KWYl.png


download servercreator https://yadi.sk/d/-4nKcE9evjAQD


Awesome thanks :D
 

bronxaron

Restricted
Jan 17, 2016
18
3
35
Life Hack
Create access levels fo users :)
1) SQL
Code:
ALTER TABLE tbl_users ADD COLUMN level enum('Guest', 'Base', 'Extandet', 'Blocked', 'Banned') NOT NULL DEFAULT 'Guest' AFTER admin;
2) Add new style "\desing\dist\css\AdminLTE.min.css
Code:
.callout.callout-not-warning{background-color:#659c4f !important}
.callout.callout-block-warning{background-color:#e65d5d !important}
3) replace home.php
PHP:
<?php
    session_start();
    require_once 'functions/class.user.php';
 
    $user_home = new USER();
 
 
    if(!$user_home->is_logged_in())
    {
        $user_home->redirect('index.php');
    }
 
 
    $stmt = $user_home->runQuery("SELECT * FROM tbl_users WHERE userID=:uid");
    $stmt->execute(array(":uid"=>$_SESSION['userSession']));
    $userdates = $stmt->fetch(PDO::FETCH_ASSOC);
    $error = 0;
 
    require_once('configs/settingsts3.php');
    require_once('libs/TeamSpeak3/TeamSpeak3.php');
 
 
    try    {
        $ts3_server = TeamSpeak3::factory("serverquery://".$ts3_user.":".$ts3_pass."@".$ts3_ip.":".$ts3_queryport."");
        $ts3 = $ts3_server->serverGetByPort($userdates['port']);
        $ts3->execute("clientupdate", array("client_nickname" => $ts3_queryname));
    }
    catch(TeamSpeak3_Exception $e)
    {
        $error = 1;
    }
 
?>
<?php include("desing/aside.php"); ?>

    <div class="content-wrapper">
        <section class="content-header">
            <h1>
                ComplexServer
                <small>Dashboard</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Server</a></li>
                <li class="active">Dashboard</li>
            </ol>
        </section>
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title"><? echo $ServerQS ?></h3>
                        </div>                
                        <div class="box box-default">
                    
                            <!--MESSAGE FOR NEW USER-->
                            <?     if($userdates['level'] == 'Guest'){ ?>
                            <div class="callout callout-warning">
                                <h4><?php echo $userdates['level'];?> account</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</p>
                            </div>
                            <? } ?>
                        
                            <!--MESSAGE AND PERSONAL INFO FOR ACTIVE ACCOUNTS -->
                            <?     if($userdates['level'] == 'Extandet' OR $userdates['level'] == 'Base'){ ?>
                            <div class="callout callout-not-warning">
                                <h4><?php echo $userdates['level'];?> account</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</p>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</p>
                            </div>
                            <div class="box-body table-responsive no-padding">
                                <table class="table table-hover">
                                    <tr>
                                        <th>IP / PORT</th>
                                        <th>Name</th>
                                        <th>Slots</th>
                                        <th>Uptime</th>
                                    </tr>
                                    <tr>
                                        <td><a href="ts3server://<?php echo $ts3->getAdapterHost() ?>/?port=<?php echo $userdates['port'];?>&nickname=PanelTS3Worhost"><?php echo $ts3->getAdapterHost() ?>:<?php echo $userdates['port']; ?></td>
                                            <td><?php echo $ts3->virtualserver_name ?></td>
                                            <td><?php echo $ts3->virtualserver_clientsonline ?> / <?php echo $ts3->virtualserver_maxclients ?></td>
                                            <td><?php echo TeamSpeak3_Helper_Convert::seconds($ts3->virtualserver_uptime) ?></td>
                                        </tr>
                                    </tr>
                                </table>
                            </div>
                            <? } ?>
                            <!--MESSAGE FOR BANNED DLOCKED USERS-->
                            <?     if($userdates['level'] == 'Blocked' OR $userdates['level'] == 'Banned'){ ?>
                            <div class="callout callout-block-warning">
                                <h4><?php echo $userdates['level'];?> account</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</p>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</p>
                            </div>
                            <? } ?>

                        
                        </div>                
                    </div>
                </div>
            </div>
            <div class="box">
                <table class="table table-bordered table-condensed f11 content-panel">
                    <tr>
                        <td colspan="2" align="center" class="info"><b>Account Info</b></td>
                    </tr>
                    <tr>
                        <td><b>Access Level:</b></td>
                        <td><?php echo $userdates['level'];?></td></td>
                    </tr>                
                    <tr>
                        <td width="35%"><b>User ID:</b></td>
                        <td width="65%"><?php echo $userdates['userID'];?></td>
                    </tr>
                    <tr>
                        <td width="35%"><b>Name:</b></td>
                        <td width="65%"><?php echo $userdates['userName'];?></td>
                    </tr>
                    <tr>
                        <td width="35%"><b>User Email:</b></td>
                        <td width="65%"><?php echo $userdates['userEmail'];?></td>
                    </tr>
                    <tr>
                        <td width="35%"><b>Created:</b></td>
                        <td width="65%"><?php echo $userdates['date'];?></td>
                    </tr>
                    <?     if($userdates['level'] == 'Extandet' OR $userdates['level'] == 'Base'){ ?>
                    <tr>
                        <td width="35%"><b>Server Port:</b></td>
                        <td width="65%"><?php echo $userdates['port'];?></td>
                    </tr>
                    <tr>
                        <td width="35%"><b>Server Slots:</b></td>
                        <td width="65%"><?php echo $userdates['slots'];?></td>
                    </tr>
                    <tr>
                        <td><b>Admin Access:</b></td>
                        <td><?php echo ($userdates['admin'] == 1) ? 'Yes' : 'No';?></td>
                    </tr>
                    <tr>
                        <td><b>Vip Access:</b></td>
                        <td><?php echo ($userdates['vip'] == 1) ? 'Yes' : 'No - Get It <a href= "ordervip.php">Here</a>';?></td>
                    </tr>
                    <? } ?>
                </table>
            </div>
        </section>
    </div>
<?php  include("desing/footer.php"); ?>

Ia0UVm2.png

V4cydxu.png

iXJ72ru.png
This script laravel? Don't working on my server :(
 

DBrO

Member
Mar 8, 2016
8
1
35
I also am with this problem (HTTP 505 Error)
 
Last edited by a moderator:

flickerjunky

First perm VIP!? Furries4Life?! #CutenessOverload
VIP
Mar 16, 2016
69
58
56
Its nice to see people adding their own ideas to the script.
Integration Simple Server Creator [Web]
EscuderoKevin
https://r4p3.net/threads/simple-clean-server-creator-web.2536/
1) folder "servercreator" of decompress in a folder "pages"
2) add /desing/aside.php ~ line 265 after
PHP:
<? } ?>
code
PHP:
                                <?php if($userdates['admin'] == 1){ ?>
                                <li <?php  if($dir == '/complexserver/pages/servercreator') { echo 'class="active treeview"'; } else { 'class="treeview"'; } ?>>
                                    <a href="#">
                                        <i class="fa fa-edit"></i> <span>Simple Server Creator</span>
                                        <span class="pull-right-container">
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </span>
                                    </a>
                                    <ul class="treeview-menu">
                                        <li class="treeview">
                                            <li <?php  if($_SERVER['REQUEST_URI'] == '/complexserver/pages/servercreator/index.php') { echo 'class="active"'; } ?>>  <a href="/complexserver/pages/servercreator/index.php">
                                                <i class="fa fa-dashboard"></i> <span>Create Server</span>
                                                <span class="pull-right-container">
                                                    <i class="fa fa-hand-peace-o"></i>
                                                </span>
                                            </a>
                                            </li>                                    
                                        </li>                                    
                                    </ul>
                                 
                                <? } ?>
VR0KWYl.png


download servercreator https://yadi.sk/d/-4nKcE9evjAQD
 

flickerjunky

First perm VIP!? Furries4Life?! #CutenessOverload
VIP
Mar 16, 2016
69
58
56
Integration Simple Server Creator [Web]
EscuderoKevin
https://r4p3.net/threads/simple-clean-server-creator-web.2536/
1) folder "servercreator" of decompress in a folder "pages"
2) add /desing/aside.php ~ line 265 after
PHP:
<? } ?>
code
PHP:
                                <?php if($userdates['admin'] == 1){ ?>
                                <li <?php  if($dir == '/complexserver/pages/servercreator') { echo 'class="active treeview"'; } else { 'class="treeview"'; } ?>>
                                    <a href="#">
                                        <i class="fa fa-edit"></i> <span>Simple Server Creator</span>
                                        <span class="pull-right-container">
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </span>
                                    </a>
                                    <ul class="treeview-menu">
                                        <li class="treeview">
                                            <li <?php  if($_SERVER['REQUEST_URI'] == '/complexserver/pages/servercreator/index.php') { echo 'class="active"'; } ?>>  <a href="/complexserver/pages/servercreator/index.php">
                                                <i class="fa fa-dashboard"></i> <span>Create Server</span>
                                                <span class="pull-right-container">
                                                    <i class="fa fa-hand-peace-o"></i>
                                                </span>
                                            </a>
                                            </li>                                    
                                        </li>                                    
                                    </ul>
                                 
                                <? } ?>
VR0KWYl.png


download servercreator https://yadi.sk/d/-4nKcE9evjAQD
Is there a way to integrate a dropdown menu? i dont want users to type in slots.
 

ryuma

Member
May 30, 2016
36
1
43
Drop-down menus are not a problem.
I implemented it in another way, more accurate I think. But for this you need to use the proposed system of levels above me.
 
Status
Not open for further replies.
Top