Seite 1 von 1

Hilfe bitte mit SID transfer (in english)

Verfasst: Do 27.Jan, 2005 17:29
von Anonymous
Entschuldigung aber mein Deutsch ist nich so gut, so ich versuche mall in English.


I have PHPBB 2.0.11 with cat. Heirarchy 2.1.0 and DLmod
Everything is working exept when i click on INFO for a specific download i'm redirected to the login screen.
I used the hack to prevent that unregistered users can access the downloads.

I think append_sid has to be added to the line in downloads.php
## get the number of files in cat
if (!$cat) {
$sql_cat_count_dl = "SELECT * FROM " . DOWNLOADS_TABLE . " where cat=".$row[id]." ORDER by sort";
$result_count_dl = $db->sql_query($sql_cat_count_dl);
$cat_dl =mysql_num_rows($result_count_dl);
}
$cat_name = $row['cat_name'];
$cat_id = $row['id'];
$cat_desc = $row['description'];
$cat_view = append_sid("downloads.$phpEx?cat=$cat_id");
$u_dl_top = ($cat)? '&nbsp;->&nbsp;<a href="'.append_sid("downloads.$phpEx").'" class="nav">'.$lang['Dl_cat_title'].'</a>&nbsp;' : '';
$u_dl_cat =(!$cat) ? '&nbsp;->&nbsp;<a href="'.append_sid("downloads.$phpEx").'" class="nav">'.$lang['Dl_cat_title'].'</a>&nbsp;' : '&nbsp;->&nbsp;<a href="'.append_sid("downloads.$phpEx?cat=$cat").'" class="nav">'. $data_cat[cat_name].'</a>&nbsp;';
$description = $row['description'];
if ($view == "detail") $long_desc = nl2br($row['long_desc']);
$file_name_name = $row['file_name'];
$file_id = $row['id'];
if ($row['long_desc'] != "") $info = "<a class=\"gen\" href=\"downloads.$phpEx?view=detail&id=" . $file_id . "&cat=" . $row[cat] . "\">" . $lang['Dl_info'] . "</a>";
if ($row['long_desc'] == "") $info = "-";
$file_klicks = $row['klicks'];
$file_free = $row['free'];
$file_extern = $row['extern'];
if ($file_extern == "0") $file_size = filesize($download_dir . $file_path.$file_name_name);
Can someone please help?

Danke