Help. How to remove description text in category? (on select file in category)
Help. How to remove description text in category? (on select file in category)
How to edit this script, to guest can't get download link:
echo '</p></div><div class="gmenu"><p>' .
'<h3 class="red">' .
'<a href="index.php?act=down&id=' . $file . '"><img src="../images/file.gif" border="0" alt=""/></a> ' .
'<a href="index.php?act=down&id=' . $file . '">' . $lng['download'] . '</a></h3>' .
The code on this section (view.php code)
// Ссылка на скачивание файла
$dl_count = !empty($adrfile['ip']) ? intval($adrfile['ip']) : 0;
echo '</p></div><div class="gmenu"><p>' .
'<h3 class="red">' .
'<a href="index.php?act=down&id=' . $file . '"><img src="../images/file.gif" border="0" alt=""/></a> ' .
'<a href="index.php?act=down&id=' . $file . '">' . $lng['download'] . '</a></h3>' .
'<small><span class="gray">' . $lng_dl['size'] . ':</span> <b>' . $siz . '</b> kB<br />';
if ($prg == "zip") {
echo "<a href='?act=zip&file=" . $file . "'>Открыть архив</a><br/>";
}
CaptainAslam (02.03.2011/01:48)
How to edit this script, to guest can't get download link:
echo '</p></div><div class="gmenu"><p>' .
'<h3 class="red">' .
'<a href="index.php?act=down&id=' . $file . '"><img src="../i
$dl_count = !empty($adrfile['ip']) ? intval($adrfile['ip']) : 0;
echo '</p></div><div class="gmenu"><p>' .
'<h3 class="red">';
if($user_id){
echo '<a href="index.php?act=down&id=' . $file . '"><img src="../images/file.gif" border="0" alt=""/></a> ' .
'<a href="index.php?act=down&id=' . $file . '">' . $lng['download'] . '</a>';
}else{
echo $lng['download'];
}
echo '</h3><small><span class="gray">' . $lng_dl['size'] . ':</span> <b>' . $siz . '</b> kB<br />';
if ($prg == "zip") {
echo "<a href='?act=zip&file=" . $file . "'>Открыть архив</a><br/>";
} Максим (02.03.2011/02:26)Thanks!
[php]$dl_count = !empty($adrfile['ip']) ? intval($adrfile['ip']) : 0;
echo '</p></div><div class="gmenu"><p>' .
'<h3 class="red">';
if($user_id){
echo '<a href="index.php?act=down&id=' . $file
How to edit this script to guest cant get link (forum/index.php):
if (in_array($att_ext, $pic_ext)) {
echo '<div><a href="index.php?act=file&id=' . $fres['id'] . '">';
echo '<img src="thumbinal.php?file=' . (urlencode($fres['filename'])) . '" alt="' . $lng_forum['click_to_view'] . '" /></a></div>';
} else {
echo '<br /><a href="index.php?act=file&id=' . $fres['id'] . '">' . $fres['filename'] . '</a>';
}
Thanks
CaptainAslam (03.03.2011/03:20)
How to edit this script to guest cant get link (forum/index.php):
if (in_array($att_ext, $pic_ext)) {
echo '<div><a href="index.php?act=file&i
if($user_id){
if (in_array($att_ext, $pic_ext)) {
echo '<div><a href="index.php?act=file&id=' . $fres['id'] . '">';
echo '<img src="thumbinal.php?file=' . (urlencode($fres['filename'])) . '" alt="' . $lng_forum['click_to_view'] . '" /></a></div>';
} else {
echo '<br /><a href="index.php?act=file&id=' . $fres['id'] . '">' . $fres['filename'] . '</a>';
}
}else{
echo 'You guest!';
} How to edit this code, so that guest can't view archive:
if ($prg == "zip") {
echo "<a href='?act=zip&file=" . $file . "'>View the archive</a><br/>";
}
m9 (04.03.2011/19:17)
How to edit this code, so that guest can't view archive:
if ($prg == "zip") {
echo "<a href='?act=zip&file=" . $file . "'>View the archive</a>
";
}
if ($user_id && $prg == "zip") {
echo "<a href='?act=zip&file=" . $file . "'>View the archive</a><br/>";
} Максим, Very Thanks for your help
Максим (03.03.2011/12:50)can't be used, error
[php]
if($user_id){
if (in_array($att_ext, $pic_ext)) {
echo '<div><a href="index.php?act=file&id=' . $fres['id'] . '">';
echo '<img src="thumbinal.php?file=' . (urlencode($fres['filename']))