15 lines
360 B
PHP
15 lines
360 B
PHP
<?php
|
|
session_start();
|
|
if (!isset($_SESSION['user'])) {
|
|
header('Location: login.php');
|
|
exit;
|
|
}
|
|
|
|
$websitePath = '/home/blari/executor/workspace/users_data/' . session_id() . '/websites/index.html';
|
|
|
|
if (file_exists($websitePath)) {
|
|
readfile($websitePath);
|
|
} else {
|
|
echo "Website not found. Please generate it first from the Website Builder.";
|
|
}
|