function pageFooter($vars = array()) { global $act, $pages, $style, $entry, $auth, $adminPath, $helpPath; echo '<div id="footer">'; $first = true; foreach ($pages as $page => $title) { if ($entry[$page]['admin'] && !$auth['admin']) { continue; } if ($first) { $first = false; } else { echo ", "; } $title = htmlEntUTF8($title); if ($page == $act) { echo "<span>{$title}</span>"; } else { echo "<a href=\"" . pageLink($page) . "\">{$title}</a>"; } } echo ", <a href=\"{$adminPath}?u\">" . T_("Logout") . "</a>" . ", <a href=\"{$helpPath}\" target=\"_blank\">" . T_("Help") . "</a></div>"; includeTemplate("{$style}/include/footer.php", $vars); }
$our = $DATA["user_id"] == $auth["id"]; $class = "file expanded " . $DATA['id']; if ($our) { $class .= " our"; } echo "<tr class=\"{$class}\">"; // selection echo "<td><input class=\"element checkbox\" type=\"checkbox\" name=\"sel[]\" value=\"" . $DATA['id'] . "\"/></td>"; // upload echo '<td><a href="' . grantUrl($DATA) . '">' . '<img title="' . T_("Upload") . "\" src=\"{$style}/static/upload.png\"/></a></td>"; // delete echo "<td><a href=\"" . pageLinkAct(array('purge' => null, 'sel' => $DATA['id'])) . "\">" . "<img title=\"" . T_("Purge") . "\" src=\"{$style}/static/cross.png\"/></a></td>"; // name echo '<td class="ticketid">' . htmlEntUTF8($DATA['id']) . '</td>'; // user echo "<td>" . htmlEntUTF8($DATA["user"]) . "</td>"; // date echo '<td data-sort-value="' . $DATA["time"] . '">' . date($dateFmtShort, $DATA["time"]) . '</td>'; // expire $expStr = grantExpiration($DATA, $expVal); echo "<td data-sort-value=\"{$expVal}\">{$expStr}</td>"; echo "</tr>"; } ?> </tbody> </table> <ul> <li class="buttons"> <input type="button" value="<?php echo T_("Reload");
<?php foreach ($db->query($sql) as $DATA) { if (isGrantExpired($DATA)) { continue; } $our = $DATA["user_id"] == $auth["id"]; $class = "file expanded " . $DATA['id']; echo "<tr class=\"{$class}\">"; // selection echo "<td><input class=\"element checkbox\" type=\"checkbox\" name=\"sel[]\" value=\"" . $DATA['id'] . "\"/></td>"; // upload echo '<td><a href="' . grantUrl($DATA) . '">' . '<img title="' . T_("Upload") . "\" src=\"{$style}/static/upload.png\"/></a></td>"; // delete echo "<td><a href=\"" . pageLinkAct(array('purge' => null, 'sel' => $DATA['id'])) . "\">" . "<img title=\"" . T_("Purge") . "\" src=\"{$style}/static/cross.png\"/></a></td>"; // name echo '<td class="ticketid">' . htmlEntUTF8($DATA['id']) . '</td>'; // date echo '<td data-sort-value="' . $DATA["time"] . '">' . date($dateFmtShort, $DATA["time"]) . '</td>'; // expire $expStr = grantExpiration($DATA, $expVal); echo "<td data-sort-value=\"{$expVal}\">{$expStr}</td>"; echo "</tr>"; } ?> </tbody> </table> <ul> <li class="buttons"> <input type="button" value="<?php echo T_("Reload");
$mailto = "mailto:?subject=" . rawurlencode($subject) . "&body=" . rawurlencode($body); ?> <div> <label class="description"> <?php printf(T_("Your ticket %s"), htmlEntUTF8(ticketStr($DATA))); ?> </label> <p><span class="ticketid"><?php echo htmlentities($url); ?> </span></p> <?php if ($DATA['pass']) { echo "<p>" . T_("The required password is:") . " <tt>" . htmlEntUTF8($DATA['pass']) . "</tt></p>"; } if ($DATA['sent_email']) { echo "<p>" . T_("A download link has been sent to:") . " "; $addrs = getEMailAddrs($DATA['sent_email']); foreach ($addrs as &$addr) { $addr = '<a href="mailto:' . urlencode($addr) . '">' . htmlentities($addr) . '</a>'; } echo join(', ', $addrs); echo '</p>'; } ?> </div> <span class="buttons"> <input type="button" onclick="document.location='<?php
?> </th> <th data-sort="int"><?php echo T_("Total size"); ?> </th> </tr> </thead> <tbody> <?php foreach ($db->query($sql) as $DATA) { // selection echo "<tr><td><input class=\"element checkbox\" type=\"checkbox\" name=\"sel[]\" value=\"" . htmlEntUTF8($DATA['name']) . "\"/></td>"; // name/password echo "<td>" . htmlEntUTF8($DATA['name']) . "</td>"; echo "<td><input type=\"hidden\" name=\"user[]\" value=\"" . htmlEntUTF8($DATA['name']) . "\"/><input class=\"element text\"" . " type=\"text\" name=\"pass[]\"></td>"; // role echo '<td data-sort-value="' . $DATA['admin'] . '">' . htmlRole("role[]", $DATA['admin']) . '</td>'; // tickets/grants echo "<td>{$DATA['tickets']}</td><td>{$DATA['grants']}</td>"; // total size echo '<td data-sort-value="' . (int) $DATA['size'] . '">' . humanSize($DATA['size']) . '</td></tr>'; } ?> </tbody> <tfoot> <tr> <td></td> <td><input class="element text" type="text" name="newUser"></td> <td><input class="element text" type="text" name="newPass"></td> <td><?php
$class = "file expanded " . $DATA['id']; echo "<tr class=\"{$class}\">"; // selection echo "<td><input class=\"element checkbox\" type=\"checkbox\" name=\"sel[]\" value=\"" . $DATA['id'] . "\"/></td>"; // tick echo '<td data-sort-value="' . ($DATA["downloads"] ? 1 : 0) . '">'; if ($DATA["downloads"]) { echo '<img title="' . T_("Successfully downloaded") . "\" src=\"{$style}/static/tick.png\"/>"; } echo "</td>"; // download echo '<td><a href="' . ticketUrl($DATA) . '">' . '<img title="' . T_("Download") . "\" src=\"{$style}/static/save.png\"/></a></td>"; // delete echo "<td><a href=\"" . pageLinkAct(array('purge' => null, 'sel' => $DATA['id'])) . "\">" . "<img title=\"" . T_("Purge") . "\" src=\"{$style}/static/cross.png\"/></a></td>"; // name echo '<td><a title="' . $DATA['id'] . '" href="' . pageLink('tedit', array('id' => $DATA['id'], 'src' => $act)) . '" class="filename">' . htmlEntUTF8($DATA["name"]) . '</a></td>'; // size/date echo '<td data-sort-value="' . $DATA["size"] . '">' . humanSize($DATA["size"]) . '</td>'; echo '<td data-sort-value="' . $DATA["time"] . '">' . date($dateFmtShort, $DATA["time"]) . "</td>"; // expiration $expStr = ticketExpiration($DATA, $expVal); echo "<td data-sort-value=\"{$expVal}\">{$expStr}</td>"; echo "</tr>"; } ?> </tbody> </table> <ul> <li class="buttons"> <input type="submit" name="reload" value="<?php
</div> <p class="guidelines"><small> <?php echo T_("Set this checkmark if you do not want the uploaded file to expire."); ?> </small></p> </li> <li> <label class="description"><?php echo T_("Get notified by e-mail"); ?> </label> <div> <input name="notify" class="element text" type="email" multiple maxlength="255" value="<?php echo htmlEntUTF8($notify); ?> "/> </div> <p class="guidelines"><small> <?php echo T_("Type an <em>optional</em> e-mail address (or addresses) that" . " should be notified when the file is downloaded from the" . " server. You can separate multiple addresses with commas."); ?> </small></p> </li> <li class="buttons"> <input type="hidden" name="src" value="<?php echo $src; ?> "/>