fetch("select * from `counters` where `category` ='all'")['total']; /* IF MODEL IS IN REMOVED LIST - SHOW 404 */ if($libDB->fetch("select * from `removed` where `nick` =? and `brand` =?", [strtolower($model),$brand])){ http_response_code(404); include('../404.php'); exit(); } switch($brand){ case($brand == 'ctb'):$Fbrand = 'Chaturbate';break; case($brand == 'csd'):$Fbrand = 'Camsoda';break; case($brand == 'stc'):$Fbrand = 'Stripchat';break; case($brand == 'f4f'):$Fbrand = 'Flirt4free';break; case($brand == 'stm'):$Fbrand = 'Streamate';break; case($brand == 'bng'):$Fbrand = 'Bongacams';break; case($brand == 'cms'):$Fbrand = 'Cams';break; case($brand == 'ljs'):$Fbrand = 'Livejasmin';break; case($brand == 'iml'):$Fbrand = 'Imlive';break; } $pic = 'https://cdn1.camsrv.icu/'.$brand.'/'.strtolower($model[0]).'/'.strtolower($model).'.jpg'; $langDB = 'englishitalianfrenchgermanspanishfilipinochineseromanianrussianhebrewdutchgreekportuguesejapanesekoreanhungarianukrainian polishnorwegianswissturkishbulgarianczechdanish'; //////////////////////////// JSON CACHE //////////////// $stmJson = file_get_contents(dirname(__DIR__).'/php/raw/stm.xml'); /* SELECT CURRENT MODEL ROW IN DB */ $modrow = $libDB->fetch("select * from `$brand` where `nick` =?", [$model]); if (strpos($modrow['bio'],'Gender') && time()-strtotime($modrow['updated_at'])<86400){ $container = json_decode($modrow['bio'],true); }else{ $curlData = ' biopic live,offline '.$model.' '; $url='https://affiliate.streamate.com/SMLive/SMLResult.xml'; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl,CURLOPT_TIMEOUT,120); curl_setopt($curl,CURLOPT_HTTPHEADER,array ( 'Content-Type: text/xml; charset=utf-8', )); curl_setopt ($curl, CURLOPT_POST, 1); curl_setopt ($curl, CURLOPT_POSTFIELDS, $curlData); $result = curl_exec($curl); curl_close ($curl); $xml = simplexml_load_string ($result); $container = json_decode(json_encode($xml),true); //print_r($container); if(is_array($container['AvailablePerformers']['Performer'])){//if model in STM DB add it to local DB $libDB->exec("INSERT INTO `$brand` (`created_at`,`nick`,`bio`) VALUES (NOW(),?,?) ON DUPLICATE KEY UPDATE `bio` ='".json_encode($container)."', `created_at` = NOW()", [strtolower($model),json_encode($container)]); }else{// if model is not in STM DB and not in Local DB(or scrambled) show 404 page and delete local DB record $libDB->exec("delete from `$brand` where `nick` = '$model'")? 'OK' : $libDB->error; http_response_code(404); include('../404.php'); exit(); } } //end of else ///////////////////////////////// $container = $container['AvailablePerformers']['Performer']['@attributes']; $ethnicity = $container['Ethnicity']; $gender = $container['Gender']; $orient = $container['SexPref']; $eyeColor = $container['EyeColor']; $hairColor = $container['HairColor']; $weight = $container['Weight']; $zodiac = $container['Zodiac']; $height = $container['Height']; $bodyDec = $container['BodyMods']; $speciality = $container['Fetishes']; $breastSize = $container['Bust']; $age = $container['Age']; $location = ''; $langs = $container['Language']; $body = $container['Build']; $rating = $container['Rating']; //print_r($langs); //////////////////// RATING ////////////////////// if(isset($rating) && $rating <= 500 && $rating > 1){ $rating = round(($rating*100)/500,1); $negRating = round(100 - $rating,1).'% '; }else{unset($rating,$negRating);} if(isset($rating))$ratings = ' Model rating: '.$rating.'% '.$negRating.'';else $ratings = ''; //////////////////// LANGUAGES /////////////////// if(isset($langs)){ $langs = explode(',',$langs); foreach($langs as $lang){ $lang = strtolower($lang); $lang = ''; $allLangs .= $lang; }}else {$allLangs = 'N/A';} /////////////////////////////// GENDER ICON ////////////////// if($gender == 'f'||$gender == 'ff'){ $gIcon = ''; $gender = 'Female';} elseif($gender == 'm'||$gender == 'mm'){ $gIcon = '';$gender = 'Male';} elseif($gender == 'mf'||$gender == 'g'){ $gIcon = '';$gender = 'Couple';} elseif($gender == 'e'){ $gIcon = '';$gender = 'Trans';} ////////////////////// OFFLINE / ONLINE STATUS PIC AND TEXT //////////////////// if(!stripos($stmJson,'"'.$model.'"'))$status = 'offline'; if($status !== 'offline') $status = 'online'; if($status == 'offline'){ $profImg = '
'.ucfirst($model).'
'; $modText = 'Uh - Oh! Live show is over, sorry! '.ucfirst($model).' is offline right now. Newer miss a show again, hit the blue button below to subscribe for email notifications. Camconsole will send you an email the moment '.ucfirst($model).' comes online. It\'s that easy! '; }else{ $profImg = '
'.ucfirst($model).'
'; $modText = ''.ucfirst($model).' is performing live right now. Join the fun before it\'s over! If you like '.ucfirst($model).', never miss a show again - hit the blue button below to receive an instant email notification when the performer comes online. '; } /////////////////////////////// CHART CODE //////////////////////// /* SELECT CURRENT MODEL ROW IN DB */ $modrow = $libDB->fetch("select * from `$brand` where `nick` =?", [strtolower($model)]); if(!empty($modrow))$chartArr = json_decode($modrow['charts'],true); if (is_array($chartArr)){ foreach($chartArr as $v => $data){ $s[] = $v; $tr[] = ceil($data); } } ////////////////////////////////// unset($html,$container,$container2); ?> <?php echo ucfirst($model) ?>'s cam from <?php echo $Fbrand; ?> - Camconsole.com
  • Please share
  • Online now:

Enter Chat Notify When Online

If you like , never miss a show again - hit the blue button above to receive an instant email notification when the performer comes online.

Summary:

Age:
Gender:
Ethnicity:
Orientation:
Body:
Body mods:
Breast size:
Height:
Weight:
Speciality:
Zodiac sign:
Eye color:
Hair color:
I speak:
I'm from:
Home site:

Share the Joy:

Did you enjoy watching 's show? Help others find it - share this page:

Related Online Performers