1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Correct image paths - use $imode

This commit is contained in:
e107steved
2008-05-25 13:50:46 +00:00
parent d7d3355baa
commit d3e27254f4

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/download.php,v $ | $Source: /cvs_backup/e107_0.8/download.php,v $
| $Revision: 1.19 $ | $Revision: 1.20 $
| $Date: 2008-05-25 08:26:11 $ | $Date: 2008-05-25 13:50:46 $
| $Author: e107steved $ | $Author: e107steved $
| |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
@@ -36,8 +36,8 @@ if(!defined("USER_WIDTH")) { define("USER_WIDTH","width:100%"); }
//$pref['download_incinfo'] = '1'; //$pref['download_incinfo'] = '1';
/* define images */ /* define images */
define("IMAGE_DOWNLOAD", (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."generic/".IMODE."/download.png")); define("IMAGE_DOWNLOAD", (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE.'packs/'.$imode."/generic/download.png"));
define("IMAGE_NEW", (file_exists(THEME."images/new.png") ? THEME."images/new.png" : e_IMAGE."generic/".IMODE."/new.png")); define("IMAGE_NEW", (file_exists(THEME."images/new.png") ? THEME."images/new.png" : e_IMAGE.'packs/'.$imode."/generic/new.png"));
$template_load_core = ' $template_load_core = '
$template_name = $load_template.".php"; $template_name = $load_template.".php";
@@ -549,8 +549,10 @@ if($action == "mirror")
extract($row); extract($row);
$array = explode(chr(1), $download_mirror); $array = explode(chr(1), $download_mirror);
$c = (count($array)-1); // Shuffle the mirror list into a random order
for ($i=1; $i<$c; $i++) { $c = count($array) -1; // Will always be an empty entry at the end
for ($i=1; $i<$c; $i++)
{
$d = mt_rand(0, $i); $d = mt_rand(0, $i);
$tmp = $array[$i]; $tmp = $array[$i];
$array[$i] = $array[$d]; $array[$i] = $array[$d];