index.php 566 B

123456789101112131415161718192021222324
  1. <!DOCTYPE html>
  2. <!--
  3. Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
  4. Click nbfs://nbhost/SystemFileSystem/Templates/Project/PHP/PHPProject.php to edit this template
  5. -->
  6. <?PHP
  7. echo file_get_contents("Header.html");
  8. echo file_get_contents("Main.html");
  9. $articleNo = filter_input(INPUT_GET,'articleNo');
  10. if(!isset($articleNo)){
  11. echo file_get_contents("Article1.html");
  12. }elseif(is_numeric($articleNo)){
  13. echo file_get_contents("Article$articleNo.html");
  14. }
  15. echo file_get_contents("Footer.html");