Cheetah
Functions | Variables
tellfriend.php File Reference

Go to the source code of this file.

Functions

 SendTellFriend ($iSenderID=0)
 

Variables

 $_page ['name_index'] = 29
 
 $_page ['css_name'] = array('forms_adv.css')
 
 $_page ['header'] = _t("_Tell a friend")
 
 $_page ['header_text'] = _t("_Tell a friend")
 
 $profileID = 0
 
if(isset($_GET['ID'])) else
 
 $aSenderInfo = getProfileInfo($iSenderID)
 
 $bAjaxMode = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'
 
 $sCaption = ($profileID) ? _t('_TELLAFRIEND2', $site['title']) : _t('_TELLAFRIEND', $site['title'])
 
 $aForm
 
 $oForm = new ChTemplFormView($aForm)
 
else $sPageCode = $oForm->getCode()
 
if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest') $_ni = $_page['name_index']
 
 $_page_cont [$_ni]['page_code'] = $sPageCode
 

Function Documentation

◆ SendTellFriend()

SendTellFriend (   $iSenderID = 0)

send "tell a friend" email

Definition at line 159 of file tellfriend.php.

Variable Documentation

◆ $_ni

if (isset( $_SERVER[ 'HTTP_X_REQUESTED_WITH']) &&$_SERVER[ 'HTTP_X_REQUESTED_WITH']=='XMLHttpRequest') $_ni = $_page['name_index']

Definition at line 149 of file tellfriend.php.

◆ $_page [1/4]

$_page[ 'css_name'] = array('forms_adv.css')

Definition at line 19 of file tellfriend.php.

◆ $_page [2/4]

$_page[ 'header'] = _t("_Tell a friend")

Definition at line 21 of file tellfriend.php.

◆ $_page [3/4]

$_page[ 'header_text'] = _t("_Tell a friend")

Definition at line 22 of file tellfriend.php.

◆ $_page [4/4]

$_page[ 'name_index'] = 29

Definition at line 18 of file tellfriend.php.

◆ $_page_cont

$_page_cont[ $_ni][ 'page_code'] = $sPageCode

Definition at line 150 of file tellfriend.php.

◆ $aForm

$aForm

Definition at line 41 of file tellfriend.php.

◆ $aSenderInfo

$aSenderInfo = getProfileInfo($iSenderID)

Definition at line 34 of file tellfriend.php.

◆ $bAjaxMode

$bAjaxMode = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'

Definition at line 37 of file tellfriend.php.

◆ $oForm

$oForm = new ChTemplFormView($aForm)

Definition at line 121 of file tellfriend.php.

◆ $profileID

$profileID = 0

Definition at line 24 of file tellfriend.php.

◆ $sCaption

$sCaption = ($profileID) ? _t('_TELLAFRIEND2', $site['title']) : _t('_TELLAFRIEND', $site['title'])

Definition at line 39 of file tellfriend.php.

◆ $sPageCode

if (ch_get( 'ChAjaxSubmit')) $sPageCode = $oForm->getCode()

Definition at line 126 of file tellfriend.php.

◆ else

if (isset( $_GET[ 'ID'])) else
Initial value:
{
if (isset($_POST['ID'])) {
$profileID = (int)$_POST['ID'];
}
}
$iSenderID = getLoggedId()

Definition at line 27 of file tellfriend.php.

$profileID
$profileID
Definition: tellfriend.php:24
getLoggedId
getLoggedId()
Definition: profiles.inc.php:32