0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
concrete5
/
5.6.0.2-2
/
standard
/
htdocs
/
concrete
/
tools
/
files
/
[
Home
]
File: star.php
<?php defined('C5_EXECUTE') or die("Access Denied."); Loader::model('file_set'); $file_set = FileSet::createAndGetSet('Starred Files',FileSet::TYPE_STARRED); $f = File::getByID($_POST['file-id']); $fp = new Permissions($f); if (!$fp->canViewFile()) { die(t("Access Denied.")); } switch ($_POST['action']) { case 'star': $file_set->AddFileToSet($_POST['file-id']); break; case 'unstar': $file_set->RemoveFileFromSet($_POST['file-id']); break; default: throw new Exception(t('INVALID ACTION')); }
© 2017 -
ZeroByte.ID
.