Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
sucs-site
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua Anthony Morgan
sucs-site
Commits
feafd46c
Commit
feafd46c
authored
Sep 14, 2015
by
Imran Hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the sucsunreadmail script to the plugins folder from my home dir
parent
148b8dce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
lib/session.php
lib/session.php
+1
-1
plugins/sucsunreadmail
plugins/sucsunreadmail
+8
-0
No files found.
lib/session.php
View file @
feafd46c
...
...
@@ -227,7 +227,7 @@ private $datahash=''; // hash of data field
}*/
// 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
"
);
$this
->
email
=
shell_exec
(
"
../plugins
/sucsunreadmail
$user
"
);
if
(
file_exists
(
$info
[
'homedirectory'
][
0
]
.
"/.forward"
))
{
$forward
=
file
(
$info
[
'homedirectory'
][
0
]
.
"/.forward"
);
...
...
plugins/sucsunreadmail
0 → 100755
View file @
feafd46c
#!/bin/bash
if
finger
-m
$1
|
grep
"New mail"
&> /dev/null
then
echo
"1"
else
echo
"0"
fi
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment