Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($title)){ /* This keeps the person from accessing this page directly. $title will only be set if it is included
- in index.php since that's where it is set at.
- This statement is basically saying if $title is set, then do everything between the two curly brackets "{}".
- Otherwise, skip on past the last bracket, which there's nothing beyond that and it'll display a blank page. */
- ?>
- <h1>Anime List - TV</h1>
- <center><b>#</b>
- <?php foreach(range('A','Z') as $letter): ?>
- <br /><br />
- <span style="text-align:center;text-weight:bold;"><a href="<?php echo '?pg='.$letter.'">'.$letter; ?></a></span>
- <?php if(is_file('tvlists/'.$letter.'.php')){
- echo '<br />';
- require_once('tvlists/'.$letter.'.php');
- }
- endforeach;
- } ?>
Add Comment
Please, Sign In to add comment