Quellcode durchsuchen

Use Avatar.php if there is an attached avatar to display

Signed-off-by: Suki <[email protected]>
Suki vor 11 Jahren
Ursprung
Commit
0994244d96
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  1. 7 0
      index.php

+ 7 - 0
index.php

@@ -40,6 +40,13 @@ foreach (array('db_character_set', 'cachedir') as $variable)
 // Load the settings...
 require_once(dirname(__FILE__) . '/Settings.php');
 
+// Displaying attached avatars
+if(strpos($_SERVER['QUERY_STRING'], 'action=dlattach') !== false && strpos($_SERVER['QUERY_STRING'], 'type=avatar') !== false)
+{
+  require($sourcedir. '/Avatar.php');
+  exit;
+}
+
 // Make absolutely sure the cache directory is defined.
 if ((empty($cachedir) || !file_exists($cachedir)) && file_exists($boarddir . '/cache'))
 	$cachedir = $boarddir . '/cache';