ANIMECRAVE ENTERTAINMENT PORTAL
 |
Below you will find one of the webs largest selection of online anime entertainment. Anime Crave offers thousands of s">anime episodes, hundreds of anime series and ">anime movies and countless ">anime music/mp3s to suit your anime cravings.
Plus now if you cant find what you want or like then request it and we will do everything in our power to get it on the site and ready for your enjoyment! As always thank you for your continued support and for choosing anime crave!
|
$banner_list = array(); $file_list = array(); $file_type = array();
$x = $Db->query("SELECT * FROM anime_banners WHERE active='1' ORDER BY date DESC LIMIT 10");
while($mem = mysql_fetch_array($x)) {
$file_list[] = $mem['file_name'];
$banner_list[] = $mem['anime_name'];
$file_type[] = $mem['type'];
$e++;
}
$banner_number= count($file_list);
$banner_number = $banner_number - 1;
$rand_banner_count = file_get_contents ( "/home/ac/public_html/_content/images/anime_banners/number.txt" );
if($rand_banner_count > $banner_number) { $rand_banner_count = 0;}
$banner_image = $file_list[$rand_banner_count];
$anime_name = $banner_list[$rand_banner_count];
$anime_name = str_replace(" ", "_", "$anime_name");
$files_type = $file_type[$rand_banner_count];
if ($files_type == 1) { $url_insert = "s"; }
if ($files_type == 2) { $url_insert = "o"; }
if ($files_type == 3) { $url_insert = "m"; }
if ($files_type == 4) { $url_insert = "l"; }
if ($files_type == 5) { $url_insert = "f"; }
echo " ";
$banner_add = 1;
if ( $rand_banner_count == $banner_number ) {
$rand_banner_add = 0; } else { $rand_banner_add = $rand_banner_count + $banner_add; }
( $fp = fopen ( "/home/ac/public_html/_content/images/anime_banners/number.txt", "w" ) ) or die ( "couldn't open" );
fwrite ( $fp, "$rand_banner_add" ); fclose ( $fp );
?>
|
|