Jump to content

Recommended Posts

I am having some issues. I am using zen cart and need to change

  define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' 
. zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '
</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart
</a>');

 

to

 

  define('FOOTER_TEXT_BODY', 'Copyright © 2005 ' <a href="' 
. zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '
</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">
Zen Cart</a>');

 

but when I do and save the file, the entire site goes blank.

 

Here is what I have

 

<?php
/**
* @package languageDefines
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: english.php 7440 2007-11-17 21:51:35Z drbyte $
*/

// FOLLOWING WERE moved to meta_tags.php
//define('TITLE', 'Zen Cart!');
//define('SITE_TAGLINE', 'The Art of E-commerce');
//define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping');
// END: moved to meta_tags.php

  define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="'
. zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '
</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">
Zen Cart</a>');

// look in your $PATH_LOCALE/locale directory for available locales..
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
  @setlocale(LC_TIME, 'en_US.ISO_8859-1');
  define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
  define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
  define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
  define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
  if (!function_exists('zen_date_raw')) {
    function zen_date_raw($date, $reverse = false) {
      if ($reverse) {
        return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
      } else {
        return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
      }
    }
  }

 

Thank you in advance for any help.

Link to comment
https://forums.phpfreaks.com/topic/191571-how-to-change-datey-to-2005/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.