require ('sxinclude.php');
require_once(SXD_LIB . 'sxdlib_common.php');
require_once(SXD_LIB . 'sxdlib_xdatabases.php');
require_once(SXD_LIB . 'sxdlib_templates.php');
require_once(SXD_LIB . 'sxdlib_profile_render.php');
include('/var/www/sexdates/sxd-bin/libs/ciao.php');
$arPars = explode('/', $_SERVER['REQUEST_URI']);
$affilID = $profileID = '';
if (isset($arPars[2])) $affilID = cleanValue($arPars[2]);
if (isset($arPars[3])) $profileID = cleanValue($arPars[3]);
$arLinks = array( 'asiansexdates' => 'asian',
'bbwsexdates' => 'bbw',
'bdsmsexdates' => 'bdsm',
'blacksexdates' => 'black',
'casualsexgroup' => 'csg',
'collegesexdates' => 'csd',
'discreetsexdates' => 'dsd',
'escortsexdates' => 'esd',
'hotlocalsexdates' => 'hlsd',
'hotgaysexdates' => 'hgsd',
'latinsexdates' => 'lsd',
'latinosexdates' => 'losd',
'lesbiansexdates' => 'lbsd',
'maturesexdates' => 'mtsd',
'milfsexdates' => 'mfsd',
'realsexdates' => 'rsd',
'shemalesexdates' => 'smsd',
);
$siteid = strtolower('MatureSexDates');
$sitecode = $arLinks[$siteid];
unset($arLinks);
$linkurl = "http://join.$siteid.com/track/$affilID:asdpj:$sitecode/?tour=reg";
$linkurl2 = "http://join.$siteid.com/track/$affilID:asdpj:$sitecode/";
$linkurl3 = "http://www.sexdatenetwork.com/index.php?nats=$affilID:asdpj:,0,0,0,";
$linkurl4 = "http://join.sexdatecash.com/track/$affilID:wmr:wmrr/";
$arGend = array('Male','Female','Couple','Group','TS/TV/TG');
//RECORD HIT
$theip = $_SERVER['REMOTE_ADDR'];
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
if (strlen($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$theip = addslashes($_SERVER['HTTP_X_FORWARDED_FOR']);
}
}
$c_theip = mysql_escape_string($theip);
$c_ref = mysql_escape_string($_SERVER['HTTP_REFERER']);
$xdb->query("INSERT INTO tstamp.geoPageHits VALUES(null,'pf','$c_theip','$c_ref',NOW())");
?>
include('/var/www/sexdates/shared/themes/keywords/' . $siteid . '.php'); ?>
|
|
|
$file_prf = '/var/www/sexdates/shared/themes/profiles/' . strtolower($profileID) . '.php';
if (!file_exists($file_prf)) {
$bNoCache = true;
flush();
ob_flush();
$smatch = $xdb->get_row("SELECT * FROM v2p_primary p, v2p_details d, v2p_text t WHERE p.memberid=d.memberid AND p.memberid=t.memberid AND p.memberid='$profileID'",0, array_a);
} else {
$bNoCache = false;
include($file_prf);
}
if (!count($smatch)) {
echo " Sorry... That profile is not found! ";
} else {
if (!strlen(trim($smatch['title']))) $smatch['title'] = '---';
if (!strlen(trim($smatch['hobbies']))) $smatch['hobbies'] = 'Ask Me!';
if (!strlen(trim($smatch['profession']))) $smatch['profession'] = 'Ask Me!';
if (!strlen(trim($smatch['about']))) $smatch['about'] = 'Ask Me!';
if (!strlen(trim($smatch['seeking']))) $smatch['seeking'] = 'Ask Me!';
if ($bNoCache) {
//create cache
$fx = fopen($file_prf, 'w');
fwrite($fx, ' $smatch=array(');
foreach($smatch as $key => $value) {
$value = addslashes(stripslashes($value));
fwrite($fx, "'$key'=>'$value', \n");
}
fwrite($fx, '); ?>');
fclose($fx);
}
?>
|
|
 |
 |
| Location: |
=$smatch['citystate']?> |
|
Looks: |
=$sxdRender->sd_prfArray('looks',$smatch['looks'])?> |
| Age: |
=ageFromBDay($smatch['bday'])?> |
|
Hair Color: |
=$sxdRender->sd_prfArray('haircolor',$smatch['haircolor'])?> |
| Gender: |
=$arGend[$smatch['gender']]?> |
|
Eye Color: |
=$sxdRender->sd_prfArray('eyecolor',$smatch['eyecolor'])?> |
| Seeking: |
=$arGend[$smatch['sexpref']]?> |
|
Height: |
=$sxdRender->sd_prfArray('height',$smatch['height'])?> |
| Status: |
=$sxdRender->sd_prfArray('marital',$smatch['marital'])?> |
|
Body Type: |
=$sxdRender->sd_prfArray('bodytype',$smatch['bodytype'])?> |
| Ethnicity: |
=$sxdRender->sd_prfArray('ethnicity',$smatch['ethnicity'])?> |
|
Religion: |
=$sxdRender->sd_prfArray('religion',$smatch['religion'])?> |
 |
|
 |
 |
| Headline: |
=stripslashes($smatch['title'])?> |
| Fav Sex Acts: |
=$sxdRender->sd_prfArray('sexacts',$smatch['sexacts'])?> |
| Hobbies: |
=stripslashes($smatch['hobbies'])?> |
| Profession: |
=stripslashes($smatch['profession'])?> |
| About: |
=stripslashes($smatch['about'])?> |
if (strlen($smatch['adjectives'])) { ?>
| Personality: |
=$sxdRender->sd_prfArray('adjectives',$smatch['adjectives'])?> |
} ?>
| Seeking: |
=stripslashes($smatch['seeking'])?> |
 |
|
 |
|
|
} // good profile ?>
|
|