"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/lib_rdf.php3" between
mythreads-links_1.2.0.tar.gz and mythreads-links_1.2.1.tar.gz

About: MyThreads-Links is a web based links manager (using PHP and MySQL).

lib_rdf.php3  (mythreads-links_1.2.0):lib_rdf.php3  (mythreads-links_1.2.1)
skipping to change at line 21 skipping to change at line 21
# version 2 or later. Please refer to www.gnu.org for a copy # version 2 or later. Please refer to www.gnu.org for a copy
# of this license. # of this license.
# #
#-----------------------------------------------------------------> #----------------------------------------------------------------->
################################################# #################################################
# #
################################################# #################################################
function updateRSS() function updateRSS()
{ {
global $start_script, $start_script_t, $tpl, $config; global $start_script, $start_script_t, $tpl, $config, $mylink;
$rss_file = $config["cache_dir"] . "news.rdf"; $rss_file = $config["cache_dir"] . "news.rdf";
$max_new_links = $config["max_new_links"]; $max_new_links = $config["max_new_links"];
$max_upd_links = $config["max_upd_links"]; $max_upd_links = $config["max_upd_links"];
$tpl->set_file("rss", "rss.tpl"); $tpl->set_file("rss", "rss.tpl");
$tpl->set_block("rss", "rss_row", "rss_rows"); $tpl->set_block("rss", "rss_row", "rss_rows");
$result = mysql_query( "SELECT title,idx,message,date,updated,hits,GREATEST( updated,date) AS mx, (date > updated) AS isnew FROM " $result = mysqli_query($mylink, "SELECT title,idx,message,date,updated,hits, GREATEST(updated,date) AS mx, (date > updated) AS isnew FROM "
.$config["pre"]."links WHERE status=0 ORDER BY mx DESC LIMIT 0,". ($max_n ew_links+$max_upd_links)); .$config["pre"]."links WHERE status=0 ORDER BY mx DESC LIMIT 0,". ($max_n ew_links+$max_upd_links));
# as we append data, make sure to reset rss_rows # as we append data, make sure to reset rss_rows
$tpl->set_var("rss_rows", ""); $tpl->set_var("rss_rows", "");
while ($list = mysql_fetch_array($result) ) while ($list = mysqli_fetch_array($result) )
{ {
$idx = $list["idx"]; $idx = $list["idx"];
if ($list["isnew"] == 1) { if ($list["isnew"] == 1) {
$list["title"] .= " (".Message("new").")"; $list["title"] .= " (".Message("new").")";
} }
$tpl->set_var( array( $tpl->set_var( array(
"LINK_TITLE" => $list["title"], "LINK_TITLE" => $list["title"],
"LINK_MESSAGE" => $list["message"], "LINK_MESSAGE" => $list["message"],
"LINK_ADDED" => $list["date"], "LINK_ADDED" => $list["date"],
"LINK_HITS" => $list["hits"], "LINK_HITS" => $list["hits"],
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)