hazeproduktion
Member
- Aug 12, 2016
- 11
- 1
- 35
nope and vip also not
Okay Google -> ERROR 500Need help! After login of me error on the page "home.php"
http://prnt.sc/clu7ks
The error continues ;(Okay Google -> ERROR 500
http://pcsupport.about.com/od/findbyerrormessage/a/500servererror.htmThe error continues ;(
ALTER TABLE tbl_users ADD COLUMN level enum('Guest', 'Base', 'Extandet', 'Blocked', 'Banned') NOT NULL DEFAULT 'Guest' AFTER admin;
.callout.callout-not-warning{background-color:#659c4f !important}
.callout.callout-block-warning{background-color:#e65d5d !important}
<?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"); ?>
<? } ?>
<?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>
<? } ?>
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
codePHP:<? } ?>
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> <? } ?>
download servercreator https://yadi.sk/d/-4nKcE9evjAQD
Life Hack
Create access levels fo users
1) SQL2) Add new style "\desing\dist\css\AdminLTE.min.cssCode:ALTER TABLE tbl_users ADD COLUMN level enum('Guest', 'Base', 'Extandet', 'Blocked', 'Banned') NOT NULL DEFAULT 'Guest' AFTER admin;
3) replace home.phpCode:.callout.callout-not-warning{background-color:#659c4f !important} .callout.callout-block-warning{background-color:#e65d5d !important}
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"); ?>
This script laravel? Don't working on my server
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
codePHP:<? } ?>
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> <? } ?>
download servercreator https://yadi.sk/d/-4nKcE9evjAQD
Is there a way to integrate a dropdown menu? i dont want users to type in slots.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
codePHP:<? } ?>
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> <? } ?>
download servercreator https://yadi.sk/d/-4nKcE9evjAQD
u mean a droppdown like *LINK REMOVED* ?Is there a way to integrate a dropdown menu? i dont want users to type in slots.