Advertisement
3_2004-2005 Miscellaneous #148486

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

Podsumowanie 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.

Kod źródłowy
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;
} ?>
Oryginalne komentarze (3)
Odzyskane z Wayback Machine