Gevelelementen

voor nieuwbouw- en renovatieprojecten

 
Volg STI op LinkedIn! Volg STI op Twitter!
',$mes); $i=1; foreach($bericht as $key => $mes2) { if($i==1) { $twit_username_1 = end(explode('http://twitter.com/',$mes2)); $twit_username = reset(explode('',$twit_username_1)); echo($twit_username); } if(($i!=1) && ($i<=7)) { $mes_info = reset(explode('',$mes2)); $temp_1 = end(explode('',reset(explode('',$mes_info)))); $twitter[$i-1]['twittermes'] = str_replace($twit_username.': ','',$temp_1); $twitter[$i-1]['twitterlink'] = end(explode('',reset(explode('',$mes_info)))); $maanden = array('Jan' => '01','Feb' => '02','Mar' => '03','Apr' => '04','May' => '05','Jun' => '06','Jul' => '07', 'Aug' => '08','Sep' => '09','Oct' => '10','Nov' => '11','Dec' => '12'); $datum = explode(' ',end(explode('',reset(explode('',$mes_info))))); $tijd = explode(':',$datum[4]); $twitter[$i-1]['twittertime'] = date('Y-m-d H:i:s', mktime($tijd[0]+2,$tijd[1],$tijd[2],$maanden[$datum[2]],$datum[1],$datum[3])); $twitter[$i-1]['twittertoevoeg'] = date('Y-m-d H:i:s'); $check = mysql_query("SELECT * FROM ".TBN."twitter WHERE twitterlink = '".$twitter[$i-1]['twitterlink']."'"); if((mysql_num_rows($check)=='0') && (substr($twitter[$i-1]['twittermes'],0,1)!='@')) { $query = sprintf("INSERT INTO ".TBN."twitter ( `twitterID` , `twittermes` , `twitterlink` , `twittertime` , `twittertoevoeg` ) VALUES ( NULL , '%s', '%s', '%s', '%s' );", mysql_real_escape_string($twitter[$i-1]['twittermes']), mysql_real_escape_string($twitter[$i-1]['twitterlink']), mysql_real_escape_string($twitter[$i-1]['twittertime']), mysql_real_escape_string($twitter[$i-1]['twittertoevoeg'])); $result = mysql_query($query); } if(substr($twitter[$i-1]['twittermes'],0,1)=='@') $i--; } $i++; } } else { $twitter_show = false; ?> Fout bij het laden.. $1 ', '$1'); $data['twittermes'] = preg_replace($twit_replace_inp,$twit_replace_out,$data['twittermes']); $data['twittermes'] = preg_replace("#\#(.*?)\ #si", '#\\1 ', $data['twittermes']); $data['twittermes'] = preg_replace("#\@(.*?)\ #si", '@\\1 ', $data['twittermes']); $data['twittermes'] = str_replace('helespeci3al3ekarak56t8798erve5rhi4phen0kpiet87jan','&#',$data['twittermes']); $data['twittermes'] = substr(substr($data['twittermes'],1),0,-1); $data['twittermes'] = str_replace('&','&',$data['twittermes']); $twittertime = explode('-',reset(explode(' ',$data['twittertime']))); ?>