+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Posts
    2

    function call result (CMS tutorial)

    By this declaration of the function in sentry.php:

    function checkLogin($user = '',$pass = '',$group = 10,$goodRedirect = '',$badRedirect = '')

    this call in welcome.php does not make sense to me:

    !$theSentry->checkLogin(2)

    The value 2 will be assigned to the first variable ($user) and $group will remain 10. Am I wrong or have I overlooked something ?

  2. #2
    Join Date
    Dec 2004
    Location
    Central Valley, CA
    Posts
    9
    I am new to PHP, but if I remember right 2 will be assigned to $group for it is the first variable assigned with an int value.

    if !$theSentry->checkLogin('2'); were called instead, then $user would be assigned the value.

    Please, someone correct me if I am wrong

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts



Latest Headlines from Datamation