Super Globals Plus for Zen Cart 1.3.9, 1.5.0 through 1.5.5

Version 1.6.2 by paulm, torvista and lat9

Current Support Thread at Zen Cart Forums: http://www.zen-cart.com/forum/showthread.php?p=429150

Copyright

Paul Mathot, Haarlem, the Netherlands, September 2007 (beterelektro.nl) :: lat9 (vinosdefrutastropicales.com), 2011-2015. Released under the Gnu General Public License (see included LICENSE.TXT)

What it does

Super Globals Plus is a developers' tool that makes evaluating variables easy. It produces a clear overview of the contents of strings, arrays, constants, objects, arrays within object, objects within arrays or whatever. Because the amount of information given by this tool was overwhelming to most new users of the Super Globals Plus script, version 1.24 and later only shows $_POST and $_SESSION by default.

Features:

Sample output

How to use it

After you have you have copied the required files and logged into your store's admin, you will see the Configuration->Superglobals selection. Within that selection are the values that you can use to control the plugin's display.

Installation

There are no core-file overwrites for the catalog area in this plugin, but there are core-file admin overwrites. You should always backup your store's database and files prior to making any changes.

  1. Log into your Zen Cart admin.
  2. Rename the "YOUR_ADMIN" folder to match your secret admin folder's name, then merge this plugin's three core-files with the files currently installed in your store.
  3. Rename the "YOUR_TEMPLATE" folder to match your current storefront template's name, then merge this plugin's one template-override file with the file currently installed in your store.
  4. Copy the plugin's files to your store's file-system:
    1. /includes/functions/extra_functions/superglobals.php
    2. /includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php
    3. /includes/templates/YOUR_TEMPLATE/css/stylesheet_superglobals.css
    4. /YOUR_ADMIN/index.php (Removed from this plugin, v1.6.2)
    5. /YOUR_ADMIN/includes/footer.php
    6. /YOUR_ADMIN/includes/stylesheet.css
    7. /YOUR_ADMIN/includes/stylesheet_superglobals.css
    8. /YOUR_ADMIN/includes/functions/extra_functions/superglobals.php
    9. /YOUR_ADMIN/includes/languages/english/extra_definitions/superglobals.php
  5. Click the "Admin Home" link. After you've clicked that link, the plugin's auto-installer will run and the Configuration->Superglobals will be available.

Admin Home-Page Installation

Starting with Zen Cart v1.5.5, the admin-console main-page display (/YOUR_ADMIN/index.php) changed significantly from previous versions. Rather than saddling this plugin with version-specific files to copy, if you want to have the benefits of the Super Globals display on that page, you'll need to perform a simple update to your copy of that file, adding the code block below to the very end of /YOUR_ADMIN/index.php — just before the </body> tag:

Un-install

Run either superglobals_remove.sql (for Zen Cart v1.5.0 or later) or superglobals_remove_139.sql (for Zen Cart v 1.3.9x) to remove the database entries, then delete the files you previously copied (replacing the admin core files that were overwritten).

Version History: