summaryrefslogtreecommitdiff
path: root/moe/includes/core.php
diff options
context:
space:
mode:
authorNeku <neku@pomf.se>2013-12-17 01:57:09 +0100
committerNeku <neku@pomf.se>2013-12-17 01:57:09 +0100
commit32ec931a63a86e13ba393440bf4ba7a567022d58 (patch)
tree7cc7f03d35b87cc897609b3929673bc2ab8e5619 /moe/includes/core.php
parent77df85c499b4cf2fdbbeee65e4148f4e1489adc2 (diff)
Update core.php
Diffstat (limited to 'moe/includes/core.php')
-rw-r--r--moe/includes/core.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/moe/includes/core.php b/moe/includes/core.php
index cf77837..b5b9c30 100644
--- a/moe/includes/core.php
+++ b/moe/includes/core.php
@@ -44,7 +44,7 @@ function search ($word) {
global $db;
$str = "%".$word."%";
if($_SESSION['level'] === '1'){
- $do = $db->prepare("SELECT orginalname, filename FROM files WHERE orginalname LIKE (:1) OR filename LIKE (:2)");
+ print $row['orginalname'].' - '.$row['filename'].'<a href="http://moe.pomf.se/includes/api.php?do=delete&f='.$row['filename'].'" target="_BLANK"> Delete</a><br/>';
$do->bindParam(':1', $str);
$do->bindParam(':2', $str);
$do->execute();