|
1 | 1 | <?php |
2 | | - |
3 | | - |
4 | 2 | 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(); |
5 | 5 |
|
6 | 6 | ?> |
7 | 7 | <div class="header pb-6 d-flex align-items-center" |
|
209 | 209 | ?> |
210 | 210 | <thead class="thead-dark"> |
211 | 211 | <tr> |
212 | | - <th scope="col">Website name</th> |
| 212 | + <th scope="col">Website domain</th> |
213 | 213 | <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> |
217 | 216 | <th scope="col">Actions</th> |
218 | 217 | </tr> |
219 | 218 | </thead> |
|
223 | 222 | <div class="media align-items-center"> |
224 | 223 | <div class="media-body"> |
225 | 224 | <span class="name mb-0 text-sm"> |
226 | | - MythicalNodes |
| 225 | + <?= $cydbw['domain'] ?> |
227 | 226 | </span> |
228 | 227 | </div> |
229 | 228 | </div> |
230 | 229 | </th> |
231 | 230 | <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 | + ?> |
236 | 241 | </td> |
237 | 242 | <td> |
238 | | - 1024MB |
| 243 | + <?= $cydbw['phpSelection'] ?> |
239 | 244 | </td> |
240 | 245 | <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 | + ?> |
242 | 256 | </td> |
243 | 257 | <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> |
246 | 269 | <a href="/server/delete?server=1"><button type="button" class="btn btn-danger btn-sm"><i class="fas fa-trash"></i> Delete</button></a> |
247 | 270 | </td> |
248 | 271 | </tr> |
|
0 commit comments