<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,9 +11,9 @@ if($_POST['formSubmitted'] == &quot;true&quot; || ((isset($_GET['id']) &amp;&amp; is_numeric($_GET
   if(isset($_GET['deleteAddon']) &amp;&amp; $_GET['deleteAddon']) $deleteAddon = true;
   if($deleteAddon){
     if(deleteAddon($curseAddonID)){
-      $_SESSION['message'] = &quot;Deleted Addon.&quot;;
+      $_SESSION['message'] = &quot;The Addon $addonName has been deleted.&quot;;
     }else{
-      $_SESSION['message'] = &quot;Deletting Addon failed.&quot;;
+      $_SESSION['message'] = &quot;Deleting Addon failed.&quot;;
     }
   }else{
     if(updateAddon($curseAddonID)){
@@ -84,7 +84,7 @@ if($numRows != 0){
       }
       ////
       echo &quot;&lt;td align=\&quot;center\&quot;&gt;&lt;a href=\&quot;../cachedZips/&quot;.$row['addonName'].&quot;.zip\&quot;&gt;&lt;img src=\&quot;&quot;.$baseURL.&quot;images/download.gif\&quot; width=\&quot;25\&quot; height=\&quot;25\&quot; border=\&quot;0\&quot;&gt;&lt;/a&gt;&lt;/td&gt;&quot; .
-          &quot;&lt;td align=\&quot;center\&quot;&gt;&lt;a href=\&quot;&quot;.$_SERVER['PHP_SELF'].&quot;?deleteAddon=true&amp;id=&quot;.$row['id'].&quot;&amp;sort=&quot;.$orderBy.&quot;&amp;direction=&quot;.$orderDir.&quot;\&quot;&gt;&lt;img src=\&quot;&quot;.$baseURL.&quot;images/delete.png\&quot; width=\&quot;25\&quot; height=\&quot;25\&quot; border=\&quot;0\&quot;&gt;&lt;/a&gt;&lt;/td&gt;&quot; .
+          &quot;&lt;td align=\&quot;center\&quot;&gt;&lt;a href=\&quot;&quot;.$_SERVER['PHP_SELF'].&quot;?deleteAddon=true&amp;id=&quot;.$row['curseAddonID'].&quot;&amp;sort=&quot;.$orderBy.&quot;&amp;direction=&quot;.$orderDir.&quot;\&quot;&gt;&lt;img src=\&quot;&quot;.$baseURL.&quot;images/delete.png\&quot; width=\&quot;25\&quot; height=\&quot;25\&quot; border=\&quot;0\&quot;&gt;&lt;/a&gt;&lt;/td&gt;&quot; .
            &quot;&lt;/tr&gt;&quot;;
 	$i++;
     }</diff>
      <filename>admin/listAddons.php</filename>
    </modified>
    <modified>
      <diff>@@ -8,6 +8,8 @@ TODO:
 -Fix it to die gracefully if curse isn't providing the xml correctly
 -Updated blah, but blah was missing
 -Use the server's tmp directory
+-return stuff in arrays
+-Improve session messaging system
 */
 class ParseXML{
   function GetChildren($vals, &amp;$i) {
@@ -205,7 +207,8 @@ function md5Addon($addonName){
   $md5Location = $baseURL.'cachedZips/'.$addonName.'.dir/versions/'.$addonName.'.md5';
   $md5Directory = $baseURL.'cachedZips/'.$addonName.'.dir/versions/';
   if(!file_exists($md5Directory)) mkdir($md5Directory);
-  //file_put_contents($md5Location, $md5Hash);
+  //die('Dir: '.$md5Directory . ' | Loc: ' . $md5Location . ' | Hash: ' . $md5Hash);
+  file_put_contents($md5Location, $md5Hash);
   return;
 }
 
@@ -269,14 +272,15 @@ function deleteAddon($curseAddonID){
 	if(!result) return false;
 	while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
 	  $addonName = trim($row['addonName']);
+
 	}
-	if(file_exists(&quot;$baseURLcachedZips/$addonName.dir&quot;)){
+	if(file_exists($baseURL.'cachedZips/'.$addonName.'.dir')){
 	  shell_exec('rm -rf &quot;'.$baseURL.'cachedZips/'.$addonName.'.dir&quot;');
 	}
-	if(file_exists(&quot;$baseURLcachedZips/$addonName.zip&quot;)){
+	if(file_exists($baseURL.'cachedZips/'.$addonName.'.zip')){
 	  shell_exec('rm -rf &quot;'.$baseURL.'cachedZips/'.$addonName.'.zip&quot;');
 	}
-	$query = &quot;DELETE FROM amz_addonsList WHERE id=&quot;.$curseAddonID;
+	$query = &quot;DELETE FROM amz_addonsList WHERE curseAddonID=&quot;.$curseAddonID;
 	$deleteResult = mysql_query($query);
 	if(!$deleteResult) return false;
 	return true;</diff>
      <filename>functions.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>90147e69cdbfee98d3ba67b2642777cc25efc06a</id>
    </parent>
  </parents>
  <author>
    <name>Eric Boehs</name>
    <email>ericboehs@gmail.com</email>
  </author>
  <url>http://github.com/ericboehs/wow-php-add-on-manager/commit/f803158fdcc57eebd090f0d36009dec01c6b688e</url>
  <id>f803158fdcc57eebd090f0d36009dec01c6b688e</id>
  <committed-date>2008-10-28T09:27:54-07:00</committed-date>
  <authored-date>2008-10-28T09:27:54-07:00</authored-date>
  <message>Made the deleteAddon() syntax look a little better and fixed listAddons.php to send the curseAddonID instead of the id in the sql table when deleting an addon (which resulted in the addon not getting deleted properly) - Also updated listAddon.php to return the name of the Addon deleted</message>
  <tree>d64edbf086b13587493475cb1add7ea91889daa1</tree>
  <committer>
    <name>Eric Boehs</name>
    <email>ericboehs@gmail.com</email>
  </committer>
</commit>
