@casper: Hi!
One step more, please:
anycontent1.php should only be visible for registered and logged in users.
anycontent1.php should not be visible for not registered and not logged in users.
anycontent2.php should only be visible for not registered and not logged in users.
anycontent2.php should not be visible for registered and logged in users.
Is that the right way for anycontent1 in index.php?
<?php
case 'anycontent1':
if (!USER_ID + $cat == 0) {
include('anycontent1.php');
}
else ($cat == 0) {
include('anycontent2.php');
}
flush();
break;
}
}
?>
And then the opposite for anycontent2 in index.php?
<?php
case 'anycontent2':
if ($cat == 0) {
include('anycontent2.php');
}
else ((!USER_ID + $cat == 0) {
include('anycontent1.php');
}
flush();
break;
}
}
?>
Or is it possible to write a combination!

Maybe you are interested to know why I would like to have it like that?
Here's the startpage of my gallery:
http://www.dorfschule.ch/copper/index.phpEverybody can see: Wow, radio stations and - uups - songs ...
--> EDIT: The player doesn't work in firefox. I'll try to solve that. But this is off-topic.
My idea is now to show "radio stations" for everybody and "radio stations and songs" only for registered and logged in users. So I will copy this anycontent, delete the song(mp3)-part and have then two anycontents for this two different situations. If you know a better way I'm open to learn something ...

This is the anycontent code:
<?php
starttable("100%", "Sounds :-)", 2);
echo "<tr><td class='tableb' colspan='2' align='center'><br><b>Ein bisschen Sound gefällig? - Viel Vergnügen!</b></br><br>";
echo "</td></tr>";
echo "<tr><td class='tableb' width='50%' align='center'><br>";
echo "<form action='player.php' method='post' target='_top'>";
echo "<select size='1' name='radiostation'>";
echo "<option selected>Radios - Bitte wählen ...</option>";
echo "<option value='http://www.web-radio.com/stream.cfm?id=11489'>Radio Groove (USA, 32 KBit/s)</option>";
echo "<option value='mms://stream2.orf.at/oe3_live'>Radio Ö3 (Österreich, 31 KBit/s)</option>";
echo "<option value='http://www.radiopilatus.ch/sound/high.asx'>Radio Pilatus (48 KBit/s)</option>";
echo "<option value='http://sunshine.stream.green.ch/sunshine.wax'>Radio Sunshine (40 KBit/s)</option>";
echo "<option value='http://asx.skypro.tv/asx/radio-drs/virus.asx'>Radio Virus (40 KBit/s)</option>";
echo "</select> <input type='submit' value='Play!' name='Play!'>";
echo "</form>";
echo "</td>";
echo "<td class='tableb' width='50%' align='center'><br>";
echo "<form action='player.php' method='post' target='_top'>";
echo "<select size='1' name='radiostation'>";
echo "<option selected>Songs - Bitte wählen ...</option>";
// The following code I will delete for not registered and not logged in users.
echo "<option value='http://www.domain.ch/sounds/AC-DC.mp3'>AC/DC (128 KBit's)</option>";
echo "<option value='http://www.domain.ch/copper/albums/Sounds/B52s-LoveShack.mp3'>B52's (128 KBit's)</option>";
echo "<option value='http://www.domain.ch/sounds/Dave-Goodman.mp3'>Dave Goodman (KBit's)</option>";
echo "<option value='http://www.domain.ch/copper/albums/Sounds/DireStraits-ItNeverRains.mp3'>Dire Straits (128 KBit's)</option>";
echo "<option value='http://www.domain.ch/sounds/Talk-Talk.mp3'>Talk Talk (128 KBit's)</option>";
echo "<option value='http://www.domain.ch/copper/albums/Sounds/ZueriWest-Amerikagitsnid.mp3'>Züri West (128 KBit's)</option>";
echo "</select> <input type='submit' value='Play!' name='Play!'>";
echo "</form>";
echo "</td></tr>";
// Until here I will delete and I will not forget to modify the table.
endtable();
?>
Thanks
hama