Advertisement
6_2008-2009 Miscellaneous #202704

Template Driven Site

This code allows for the use of a template system on your website. You edit the code and specify the events that it should check and then you're all set. The code will take care of the document inclusions.

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
<?php
# ChrisF.net menu code. Edit at your discretion.
# No guarantees to the usefullness of this code is provided.
# http://whatever.com/?do=xxxxxxxx
# case "xxxxxxxx" compares the value of do and executes code 
# accordingly
# Simply adjust each line according to what value you wish to compare # to
# Paste this code where you want the inclusion to take place
switch ($do) {
	# If $do = the following
    case "programming":
	# Perform this command
    include "programming.inc";
	# Keep the next line or you'll regret it >:)
    break;
  case "home":
	include "/home/chrisf/html/news.txt";
    break;
  case "tetrinet":
	 include "tetrinet.inc";
    break;
  case "computers":
	include "computers.inc";
    break;
  case "links":
	include "links.inc";
    break;
  case "friends";
	include "friends.inc";
	break;
  default:
	include "/home/chrisf/html/news.txt";
	break;
} ?>
원본 댓글 (3)
Wayback Machine에서 복구됨