[ class tree: plugins ] [ index: plugins ] [ all elements ]

Procedural File: contact_form.php

Source Location: /plugins/contact_form.php

Page Details

Contact form

Prints a e-mail contact form that uses Zenphoto's internal validation functions for e-mail and URL. Name, e-mail adress, subject and message are required fields by default. You need to enter a custom mail adress that should be use for the messages.

Supports Zenphoto's captcha and confirmation before the message is sent. No other spam filter support, since mail providers have this anyway.

The contact form itself is a separate file and located within /contact_form/form.php so that it can be style as needed.

Author:  Malte Müller (acrylian), Stephen Billard (sbillard)
Version:  1.1.3.2
Classes
Class Description
contactformOptions Plugin option handling class
Includes
require_once (SERVERPATH."/".ZENFOLDER."/admin-functions.php") [line 24]
[ Top ]


Functions
checkRequiredField  [line 267]

Helper function that checks if the field is a required one. If it returns '*" to be appended to the field name as an indicator.

Not for the captcha field that is always required if shown...

Parameters:
string   $option:  the option value


string checkRequiredField( string $option  )

[ Top ]
getField  [line 101]

Retrieves the post field if it exists

Parameters:
string   $field: 
int   $level: 


string getField( string $field, [int $level = 3]  )

[ Top ]
printContactForm  [line 113]

Prints the mail contact form, handles checks and the mail sending. It uses Zenphoto's check for valid e-mail adress and website url and also supports Captcha.

The contact form itself is a separate file and is located within the /contact_form/form.php so that it can be style as needed.


void printContactForm( )

[ Top ]
showOrNotShowField  [line 252]

Helper function that checks if a field should be shown ("required" or "show") or omitted ("ommitt").

Only for the fields set by radioboxes.

Parameters:
string   $option:  The option value


bool showOrNotShowField( string $option  )

[ Top ]


Documentation generated on Tue, 02 Dec 2008 21:23:46 +0100 by phpDocumentor 1.4.1