0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
concrete5
/
5.6.0.2-2
/
standard
/
htdocs
/
concrete
/
blocks
/
file
/
[
Home
]
File: view.php
<?php defined('C5_EXECUTE') or die("Access Denied."); $f = $controller->getFileObject(); $fp = new Permissions($f); if ($fp->canViewFile()) { $c = Page::getCurrentPage(); if($c instanceof Page) { $cID = $c->getCollectionID(); } ?> <a href="<?php echo View::url('/download_file', $controller->getFileID(),$cID) ?>"><?php echo stripslashes($controller->getLinkText()) ?></a> <?php } /* $fo = $this->controller->getFileObject();?> <a href="<?php echo $fo->getRelativePath()?>"><?php echo stripslashes($controller->getLinkText()) ?></a> */ ?>