Skip to content

Commit 39ea1e3

Browse files
committed
Now you can see your website status on main page + you can see your coins now!
1 parent f73a6d7 commit 39ea1e3

3 files changed

Lines changed: 44 additions & 16 deletions

File tree

dashboard/create.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
require("../require/dashboard/page.php");
3+
4+
//I dont know yet if i shall get the data from mysql or api
5+
?>

dashboard/home.php

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
2-
3-
42
require("../require/dashboard/page.php");
3+
$cydb = mysqli_connect($getsettings["cydb_host"]. ':'. $getsettings["cydb_port"], $getsettings["cydb_user"], $getsettings["cydb_pass"], $getsettings["cydb_name"]);
4+
$cydbw = $cydb->query("SELECT * FROM `websiteFunctions_websites` WHERE adminEmail='". $userdb['email'] ."'")->fetch_array();
55

66
?>
77
<div class="header pb-6 d-flex align-items-center"
@@ -209,11 +209,10 @@
209209
?>
210210
<thead class="thead-dark">
211211
<tr>
212-
<th scope="col">Website name</th>
212+
<th scope="col">Website domain</th>
213213
<th scope="col">Status</th>
214-
<th scope="col">CPU</th>
215-
<th scope="col">RAM</th>
216-
<th scope="col">Disk</th>
214+
<th scope="col">PhP version</th>
215+
<th scope="col">SSL Status</th>
217216
<th scope="col">Actions</th>
218217
</tr>
219218
</thead>
@@ -223,26 +222,50 @@
223222
<div class="media align-items-center">
224223
<div class="media-body">
225224
<span class="name mb-0 text-sm">
226-
MythicalNodes
225+
<?= $cydbw['domain'] ?>
227226
</span>
228227
</div>
229228
</div>
230229
</th>
231230
<td>
232-
Dead
233-
</td>
234-
<td>
235-
100%
231+
<?php
232+
if ($cydbw['state'] == "1")
233+
{
234+
echo "Online";
235+
}
236+
else
237+
{
238+
echo "Suspended";
239+
}
240+
?>
236241
</td>
237242
<td>
238-
1024MB
243+
<?= $cydbw['phpSelection'] ?>
239244
</td>
240245
<td>
241-
1024MB
246+
<?php
247+
if ($cydbw['ssl'] == "1")
248+
{
249+
echo "SSL Vaild";
250+
}
251+
else
252+
{
253+
echo "No SSL";
254+
}
255+
?>
242256
</td>
243257
<td>
244-
<a href="goggle.com" class="btn btn-primary btn-sm" data-trigger="hover" data-container="body" data-toggle="popover" data-color="default" data-placement="left" data-content="Open in the game panel">Open Website</a>
245-
<a href="/server/manage?id=1" class="btn btn-primary btn-sm">Edit</a>
258+
<a href="<?php
259+
if ($cydbw['ssl'] == "1")
260+
{
261+
$openwb = "https://";
262+
}
263+
else
264+
{
265+
$openwb = "http://";
266+
}
267+
echo $openwb . $cydbw['domain'];
268+
?>" class="btn btn-primary btn-sm" data-trigger="hover" data-container="body" data-toggle="popover" data-color="default" data-placement="left" data-content="Open in the game panel">Open Website</a>
246269
<a href="/server/delete?server=1"><button type="button" class="btn btn-danger btn-sm"><i class="fas fa-trash"></i> Delete</button></a>
247270
</td>
248271
</tr>

require/dashboard/page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
</a>
154154
</li>
155155
<li class="nav-item" style="color: white;">
156-
12 <?= $getsettings['currencyname'] ?>
156+
<?= $userdb['coins'] ?> <?= $getsettings['currencyname'] ?>
157157
</li>
158158
&nbsp;
159159
</ul>

0 commit comments

Comments
 (0)