/sources/submit.php

Description
Functions
ban_ip (line 100)

Ban the specified IP address.

void ban_ip (IP $ip, [LONG_TEXT $descrip = ''])
  • IP $ip: The IP address to ban
  • LONG_TEXT $descrip: Explanation for ban
give_submit_points (line 51)

Give points to a member for submitting something, then returns the XHTML page to say so.

  • return: A message about the member being given these submit points (NULL: no message)
?string give_submit_points (ID_TEXT $type, [?MEMBER $member = NULL])
  • ID_TEXT $type: One of this type has been submitted. By convention it is the language code of what was done, e.g. ADD_DOWNLOAD
  • ?MEMBER $member: The member to give the points to (NULL: give to current member)
send_validation_request (line 29)

Send (by e-mail) a validation request for a submitted item to the admin.

void send_validation_request (ID_TEXT $type, ID_TEXT $id, tempcode $url, [?MEMBER $member_id = NULL])
  • ID_TEXT $type: The validation request will say one of this type has been submitted. By convention it is the language code of what was done, e.g. ADD_DOWNLOAD
  • ID_TEXT $id: The validation request will say this ID has been submitted
  • tempcode $url: The validation request will link to this URL
  • ?MEMBER $member_id: Member doing the submitting (NULL: current member)
unban_ip (line 119)

Unban the specified IP address.

void unban_ip (IP $ip)
  • IP $ip: The IP address to unban
wrap_probe_ip (line 71)

Find a member from their IP address. Unlike plain $GLOBALS['FORUM_DRIVER']->probe_ip, it has the benefit of looking in the adminlogs table also.

  • return: The members found
array wrap_probe_ip (IP $ip)
  • IP $ip: The IP address to probe

Documentation generated on Sun, 02 Jan 2011 23:25:34 +0000 by phpDocumentor 1.4.3