probleme mit PHP "Safe Mode" durch "shell_exec()" behoben und gif aufgereumt (durchnummeriert)

git-svn-id: svn://svn.cccv.de/engel-system@140 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
cookie 2006-08-29 09:23:46 +00:00
parent 53204d7bd3
commit 00fbcf135c
5 changed files with 2 additions and 12 deletions

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

View File

@ -113,21 +113,11 @@ if (!IsSet($_POST["action"]))
</tr>
<tr>
<td>
<?PHP
// Anzahl der installierten Avatars
$ANZ_AVATAR= shell_exec("ls inc/avatar/ | wc -l");
?>
<select name="eAvatar" onChange="document.avatar.src = './inc/avatar/avatar' + this.value + '.gif'"
onKeyup= "document.avatar.src = './inc/avatar/avatar' + this.value + '.gif'">
<?php
for ($i=1; $i <= $ANZ_AVATAR; $i++ )
{
echo "\t\t\t\t<option value=\"$i\"";
if ($_SESSION['Avatar'] == $i) { echo " selected"; }
echo ">avatar$i</option>\n";
}
echo "\n";
for ($i=1; file_exists("./inc/avatar/avatar$i.gif"); $i++ )
echo "\t\t\t\t<option value=\"$i\"". ($_SESSION['Avatar'] == $i ? " selected":""). ">avatar$i</option>\n";
?>
</select>&nbsp;&nbsp;
<img src="./inc/avatar/avatar<?php echo $_SESSION['Avatar']; ?>.gif" name="avatar" border="0" alt="" align="top">