Ciao a tutti intanto grazie di esistere!!!
Se guardate bene lo script io voglio far in modo che ogni User in base al server assegnato possa aver accesso ad un file specifico proprio in base al server che ha,come potrei fare?
Grazie.
grazie a tutti.
Se guardate bene lo script io voglio far in modo che ogni User in base al server assegnato possa aver accesso ad un file specifico proprio in base al server che ha,come potrei fare?
Grazie.
PHP:
<script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
<link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css">
<div id="CollapsiblePanel1" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">
<div class="card mb-3">
<div class="card-header font-weight-bold">
<i class=""></i>Servers disponibili</div></div></div>
<div class="CollapsiblePanelContent">
<div class="card-body">
<div class="table-responsive">
<form action="subreseller.php" method="post" id="tf"></form>
<table class="table table-bordered table-hover" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>Nome Servers</th>
<th>Id Servers</th>
</tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<?php if (@$_SESSION['type'] != "") {
$resultse = mysqli_query($con, "SELECT * FROM `servers` WHERE FIND_IN_SET(`id`,(SELECT GROUP_CONCAT( servers SEPARATOR ',') FROM `users` WHERE `name` = '$_SESSION[username]'))") or die(mysqli_error($con));
while($rowse = mysqli_fetch_assoc($resultse)) {
$result1 = mysqli_query($con, "SELECT * FROM `ssh-".$rowse["id"]."` WHERE `creatoda` = '$_SESSION[username]' ") or die(mysqli_error($con));
while($row1 = mysqli_fetch_assoc($result1))
{
echo' <form action="subreseller.php" method="post" id="f'.$rowse["id"].$row1["ssh"].'"></form>';
}
$rf = "'";
echo'<td>'.$rowse["nome"].'</td>';
echo'<td>'.$rowse["id"].'</td>';
echo'</tr>';
}
?>
</tbody>
</table>
<table class="table table-bordered table-hover" width="100%" cellspacing="0">
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<?php
}
?>
</div></div>
<script type="text/javascript">
<!--
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
//-->
</script>
grazie a tutti.