Community Color - Source Code

Source Code Viewer

This page lets you view source code from my server. The program uses a brute force code formatter to color code elements. NOTE: I wrote this program while trying to learn the vim text editor. This is not my usual coding style.

Use this select box to select a file.


View: About Site

An about page describes a web site or project.

Formatted Code

Below is the code all formatted with bright colors. The program links to files opened with include() and expands those opened with require(). Clicking on the require line should change visibility. You can view the database schema with schema viewer.

About Site

001 <?php 002 /** 003 * Every web site should have an about page to describe the site. 004 * About.html is an example of a data driven web page. 005 * 006 * I keep the contents for the About pages in a file called HTML Blob 007 * and store the id for the page in the Web_Site table. 008 * So, all this page does is grab the id and show the table. You can 009 * see the output here: 010 */ 011 include('/var/www/php/rmHead.php'); // links to 2 012 $about_id = 4805; 013 if (checkRights(EDITOR_ROLE)) { 014 addFootLink('Edit','/sBlob.html?btn=ed&blob_id='.$about_id); 015 } 016 $rmPg->target = 29; // General Ad. 017 quickPage('About '.$rmSite->name,(int) $about_id); 018 addFootLink('Bargains',''); 019 displayFoot(); 020 ?>

Use "view source" from your browser to grab the output. Feel free to link to this project and check out the Resource Model for information on PHP coding or my tumblr blog for picture of Arizona, Colorado or Utah.

File last modified at November 20 2017 16:41:17.. This page has been viewed 819 Times.

Record of Revisions
idRevbyDateMD5 Hash
Updated code for new web site.

blog ~ Resource Model ~ shopping