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 if (checkRights(EDITOR_ROLE)) { 013 addFootLink('Edit','/sBlob.html?btn=ed&blob_id='.$rmSite->about_id); 014 } 015 $rmPg->target = 29; // General Ad. 016 quickPage('About '.$rmSite->name,(int) $rmSite->about_id); 017 addFootLink('Bargains',''); 018 displayFoot(); 019 ?>

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 August 29 2016 02:43:29.. This page has been viewed 97 Times.

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

blog ~ Resource Model ~ shopping