예제 #1
0
                    NULL;
                    break;
            }
            $total += $sum;
            if ($format == 4) {
                $versand += 1;
            }
            //$file_path = 'http://test.wertewirtschaft.net/secdown/sec_files/1057.pdf'.$key;
            $file_path = 'http://test.wertewirtschaft.net/down_secure/content_secure/' . $id . $extension;
            //$download_link = downloadurl($file_path , $key);
            //echo $file_path;
            //echo '<td><a href="'.$download$file_path = 'http://test.wertewirtschaft.net/secdown/sec_files/'.$key.'/.pdf';_link.'" onclick="updateReferer(this.href);">03/14 Universit&auml;t (Test secureDownload)</a>';
            if (($type == 'scholie' || $type == 'analyse' || $type == 'buch' || $type == 'audio') && $format != 4) {
                ?>
                <td><a href="<?php 
                downloadurl($file_path, $id);
                ?>
" onclick="updateReferer(this.href);">Download</a></td>
                </tr>

                <?php 
            } else {
                echo "<td>Reserviert</td></tr>";
            }
            //echo '</td></tr>';
            /*
            $file = '/secdown/sec_files/'.$key.'.jpg';
            if (file_exists($file)) {
                echo '<td><a href="'.$file.'" download>Download</a></td></tr>';
            } 
            else {
예제 #2
0
파일: korb.php 프로젝트: bogensberger/ww
            }

            $total += $sum;

            if ($format == 4) {
                $versand += 1;
            }


                $file_path = 'http://scholarium.at/down_secure/content_secure/'.$id.$extension;
                //$download_link = downloadurl($file_path , $key);
                
                if (($type == 'scholie' || $type == 'analyse' || $type == 'buch' || $type == 'media-vorlesung' || $type == 'media-vortrag' || $type == 'media-salon') && $format != 4) {

                ?>
                <td><a href="<?php downloadurl($file_path, $id); ?>" onclick="updateReferer(this.href);">Herunterladen</a></td>
                </tr>

                <?php
                 }
                elseif ($type == 'salon' || $type == 'lehrgang' || $type == 'seminar' || $type == 'kurs'|| $type == 'programm') {
                    echo '<td>Reserviert</td></tr>';
                }
                elseif ($format == 4) {
                    echo '<td>wird zugesandt</td></tr>';
                }

                else {
                    echo "";
                }
예제 #3
0
파일: example.php 프로젝트: bogensberger/ww
downloadurl('sec_files/sampledoc.doc', 'mswordfile');
?>
" onclick="updateReferer(this.href);" >MS Word Document</a> </span></li>
       <li>   <span class="d_Img"><img src="images/excel.gif"  alt="" /></span>
        <span class="text"><a href="<?php 
downloadurl('sec_files/samplexls.xls', 'excelfile');
?>
"  onclick="updateReferer(this.href);" >MS Excel File</a> </span></li>
       <li>   <span class="d_Img"><img src="images/pdf.gif"  alt="" /></span>
      <span class="text"><a href="<?php 
downloadurl('sec_files/samplepdf.pdf', 'pdffile');
?>
"  onclick="updateReferer(this.href);" >Adobe Acrobat File</a> </span></li>
 <li> <span class="d_Img"><img src="images/zipp.gif"  alt="" /></span>
        <span class="text"><a href="<?php 
downloadurl('sec_files/samplezip.zip', 'ZippedFolder');
?>
"  onclick="updateReferer(this.href);" >Zipped Folder</a></span></li>
  </ul>
   <div class="containerText" style="font-weight:bold;">
It is possible to store files above docroot(www or public_html) and generate a secure download link using relative path to file. This is "the recomended method" experts suggest.
</div>

   <div class="containerText">
	 <div id="All_L">
     <div id="P_M">
  Supported file formats are:
   .ai, .asx, .au, .avi ,.bmp ,.css, .doc, .eps, .exe, .gif, .htm, .html, .ico, .jpe, .jpeg, .jpg, .js, .mid, .mov, .mp3, .mpeg, .mpg, .pdf, .pps, .ppt, .ps, .pub, .qt, .rtf, .svg, .swf, .tif, .tiff, .txt, .wav, .wmf, .xls, .zip.</div></div>
   </div>
    <div id="clear"></div>
</div><!-- main end -->