| | $day | ";
$rep=Array("Alan Jones",10,"Alan Jones");
array_unshift($rep,"Dan Balmer",10,"Dan Balmer");
array_unshift($rep,"Gordon Lee",10,"Gordon Lee");
array_unshift($rep,"Ben Street",10,"Ben Street");
array_unshift($rep,"John Nastos",11,"John Nastos");
array_unshift($rep,'"The Bridge Quartet"',20,'"The Bridge Quartet"');
array_unshift($rep,'Darrell Grant',13,'Darrell Grant');
array_unshift($rep,'Tom "Fish" Wakeling',19,'Tom "Fish" Wakeling');
array_unshift($rep,'Tom Wakeling',12,'Tom Wakeling');
array_unshift($rep,'Phil Dwyer',10,"Phil Dwyer");
array_unshift($rep,'Dee Daniels',11,"Dee Daniels");
array_unshift($rep,'Eric Alexander',14,"Eric Alexander");
// array_unshift($rep,'Noah Peterson',13,"Noah Peterson");
array_unshift($rep,'Ingrid Jensen',13,"Ingrid Jensen");
array_unshift($rep,'Randy Porter',12,"Randy Porter");
array_unshift($rep,'Dave Speranza',13,"Dave Speranza");
array_unshift($rep,'Ezra Weiss',10,"Ezra Weiss");
array_unshift($rep,'Derek Sims',10,"Derek Sims");
array_unshift($rep,'Rob Davis',9,"Rob Davis");
array_unshift($rep,'Nicolas Simion',14,"Nicolas Simion");
array_unshift($rep,'Martin Gjakonovski',18,"Martin Gjakonovski");
array_unshift($rep,'George Whitty',13,"George Whitty");
array_unshift($rep,'Geoff Harper',11,"Geoff Harper");
array_unshift($rep,'Andy Middleton Quartet',22,"Andy Middleton Quartet");
array_unshift($rep,'Bridge Quartet',14,"Bridge Quartet");
array_unshift($rep,'David Friesen',13,"David Friesen");
array_unshift($rep,'Lynn Darroch',12,"Lynn Darroch");
array_unshift($rep,'AJSextet',8,"Alan_Jones_Sextet");
array_unshift($rep,'AJAM',4,"AJAM");
// array_unshift($rep,'',11,"");
$anz=count($rep)/3;
for ($n=1;$n<=$anz;$n++) {
$text=$rep[$n*3-3];
$len=$rep[$n*3-2];
$text_link=$rep[$n*3-1];
if (strpos($band,$text)>-1) {
$anf=strpos($band,$text);
$band1=substr("$band",0,$anf);
$band2=$text_link;
$band3=substr("$band",$anf+$len);
$band="$band1$band2$band3";
}
}
echo "$band | ";
$rep_pl=Array("Jimmy Mak's",11,"Jimmy Mak's");
array_unshift($rep_pl,"Arium Cafe",10,"Arium Cafe");
array_unshift($rep_pl,"The Old Church",14,"The Old Church");
array_unshift($rep_pl,"Whitmann College",16,"Whitmann College");
// array_unshift($rep_pl,"xxx",10,"xxx");
array_unshift($rep_pl,"KMHD",4,"KMHD");
array_unshift($rep_pl,"Ella's Supper Club",18,"Ella's Supper Club");
array_unshift($rep_pl,"Clackamas Community College",27,"Clackamas Community College");
array_unshift($rep_pl,"Sunriver Resort",15,"Sunriver Resort");
array_unshift($rep_pl,"Cave",4,'The Cave, Portland OR');
array_unshift($rep_pl,"Ballard Jazz Walk Festival",26,"Ballard Jazz Walk Festival");
array_unshift($rep_pl,"Blue Monk",9,"Blue Monk");
$anz=count($rep_pl)/3;
for ($n=1;$n<=$anz;$n++) {
$text=$rep_pl[$n*3-3];
$len=$rep_pl[$n*3-2];
$text_link=$rep_pl[$n*3-1];
if (strpos($place,$text)>-1) {
$anf=strpos($place,$text);
$pl1=substr("$place",0,$anf);
$pl2=$text_link;
$pl3=substr("$place",$anf+$len);
$place="$pl1$pl2$pl3";
}
}
echo "$place |
";
}
?>
// events-counter starts
if(!file_exists("count_events.txt")) {fopen("count_events.txt","a");}
$counter=fopen("count_events.txt","r+");
$aufruf=fgets($counter,100);
$aufruf=$aufruf+1;
rewind($counter);
fputs($counter,$aufruf);
fclose($counter);
?>