<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Imran Hussain pushed to branch master at <a href="https://projects.sucs.org/sucssite/sucs-site">sucssite / sucs-site</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://projects.sucs.org/sucssite/sucs-site/commit/feafd46c9d9b96a7a8d3fb49a79b8e7fa9b4ea54">feafd46c</a></strong>
<div>
<span>by Imran Hussain</span>
<i>at 2015-09-14T11:09:03Z</i>
</div>
<pre class='commit-message'>Move the sucsunreadmail script to the plugins folder from my home dir</pre>
</li>
<li>
<strong><a href="https://projects.sucs.org/sucssite/sucs-site/commit/a4206f63445405303f0f93b3f7f59f19f80ee979">a4206f63</a></strong>
<div>
<span>by Imran Hussain</span>
<i>at 2015-09-14T11:10:19Z</i>
</div>
<pre class='commit-message'>Merge branch 'master' of projects.sucs.org:sucssite/sucs-site</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
lib/session.php
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
<span class='new-file'>
+
plugins/sucsunreadmail
</span>
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://projects.sucs.org/sucssite/sucs-site/compare/fbc34b606f88fca0593f07c38a655311628f4173...a4206f63445405303f0f93b3f7f59f19f80ee979#diff-0'>
<strong>
lib/session.php
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/lib/session.php
</span><span style="color: #000000;background-color: #ddffdd">+++ b/lib/session.php
</span><span style="color: #aaaaaa">@@ -227,7 +227,7 @@ private $datahash='';             // hash of data field
</span>           }*/
                // a sure-fire way to check to see if the user has any unread email
                // the bash script returns 0 for no and 1 for yes, takes one arg, username
-               $this->email = shell_exec("/home/member/imranh/bin/sucsunreadmail $user");
<span style="color: #000000;background-color: #ddffdd">+                $this->email = shell_exec("../plugins/sucsunreadmail $user");
</span> 
                if (file_exists($info['homedirectory'][0]."/.forward")) {
                        $forward = file($info['homedirectory'][0]."/.forward");
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://projects.sucs.org/sucssite/sucs-site/compare/fbc34b606f88fca0593f07c38a655311628f4173...a4206f63445405303f0f93b3f7f59f19f80ee979#diff-1'>
<strong>
plugins/sucsunreadmail
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- /dev/null
</span><span style="color: #000000;background-color: #ddffdd">+++ b/plugins/sucsunreadmail
</span><span style="color: #aaaaaa">@@ -0,0 +1,8 @@
</span><span style="color: #000000;background-color: #ddffdd">+#!/bin/bash
+
+if finger -m $1 | grep "New mail" &> /dev/null
+       then
+               echo "1"
+       else
+               echo "0"
+fi
</span>\ No newline at end of file
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://projects.sucs.org/sucssite/sucs-site/compare/fbc34b606f88fca0593f07c38a655311628f4173...a4206f63445405303f0f93b3f7f59f19f80ee979">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":["merge_requests","issues","commit"],"url":"https://projects.sucs.org/sucssite/sucs-site/compare/fbc34b606f88fca0593f07c38a655311628f4173...a4206f63445405303f0f93b3f7f59f19f80ee979"}}</script>
</p>
</div>
</body>
</html>