Guest User

Untitled

a guest
Jul 15th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <?php
  2. if(isset($title)){ /* This keeps the person from accessing this page directly. $title will only be set if it is included
  3. in index.php since that's where it is set at.
  4. This statement is basically saying if $title is set, then do everything between the two curly brackets "{}".
  5. Otherwise, skip on past the last bracket, which there's nothing beyond that and it'll display a blank page. */
  6.  
  7. ?>
  8. <h1>Anime List - TV</h1>
  9. <center><b>#</b>
  10. <?php foreach(range('A','Z') as $letter): ?>
  11. <br /><br />
  12. <span style="text-align:center;text-weight:bold;"><a href="<?php echo '?pg='.$letter.'">'.$letter; ?></a></span>
  13. <?php if(is_file('tvlists/'.$letter.'.php')){
  14. echo '<br />';
  15. require_once('tvlists/'.$letter.'.php');
  16.  
  17. }
  18. endforeach;
  19.  
  20. } ?>
Add Comment
Please, Sign In to add comment