PATH:
root
/
wulkantemplates
<?php header( 'Content-Type: text/html; charset=utf-8' ); include_once '../lib/funkcje.php'; include_once '../lib/includes.php'; //ini_set('display_errors', 1); // ini_set('display_startup_errors', 1); //error_reporting(E_ALL); // Database configuration $dbHost = "localhost"; $dbUsername = "29991068_paley"; $dbPassword = "NcMZg6heA7UaFl0258qf"; $dbName = "29991068_paley"; // Create database connection $db = new mysqli($dbHost, $dbUsername, $dbPassword, $dbName); mysqli_set_charset($db,"utf8"); // Check connection if ($db->connect_error) { die("Connection failed: " . $db->connect_error); } if(!empty($_POST["id"])){ $showLimit = 8; $realizacje = $db->query("SELECT * FROM realizacje".$_POST['l']." WHERE `pokaz` = 1 AND id < ".$_POST['id']." ORDER BY id DESC LIMIT 8"); foreach ($realizacje as $cKey => $cVal) { $postID = $cVal['id']; if ($cVal['tytul']) { $cLink = isset($cVal['url']) && $cVal['url'] != "" ? $cVal['url'] : "realizations-{$cVal['id']}-" . Utils::makeLink($cVal['tytul']); ?> <div class="item"> <a href="<?php echo $_POST['lang'].$cLink; ?>" class="item__name"> <?php if ($cVal['galeria']) echo "<span class=\"item__image\" style=\"background-image: url('{$cVal['galeria']}')\"></span>"; ?> <span class="item-desc"> <span class="h2"> <?php echo Utils::shortenText($cVal['tytul'], 2, 9, 25);?> </span> <p class="item_city"><?php echo $cVal['miasto']; ?></p> </span> <span class="item_bg"> <h2><?php echo $cVal['tytul']; ?></h2> <p class="item_city"><?php echo $cVal['miasto']; ?></p> <span class="item_desc"><?php echo Utils::shortenText($cVal['tresc']); ; ?></span> </span> </a> </div> <?php } } ?> <span id="show_more_main<?php echo $postID; ?>" class="text-center" style="display:block; clear:both"> <span id="<?php echo $postID;?>" class="btn show_more" ><?php echo $_POST['more'];?></span> </span> <?php } ?>
[-] gallery.php
[edit]
[-] form-send2.php
[edit]
[-] paginator.php
[edit]
[+]
..
[-] form.php
[edit]
[-] page-multi.php
[edit]
[-] header.php
[edit]
[-] produkty.php
[edit]
[-] top.php
[edit]
[-] form-send.php
[edit]
[-] category.php
[edit]
[-] home.php
[edit]
[-] footer.php
[edit]
[-] page-m.php
[edit]
[-] page.php
[edit]
[-] jakosc.php
[edit]
[-] news.php
[edit]
[-] page-m2.php
[edit]
[-] page-work.php
[edit]
[-] ajax_more.php
[edit]
[-] begin.php
[edit]
[-] realizations.php
[edit]