Skip to content

Commit

Permalink
Only show Users/Events/Releases/News to Admins
Browse files Browse the repository at this point in the history
  • Loading branch information
AunePVP committed Jun 23, 2022
1 parent c4a92a7 commit c7b2a46
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions users/control/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ function deleteserver($id, $arrayresult) {
</div>
</div>
</div>
<?php if ($username=='admin'):?>
<div class="extra inlineflex flex-wrap">
<div class="itemdiv users">
<div class="itemtitle">Users</div>
Expand Down Expand Up @@ -453,11 +454,11 @@ function deleteserver($id, $arrayresult) {
?>
</div>
</div>
<div class="itemdiv news">
<div class="itemtitle">News</div>
<div class="item news"></div>
</div>
<textarea id="markdownsource"><?php echo $markdown ?></textarea>
<div class="itemdiv news">
<div class="itemtitle">News</div>
<div class="item news"></div>
</div>
<textarea id="markdownsource"><?php echo $markdown ?></textarea>
<?php if($emarkdown):?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/2.1.0/showdown.min.js" integrity="sha512-LhccdVNGe2QMEfI3x4DVV3ckMRe36TfydKss6mJpdHjNFiV07dFpS2xzeZedptKZrwxfICJpez09iNioiSZ3hA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="text/javascript">
Expand All @@ -472,6 +473,7 @@ function deleteserver($id, $arrayresult) {
<!-- __%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%__ -->
<?php
endif;
endif;
if (!empty($_GET['id'])):
if ($_GET['id'] != "addserver") {
$conn = mysqli_connect($DB_SERVER, $DB_USERNAME, $DB_PASSWORD, $DB_NAME);
Expand Down

0 comments on commit c7b2a46

Please sign in to comment.