PHP Classes

File: includes/getVersions.php

Recommend this page to a friend!
  Classes of Barton Phillips   Simple Site Class   includes/getVersions.php   Download  
File: includes/getVersions.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple Site Class
Simple Site Class
Author: By
Last change:
Date: 19 days ago
Size: 519 bytes
 

Contents

Class file image Download
<?php
$_site
= require_once(getenv("SITELOADNAME"));
//$_site = require_once("/var/www/simple-site-class/includes/autoload.php");

$tbl = (require(SITECLASS_DIR . "/whatisloaded.php"))[0];

$S = new SiteClass($_site);
$S->title = "Get Versions";
$S->banner = "<h1>Get Versions</h1>";
$S->css = "td { padding: 0 10px; }";

$class = $S->__toString();

[
$top, $footer] = $S->getPageTopBottom();

foreach(
$ret as $k=>$v) {
 
$msg .= "<tr><td>$k</td><td>$v</td></tr>";
}

echo <<<EOF
$top
<hr>
$class
$tbl
<hr>
$footer
EOF;