//define reviewer rating variable.. $reviewer = array(85,90,65,75,75,85,90,85,90,85,75,85,80); // trk numbers $trk1 = array();$trk2 = array();$trk3 = array();$trk4 = array();$trk5 = array();$trk6 = array();$trk7 = array();$trk8 = array();$trk9 = array();$trk10 = array();$trk11 = array();$trk12 = array();$trk13 = array(); //define user ratings variable.. Open the datafile and read the content $filelocation = "comments/nicki-minaj-pink-friday.txt"; $newfile = fopen($filelocation,"r"); $content = fread($newfile, filesize($filelocation)); fclose($newfile); // Remove the slashes PHP automatically puts before special characters $content=stripslashes($content); // Put the entries into the array $lines $lines = explode("%",$content); // Define and fill the reverse array (showing the last entry first) // Display all the entries of the guestbook while(list($key) = each ($lines)){ // split the data lines into a user array - user[0] is the name, user[1] is the date, [2] is the message, [3] is album rating [4 and up] are the individual track ratings $user = explode("#",$lines[$key]); switch($user[4]){ case 0: $user[4] = $reviewer[0]; $right = $user[4]; array_push($trk1, $right); break; default: $right = $user[4]; array_push($trk1, $right); } switch($user[5]){ case 0: $user[5] = $reviewer[1]; $right = $user[5]; array_push($trk2, $right); break; default: $right = $user[5]; array_push($trk2, $right); } switch($user[6]){ case 0: $user[6] = $reviewer[2]; $right = $user[6]; array_push($trk3, $right); break; default: $right = $user[6]; array_push($trk3, $right); } switch($user[7]){ case 0: $user[7] = $reviewer[3]; $right = $user[7]; array_push($trk4, $right); break; default: $right = $user[7]; array_push($trk4, $right); } switch($user[8]){ case 0: $user[8] = $reviewer[4]; $right = $user[8]; array_push($trk5, $right); break; default: $right = $user[8]; array_push($trk5, $right); } switch($user[9]){ case 0: $user[9] = $reviewer[5]; $right = $user[9]; array_push($trk6, $right); break; default: $right = $user[9]; array_push($trk6, $right); } switch($user[10]){ case 0: $user[10] = $reviewer[6]; $right = $user[10]; array_push($trk7, $right); break; default: $right = $user[10]; array_push($trk7, $right); } switch($user[11]){ case 0: $user[11] = $reviewer[7]; $right = $user[11]; array_push($trk8, $right); break; default: $right = $user[11]; array_push($trk8, $right); } switch($user[12]){ case 0: $user[12] = $reviewer[8]; $right = $user[12]; array_push($trk9, $right); break; default: $right = $user[12]; array_push($trk9, $right); } switch($user[13]){ case 0: $user[13] = $reviewer[9]; $right = $user[13]; array_push($trk10, $right); break; default: $right = $user[13]; array_push($trk10, $right); } switch($user[14]){ case 0: $user[14] = $reviewer[10]; $right = $user[14]; array_push($trk11, $right); break; default: $right = $user[14]; array_push($trk11, $right); } switch($user[15]){ case 0: $user[15] = $reviewer[11]; $right = $user[15]; array_push($trk12, $right); break; default: $right = $user[15]; array_push($trk12, $right); } switch($user[16]){ case 0: $user[16] = $reviewer[10]; $right = $user[16]; array_push($trk13, $right); break; default: $right = $user[16]; array_push($trk13, $right); } } // end while loop //create track averages if($trk1[1]){ $avgtrk1 = array_sum($trk1) - $trk1[0]; $avgtrk2 = array_sum($trk2) - $trk2[0]; $avgtrk3 = array_sum($trk3) - $trk3[0]; $avgtrk4 = array_sum($trk4) - $trk4[0]; $avgtrk5 = array_sum($trk5) - $trk5[0]; $avgtrk6 = array_sum($trk6) - $trk6[0]; $avgtrk7 = array_sum($trk7) - $trk7[0]; $avgtrk8 = array_sum($trk8) - $trk8[0]; $avgtrk9 = array_sum($trk9) - $trk9[0]; $avgtrk10 = array_sum($trk10) - $trk10[0]; $avgtrk11 = array_sum($trk11) - $trk11[0]; $avgtrk10 = array_sum($trk12) - $trk12[0]; $avgtrk11 = array_sum($trk13) - $trk13[0]; $trkcount1 = count($trk1) - 1; $trkcount2 = count($trk2) - 1; $trkcount3 = count($trk3) - 1; $trkcount4 = count($trk4) - 1; $trkcount5 = count($trk5) - 1; $trkcount6 = count($trk6) - 1; $trkcount7 = count($trk7) - 1; $trkcount8 = count($trk8) - 1; $trkcount9 = count($trk9) - 1; $trkcount10 = count($trk10) - 1; $trkcount11 = count($trk11) - 1; $trkcount12 = count($trk12) - 1; $trkcount13 = count($trk13) - 1; } else{ $avgtrk1 = array_sum($trk1); $avgtrk2 = array_sum($trk2); $avgtrk3 = array_sum($trk3); $avgtrk4 = array_sum($trk4); $avgtrk5 = array_sum($trk5); $avgtrk6 = array_sum($trk6); $avgtrk7 = array_sum($trk7); $avgtrk8 = array_sum($trk8); $avgtrk9 = array_sum($trk9); $avgtrk10 = array_sum($trk10); $avgtrk11 = array_sum($trk11); $avgtrk12 = array_sum($trk12); $avgtrk13 = array_sum($trk13); $trkcount1 = 1; $trkcount2 = 1; $trkcount3 = 1; $trkcount4 = 1; $trkcount5 = 1; $trkcount6 = 1; $trkcount7 = 1; $trkcount8 = 1; $trkcount9 = 1; $trkcount10 = 1; $trkcount11 = 1; $trkcount12 = 1; $trkcount13 = 1; } $avgtrk1 = $avgtrk1 / $trkcount1; $avgtrk2 = $avgtrk2 / $trkcount2; $avgtrk3 = $avgtrk3 / $trkcount3; $avgtrk4 = $avgtrk4 / $trkcount4; $avgtrk5 = $avgtrk5 / $trkcount5; $avgtrk6 = $avgtrk6 / $trkcount6; $avgtrk7 = $avgtrk7 / $trkcount7; $avgtrk8 = $avgtrk8 / $trkcount8; $avgtrk9 = $avgtrk9 / $trkcount9; $avgtrk10 = $avgtrk10 / $trkcount10; $avgtrk11 = $avgtrk11 / $trkcount11; $avgtrk12 = $avgtrk12 / $trkcount12; $avgtrk13 = $avgtrk13 / $trkcount13; $realtrkavg = $avgtrk1+$avgtrk2+$avgtrk3+$avgtrk4+$avgtrk5+$avgtrk6+$avgtrk7+$avgtrk8+$avgtrk9+$avgtrk10+$avgtrk11+$avgtrk12+$avgtrk13; $realtrkavg = $realtrkavg/13; $realtrkavg = round($realtrkavg); // comment count function function howmany($counter, $lines){ // Remove the slashes PHP automatically puts before special characters // Put the entries into the array lines $counter = sizeof($lines)-1; return $counter; } // bar width 10 = 12px, 15 = 23px, 20 = 46px, 25 = 56px, 30 = 78px, 35 = 89px, 40 = 110px, 45 = 120px, 50 = 142px, 55 = 153px, 60 = 171px, 65 = 182px, 70 = 203px, 75 = 214px, 80 = 235px, 85 = 246px, 90 = 267px, 95 = 277px, 100 = 302px function getrating($revrating, $users){ //define reviewers rating bar width if($revrating <= 10) {$reviewerwidth = 12;} elseif($revrating <= 15) {$reviewerwidth = 25;} elseif($revrating <= 20) {$reviewerwidth = 46;} elseif($revrating <= 25) {$reviewerwidth = 58;} elseif($revrating <= 30) {$reviewerwidth = 78;} elseif($revrating <= 35) {$reviewerwidth = 91;} elseif($revrating <= 40) {$reviewerwidth = 110;} elseif($revrating <= 45) {$reviewerwidth = 122;} elseif($revrating <= 50) {$reviewerwidth = 142;} elseif($revrating <= 55) {$reviewerwidth = 155;} elseif($revrating <= 60) {$reviewerwidth = 171;} elseif($revrating <= 65) {$reviewerwidth = 184;} elseif($revrating <= 70) {$reviewerwidth = 192;} elseif($revrating <= 75) {$reviewerwidth = 205;} elseif($revrating <= 80) {$reviewerwidth = 224;} elseif($revrating <= 85) {$reviewerwidth = 237;} elseif($revrating <= 90) {$reviewerwidth = 254;} elseif($revrating <= 95) {$reviewerwidth = 268;} elseif($revrating <= 100) {$reviewerwidth = 291;} //define users rating bar width if($users <= 10) {$userwidth = 12;} elseif($users <= 15) {$userwidth = 22;} elseif($users <= 20) {$userwidth = 46;} elseif($users <= 25) {$userwidth = 58;} elseif($users <= 30) {$userwidth = 78;} elseif($users <= 35) {$userwidth = 91;} elseif($users <= 40) {$userwidth = 110;} elseif($users <= 45) {$userwidth = 122;} elseif($users <= 50) {$userwidth = 142;} elseif($users <= 55) {$userwidth = 155;} elseif($users <= 60) {$userwidth = 171;} elseif($users <= 65) {$userwidth = 184;} elseif($users <= 70) {$userwidth = 192;} elseif($users <= 75) {$userwidth = 205;} elseif($users <= 80) {$userwidth = 224;} elseif($users <= 85) {$userwidth = 237;} elseif($users <= 90) {$userwidth = 254;} elseif($users <= 95) {$userwidth = 268;} elseif($users <= 100) {$userwidth = 291;} // display ratings $rating = "
"; echo $rating; } function getrev_rating(){ $reviewer = array(85,90,65,75,75,85,90,85,90,85,75,85,80); $avgrevrating = array_sum($reviewer)/ count($reviewer); $avgrevrating = round($avgrevrating); echo $avgrevrating; } function getuser_rating($user){ echo $user; } ?>- reviewed by Danitha Jones
It's been a long time coming but Nicki Minaj has finally dropped her debut album, Pink Friday. Her funny-face antics and thick-bottom sexiness has been judged by brass critics who label it all as a gimmick. With all sound and no sight on Pink Friday, Minaj takes a shot at proving she deserves the hype.
The opening track "I'm The Best" gives listeners background on Onika Maraj, the transition and reason behind Nicki Minaj. The constant hate must have lit a fire under her ass because on "Roman's Revenge," Minaj puts her playful and amateur punchlines together to get her point across to the has-beens. The material on the third track "Did It On Em" is tremendously dumbed down. With a chorus boasting "Man, I just shitted on 'em," Minaj raps simple bars like:
"Just let them bums blow steam...radiator."
"She ain't a Nicki fan then the bitch deaf dumb/ you ain't my son, you my motherfucking step-son."
"If you could turn back time...share/You use to be here (hair) now you're gone...nair."
more..- reviewed by Danitha Jones
It's been a long time coming but Nicki Minaj has finally dropped her debut album, Pink Friday. Her funny-face antics and thick-bottom sexiness has been judged by brass critics who label it all as a gimmick. With all sound and no sight on Pink Friday, Minaj takes a shot at proving she deserves the hype.
The opening track "I'm The Best" gives listeners background on Onika Maraj, the transition and reason behind Nicki Minaj. The constant hate must have lit a fire under her ass because on "Roman's Revenge," Minaj puts her playful and amateur punchlines together to get her point across to the has-beens. The material on the third track "Did It On Em" is tremendously dumbed down. With a chorus boasting "Man, I just shitted on 'em," Minaj raps simple bars like:
"Just let them bums blow steam...radiator."
"She ain't a Nicki fan then the bitch deaf dumb/ you ain't my son, you my motherfucking step-son."
"If you could turn back time...share/You use to be here (hair) now you're gone...nair."
While fans don't expect rocket science to go into lyrics, they do deserve more than child's play. With such a hard beat and ill hook, Minaj could have come a lot harder. Beside this, the theme of being the most hated female MC continuously repeats itself. Pink Friday's major highlights appear later in the album on "Moment 4 Life" featuring Drake and "Blazin" featuring Kanye West.
Minaj surprisingly chose to switch gears early in the album from hip-hop to a sound closer to R&B and Pop. For her Barbz, Minaj lets her soft side show on "Right Thru Me," "Save Me," and her #1 billboard single, "Your Love." And with records like the closing track "Last Chance," it's still a strong possibility that Pink Friday will help Nicki Minaj accomplish the goal of becoming much bigger than hip-hop.
So until her next feature you can forget about getting any hardcore records from this Barbie. What did you actually expect? You knew she was playful and rocked pink.
-- Degrees -- | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 |
1. I'm The Best | ||||||||||
2. Roman's Revenge | ||||||||||
3. Did It On 'Em | ||||||||||
4. Right Thru Me | ||||||||||
5. Fly | ||||||||||
6. Save Me | ||||||||||
7. Moment 4 Life | ||||||||||
8. Check It Out | ||||||||||
9. Blazin | ||||||||||
10. Here I Am | ||||||||||
11. Dear Old Nicki | ||||||||||
12. Your Love | ||||||||||
13. Last Chance |
"; echo $user[2]; echo "