Patches to OCOCv.2.0
Patches are classed into four groups:
Urgent -- necessary to correct major bug
Important -- brings code into standards compliance or
adds major functionality
Cool -- nice-to-have feature or change
Routine -- cleanup, "if you want to"-type changes
___________________________
1. IMPORTANT :: Increase the scope of the emergency
unlocking button on the CMS Content page:
[cms/content.php]
Find the code block (about line 180):
// Handle unlock all button
if(isset($_POST["unlockall"]) and $_POST["unlockall"] !=""
and ($_SESSION['FNAME'] == "site" and
$_SESSION['LNAME'] == "admin"))
{
unlockAll($content);
}
Change it to read:
// Handle unlock all button
if(isset($_POST["unlockall"]) and $_POST["unlockall"] !=""
and ($_SESSION['FNAME'] == "site" and
$_SESSION['LNAME'] == "admin"))
{
unlockAll($content);
unlockAll($menus);
unlockAll($submenus);
unlockAll($pages);
}
___________________________
2. IMPORTANT :: Add language translations to the footer
for all pages:
[inc/langs/us/footer.php]
Replace all the definitions with:
define('FSITE_BY', 'Site by');
define('FPOWERED_BY', 'Powered by');
define('FBROWSER_ISSUES', 'Browser Issues?');
define('FUPDATE', 'Update');
[content/footer.html]
Replace all the code with this:
<!-- F O O T E R
============================================ -->
<?php require 'inc/langs/'.LANG.'/footer.php';?>
<div id="foot">
<div class="foothr"></div><!-- gold horiz rule -->
<?php
if(eregi("pages/", $_SERVER['PHP_SELF']))
{
$depth = "../";
} else {
$depth = "";
}
?>
<!-- B O T T O M N A V Section
============================ -->
<div id="botnav">
<?php include 'inc/make_bot_navs.php';?>
<br />
<!-- CUSTOMIZE THIS INFO
This footer info is editable using the CMS.
Just log in and look for the article on page "footer".
-->
<?php
$sql = "SELECT * FROM $content
WHERE Page LIKE '%footer%'
LIMIT 1
";
show($sql,$db);
?>
<!--<p> </p>-->
<!-- END CUSTOMIZATION -->
</div><!--end botnav-->
<div id="valid"><!-- Code validates as of 2/10/05
6:00am -->
<?php echo FSITE_BY;?> <a
href="http://WatersGulchDigital.com/">WatersGulchDigital.com</a>
<?php echo FPOWERED_BY;?> <a
href="http://WatersGulchDigital.com/oscc/">OCOC</a>
<p>
<a href="<?php echo $depth;?>browserissues.html"><?php
echo FBROWSER_ISSUES;?></a>
</p>
<p>
<a href="http://validator.w3.org/check?uri=referer">
<img style="border:0;width:44px;height:16px"
src="<?php echo $depth;?>i/valid-xhtml"
alt="Valid XHTML 1.0!" height="16" width="44" /></a>
<a
href="javascript:void(document.location='http://jigsaw.w3.org/css-validator/validator?uri='+document.location)">
<img style="border:0;width:44px;height:16px"
src="<?php echo $depth;?>i/vcss"
alt="Valid CSS!" />
</a>
</p>
</div><!--end valid-->
<p><a href="<?php echo $depth;?>cms/" rel="external"
style="font-size:9px; color:#000;
text-decoration:none;"><?php echo FUPDATE;?></a></p>
<p> </p>
</div><!--end foot-->
___________________________
3. ROUTINE :: Delete unused files:
[inc/ directory]
Delete files with names begining with "z".
[cms/ directory]
Delete files with names begining with "z", or ending in
a string of digits, or that have "copy" as part of the
name.
___________________________
4. ROUTINE :: Correct doc title:
[docs/INSTALL]
Title should read "I N S T A L L I N G O C O C 2.0"