Posted by kyle Thu 1st Mar 2007 04:29 - Syntax is PHP - 23 views
Download | New Post | Modify | Show line numbers

Download | New Post | Modify | Show line numbers
PHP parser reported no syntax errors in this post!
// The source code packaged with this file is Free Software, Copyright (C) 2005 by
// Ricardo Galli
// It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
// You can get copies of the licenses here:
// http://www.affero.org/oagpl.html
// AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".
// -------------------------------------------------------------------------------------
include_once('Smarty.class.php');
if(!isset($main_smarty)){$main_smarty = new Smarty;}
// If we're calling this page through another page like index.php, $main_smarty will already be set
// If we're calling this page directly, set main_smarty
include_once('config.php');
include_once(mnminclude.'html1.php');
include_once(mnminclude.'link.php');
include_once(mnminclude.'tags.php');
include_once(mnminclude.'search.php');
include_once(mnminclude.'smartyvariables.php');
echo "
\"new Effect.toggle('latcomments','blind', {queue: 'end'}); \">
\"".my_base_url.my_pligg_base."/templates/yget/images/expand.png\" onClick=expandcontent(this,'latcomments') >"/comments.php>Latest Comments
";
$res = "select comment_content,link_id from ".table_comments.",".table_links." WHERE comment_link_id = link_id ORDER BY comment_date DESC limit 10";
$list_comments = mysql_query($res) or die(mysql_error());
while($row = mysql_fetch_array($list_comments)){
$story_url = getmyurl("story", $row['link_id']);
$main_smarty->assign('comment_storyurl', $story_url);
echo "".$row['comment_content']."
";
}
echo "
";$res = "select comment_content,link_id from ".table_comments.",".table_links." WHERE comment_link_id = link_id ORDER BY comment_date DESC limit 10";
$list_comments = mysql_query($res) or die(mysql_error());
while($row = mysql_fetch_array($list_comments)){
$story_url = getmyurl("story", $row['link_id']);
$main_smarty->assign('comment_storyurl', $story_url);
echo "".$row['comment_content']."
";
}
echo "
?>
PermaLink to this entry https://pastebin.co.uk/11193
Posted by kyle Thu 1st Mar 2007 04:29 - Syntax is PHP - 23 views
Download | New Post | Modify | Show line numbers

Download | New Post | Modify | Show line numbers
Comments: 0