function delete(){global $directorypath, $gamesfolder;$ID = abs((int) $_GET['ID']);$query = mysql_query("SELECT `file` FROM `dd_games` WHERE `ID`='$ID'");$row = mysql_fetch_array($query);if($row['type'] == "1"){unlink("$directorypath/$gamesfolder/".$row['file']."");}mysql_query(sprintf('DELETE FROM dd_games WHERE ID=\'%u\'', $ID));echo '<div class=\'msg\'>Game Deleted. <br /> <A href="#" onclick="history.go(-1)">Back</a></div>';}
function delete(){ global $domain, $db, $gamesfolder, $thumbsfolder, $template, $directorypath;$ID = abs((int) $_GET['ID']);$query = mysql_query("select * FROM `dd_games` WHERE `ID`='$ID'");$row = mysql_fetch_array($query);if($row["type"] == "1"){$file = $row["file"];$myFile = "$domain/$directorypath/$gamesfolder/$file";unlink($myFile);}if($row["type"] == "1"){$thumb = $row["thumb"];$myThumb = "$domain/$directorypath/$thumbsfolder/$thumb";unlink($myThumb);}mysql_query(sprintf('DELETE FROM dd_games WHERE ID=\'%u\'', $ID));echo ' <div class=\'msg\'>Game Deleted <a href="javascript:void(0)" onclick="history.go(-1)"> Go Back</a></div>';}
Oh yeah I forgot about the thumbnail.Dunno why you used: ./../ ?Your directory path var is all you need I would think.What did you set for the directory path?Internet is being shut off I guess for me. Not enough money to pay for it so I will be gone again. Hopefully not for too long.
Hopefully not for too long.
You probably have plenty to do to FAS as it is. And while we have XAMPP etc - I doubt that you will just be doing nothing.
function delete(){global $domain, $db, $gamesfolder, $thumbsfolder, $template, $directorypath;$ID = abs((int) $_GET['ID']);$query = mysql_query("select * FROM `dd_games` WHERE `ID`='$ID'");$row = mysql_fetch_array($query);if($row["type"] == "1"){$file = $row["file"];$myFile = "$directorypath/$gamesfolder/$file";unlink($myFile);}if($row["type"] == "1"){$thumb = $row["thumb"];$myThumb = "$directorypath/$thumbsfolder/$thumb";unlink($myThumb);}mysql_query(sprintf('DELETE FROM dd_games WHERE ID=\'%u\'', $ID));echo '<div class=\'msg\'>Game Deleted <a href="javascript:void(0)" onclick="history.go(-1)"> Go Back</a></div>';}