Source for file add-note-form.php
Documentation is available at add-note-form.php
* Let's define some sample errors so
* it's easier to maintain later on..
define ('NOTE_ADD_ERROR_NO_URI', 'No URI passed to the form');
require_once 'Services/ReCaptcha.php';
$captcha = new Services_ReCaptcha (PEAR_RECAPTCHA_PUBLIC_KEY , PEAR_RECAPTCHA_PRIVATE_KEY );
* This parameter should be passed from the
* template manual with basically the
* $_SERVER['REQUEST_URI'] in the uri get
if (!isset ($_GET['uri'])) {
$loggedin = isset ($auth_user) && $auth_user->registered;
$email = 'user@example.com';
$spamCheck = $captcha->getOperation ();
$_SESSION['answer'] = $captcha->getAnswer ();
// Template of the form to add a note
require PEARWEB_TEMPLATEDIR . '/notes/add-note-form.tpl.php';
Documentation generated on Mon, 11 Mar 2019 16:04:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|