'; $videohtm=''; $videohtm=''; $videohtm=''; $videohtm=''; $videohtm=''; $videohtm='
'; //$videohtm=''; if(isset($_REQUEST["s"])) { require("blog.htm"); exit(); } if(!isset($nav)) $nav=1; $self=substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],"/")+1,99); require("include/connect.php"); $seed=(int)(time()/60); $seed=(int)(time()/86400); if(isset($_REQUEST["t"])) $t=$_REQUEST["t"]; if(!isset($t)) $t=2147483647; if(isset($_REQUEST["d"])) $d=$_REQUEST["d"]; if(!isset($s)) { $repget=array("'",'"',"(",")","{","}",";",":","@","$","?","^","<",">",'/','\\'); if(isset($_REQUEST["s"])) { $s=str_replace("%","",str_replace($replacespace," ",str_replace($repget,"",$_REQUEST["s"]))); } else { $q=$_SERVER["QUERY_STRING"]; // echo "#$q#"; if(strlen($q)>1) { $p=strpos(" $q",'r='); if($p<1) $p=99; $s=str_replace("%","",str_replace($replacespace," ",str_replace($repget,"",substr($q,0,$p)))); }else { $s=''; } } } $limitsize=10; if(!isset($r)) if(isset($_REQUEST["r"])) { $r=$_REQUEST["r"]; } else { $r=1; } $limit='LIMIT '.(($r-1)*$limitsize).", $limitsize"; if(isset($s)) { } if(!isset($nav)) $nav=3; // echo "ssss=$s
"; // echo "sssss=$s
"; //$pagesize=5000; //$totheight=1350; if(isset($d)) { $calendar=1; $self.="?d=$d&"; // echo "isset=D
"; $dw=date("l",$d*86400); $day=date("jS",$d*86400); $month=date("F",$d*86400); $year=date("Y",$d*86400); if(!isset($keywords)) $keywords=strtolower("folkdisco,$month,$year,folk,disco,gigs,music"); if(!isset($desc)) $desc="folkdisco - $day $month $year. Music In A Folk Disco Style. Gigs, Songs, Acoustic Mayhem."; if(!isset($title)) $title="folkdisco - $dw $day $month $year. Music In A Folk Disco Style. Gigs, Songs, Acoustic Mayhem."; if(!isset($top)) $top=strtoupper("$dw $day $month $year"); } elseif(strlen($s)>2) { //echo "sssssYES=$s#$d".date("D jS F Y · G:i")."
"; $self.="?s=$s&"; $rep1=array("\\","/",'"','<','>','%20','.','+',' ',' ',' ',' ',' '); $rep2=array(' a '," it's "," i'm "," i've "," i'll ",' folkdisco ','!',' a ',' a ',' a ',' a ',' of ',' an ',' as ',' at ',' if ',' i ',' the ',' in ',' on ',' going ',' up ',' your '," you're ",' my ',' and ',' ',' ',' ',' ',' '); if(!isset($keywords)) $keywords=str_replace(" ",",",strtolower("folkdisco,$s,folk,disco,music")); if(!isset($desc)) $desc="folkdisco - search for $s. Find $s in all our blogs."; if(!isset($title)) $title="$s - folkdisco"; if(!isset($top)) $top=strtoupper("$s - folkdisco"); $s=trim(str_replace($rep,'^',str_replace($rep2,' ',str_replace($rep2,' ',str_replace($rep2,' ',strtolower(" $s ")))))); } else { $self.="?"; if(isset($t)) { } if(!isset($keywords)) $keywords="folkdisco,FOLKDISCO,folk,disco,music"; if(!isset($desc)) $desc="Folk Disco Music.
Heartfelt acoustic guitar led trance folk emo
random power pop funky music with sing-along choruses.
'Absolutely Magnificent' - Matthew Bannister (BBC Radio 1, Five Live)"; if(!isset($title)) $title="FOLKDISCO. Folk Disco Music. Gigs, Songs, Videos, Random Stuff. Acoustic Mayhem."; if(!isset($top)) $top="FOLKDISCO BLOG"; } include("include/content1.php"); //require("include/head.htm"); // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ function displaypost($pre) { global $all,$row,$outpost,$transo,$translink,$jpgbar,$totheight,$jpgs,$s,$ablog,$aroot,$totalout,$localist; // echo "pre=$pre
"; // echo "row sub=".$row['subject']."
"; $row['location']=str_replace('^',"'",$row['location']); $row['subject']=str_replace('^',"'",$row['subject']); $row['text']=strtr(str_replace('#'," ",$row['text']),$transo); $outpost="

$pre: $row[subject]

"; if(strlen($row['jpg'])>4) { if(strpos(" $row[jpg]",'/')>0) { $jpg='http://'.$row['jpg']; // $outpost.="JPG http
"; } else { $jpg=$aroot."pics/$row[jpg]"; // $outpost.="JPG local
"; } // if(file_exists($jpg)) { /* list($width, $height)=getimagesize("$jpg"); if($height>144) { $width=(int)$width*144/$height; $height=144; } elseif($width>192) { $height=(int)$height*192/$width; $width=192; } if($height) { $outpost.=""; $outpost.="\"$row[subject]\""; } */ //if($height) { $outpost.=""; $outpost.="\"$row[subject]\""; // } else { // $outpost.="JPG NOT EXIST$row[jpg]#
"; // } } // $img=''; if(strlen($row['text'])>1) { if(strlen($row['text'])>420) { $text=substr(strip_tags($row['text']),0,240); $ptext=strrpos($text," ")-1; while(strpos("\" ,.:;()![]{}#~_",substr($text,$ptext,1))) $ptext--; $outpost.=substr($text,0,$ptext+1)."... See More"; } else { $outpost.=strip_tags($row["text"]); } } if(isset($localist)) $outpost.=" edit"; $dt=" ".str_replace("&"," ",date('D&jS&F&Y&·&G:i',$row["time"])); if(strlen($row['location'])>1) $dt=str_replace(" "," ",$row["location"])." · ".$dt; $outpost.='
'.$dt.'
'; // if($row['replies']>0) { // $outpost.="Replies: $row[replies]
"; // } //$outpost.="
"; echo $outpost; $totalout=$totalout+strlen($outpost); //echo " · · · · · · · · · · · · · · · · · · · · · · · · · · "; } // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ echo "$videohtm
"; $sql="SELECT * FROM folkdisco WHERE type='n' ORDER BY time DESC LIMIT 1"; $totalout=0; $result=mysql_query($sql); if($row=mysql_fetch_array($result)) { displaypost("News"); } $sql="SELECT * FROM folkdisco WHERE type<'t' AND type!='n' AND type!='l' AND type!='f' AND id!=$row[id] ORDER BY time DESC LIMIT 1"; $totalout=0; $result=mysql_query($sql); if($row=mysql_fetch_array($result)) { displaypost("Blog"); } $from="facebookrss.xml"; $rss=simplexml_load_file($from); $item=$rss->channel->item; $title=$item->title; if(substr($title,0,8)=='Photo - ' or substr($title,0,8)=='Video - ') $title=substr($title,8,9999); $p1=strpos($title,","); // $p2=strpos($title," and "); // $p3=strpos($title," & "); $p5=strpos($title,"."); $p6=strpos($title,"!"); $p7=strpos($title,"?"); if($p1<1) $p1=999; if($p5<5) $p5=999; if($p6<6) $p6=999; if($p7<7) $p7=999; if($p7<$p6) $p6=$p7; if($p6<$p5) { $p5=$p6+1; } else { $p5; } if(strlen($title)<50) { $head=$title; $title=""; } else { if ($p5<50) { $head=substr($title,0,$p5); } else if($p1<50) { $head=substr($title,0,$p1); } else if($p5<50) { $head=substr($title,0,$p5); } else if(strlen($title)<68) { $head=$title; } else { $p2=substr($title,0,54); $p1=strrpos($p2," "); if($p1>4) { $head=substr($title,0,$p1)."..."; } else { $head=substr($title,0,40)."..."; } } } $dt=" ".str_replace(" "," ",date('G:i D jS F Y',strtotime($item->pubDate)-(3600*date('I',strtotime($item->pubDate)))+25200)); $link=$item->link; $des1=" ".$item->description; $p1=strpos($des1,' src="'); $p2=strpos($des1,'"',$p1+6); if($p1>0 and $p2-$p1>15) { $img1=substr($des1,$p1+6,$p2-$p1-6); $img=''; } else { $img=""; } $logo=""; //echo "logo=$logo"; if(strpos($link,'youtube.co')) { $logo.='youtube'; } else if(strpos($link,'soundcloud')) { $logo.='soundcloud'; } else if(strpos($link,'folkdisco.co')) { $logo.='folkdisco'; } else if($img=="") { $logo='facebook'; //echo "ELSE!"; } //echo "logo=$logo"; if($logo!="") $img.=''; $p1=strpos($des1,"Likes: "); if($p1>0) { $p2=strpos($des1,"<",$p1+7); if($p2-$p1>7 and $p2-$p1<11 and substr($des1,$p1+7,1)!="0") $dt.=" · ".substr($des1,$p1+7,$p2-$p1-7)." Like"; } $p1=strpos($des1,"Comments: "); if($p1>0) { $p2=strpos($des1,"<",$p1+10); if($p2-$p1>10 and $p2-$p1<14 and substr($des1,$p1+10,1)!="0") $dt.=" · ".substr($des1,$p1+10,$p2-$p1-10)." Comment"; } //echo "$b. $img title=$title
dt=$dt
Link=$link
"; //echo "

"."

"; $des1=strip_tags($des1); echo '
Facebook: '.ucwords($head).'
'.$img.$des1.''.$dt.'
'; echo "
$desc
"; // echo "
"; if(isset($localist)) { echo "keywords=$keywords
"; echo "desc=$desc
"; echo "title=$title
"; echo "top=$top
"; } require("include/content2.php"); // phpinfo(); ?>