Admun's NUDN

admun

  • San Francisco, CA

Navigation

Navigation

Categories

To Take action(.php)

This is what happens when an action request is made to Nucleus.

Note, karma function will be implemented as plugin in the future release.

  • initialize global object $CONF
  • include config.php (see here for details)
  • call appropiate action based on input parameter
    • addComment - add comment
      • construct $post - itemid, user, userid, body
      • set comment cookie
      • initilize COMMENTS object
      • set $blogid, initialize $blog object
      • call COMMENTS::addComment()
      • trigger PostAddComment event
      • handle error, or re-direct back to calling Item
    • sendMessage - send a guest message to a member via email
      • initialize global objects $CONF, $member
      • check whether member mail is allow, exit if it is disabled
      • prepare message originator, recipiant, message, and title
      • send mail via mail()
      • re-direct back to calling member page
    • createAccount - create new blog member
      • initialize blogal objects $CONF, and $manager
      • create a random password for the new member
      • call MEMBER::create() to create the new member
      • send password information to the new member via email
      • trigger PostRegister event
      • re-direct back to calling page
    • forgotPassword - process forgot password request
      • get $membername from input parameter
      • check whether the reqesting member exists
      • check if email address input is matching member's information
      • generate a new random password
      • send the password information via email
      • re-direct back to calling page
    • doKarma
      • initialize global objects $itemid, $member, $CONF, $HTTP_REFERER, $manager
      • check if the item exists
      • initialize $blogid, $karma object
      • check if remote IP is banned
      • get item from database
      • call KARMA::votePositive() or KARMA::voteNegative() as parameter indicated
      • initialize $blogid, and $blog object
      • send email as needed (control by notifyOnVote)
      • re-direct back to calling page
    • callPlugin
      • initialize global object $manager
      • construct internal plugin name
      • check if the plugin requested if installed
      • call the plugin's doAction()

14:35:18 on 07/26/04 by Admun - Category: Code Traces - tags: none - print

Comments

No comments yet

Add Comments



<=   November 2009   =>
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
2930     

My Quick Links

Documentation

How-To & Tips

Source Code

Developers utc

Latest Comments

  • Admun says If you are running wp from a hosting environment, your system admin people can tell...
  • Dan says Hi, Im a noob and Im not sure what to input for the Database Name, for Nucleus and...
  • Admun says what version of PHP you are running? It looks like this function is...
  • Kevin says I am getting this error: Fatal error: Call to undefined function sql_table() in...
  • Admun says thx Frank, I will look into it.
  • ftruscot says admun, a bug/fix suggestion on the forum that you might want to look at:...
  • Admun says Indeed David. 8( A quick fix for now until 0.9 is out: - do a "ALTER TABLE...
  • David Geens says Dear Edmond, Your twitter plugin suffer from the twitocalyps. You should...

Most Downloads