Fix for cookie issue

This commit is contained in:
CommanderRedYT
2021-06-25 07:46:58 +02:00
parent f2d7000fa0
commit 1fc7d54c49
8 changed files with 47 additions and 7 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
start.sh

View File

@ -6,8 +6,40 @@ define('ACTIVE_MENUITEM', 'bobbybob');
require('includes/header.php');
?>
<br />
<br />
<br />
<div class="container-fluid">Bobbybob (WIP)</div>
<?php require('includes/footer.php'); ?>
<div class="container-fluid" style="max-width: 700px">
<div class="row">
<div class="col-sm">
<div class="container-fluid disable-select">
<div id="carousel" class="carousel slide disable-select" data-ride="carousel" data-interval="3500" style="border: 2px; border-style: ridge; border-color: gray; max-height: 300px">
<ol class="carousel-indicators disable-select">
<li data-target="#carousel" data-slide-to="0" class="active disable-select" draggable="false" ondragstart="return false;"></li>
<li class="disable-select" data-target="#carousel" data-slide-to="1" draggable="false" ondragstart="return false;"></li>
<li class="disable-select" data-target="#carousel" data-slide-to="2" draggable="false" ondragstart="return false;"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img style="max-height: 500px" class="d-block w-100 disable-select" src="/img/bobbybob/bob1.jpg" alt="First slide" draggable="false" ondragstart="return false;" />
</div>
<div class="carousel-item">
<img style="max-height: 500px" class="d-block w-100 disable-select" src="/img/bobbybob/bob2.jpg" alt="First slide" draggable="false" ondragstart="return false;" />
</div>
<div class="carousel-item">
<img style="max-height: 500px" class="d-block w-100 disable-select" src="/img/bobbybob/bob3.jpg" alt="First slide" draggable="false" ondragstart="return false;" />
</div>
</div>
<a class="carousel-control-prev disable-select" href="#carousel" role="button" data-slide="prev" draggable="false" ondragstart="return false;">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next disable-select" href="#carousel" role="button" data-slide="next" draggable="false" ondragstart="return false;">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
<div class="col-sm">Subtitle to pictures</div>
</div>
</div>
<?php require('includes/footer.php'); ?>

BIN
img/bobbybob/bob1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

BIN
img/bobbybob/bob2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
img/bobbybob/bob3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

View File

@ -1,3 +1,6 @@
<?php if (!isset($_COOKIE["darkmode"])) {
$_COOKIE["darkmode"] = "false";
}?>
<!DOCTYPE html>
<html lang="en" style="scroll-behavior: smooth">

View File

@ -3,7 +3,11 @@ function givePHP() {
len = elements !== null ? elements.length : 0;
i = 0;
for (i; i < len; i++) {
if(elements[i].href != "http://localhost/")
if(elements[i].id != "nophp")
elements[i].href += ".php";
}
}
function load() {
givePHP();
}

View File

@ -25,5 +25,5 @@ printf "${PWD##*/}"
printf ' ...\n'
echo $GETIP
su "$USERNAME" -c "firefox --new-tab $TAB"
sudo php -S $IP
sudo php -S $IP:80
cd ~