Feature Requests item #1587772, was opened at 2006-10-31 01:50
Message generated for change (Comment added) made by fourstones
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=559969&aid=1587772&group_id=80503

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: ccHost
Group: Next Release (example)
>Status: Closed
Priority: 7
Private: No
Submitted By: abraham attis (abattis)
Assigned to: Jon Phillips (kidproto)
Summary: Upload Email Notification 

Initial Comment:
Can we set up ccHost to spam admins' emails when new
fonts are added to the library so we can keep tabs on
possible copyright infringing uploads?

kidproto writes: 

"We could set-up an activity email for uploads. For
now, I could add this to this list, but it might get
out of control...maybe for now that is good. Basically,
we need to code an admin notification system that hooks
into various hooks and we can get info back from ccHost
about this via email...this is actually quite easy to
do and could get out of control how much info we could
harvest."

----------------------------------------------------------------------

>Comment By: Victor Stone (fourstones)
Date: 2009-04-15 18:50

Message:
drop this code

CCEvents::AddHandler(CC_EVENT_UPLOAD_DONE,    'upload_mailer');

function upload_mailer($upload_id)
{
   $user = CCDatabase::QueryItem('SELECT user_name FROM
cc_tbl_uploads,cc_tbl_user WHERE upload_user=user_id and upload_id = '
.$upload_id);
   $url = ccl('files',$user,$upload_id);
   mail( ..... )
}

into local_files/lib with PHP extension


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=559969&aid=1587772&group_id=80503
_______________________________________________
cc-devel mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/cc-devel

Reply via email to