<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>home_old.php</filename>
    </added>
    <added>
      <filename>images/bluebutton.gif</filename>
    </added>
    <added>
      <filename>includes/status.php</filename>
    </added>
    <added>
      <filename>integration/fsock.php</filename>
    </added>
    <added>
      <filename>integration/github.php</filename>
    </added>
    <added>
      <filename>integration/xml.php</filename>
    </added>
    <added>
      <filename>js/round.js</filename>
    </added>
    <added>
      <filename>uploads/index_08.gif-1233433388.gif</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,18 +3,19 @@
 include('includes/main.php');
 include('config.php');
 include('includes/db.php');
-
+include('includes/status.php');
 include('includes/bug.php');
 include('includes/user.php');
 $mydb = new Database($db['host'], $db['user'], $db['pass'], $db['db'], '', 20);
    $mydb-&gt;NewConnection();
 $main = new Main($mydb);
 $user = new User();
+$s = new Status($mydb, $user);
 //print_r($_POST);
 // test
 $userName = $_POST[&quot;username&quot;];
 $passWord = $_POST[&quot;password&quot;];
-               
+$_uid = $mydb-&gt;first(&quot;SELECT `id` FROM `users` WHERE `username`='$userName'&quot;);         
                 $adminCheck = $mydb-&gt;first(&quot;SELECT `acl` FROM `users` WHERE `username`='$userName' AND `password`='&quot;.md5($passWord).&quot;';&quot;);
                 if($adminCheck === &quot;0&quot;)
                     $isadmin = 1;
@@ -54,6 +55,10 @@ if(isset($_POST[&quot;closeticket&quot;]) &amp;&amp; $isadmin == 1){
  $mydb-&gt;query_update('list', array('status' =&gt; 0, 'finished' =&gt; time() ), &quot;id='$closeticket'&quot;);
  echo &quot;Ticket Closed&quot;;   
  
+ $projectID = $mydb-&gt;first(&quot;SELECT `project` FROM list WHERE `id`='&quot;.$_POST['tickid'].&quot;'&quot;);
+ $s-&gt;n($_POST[&quot;tickid&quot;], $_uid, 'closed', $projectID);
+
+ 
  // send emails to author
       $authorID = $mydb-&gt;clean($_POST[&quot;by&quot;], '', '');
      // echo &quot;UID: $authorID&quot;;</diff>
      <filename>ajax.php</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,7 @@ h1, h2, h3 { margin:0; padding:0;}
 #bbtop { font-size: 10px; height: 71px; }
 #logo { font-size: 160%; color: white; padding: 10px;  } 
 #bbbot { background-color: #266A9B;  }
-#bbbot a { margin-left: 25px;   margin-top: 10px;  color: #e8e8e8; font-size: 11px; font-weight: bold; text-decoration: none; }
+#bbbot a { margin-left: 25px;   margin-top: -5px; margin-bottom: 5px; color: #e8e8e8; font-size: 90%; font-weight: bold; text-decoration: none; }
 #bbotnav { height: 35px; }
 #bbbot a:hover { color: #69B7DC; }
 #bbtop input { font-size: 11px; }
@@ -206,8 +206,19 @@ label { font-size: 12px; color: #555555;  font-weight: bold;   }
 #sidenav h3 { font-size: 90%; border-bottom: 1px solid #ababab; }
 #sidenav a { font-size: 80%; color: #555555; display: block;  padding-top: 5px; padding-bottom: 5px; padding-left: 5px; width: 250px; }
 #sidenav a:hover { background-color: #cdcdcd; text-decoration: none; }
+#sidenav small { font-size: 50%; padding-left: 15px;}
+.openticks { padding-left: 10px; padding-right: 15px;  color: white; background-color: #5A9ECF; width: 40px; margin-right: 10px; }
+.openticks * { float: left; }
+#status { background-color: white; margin-top: 15px; } 
+#status h3 { font-size: 100%; }
 
-.openticks { padding-left: 10px; padding-right: 15px;  color: white; background-image: url(images/bluebutton.gif); background-repeat: no-repeat;  margin-right: 10px; }
+#github { overflow: auto; height: 350px; }
 
-#status { background-color: white; margin-top: 15px; } 
-#status h3 { font-size: 100%; }
\ No newline at end of file
+.update { font-size: 90%; color: #888888; margin-left: 40px; border-bottom: 1px solid #dfdfdf; margin-right: 50px;  margin-top: 10px; margin-bottom: 4px; height: 20px; }
+
+.update #statustext { float: right; }
+.update a { color: #5A9ECF; }
+.update a:hover { color: #266A9B; text-decoration: none;}
+
+#statustype { margin-top: -15px; float: right; background-color: #5A9ECF; width: 70px; color: white; font-size: 80%; text-align: center; text-transform: uppercase; }
+#statususer { color: #222222; }</diff>
      <filename>bug.css</filename>
    </modified>
    <modified>
      <diff>@@ -470,6 +470,7 @@ class View extends Bugs {
     }
     
     function reply($bugid){
+    
      ?&gt;
 &lt;form name=&quot;&quot; method=&quot;POST&quot; action=&quot;&quot; enctype=&quot;multipart/form-data&quot;&gt;
 &lt;input type=&quot;hidden&quot; name=&quot;MAX_FILE_SIZE&quot; value=&quot;2000000&quot;&gt;
@@ -509,8 +510,7 @@ class View extends Bugs {
 	&lt;/td&gt;
 	&lt;/tr&gt;
 	&lt;/table&gt;
-&lt;/td&gt;&lt;/tr&gt;
-&lt;/table&gt;
+
 &lt;/form&gt;
               
     &lt;?php
@@ -556,7 +556,7 @@ class View extends Bugs {
             &lt;td align=&quot;center&quot; style=&quot;background-image: url('&lt;?php echo BBPATH; ?&gt;/images/bar.gif'); background-position: -&lt;?php echo $backgroundpos;?&gt;px 0px; background-repeat: no-repeat; color: black;&quot;&gt;
             &lt;?php echo $finished;?&gt;/&lt;?php echo $unfinished;?&gt;
             &lt;/td&gt;
-        &lt;tr&gt;
+        &lt;/tr&gt;
         &lt;/table&gt; 
      &lt;/div&gt;
      &lt;div style=&quot;padding-top: 20px;&quot;&gt;&lt;/div&gt;</diff>
      <filename>includes/bug.php</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@
    function Main($db){
     $this-&gt;db=$db; 
     $this-&gt;user = new User();
-    $this-&gt;s = new Status($db);      
+    $this-&gt;s = new Status($db, $this-&gt;user);      
    }
    
    function headStart(){
@@ -37,11 +37,15 @@
         &lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-1.2.6.min.js&quot;&gt;&lt;/script&gt;
         &lt;script type=&quot;text/javascript&quot; src=&quot;js/jq-sort.js&quot;&gt;&lt;/script&gt; 
         &lt;script type=&quot;text/javascript&quot; src=&quot;js/init.js&quot;&gt;&lt;/script&gt; 
-
+		&lt;script type=&quot;text/javascript&quot; src=&quot;js/round.js&quot;&gt;&lt;/script&gt;
 
          
         &lt;script&gt;$(document).ready(function(){$('#ProjTab').hide();
 $(&quot;#ProjToggle&quot;).toggle(function () {$('#ProjTab').fadeIn();},function () {$('#ProjTab').hide();});
+
+        $(&quot;.statustype&quot;).corner('5px');
+        $(&quot;.openticks&quot;).corner('5px');
+        $(&quot;#status&quot;).corner();
         });
       &lt;/script&gt;
         &lt;/head&gt;
@@ -188,10 +192,24 @@ $(&quot;#ProjToggle&quot;).toggle(function () {$('#ProjTab').fadeIn();},function () {$('#P
   	 $tpr = $this-&gt;db-&gt;query(&quot;SELECT * FROM projects ORDER BY `name` ASC&quot;);
              while($r = mysql_fetch_array($tpr)){
              	$open = $this-&gt;db-&gt;first(&quot;SELECT count(*) FROM list WHERE `status`='1' AND `parent`='0' AND `project`='&quot;.$r['id'].&quot;';&quot;);
-                echo '&lt;a href=&quot;?specialrefiner='.$r['id'].'&quot;&gt;&lt;span class=&quot;openticks&quot; id=&quot;open'.$r['id'].'&quot;&gt; '.$open.' &lt;/span&gt; '.$r['name'].'&lt;/a&gt;';
+                echo '&lt;a href=&quot;?specialrefiner='.$r['id'].'&quot;&gt;&lt;span class=&quot;openticks&quot; id=&quot;open'.$r['id'].'&quot;&gt;'.$open.' &lt;/span&gt; '.$r['name'].'&lt;/a&gt;';
                 ?&gt;
                 &lt;?php
              }
+  	if(isset($_GET['cmd']) &amp;&amp; $_GET['cmd'] == 'view'){
+		$bugid = $this-&gt;db-&gt;clean($_GET['id'], '', '');
+		$projid = $this-&gt;db-&gt;first(&quot;SELECT `project` FROM list WHERE `id`='$bugid'&quot;);
+  		$proj_git = $this-&gt;db-&gt;first(&quot;SELECT `github` FROM projects WHERE `id`='&quot;.$projid.&quot;'&quot;);
+ 		?&gt;&lt;br&gt;
+ 		&lt;h3&gt;GitHub Commits&lt;/h3&gt;
+ 		&lt;script type=&quot;text/javascript&quot;&gt;$(function(){
+					$('#github').load(&quot;/integration/github.php?url=&lt;?php echo $proj_git;?&gt;&quot;);
+				});
+		&lt;/script&gt;
+ 		&lt;div id='github'&gt;&lt;/div&gt;
+ 		&lt;?php
+   	}
+  
   }
   
    </diff>
      <filename>includes/main.php</filename>
    </modified>
    <modified>
      <diff>@@ -52,9 +52,10 @@
         'type' =&gt; $type, 'started' =&gt; time(), 'finished' =&gt; '', 'due' =&gt; '', 'assigned' =&gt; '', 'attachment' =&gt; $target.$file_name);
                 $this-&gt;db-&gt;query_insert('list', $bugData);
                 $this-&gt;message(&quot;&lt;center&gt;&lt;h3&gt;Report submitted.&lt;/h3&gt;&lt;/center&gt;&quot;);
-  $LASTID = $this-&gt;db-&gt;lastID();
-
-  $this-&gt;s-&gt;n(&quot;&lt;a href='?cmd=view&amp;id=$LASTID'&gt;\&quot;{$_POST['subject']}\&quot;&lt;/a&gt; was created by &quot;);
+  $LASTID = $this-&gt;db-&gt;lastID();  
+   if($type == 0) $type =  &quot;bug&quot;;
+    if($type == 1) $type = &quot;feature&quot;;
+  $this-&gt;s-&gt;n($LASTID, $reportedby, $type, $_POST['project']);
   //echo $lastID;
   // send emails to administrators
   $this-&gt;db-&gt;query(&quot;SELECT * FROM users WHERE `acl`='0'&quot;);
@@ -125,6 +126,7 @@
 			&lt;tr&gt;
 				&lt;td&gt;&lt;input type=&quot;file&quot; name=&quot;attachment&quot; /&gt;&lt;/td&gt;
 			&lt;/tr&gt;
+			
 			&lt;tr&gt;
 				&lt;td&gt;Shortcuts: &lt;br&gt;
 				&lt;b&gt;[CE]ID[/CE]:&lt;/b&gt; Link to this project's ClientExec.&lt;br&gt;</diff>
      <filename>submit.php</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,8 @@ if(isset($_POST[&quot;submitReport&quot;])){
         'type' =&gt; 0, 'started' =&gt; time(), 'finished' =&gt; '', 'due' =&gt; '', 'assigned' =&gt; '', 'attachment' =&gt; $target.$file_name);
                 $this-&gt;db-&gt;query_insert('list', $bugData);
                 $this-&gt;message(&quot;&lt;center&gt;&lt;h3&gt;Reply added.&lt;/h3&gt;&lt;/center&gt;&quot;);
-  
+    $this-&gt;s-&gt;n($bugid, $reportedby, 'update', $this-&gt;db-&gt;first(&quot;SELECT `project` FROM list WHERE `id`='$bugid'&quot;, 0, 0));
+
   }
 ?&gt;  
 &lt;?php </diff>
      <filename>view.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>393ddd657594647ed8c2ef20d97753e73b4a8b2f</id>
    </parent>
  </parents>
  <author>
    <name>root</name>
    <email>josh@bluescripts.net</email>
  </author>
  <url>http://github.com/bluescripts/bbug/commit/02ff379d9700b1942071331d5718555d3e3ab081</url>
  <id>02ff379d9700b1942071331d5718555d3e3ab081</id>
  <committed-date>2009-03-12T08:28:50-07:00</committed-date>
  <authored-date>2009-03-12T08:28:50-07:00</authored-date>
  <message>need to add private repo auth</message>
  <tree>538235adfb5f41de2067c9026b0af5ce1991b2d6</tree>
  <committer>
    <name>root</name>
    <email>josh@bluescripts.net</email>
  </committer>
</commit>
