[add] link in description (url and via)
[fix] convert & to &
This commit is contained in:
parent
be1cb2a7b2
commit
e61d43da1f
|
@ -16,7 +16,6 @@ if (!empty($ci['ac']) && $ci['ac'] === 'login') {
|
|||
</fieldset>
|
||||
</form>';
|
||||
}
|
||||
|
||||
if (!empty($ci['ac']) && $ci['ac'] === 'newDir') {
|
||||
echo '<form action="?" method="post">
|
||||
<fieldset>
|
||||
|
@ -71,9 +70,8 @@ if (!empty($ci['ac']) && $ci['ac'] === 'addVideo') {
|
|||
<input type="submit"/>
|
||||
</fieldset>
|
||||
</form>';
|
||||
}
|
||||
}
|
||||
|
||||
//n_print($fullListDir);
|
||||
if (!empty($ci['ac']) && $ci['ac'] === 'view') {
|
||||
if (!empty($ci['op']) && (int)$ci['op'] === 1) {
|
||||
verifToken($ci['token']);
|
||||
|
@ -105,7 +103,6 @@ if (!empty($breadcrumb)) {
|
|||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
echo '<div id="listFile">';
|
||||
if (!empty($listCurrentDir)) {
|
||||
|
@ -119,10 +116,10 @@ if (!empty($listCurrentDir)) {
|
|||
}
|
||||
if (!empty($listCurrentFile) && $ci['ac'] !== 'view') {
|
||||
foreach ($listCurrentFile as $value) {
|
||||
echo '<a href="?bc=', $ci['bc'], '&file=', $value, '&ac=view"><img alt="', $path.$value, '" src="', $path.$value, '" />', $fullListFile[str_replace('.jpg', '', $value)]['title'], '</a>';
|
||||
echo '<a href="?bc=', $ci['bc'], '&file=', $value, '&ac=view"><img alt="', $path.$value, '" src="', $path.$value, '" />', $fullListFile[str_replace('.jpg', '', $value)]['title'], '</a>';
|
||||
}
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
if ($ci['ac'] === 'view' && !empty($listCurrentFile)) {
|
||||
if (!empty($videoInfo)) {
|
||||
echo '<div id="viewFile">';
|
||||
|
@ -155,10 +152,9 @@ if ($ci['ac'] === 'view' && !empty($listCurrentFile)) {
|
|||
<th>Original description</th>
|
||||
<td>', $videoInfo['originalDesc'], '</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<th>Url</th>
|
||||
<td>', $videoInfo['url'], '</td>
|
||||
<td><a href="', htmlentities($videoInfo['url']), '">', $videoInfo['url'], '</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Duration</th>
|
||||
|
@ -169,7 +165,14 @@ if ($ci['ac'] === 'view' && !empty($listCurrentFile)) {
|
|||
</tr>
|
||||
<tr>
|
||||
<th>Via</th>
|
||||
<td>', $videoInfo['via'], '</td>
|
||||
<td>';
|
||||
if(!empty($videoInfo['via'])) {
|
||||
echo '<a href="', htmlentities($videoInfo['via']), '">', $videoInfo['via'], '</a>';
|
||||
} else {
|
||||
echo '';
|
||||
}
|
||||
echo '
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Licence</th>
|
||||
|
@ -178,5 +181,4 @@ if ($ci['ac'] === 'view' && !empty($listCurrentFile)) {
|
|||
</table>
|
||||
</div>';
|
||||
}
|
||||
echo '</div>';
|
||||
?>
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
<?php
|
||||
if ($_SESSION['log'] === true) {
|
||||
echo '
|
||||
<li><a href="?ac=newDir&bc=', $ci['bc'], '">New directory</a></li>
|
||||
<li><a href="?ac=renDir&bc=', $ci['bc'], '">Rename directory</a></li>
|
||||
<li><a href="?ac=addVideo&bc=', $ci['bc'], '">Add videos</a></li>';
|
||||
<li><a href="?ac=newDir&bc=', $ci['bc'], '">New directory</a></li>
|
||||
<li><a href="?ac=renDir&bc=', $ci['bc'], '">Rename directory</a></li>
|
||||
<li><a href="?ac=addVideo&bc=', $ci['bc'], '">Add videos</a></li>';
|
||||
} else {
|
||||
echo '<li><a href="?ac=login&bc=', $ci['bc'], '">Login</a></li>';
|
||||
echo '<li><a href="?ac=login&bc=', $ci['bc'], '">Login</a></li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
Loading…
Reference in New Issue