10) { notify("searches",actuallink); } if(signedactive()==0) { notify("activate",bsurl."profile/my-profile"); } //**Show Notifies function shownotis() { $userid = signedid(); mysql_select_db(database_config, config); $query_checknotify = "SELECT * FROM notification WHERE `userid` = '$userid' AND `readact` = '0' ORDER BY Date DESC"; $checknotify = mysql_query($query_checknotify, config) or die(mysql_error()); $row_checknotify = mysql_fetch_assoc($checknotify); $totalRows_checknotify = mysql_num_rows($checknotify); $resultat = ""; if($totalRows_checknotify>0) { do { if($row_checknotify['Type']=="saved") { $thecls = "heart"; } elseif($row_checknotify['Type']=="noresult") { $thecls = "magnifier"; } elseif($row_checknotify['Type']=="searches") { $thecls = "magnifier"; } elseif($row_checknotify['Type']=="activate") { $thecls = "cog"; } elseif($row_checknotify['Type']=="activate") { $thecls = "cog"; } elseif($row_checknotify['Type']=="follow") { $thecls = "user"; } else { $thecls = "layers"; } $resultat .= "
  • ".$row_checknotify['Notification']."

    ".relative_date(strtotime($row_checknotify['Date']))."
  • "; } while($row_checknotify = mysql_fetch_assoc($checknotify)); } if($resultat!="") { return $resultat; } else { return $resultat; } } include('classes/accinfo.php'); include('template/head.php'); if((@$page!="login")&&(@$page!="register")&&(@$page!="password-recovery")&&(@$page!="profile")) { include('template/header.php'); } if(!@$page) { include('template/slider.php'); include("pages/home.php"); } else { if(file_exists("pages/$page.php")) { if((@$page!="login")&&(@$page!="register")&&(@$page!="password-recovery")&&(@$page!="profile")) { include('template/pagetitle.php');} include("pages/$page.php"); } else { $pagelayout = $page; if(@$page!="login") { include('template/pagetitle.php'); } include("pages/view.php"); } } include('template/footer.php'); include('template/js.php'); ?>