[Cs-content-commits] SF.net SVN: cs-content:[506] trunk/1.0
PHP Templating & Includes System
Brought to you by:
crazedsanity
From: <cra...@us...> - 2011-11-23 23:42:37
|
Revision: 506 http://cs-content.svn.sourceforge.net/cs-content/?rev=506&view=rev Author: crazedsanity Date: 2011-11-23 23:42:31 +0000 (Wed, 23 Nov 2011) Log Message: ----------- *** RELEASE 1.0.1 *** Summary of changes: * changes for CLI use * new local variables (e.g. $fullSectionArr) * fixes for PHP warnings/notices * remove deprecated PHP functions * __autoload hints to avoid slowness on sluggish disks with lots of classes * many more unit tests * script to (attempt to) automatically create __autoload hints file * minor cookie tweaks * tweaks for filesystem stuff (such as mkdir) * no empty indexes in local "sectionArr" variable/array Modified Paths: -------------- trunk/1.0/VERSION trunk/1.0/contentSystem.class.php trunk/1.0/cs_fileSystem.class.php trunk/1.0/sample_files/templates/menu.shared.tmpl Property Changed: ---------------- trunk/1.0/ trunk/1.0/cs_fileSystem.class.php trunk/1.0/cs_genericPage.class.php trunk/1.0/cs_globalFunctions.class.php trunk/1.0/cs_session.class.php Property changes on: trunk/1.0 ___________________________________________________________________ Added: svn:mergeinfo + /trunk/current:501-505 Modified: trunk/1.0/VERSION =================================================================== --- trunk/1.0/VERSION 2011-11-23 23:39:55 UTC (rev 505) +++ trunk/1.0/VERSION 2011-11-23 23:42:31 UTC (rev 506) @@ -1,5 +1,6 @@ ## Stores the current version of the cs-content system, and it's source. Please do NOT modify this file. -VERSION: 1.0-BETA1 +VERSION: 1.0.1 PROJECT: cs-content -$HeadURL$ \ No newline at end of file +$HeadURL$ + Modified: trunk/1.0/contentSystem.class.php =================================================================== --- trunk/1.0/contentSystem.class.php 2011-11-23 23:39:55 UTC (rev 505) +++ trunk/1.0/contentSystem.class.php 2011-11-23 23:42:31 UTC (rev 506) @@ -774,6 +774,9 @@ //make the "final section" available to scripts. $finalSection = $this->finalSection; $sectionArr = $this->sectionArr; + if(count($sectionArr) && $sectionArr[(count($sectionArr)-1)] == "") { + array_pop($sectionArr); + } $fullSectionArr = $this->fullSectionArr; array_unshift($sectionArr, $this->baseDir); $finalURL = $this->gfObj->string_from_array($sectionArr, NULL, '/'); Modified: trunk/1.0/cs_fileSystem.class.php =================================================================== --- trunk/1.0/cs_fileSystem.class.php 2011-11-23 23:39:55 UTC (rev 505) +++ trunk/1.0/cs_fileSystem.class.php 2011-11-23 23:42:31 UTC (rev 506) @@ -903,8 +903,8 @@ //======================================================================================== public function mkdir($name, $mode=0777) { - if(!is_numeric($mode) || strlen($mode) != 4) { - $mode = 0777; + if(isset($mode)) { + $mode = intval($mode); } $retval = NULL; if(!is_null($name) && strlen($name)) { Property changes on: trunk/1.0/cs_fileSystem.class.php ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: trunk/1.0/cs_genericPage.class.php ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: trunk/1.0/cs_globalFunctions.class.php ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: trunk/1.0/cs_session.class.php ___________________________________________________________________ Deleted: svn:mergeinfo - Modified: trunk/1.0/sample_files/templates/menu.shared.tmpl =================================================================== --- trunk/1.0/sample_files/templates/menu.shared.tmpl 2011-11-23 23:39:55 UTC (rev 505) +++ trunk/1.0/sample_files/templates/menu.shared.tmpl 2011-11-23 23:42:31 UTC (rev 506) @@ -1,7 +1,7 @@ <table> <!-- BEGIN menu_row-index --> <tr> - <td align="center" nowrap="nowrap" class="noul"> + <td align="center" nowrap="nowrap"> {lsel_content} <a href="/content/index.html">Main page</a> {rsel_content} <br> <br> @@ -9,7 +9,7 @@ </tr> <!-- END menu_row-index --><!-- BEGIN menu_row-member --> <tr> - <td align="center" nowrap="nowrap" class="noul"> + <td align="center" nowrap="nowrap"> {lsel_member} <a href="/content/member.html" title="Blogs & stuff... not just for members!">Members Area</a> {rsel_member} <br> @@ -18,7 +18,7 @@ </tr> <!-- END menu_row-member --><!-- BEGIN menu_row-slaughterstock --> <tr> - <td align="center" nowrap="nowrap" class="noul"> + <td align="center" nowrap="nowrap"> {lsel_slaughterstock} <a href="/slaughterstock/" title="The coolest annual party EVER (probably)">SlaughterStock</a> {rsel_slaughterstock} @@ -28,7 +28,7 @@ </tr> <!-- END menu_row-slaughterstock --><!-- BEGIN menu_row-devCorner --> <tr> - <td align="center" nowrap="nowrap" class="noul"> + <td align="center" nowrap="nowrap"> {lsel_devCorner} <a href="/content/devCorner.html">Developer's Corner</a> {rsel_devCorner} <br> @@ -37,7 +37,7 @@ </tr> <!-- END menu_row-devCorner --><!-- BEGIN menu_row-links --> <tr> - <td align="center" nowrap="nowrap" class="noul"> + <td align="center" nowrap="nowrap"> {lsel_links} <a href="/content/links.html">Links</a> {rsel_links} <br> <br> @@ -46,11 +46,11 @@ </tr> <!-- END menu_row-links --><!-- BEGIN menu_row-contact --> <tr> - <td align="center" nowrap="nowrap" class="noul"> + <td align="center" nowrap="nowrap"> {lsel_contact} <a href="/content/contact.html">Contact Us</a> {rsel_contact} <br> <br> </td> </tr> <!-- END menu_row-contact --> - </table> \ No newline at end of file + </table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |