';
}
else {
echo ''.$sco.': '.$titl.'
';
}
echo ''.$titl.' 
'.$sco.': '.$titl.' 
'.$titl.'
'.$sco.': '.$titl.'
'.$theirna.'Positive: '.$reviewmessaa.''.$reviewtexa.'';
}
else {
echo '
'.$theirna.'Negative: '.$reviewmessaa.''.$reviewtexa.'';
}
}
else if ($likorprof == '2') {
//timestampe with date
echo '
'.$theirna.'Commented on a post from '.$theirna.'';
}
else if ($likorprof == '3') {
//timestampe with date
//echo '
'.$theirna.' ';
}
else if ($likorprof == '4') {
//timestampe with date
//echo '
'.$theirna.' ';
}
else if ($likorprof == '5') {
//timestampe with date
//echo '
'.$theirna.' ';
}
else if ($likorprof == '6') {
//timestampe with date
//echo '
'.$theirna.' ';
}
else {
if ($reviewfeeling == '0') {
echo '
'.$theirna.'Positive: '.$reviewmessaa.''.$reviewtexa.'';
}
else {
echo '
'.$theirna.'Negative: '.$reviewmessaa.''.$reviewtexa.'';
}
}
}
}
*/
for ($bf = 0; $bf <= 10; $bf++) {
if ($bf < count($xmlDatarzzzho->zzzho)) {
$categ = $xmlDatarzzzho->zzzho[$bf]->attributes()->categ;
$likrevcom = $xmlDatarzzzho->zzzho[$bf]->attributes()->feelingi;
$eventsnam = $xmlDatarzzzho->zzzho[$bf]->attributes()->eventsnam;
$timestampc = $xmlDatarzzzho->zzzho[$bf]->attributes()->mont;
$timestampb = $xmlDatarzzzho->zzzho[$bf]->attributes()->da;
$timestampd = $xmlDatarzzzho->zzzho[$bf]->attributes()->yea;
$texm = $xmlDatarzzzho->zzzho[$bf]->attributes()->eventtex;
$au = $xmlDatarzzzho->zzzho[$bf]->attributes()->au;
$groupsnam = $xmlDatarzzzho->zzzho[$bf]->attributes()->groupsnam;
$repo = $xmlDatarzzzho->zzzho[$bf]->attributes()->repo;
$scoreaddtot = $xmlDatarzzzho->zzzho[$bf]->attributes()->scoreaddtot;
$scorerawuser = $xmlDatarzzzho->zzzho[$bf]->attributes()->scoreadd;
$scorerawtotal = $xmlDatarzzzho->zzzho[$bf]->attributes()->scoreaddb;
$creatorphoz = $xmlDatarzzzho->zzzho[$bf]->attributes()->creatorpho;
$mynamez = $xmlDatarzzzho->zzzho[$bf]->attributes()->myname;
$offsi = $xmlDatarzzzho->zzzho[$bf]->attributes()->offsi;
$categmi = '';
if ($repo == '3') {
$categmi = ' Review';
}
else if ($repo == '4') {
$categmi = ' Post';
}
else if ($repo == '5') {
$categmi = ' Sponsored Review';
}
else if ($repo == '6') {
$categmi = ' Sponsored Post';
}
else {
$categmi = ' Post';
}
$timestampe = '';
if ($timestampc == '1') {
$timestampe = 'January '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '2') {
$timestampe = 'February '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '3') {
$timestampe = 'March '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '4') {
$timestampe = 'April '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '5') {
$timestampe = 'May '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '6') {
$timestampe = 'June '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '7') {
$timestampe = 'July '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '8') {
$timestampe = 'August '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '9') {
$timestampe = 'September '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '10') {
$timestampe = 'October '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '11') {
$timestampe = 'November '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '12') {
$timestampe = 'December '.$timestampb.', '.$timestampd.'';
}
else {
}
if ($bf < 1) {
}
else if ($bf > 0) {
echo '
Positive'.$categmi.' by '.$groupauth.': '.$eventsnama.''.$texma.'';
}
else {
echo '
Positive'.$categmi.' by '.$groupauth.': '.$eventsnama.' ('.$scorerawuser.'/'.$scorerawtotal.')'.$texma.'';
}
}
else {
if ($scorerawtotal == '0') {
echo '
Negative'.$categmi.' by '.$groupauth.': '.$eventsnama.''.$texma.'';
}
else {
echo '
Negative'.$categmi.' by '.$groupauth.': '.$eventsnama.' ('.$scorerawuser.'/'.$scorerawtotal.')'.$texma.'';
}
}
if (strlen($offsi)>0) {
if (strpos($offsi, 'https://') !== false) {
echo ''.htmlentities($offsi).'';
}
else {
echo ''.htmlentities($offsi).'';
}
}
}}
}
}
}
$datazzzho = NULL;
$urlrzzzho = '';
if ($fer == 0|| $fer == 'null'|| $fer == '(null)'|| $fer == 'undefined'|| $fer == '' || $fer == NULL ) {
//not logged in so cannot show mature
$urlrzzzho = 'https://www.criticwave.com/criticwave/gettopreviews';
}
else {
$urlrzzzho = 'https://www.criticwave.com/criticwave/gettopreviewsmature';
}
$chzzzho = curl_init();
curl_setopt($chzzzho, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($chzzzho, CURLOPT_URL, $urlrzzzho); // get the url contents
$datazzzho = curl_exec($chzzzho); // execute curl request
curl_close($chzzzho);
$xmlDatarzzzho = simplexml_load_string($datazzzho);
if (count($xmlDatarzzzho->zzzho) == 0) {
echo '';
}
else {
echo '';
echo '';
$addtonewrev = 'https://www.criticwave.com/add';
echo '';
echo ' Top Recent Reviews';
for ($a = 0; $a <= 10; $a++) {
if ($a < count($xmlDatarzzzho->zzzho)) {
$categ = $xmlDatarzzzho->zzzho[$a]->attributes()->categ;
$likrevcom = $xmlDatarzzzho->zzzho[$a]->attributes()->feelingi;
$eventsnam = $xmlDatarzzzho->zzzho[$a]->attributes()->eventsnam;
$timestampc = $xmlDatarzzzho->zzzho[$a]->attributes()->mont;
$timestampb = $xmlDatarzzzho->zzzho[$a]->attributes()->da;
$timestampd = $xmlDatarzzzho->zzzho[$a]->attributes()->yea;
$texm = $xmlDatarzzzho->zzzho[$a]->attributes()->eventtex;
$au = $xmlDatarzzzho->zzzho[$a]->attributes()->au;
$groupsnam = $xmlDatarzzzho->zzzho[$a]->attributes()->groupsnam;
$creatorphoz = $xmlDatarzzzho->zzzho[$a]->attributes()->creatorpho;
$mynamez = $xmlDatarzzzho->zzzho[$a]->attributes()->myname;
$repo = $xmlDatarzzzho->zzzho[$a]->attributes()->repo;
$offsi = $xmlDatarzzzho->zzzho[$a]->attributes()->offsi;
$categmi = '';
if ($repo == '3') {
$categmi = ' Review';
}
else if ($repo == '4') {
$categmi = ' Post';
}
else if ($repo == '5') {
$categmi = ' Sponsored Review';
}
else if ($repo == '6') {
$categmi = ' Sponsored Post';
}
else {
$categmi = ' Post';
}
$timestampe = '';
if ($timestampc == '1') {
$timestampe = 'January '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '2') {
$timestampe = 'February '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '3') {
$timestampe = 'March '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '4') {
$timestampe = 'April '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '5') {
$timestampe = 'May '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '6') {
$timestampe = 'June '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '7') {
$timestampe = 'July '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '8') {
$timestampe = 'August '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '9') {
$timestampe = 'September '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '10') {
$timestampe = 'October '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '11') {
$timestampe = 'November '.$timestampb.', '.$timestampd.'';
}
else if ($timestampc == '12') {
$timestampe = 'December '.$timestampb.', '.$timestampd.'';
}
else {
}
if ($a < 1) {
}
else if ($a > 0) {
echo '
Positive'.$categmi.' by '.$groupauth.': '.$eventsnama.''.$texma.'';
}
else {
echo '
Negative'.$categmi.' by '.$groupauth.': '.$eventsnama.''.$texma.'';
}
if (strlen($offsi)>0) {
if (strpos($offsi, 'https://') !== false) {
echo ''.htmlentities($offsi).'';
}
else {
echo ''.htmlentities($offsi).'';
}
}
}
}
}
echo '';
echo '