@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;700;800;900&display=swap');
body{
padding: 0;
margin: 0;
color: white;
font-family: 'Montserrat', sans-serif !important;
}
header{
background: linear-gradient(269deg, #181818 0%, #232323 100%);
height: 130px;
/* position: fixed; */
z-index: 999;
max-width: 100vw;
}
.header__img{
vertical-align: middle;
padding-top: 1%;
}
img{
object-fit: cover;
width: 250px;
height: 100px;
margin: 0;
}
.header__nav{
position: sticky !important;
top: 0 !important ;
height: 130px !important;
}
.header__navlink{
border-radius: 0 !important;
border-bottom: 16px;
height: 130px !important;
margin-right: 5%;
max-width: 33.333%;
display: inline-block;
color: rgb(199, 199, 199) !important;
letter-spacing: 3px;
font-weight: 700 !important;
font-size: 35px !important;
transition:1s all;
}
.header__navlink:hover{
background-color: rgb(52, 52, 52) !important;
color: #dddddd;
display: inline-block;
}
ul,li{
list-style-type: none;
}
Fatal error: Uncaught RedBeanPHP\RedException: A database has already been specified for this key. in C:\OSPanel\domains\shop.com\rb\rb.php:13287 Stack trace: #0 C:\OSPanel\domains\shop.com\rb\rb.php(13152): RedBeanPHP\Facade::addDatabase() #1 C:\OSPanel\domains\shop.com\includes\db.php(7): RedBeanPHP\Facade::setup() #2 C:\OSPanel\domains\shop.com\includes\hub-min.php(2): require('C:\\OSPanel\\doma...') #3 C:\OSPanel\domains\shop.com\index.php(24): include('C:\\OSPanel\\doma...') #4 {main} thrown in C:\OSPanel\domains\shop.com\rb\rb.php on line 13287
<?php
require 'includes/db.php';
?>
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><? echo $config['title']; ?></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<? include 'header.php';?>
<button class="btn btn-primary menu d-xxl-none d-block" type="button" data-bs-toggle="collapse" data-bs-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
Меню
</button>
<? include 'includes/hub-min.php' ?>
<? include 'includes/hub.php';?>
<div class="content container">
<H1>Новое</H1>
<hr>
<?php
$articles = mysqli_query($connect, "SELECT * FROM `articles` ORDER BY `id` DESC LIMIT 10");
while ($art = mysqli_fetch_assoc($articles)) {
?>
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Dancing+Script&family=Geologica:wght@300&display=swap');
</style>
<div class="files">
<div class="likes container-fluid">
<form action="" method="post">
<div class="likes container-fluid">
<button class="btn up" name="like">
<i class="bi bi-chevron-up"></i>
</button>
<p style="margin-left: 9px; margin-top: -11px; position: absolute; z-index: 999;"><? echo $art['likes'] ?></p>
<button class="btn up" name="dislike">
<i class="bi bi-chevron-down"></i>
</button>
</div>
</form>
</div>
<div class="text container">
<div class="title" style="height: 92px;">
<h1><? echo $art['title']; ?></h1>
<p>Автор треда: <? echo $art['nickname']; ?></p>
<?php
$art_cat = false;
foreach($categories as $cat)
{
if($cat['id'] == $art['categori_id'])
{
$art_cat = $cat;
break;
}
}
?>
<p class="cat">Категория: <? echo $cat['title']; ?></p>
</div>
<hr>
<h3><? echo $art['text']; ?></h3>
</div>
<div class="do container">
<a href="../article.php?id=<? echo $art['id']; ?>">
<button class="btn"><i class="bi bi-chat-left"></i>Комментарии</button>
</a>
<a href="#">
<button class="btn"><i class="bi bi-bookmark"></i>Сохранить</button>
</a>
</div>
</div>
<?php
}
?>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>
</body>
</html>
<?php
$config = array(
'title' => 'BlueRedit',
'db' => array(
'server' => 'localhost',
'username' => 'root',
'password' => '',
'name' => 'BlueRedit'
)
)
?>