Habe jetzt die usr_smileys2.php kopiert und in usr_smileys4.php umbenannt und dementsprechende änderungen auch dann in beiden dateien vorgenommen. Leider ohne Erfolg.... Was mache ich falsch?
Hier mal beide Codes als Auszug:
usr_smileys.php
<?php
error_reporting(E_ALL);
// das dir durchsuchen und die Bilder anzeigen:
$verz = 'smileys';
if (file_exists ("smileys") && file_exists ("usr_smileys.php") && strpos($_SERVER['PHP_SELF'],"usr_smileys.php") === false) {
echo '<a class="button" href="usr_smileys.php">Normale Smileys</a> ';
}
if (file_exists ("smileys2") && file_exists ("usr_smileys2.php") && strpos($_SERVER['PHP_SELF'],"usr_smileys2.php") === false) {
echo '<a class="button" href="usr_smileys2.php">Jingles</a> ';
}
if (file_exists ("smileys3") && file_exists ("usr_smileys3.php") && strpos($_SERVER['PHP_SELF'],"usr_smileys3.php") === false) {
echo '<a class="button" href="usr_smileys3.php">Große Smileys</a> ';
}
if (file_exists ("smileys4") && file_exists ("usr_smileys4.php") && strpos($_SERVER['PHP_SELF'],"usr_smileys4.php") === false) {
echo '<a class="button" href="usr_smileys4.php">Begruessung</a> ';
}
usr_smileys4.php
<?php
error_reporting(E_ALL);
// das dir durchsuchen und die Bilder anzeigen:
$verz = 'smileys4';
if (file_exists ("smileys") && file_exists ("usr_smileys.php") && strpos($_SERVER['PHP_SELF'],"usr_smileys.php") === false) {
echo '<a class="button" href="usr_smileys.php">Normale Smileys</a> ';
}
if (file_exists ("smileys2") && file_exists ("usr_smileys2.php") && strpos($_SERVER['PHP_SELF'],"usr_smileys2.php") === false) {
echo '<a class="button" href="usr_smileys2.php">Jingles</a> ';
}
if (file_exists ("smileys3") && file_exists ("usr_smileys3.php") && strpos($_SERVER['PHP_SELF'],"usr_smileys3.php") === false) {
echo '<a class="button" href="usr_smileys3.php">Große Smileys</a> ';
}
if (file_exists ("smileys4") && file_exists ("usr_smileys4.php") && strpos($_SERVER['PHP_SELF'],"usr_smileys4.php") === false) {
echo '<a class="button" href="usr_smileys4.php">Begruessung</a> ';
}
$bilder = array();
$dir=opendir($verz);
while (false !== ($file = readdir($dir))) {
// auch mp3 und swf in more smiley
if(strpos($file,".gif") !== false || strpos($file,".png") !== false|| strpos($file,".mp3") !== false || strpos($file,".swf") !== false) {
$bilder[] = $file;
}
}
Ich hoffe das reicht als Auszug damit du mir vieleicht helfen kannst...