Namespaces | Functions

cms/modules/form/registrationformsubmit.bak.php File Reference

Go to the source code of this file.

Namespaces

namespace  pragyan
 

Widget Framework for Pragyan CMS (c) 2010 Pragyan Team http://www.gnu.org/licenses/ GNU Public License For more details, see README Add support for File Upload/Download via the widget's configurations Reload Widgets ,Get Widget Instances. see bottom.


Functions

 submitRegistrationForm ($moduleCompId, $userId, $silent=false, $disableCaptcha=false)
 submitCaptcha ()
 submitRegistrationFormText ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormTextarea ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormRadio ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormCheckbox ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormSelect ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormPassword ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormFile ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormDate ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormDatetime ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 verifyDate ($inputDate)
 verifyTime ($inputTime)
 insertFormView ($moduleComponentId, $userId)
 updateFormSubmitCount ($moduleComponentId, $userId)
 registerUser ($moduleCompId, $userId)
 updateUser ($moduleCompId, $userId)
 verifyUserRegistered ($moduleCompId, $userId)
 verifyUserProfileFilled ($userId)
 unregisterUser ($moduleCompId, $userId, $silentOnSuccess=false)

Function Documentation

insertFormView ( moduleComponentId,
userId 
)

Definition at line 542 of file registrationformsubmit.bak.php.

registerUser ( moduleCompId,
userId 
)

Register a user in form_regdata table

ABHILASH'S EDIT FOR TUX VENTURE BEGINS HERE

ABHILASH'S EDIT FOR TUX VENTURE ENDS HERE

Definition at line 568 of file registrationformsubmit.bak.php.

submitCaptcha (  ) 

Checks if user entered correct captcha generated from getCaptchaHtml()

Definition at line 153 of file registrationformsubmit.bak.php.

submitRegistrationForm ( moduleCompId,
userId,
silent = false,
disableCaptcha = false 
)

-------------------------Get anonymous unique negative user id---------------

-----------------------------Anonymous user id ends------------------------------- ---------------------------- CAPTCHA Validation ----------------------------------

------------------------ CAPTCHA Validation Ends Here ----------------------------

Definition at line 26 of file registrationformsubmit.bak.php.

submitRegistrationFormCheckbox ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 285 of file registrationformsubmit.bak.php.

submitRegistrationFormDate ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 427 of file registrationformsubmit.bak.php.

submitRegistrationFormDatetime ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 454 of file registrationformsubmit.bak.php.

submitRegistrationFormFile ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

if the user is uploading a file with any name again, delete existing file

Definition at line 383 of file registrationformsubmit.bak.php.

submitRegistrationFormPassword ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 359 of file registrationformsubmit.bak.php.

submitRegistrationFormRadio ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 250 of file registrationformsubmit.bak.php.

submitRegistrationFormSelect ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 327 of file registrationformsubmit.bak.php.

submitRegistrationFormText ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 161 of file registrationformsubmit.bak.php.

submitRegistrationFormTextarea ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 220 of file registrationformsubmit.bak.php.

unregisterUser ( moduleCompId,
userId,
silentOnSuccess = false 
)

Unegister a user in form_regdata table and remove his data from elementdata table

Remove any files uploaded by the user

Definition at line 651 of file registrationformsubmit.bak.php.

updateFormSubmitCount ( moduleComponentId,
userId 
)

Definition at line 554 of file registrationformsubmit.bak.php.

updateUser ( moduleCompId,
userId 
)

Update the lastupdated date

ABHILASH'S EDIT FOR TUX VENTURE BEGINS HERE

ABHILASH'S EDIT FOR TUX VENTURE ENDS HERE

Definition at line 602 of file registrationformsubmit.bak.php.

verifyDate ( inputDate  ) 

Definition at line 487 of file registrationformsubmit.bak.php.

verifyTime ( inputTime  ) 

Definition at line 533 of file registrationformsubmit.bak.php.

verifyUserProfileFilled ( userId  ) 

Checks if the user filled his profile fully. The form id is 0.

Definition at line 636 of file registrationformsubmit.bak.php.

verifyUserRegistered ( moduleCompId,
userId 
)

Return true if user registered, otherwise false

NOT SURE IF THIS WILL WORK. it was if(mysql_affected_rows()>0))

Definition at line 621 of file registrationformsubmit.bak.php.