* @license Unlicense
* @since 1.6.0-fork
* @since 2.7.1-fork Functional refactoring
*/
namespace Lwt\Interface\Do_Feeds;
require_once 'inc/session_utility.php';
function dummy_function_1(): array
{
global $tbpref;
$edit_text = 0;
$message = '';
$marked_items = implode(',', $_REQUEST['marked_items']);
$res = do_mysqli_query(
"SELECT * FROM (
SELECT * FROM {$tbpref}feedlinks
WHERE FlID IN ($marked_items)
ORDER BY FlNfID
) A
left join {$tbpref}newsfeeds ON NfID=FlNfID"
);
$count=$message1=$message2=$message3=$message4=0;
while ($row = mysqli_fetch_assoc($res)) {
if (get_nf_option($row['NfOptions'], 'edit_text') == 1) {
if ($edit_text==1) {
$count++;
} else {
echo '
';
}
?>
";
} else {
echo "\n
";
}
echo "+++ ",$lf," +++
";
}
?>
+++ Warning: Invalid Search +++';
}
}
}
} else {
$wh_query = '';
}
$currentpage = (int) processSessParam("page", "currentrsspage", '1', true);
$currentsort = (int) processDBParam("sort", 'currentrsssort', '2', true);
?>
';
}
if (mysqli_data_seek($result, 0)) {
?>Newsfeed:
';
if ($currentfeed == 0 || $currentfeed == '' || strpos($feeds_list, $currentfeed) === false) {
$currentfeed = substr($feeds_list, 1);
// explode(',', $feeds_list)[0] may work as well (2.8.0)
}
if (strpos($currentfeed, ',')===false) {
echo '
';
} else {
echo '
update multiple feeds';
}
if ($time) {
$diff = time() - (int) $time;
print_last_feed_update($diff);
}
echo ' | ';
$sql = "SELECT count(*) AS value FROM {$tbpref}feedlinks
WHERE FlNfID in ($currentfeed)$wh_query";
$recno = (int)get_first_value($sql);
if ($debug) {
echo $sql . ' ===> ' . $recno;
}
if ($recno) {
$maxperpage = (int)getSettingWithDefault('set-articles-per-page');
$pages = $recno == 0 ? 0 : (intval(($recno-1) / $maxperpage) + 1);
if ($currentpage < 1) {
$currentpage = 1;
}
if ($currentpage > $pages) {
$currentpage = $pages;
}
$limit = 'LIMIT ' . (($currentpage-1) * $maxperpage) . ',' . $maxperpage;
$sorts = array('FlTitle','FlDate DESC','FlDate ASC');
$lsorts = count($sorts);
if ($currentsort < 1) {
$currentsort = 1;
}
if ($currentsort > $lsorts) {
$currentsort = $lsorts;
}
echo '| '. $total=$recno .' articles ';///
echo ' | ';
makePager($currentpage, $pages, 'do_feeds.php', 'form1');
?>
|
Sort Order:
|
';
if ($pages > 1) {
echo '';
}
} else {
echo '';
}
}
?>