Untitled
raw download clone
PHP
views 45
,
size 1025 b
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.min.css" />
<style>
.hvstl:hover{background: #eee}
</style>
<?php
define('DATALIFEENGINE', true);
define('ENGINE_DIR', 'engine');
require_once ENGINE_DIR . '/data/config.php';
require_once ENGINE_DIR . '/classes/mysql.php';
require_once ENGINE_DIR . '/data/dbconfig.php';
require_once ENGINE_DIR . '/modules/functions.php';

$res = $db->query("SELECT * FROM dle_post WHERE xfields LIKE '%serieslist%'");#ORDER BY title ASC LIMIT 10

while ($row = $db->get_row($res)) {
	$post_id = $row["id"];
	$xfieldsdata = xfieldsdataload( $row['xfields'] );
		
	if (isset($xfieldsdata["serieslist"])) {
		$serieslist = $xfieldsdata["serieslist"];
		$serieslist_items = explode("<br />", $serieslist);
		$serieslist_items = array_filter($serieslist_items);	#remove empty items
		
		# PARAMETERS	
		$series_count = count($serieslist_items);
		$serieslist_data = "";
		$slii = -1;
		
		$sarray = array();
close fullscreen
Login or Register to edit or fork this paste. It's free.