'; //if (!$loggedIn){ //header ("Location: https://recipebox.cdkitchen.com/$pagelogin"); //} if (!$submitted){ @header ("Location: https://recipebox.cdkitchen.com/"); exit; } if ($loggedIn == false){ @include '/home/chilidog/public_html/recipes/views.php'; } include "commentdb.php"; $isRecipe = 1; $postId = $ridx; //comment function $recbreadcrumb = '↞ recipe box start page'; $returnlink = 'https://recipebox.cdkitchen.com/'.$submitted.'/'.$ridx.'/recipe.html'; $printlink = 'https://recipebox.cdkitchen.com/'.$submitted.'/'.$ridx.'/print.html'; $canon = $returnlink; $indent=200; function thread($postId,$isBlog,$isRecipe,$submitted,$userId) { if ($isBlog ==1){ $whattype = ' and blogid='.$postId.''; $posttype = 'blog'; }else{ $whattype = ' and rboxid='.$postId.''; $posttype='recipe'; } $parent_id = 0; $commentlist = @mysql_query("SELECT * FROM user_comments WHERE allow=1 and acctId=".mysql_real_escape_string($submitted)."".$whattype.""); // if we have comments to display, display them, if not, exit. if ($commentlist != NULL) { // echo "