Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: post_icons.php 5380 2011-02-21 12:04:43Z Tomm $
| * $Id$
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 131 | Zeile 131 |
---|
{ $aicons[$icon['path']] = 1; }
|
{ $aicons[$icon['path']] = 1; }
|
while($file = readdir($dir))
| if(!$errors)
|
{
|
{
|
if($file != ".." && $file != ".") { $ext = get_extension($file); if($ext == "gif" || $ext == "jpg" || $ext == "jpeg" || $ext == "png" || $ext == "bmp")
| while($file = readdir($dir)) { if($file != ".." && $file != ".")
|
{
|
{
|
if(!$aicons[$path.$file])
| $ext = get_extension($file); if($ext == "gif" || $ext == "jpg" || $ext == "jpeg" || $ext == "png" || $ext == "bmp")
|
{
|
{
|
$icons[] = $file;
| if(!$aicons[$path.$file]) { $icons[] = $file; }
|
} } }
|
} } }
|
} closedir($dir);
if(count($icons) == 0) { $errors[] = $lang->error_no_images;
| closedir($dir); if(count($icons) == 0) { $errors[] = $lang->error_no_images; }
|
}
|
}
|
| // Check for errors again (from above statement)!
|
if(!$errors) { // We have no errors so let's proceed!
| if(!$errors) { // We have no errors so let's proceed!
|
Zeile 468 | Zeile 472 |
---|
}
$table->construct_cell("<img src=\"{$image}\" alt=\"\" />", array("class" => "align_center"));
|
}
$table->construct_cell("<img src=\"{$image}\" alt=\"\" />", array("class" => "align_center"));
|
$table->construct_cell("{$icon['name']}");
| $table->construct_cell(htmlspecialchars_uni($icon['name']));
|
$table->construct_cell("<a href=\"index.php?module=config-post_icons&action=edit&iid={$icon['iid']}\">{$lang->edit}</a>", array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=config-post_icons&action=delete&iid={$icon['iid']}&my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_post_icon_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));
| $table->construct_cell("<a href=\"index.php?module=config-post_icons&action=edit&iid={$icon['iid']}\">{$lang->edit}</a>", array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=config-post_icons&action=delete&iid={$icon['iid']}&my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_post_icon_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));
|