<?php
// NoteTaker
// Created and Coded by Bo Ahlberg
// Copyright 2008 by Bo Ahlberg ( bahlberg at mac.com )
// This code is licensed "AS-IS", No warranty is expressed or implied as to the
// suitability of this software for any purpose. Further, this code is licensed
// under the:
// CC-GNU LGPL
//
//
function getRelPathToRoot( $server )
{ $path = "";
$dir_level = substr_count( $server['PHP_SELF'], "/" );
for ( $k = 1; $k < $dir_level; $k++ ) $path.= "../";
return $path;
}
function poweredByIcon( $image, $alt, $path )
{ $cell = "";
$cell = "<td class=\"TextCells\"><IMG src=\"".$path."images/".$image."\" alt=\"".$alt."\"></td>\n";
return $cell;
}
$CClic1 = "<!-- Creative Commons License -->"
."<a href='http://creativecommons.org/licenses/LGPL/2.1/'>"
."<img alt='CC-GNU LGPL' border='0' src='images/CC-GNU-LGPL.gif' /></a>";
$CClic2 = "This software is licensed under the <a href='<span>http://creativecommons.org/licenses/LGPL/2.1/</span>'>CC-GNU <span>LGPL</span></a>."
."<!-- /Creative Commons License -->";
$GNULic = "<!-- "
."<rdf:RDF xmlns='http://web.resource.org/cc/'"
."xmlns:dc='http://purl.org/dc/elements/1.1/'"
."xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>"
."<Work rdf:about=''>"
."<license rdf:resource='http://creativecommons.org/licenses/LGPL/2.1/' />"
."<dc:type rdf:resource='http://purl.org/dc/dcmitype/Software' />"
."</Work>"
."<License rdf:about='http://creativecommons.org/licenses/LGPL/2.1/'>"
."<permits rdf:resource='http://web.resource.org/cc/Reproduction' />"
."<permits rdf:resource='http://web.resource.org/cc/Distribution' />"
."<requires rdf:resource='http://web.resource.org/cc/Notice' />"
."<permits rdf:resource='http://web.resource.org/cc/DerivativeWorks' />"
."<requires rdf:resource='http://web.resource.org/cc/ShareAlike' />"
."<requires rdf:resource='http://web.resource.org/cc/SourceCode' />"
."</License>"
."</rdf:RDF>"
."-->";
function ccLicense( )
{ global $CClic1,$CClic2, $GNULic;
$lic = makeRow( makeCell( 2, "NoteTaker is Copyright By Bo Ahlberg. " ) );
$lic.= makeRow( makeCell( 1, $CClic1.$GNULic ).makeCell( 1, $CClic2 ) );
return makeTable( 100, $lic );
}
function pagePoweredByFooter( )
{ $footer = "";
/* $footer.= makeRow( makeCell( 1, " Powered By:" )
.makeCell( 1, "Apache" )
.makeCell( 1, "php" )
.makeCell( 1, "mySQL" ) ); */
$footer.= makeRow( makeCell( 1, "Copyrights" )
.makeCell( 2, ccLicense() )
.makeCell( 2, "User management code written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)" ) ) ;
return makeTable( 100, $footer );
}
function styleSheet( $server )
{ $path = getRelPathToRoot( $server );
$style = "<!-- ".$path."\" -->\n";
$style.= "\t<link href=\"".$path."Basic.css\" rel=\"stylesheet\" media=\"screen\">\n";
return $style;
}
?>