[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/admin/ -> developers_tool_kit.php (source)

   1  <?php
   2  //

   3  // +----------------------------------------------------------------------+

   4  // |zen-cart Open Source E-commerce                                       |

   5  // +----------------------------------------------------------------------+

   6  // | Copyright (c) 2006 The zen-cart developers                           |

   7  // |                                                                      |

   8  // | http://www.zen-cart.com/index.php                                    |

   9  // |                                                                      |

  10  // | Portions Copyright (c) 2003 osCommerce                               |

  11  // +----------------------------------------------------------------------+

  12  // | This source file is subject to version 2.0 of the GPL license,       |

  13  // | that is bundled with this package in the file LICENSE, and is        |

  14  // | available through the world-wide-web at the following url:           |

  15  // | http://www.zen-cart.com/license/2_0.txt.                             |

  16  // | If you did not receive a copy of the zen-cart license and are unable |

  17  // | to obtain it through the world-wide-web, please send a note to       |

  18  // | license@zen-cart.com so we can mail you a copy immediately.          |

  19  // +----------------------------------------------------------------------+

  20  //  $Id: developers_tool_kit.php 4732 2006-10-12 20:31:53Z drbyte $

  21  //

  22  
  23    require ('includes/application_top.php');
  24  
  25    require (DIR_WS_CLASSES . 'currencies.php');
  26    $currencies = new currencies();
  27  
  28    $languages = zen_get_languages();
  29  
  30    $configuration_key_lookup = zen_db_prepare_input($_POST['configuration_key']);
  31  
  32    function getDirList ($dirName) {
  33      global $directory_array, $sub_dir_files;
  34  // add directory name to the sub_dir_files list;

  35      $sub_dir_files[] = $dirName;
  36      $d = @dir($dirName);
  37      $file_extension = '.php';
  38      if ($d) {
  39        while($entry = $d->read()) {
  40          if ($entry != "." && $entry != "..") {
  41            if (is_dir($dirName."/".$entry)) {
  42              if ($entry == 'CVS') {
  43              // skip

  44              } else {
  45                getDirList($dirName."/".$entry);
  46              }
  47            } else {
  48              if (substr($entry, strrpos($entry, '.')) == $file_extension) {
  49  //echo 'I AM HERE 2 ' . $dirName."/".$entry . '<br>';

  50  //            $directory_array[] .= $dirName."/".$entry;

  51              } else {
  52  //echo 'I AM HERE 3 ' . $dirName."/".$entry . '<br>';

  53              }
  54            }
  55          }
  56        }
  57        $d->close();
  58      }
  59  
  60      return $sub_dir_files;
  61    }
  62  
  63    function zen_display_files($include_root = false) {
  64      global $check_directory, $found, $configuration_key_lookup;
  65      for ($i = 0, $n = sizeof($check_directory); $i < $n; $i++) {
  66  //echo 'I SEE ' . $check_directory[$i] . '<br>';

  67  
  68        $dir_check = $check_directory[$i];
  69        $file_extension = '.php';
  70  
  71        if ($dir = @dir($dir_check)) {
  72          while ($file = $dir->read()) {
  73            if (!is_dir($dir_check . $file)) {
  74              if (substr($file, strrpos($file, '.')) == $file_extension) {
  75                $directory_array[] = $dir_check . $file;
  76              }
  77            }
  78          }
  79          if (sizeof($directory_array)) {
  80            sort($directory_array);
  81          }
  82          $dir->close();
  83        }
  84      }
  85  
  86      if ($include_root == true) {
  87        $original_array = $directory_array;
  88        $root_array = array();
  89        $root_array[] = DIR_FS_CATALOG . 'index.php';
  90        $root_array[] = DIR_FS_CATALOG . 'ipn_main_handler.php';
  91        $root_array[] = DIR_FS_CATALOG . 'ipn_test.php';
  92        $root_array[] = DIR_FS_CATALOG . 'ipn_test_return.php';
  93        $root_array[] = DIR_FS_CATALOG . 'nddbc.html';
  94        $root_array[] = DIR_FS_CATALOG . 'page_not_found.php';
  95        $new_array = array_merge($root_array, $original_array);
  96        $directory_array = $new_array;
  97      }
  98  
  99  // show path and filename

 100      echo '<table border="0" width="100%" cellspacing="2" cellpadding="1" align="center">' . "\n";
 101      echo '<tr><td>&nbsp;</td></tr>';
 102      echo '<tr class="infoBoxContent"><td class="dataTableHeadingContent">' . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . TEXT_INFO_SEARCHING . sizeof($directory_array) . TEXT_INFO_FILES_FOR . $configuration_key_lookup . '</td></tr></table>' . "\n\n";
 103      echo '<tr><td>&nbsp;</td></tr>';
 104  
 105  // check all files located

 106      $file_cnt = 0;
 107      $cnt_found=0;
 108      for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) {
 109      // build file content of matching lines

 110        $file_cnt++;
 111        $file = $directory_array[$i];
 112  //echo 'I SEE ' . $directory_array[$i] . '<br>';

 113        // clean path name

 114        while (strstr($file, '//')) $file = str_replace('//', '/', $file);
 115  
 116        $show_file = '';
 117        if (file_exists($file)) {
 118          $show_file .= "\n" . '<table border="2" width="95%" cellspacing="2" cellpadding="1" align="center"><tr><td class="main">' . "\n";
 119          $show_file .= '<tr class="infoBoxContent"><td class="dataTableHeadingContent">';
 120          $show_file .= '<strong>' . $file . '</strong>';
 121          $show_file .= '</td></tr>';
 122          $show_file .= '<tr><td class="main">';
 123  
 124          // put file into an array to be scanned

 125          $lines = file($file);
 126          $found_line = 'false';
 127          // loop through the array, show line and line numbers

 128          foreach ($lines as $line_num => $line) {
 129            $cnt_lines++;
 130            if (strstr(strtoupper($line), strtoupper($configuration_key_lookup))) {
 131              $found_line= 'true';
 132              $found = 'true';
 133              $cnt_found++;
 134              $show_file .= "<br />Line #<strong>{$line_num}</strong> : " ;
 135              //prevent db pwd from being displayed, for sake of security

 136              $show_file .= (substr_count($line,"'DB_SERVER_PASSWORD'")) ? '***HIDDEN***' : htmlspecialchars($line);
 137              $show_file .= "<br />\n";
 138            } else {
 139              if ($cnt_lines >= 5) {
 140  //            $show_file .= ' .';

 141                $cnt_lines=0;
 142              }
 143            }
 144          }
 145        }
 146        $show_file .= '</td></tr></table>' . "\n";
 147  
 148        // if there was a match, show lines

 149        if ($found_line == 'true') {
 150          echo $show_file . '<table><tr><td>&nbsp;</td></tr></table>';
 151        } // show file

 152      }
 153      echo '<table border="0" width="100%" cellspacing="2" cellpadding="1" align="center"><tr class="infoBoxContent"><td class="dataTableHeadingContent">' . TEXT_INFO_MATCHES_FOUND . $cnt_found . '</td></tr></table>';
 154    } // zen_display_files

 155  
 156  
 157    $products_filter = (isset($_GET['products_filter']) ? $_GET['products_filter'] : $products_filter);
 158  
 159    $action = (isset($_GET['action']) ? $_GET['action'] : '');
 160  
 161    // don't do any 'action' if clicked on the Check for Updates button

 162    if (isset($_GET['vcheck']) && $_GET['vcheck']=='yes') $action = '';
 163  
 164    $current_category_id = (isset($_GET['current_category_id']) ? $_GET['current_category_id'] : $current_category_id);
 165    $found= 'true';
 166  
 167    switch($action) {
 168      case ('locate_configuration'):
 169        if ($configuration_key_lookup == '') {
 170          $messageStack->add_session(ERROR_CONFIGURATION_KEY_NOT_ENTERED, 'caution');
 171          zen_redirect(zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT));
 172        }
 173        $found = 'false';
 174        $zv_files_group = $_POST['zv_files'];
 175  
 176        $check_configure = $db->Execute("select * from " . TABLE_CONFIGURATION . " where configuration_key='" . $_POST['configuration_key'] . "'");
 177        if ($check_configure->RecordCount() < 1) {
 178          $check_configure = $db->Execute("select * from " . TABLE_PRODUCT_TYPE_LAYOUT . " where configuration_key='" . $_POST['configuration_key'] . "'");
 179          if ($check_configure->RecordCount() < 1) {
 180            // build filenames to search

 181            switch ($zv_files_group) {
 182              case (0): // none
 183                $filename_listing = '';
 184                break;
 185              case (1): // all english.php files
 186                $check_directory = array();
 187                $check_directory[] = DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/';
 188                $check_directory[] = DIR_FS_CATALOG_LANGUAGES . $template_dir . '/' . $_SESSION['language'] . '/';
 189                $check_directory[] = DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir . '/';
 190                $check_directory[] = DIR_FS_CATALOG_LANGUAGES . $_SESSION['language']. '/extra_definitions/';
 191                $check_directory[] = DIR_FS_CATALOG_LANGUAGES . $_SESSION['language']. '/extra_definitions/' . $template_dir . '/';
 192                $check_directory[] = DIR_FS_CATALOG_LANGUAGES . $_SESSION['language']. '/modules/payment/';
 193                $check_directory[] = DIR_FS_CATALOG_LANGUAGES . $_SESSION['language']. '/modules/shipping/';
 194                $check_directory[] = DIR_FS_CATALOG_LANGUAGES . $_SESSION['language']. '/modules/order_total/';
 195                $check_directory[] = DIR_FS_CATALOG_LANGUAGES . $_SESSION['language']. '/modules/product_types/';
 196                $check_directory[] = DIR_FS_ADMIN . DIR_WS_LANGUAGES . $_SESSION['language'] . '/';
 197                $check_directory[] = DIR_FS_ADMIN . DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/newsletters/';
 198                break;
 199              case (2): // all catalog /language/*.php

 200                $check_directory = array();

 201                $check_directory[] = DIR_FS_CATALOG_LANGUAGES;

 202                break;

 203              case (3): // all catalog /language/english/*.php

 204                $check_directory = array();

 205                $check_directory[] = DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/';

 206                break;

 207              case (4): // all admin /language/*.php

 208                $check_directory = array();

 209                $check_directory[] = DIR_FS_ADMIN . DIR_WS_LANGUAGES;

 210                break;

 211              case (5): // all admin /language/english/*.php

 212                // set directories and files names

 213                $check_directory = array();

 214                $check_directory[] = DIR_FS_ADMIN . DIR_WS_LANGUAGES . $_SESSION['language'] . '/';

 215                break;

 216              } // eof: switch

 217  

 218                // Check for new databases and filename in extra_datafiles directory

 219  

 220                zen_display_files();

 221  

 222          } else {

 223            $show_products_type_layout = 'true';

 224            $show_configuration_info = 'true';

 225            $found = 'true';

 226          }

 227        } else {

 228          $show_products_type_layout = 'false';

 229          $show_configuration_info = 'true';

 230          $found = 'true';

 231        }

 232  

 233        break;

 234  

 235      case ('locate_function'):

 236        if ($configuration_key_lookup == '') {

 237          $messageStack->add_session(ERROR_CONFIGURATION_KEY_NOT_ENTERED, 'caution');

 238          zen_redirect(zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT));

 239        }

 240        $found = 'false';

 241        $zv_files_group = $_POST['zv_files'];

 242  

 243            // build filenames to search

 244            switch ($zv_files_group) {

 245              case (0): // none

 246                $filename_listing = '';

 247                break;

 248              case (1): // all admin/catalog function files

 249                $check_directory = array();

 250                $check_directory[] = DIR_FS_CATALOG . DIR_WS_FUNCTIONS;

 251                $check_directory[] = DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'extra_functions/';

 252                $check_directory[] = DIR_FS_ADMIN . DIR_WS_FUNCTIONS;

 253                $check_directory[] = DIR_FS_ADMIN . DIR_WS_FUNCTIONS . 'extra_functions/';

 254                break;

 255              case (2): // all catalog function files

 256                $check_directory = array();

 257                $check_directory[] = DIR_FS_CATALOG . DIR_WS_FUNCTIONS;

 258                $check_directory[] = DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'extra_functions/';

 259                break;

 260              case (3): // all admin function files

 261                $check_directory = array();

 262                $check_directory[] = DIR_FS_ADMIN . DIR_WS_FUNCTIONS;

 263                $check_directory[] = DIR_FS_ADMIN . DIR_WS_FUNCTIONS . 'extra_functions/';

 264                break;

 265              } // eof: switch

 266  

 267                // Check for new databases and filename in extra_datafiles directory

 268  

 269                zen_display_files();

 270  

 271        break;

 272  

 273      case ('locate_class'):

 274        if ($configuration_key_lookup == '') {

 275          $messageStack->add_session(ERROR_CONFIGURATION_KEY_NOT_ENTERED, 'caution');

 276          zen_redirect(zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT));

 277        }

 278        $found = 'false';

 279        $zv_files_group = $_POST['zv_files'];

 280  

 281            // build filenames to search

 282            switch ($zv_files_group) {

 283              case (0): // none

 284                $filename_listing = '';

 285                break;

 286              case (1): // all admin/catalog classes files

 287                $check_directory = array();

 288                $check_directory[] = DIR_FS_CATALOG . DIR_WS_CLASSES;

 289                $check_directory[] = DIR_FS_ADMIN . DIR_WS_CLASSES;

 290                break;

 291              case (2): // all catalog classes files

 292                $check_directory = array();

 293                $check_directory[] = DIR_FS_CATALOG . DIR_WS_CLASSES;

 294                break;

 295              case (3): // all admin function files

 296                $check_directory = array();

 297                $check_directory[] = DIR_FS_ADMIN . DIR_WS_CLASSES;

 298                break;

 299              } // eof: switch

 300  

 301                // Check for new databases and filename in extra_datafiles directory

 302  

 303                zen_display_files();

 304  

 305        break;

 306  

 307      case ('locate_template'):

 308        if ($configuration_key_lookup == '') {

 309          $messageStack->add_session(ERROR_CONFIGURATION_KEY_NOT_ENTERED, 'caution');

 310          zen_redirect(zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT));

 311        }

 312        $found = 'false';

 313        $zv_files_group = $_POST['zv_files'];

 314  

 315            // build filenames to search

 316            switch ($zv_files_group) {

 317              case (0): // none

 318                $filename_listing = '';

 319                break;

 320              case (1): // all template files

 321                $check_directory = array();

 322                $check_directory[] = DIR_FS_CATALOG_TEMPLATES . 'template_default/templates' . '/';

 323                $check_directory[] = DIR_FS_CATALOG_TEMPLATES . 'template_default/sideboxes' . '/';

 324                $check_directory[] = DIR_FS_CATALOG_MODULES;

 325                $check_directory[] = DIR_FS_CATALOG_MODULES . 'sideboxes/';

 326  

 327                $check_directory[] = DIR_FS_CATALOG_TEMPLATES . $template_dir . '/templates' . '/';

 328                $check_directory[] = DIR_FS_CATALOG_TEMPLATES . $template_dir . '/sideboxes' . '/';

 329  

 330                $sub_dir_files = array();

 331                getDirList(DIR_FS_CATALOG_MODULES . 'pages');

 332  

 333                $check_dir = array_merge($check_directory, $sub_dir_files);

 334                for ($i = 0, $n = sizeof($check_dir); $i < $n; $i++) {

 335                  $check_directory[] = $check_dir[$i] . '/';

 336                }

 337  

 338                break;

 339              case (2): // all /templates files

 340                $check_directory = array();

 341                $check_directory[] = DIR_FS_CATALOG_TEMPLATES . 'template_default/templates' . '/';

 342                $check_directory[] = DIR_FS_CATALOG_TEMPLATES . $template_dir . '/templates' . '/';

 343                break;

 344              case (3): // all sideboxes files

 345                $check_directory = array();

 346                $check_directory[] = DIR_FS_CATALOG_TEMPLATES . 'template_default/sideboxes' . '/';

 347                $check_directory[] = DIR_FS_CATALOG_MODULES . 'sideboxes/';

 348                $check_directory[] = DIR_FS_CATALOG_TEMPLATES . $template_dir . '/sideboxes' . '/';

 349                break;

 350              case (4): // all /pages files

 351                $check_directory = array();

 352                //$check_directory[] = DIR_FS_CATALOG_MODULES . 'pages/';

 353                $sub_dir_files = array();

 354                getDirList(DIR_FS_CATALOG_MODULES . 'pages');

 355  

 356                $check_dir = array_merge($check_directory, $sub_dir_files);

 357                for ($i = 0, $n = sizeof($check_dir); $i < $n; $i++) {

 358                  $check_directory[] = $check_dir[$i] . '/';

 359                }

 360  

 361                break;

 362              } // eof: switch

 363  

 364                // Check for new databases and filename in extra_datafiles directory

 365  

 366                zen_display_files();

 367  

 368        break;

 369  

 370  

 371  /// all files

 372      case ('locate_all_files'):

 373        $zv_check_root = false;

 374        if ($configuration_key_lookup == '') {

 375          $messageStack->add_session(ERROR_CONFIGURATION_KEY_NOT_ENTERED, 'caution');

 376          zen_redirect(zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT));

 377        }

 378        $found = 'false';

 379        $zv_files_group = $_POST['zv_files'];

 380  //echo 'Who am I template ' . $template_dir . ' sess lang ' . $_SESSION['language'];

 381        switch ($zv_files_group) {

 382          case (0): // none

 383            $filename_listing = '';

 384            break;

 385          case (1): // all

 386            $zv_check_root = true;

 387            $filename_listing = '';

 388  

 389            $check_directory = array();

 390  

 391            $sub_dir_files = array();

 392            getDirList(DIR_FS_CATALOG . DIR_WS_INCLUDES);

 393            $sub_dir_files_catalog = $sub_dir_files;

 394  

 395            $sub_dir_files = array();

 396            getDirList(DIR_FS_ADMIN);

 397            $sub_dir_files_admin= $sub_dir_files;

 398  

 399            $check_dir = array_merge($sub_dir_files_catalog, $sub_dir_files_admin);

 400            for ($i = 0, $n = sizeof($check_dir); $i < $n; $i++) {

 401              $check_directory[] = $check_dir[$i] . '/';

 402            }

 403            break;

 404  

 405          case (2): // all catalog

 406            $zv_check_root = true;

 407            $filename_listing = '';

 408  

 409            $check_directory = array();

 410  

 411            $sub_dir_files = array();

 412            getDirList(DIR_FS_CATALOG . DIR_WS_INCLUDES);

 413            $sub_dir_files_catalog = $sub_dir_files;

 414  

 415            $check_dir = array_merge($sub_dir_files_catalog);

 416            for ($i = 0, $n = sizeof($check_dir); $i < $n; $i++) {

 417              $zv_add_dir= str_replace('//', '/', $check_dir[$i] . '/');

 418              if (strstr($zv_add_dir, DIR_WS_ADMIN) == '') {

 419                $check_directory[] = $zv_add_dir;

 420              }

 421            }

 422            break;

 423  

 424          case (3): // all admin

 425            $zv_check_root = false;

 426            $filename_listing = '';

 427  

 428            $check_directory = array();

 429  

 430            $sub_dir_files = array();

 431            getDirList(DIR_FS_ADMIN);

 432            $sub_dir_files_admin = $sub_dir_files;

 433  

 434            $check_dir = array_merge($sub_dir_files_admin);

 435            for ($i = 0, $n = sizeof($check_dir); $i < $n; $i++) {

 436              $check_directory[] = $check_dir[$i] . '/';

 437            }

 438            break;

 439          }

 440            zen_display_files($zv_check_root);

 441  

 442        break;

 443      } // eof: action

 444  

 445      // if no matches in either databases or selected language directory give an error

 446      if ($found == 'false') {

 447        $messageStack->add(ERROR_CONFIGURATION_KEY_NOT_FOUND . ' ' . $configuration_key_lookup, 'caution');

 448      } elseif ($action != '') {

 449        echo '<table width="90%" align="center"><tr><td>' . zen_draw_separator('pixel_black.gif', '100%', '2') . '</td></tr><tr><td>&nbsp;</td></tr></table>' . "\n";

 450      }

 451  

 452  ?>

 453  <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

 454  <html <?php echo HTML_PARAMS; ?>>

 455  <head>

 456  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

 457  <title><?php echo TITLE; ?></title>

 458  <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

 459  <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">

 460  <script language="javascript" src="includes/menu.js"></script>

 461  <script language="javascript" src="includes/general.js"></script>

 462  

 463  <script type="text/javascript">

 464    <!--

 465    function init()

 466    {

 467      cssjsmenu('navbar');

 468      if (document.getElementById)

 469      {

 470        var kill = document.getElementById('hoverJS');

 471        kill.disabled = true;

 472      }

 473    }

 474    // -->

 475  </script>

 476  </head>

 477  <body onload="init()">

 478  <!-- header //-->

 479  <?php require(DIR_WS_INCLUDES . 'header.php'); ?>

 480  <!-- header_eof //-->

 481  

 482  <!-- body //-->

 483  <table border="0" width="100%" cellspacing="2" cellpadding="2">

 484    <tr>

 485  <!-- body_text //-->

 486      <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

 487        <tr>

 488          <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 489          <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 490        </tr>

 491  

 492  <?php

 493  if ($show_configuration_info == 'true') {

 494    $show_configuration_info = 'false';

 495  ?>

 496        <tr><td colspan="2">

 497          <table border="3" cellspacing="4" cellpadding="4">

 498            <tr class="infoBoxContent">

 499              <td colspan="2" class="pageHeading" align="center"><?php echo TABLE_CONFIGURATION_TABLE; ?></td>

 500            </tr>

 501            <tr>

 502              <td class="infoBoxHeading"><?php echo TABLE_TITLE_KEY; ?></td>

 503              <td class="dataTableHeadingContentWhois"><?php echo $check_configure->fields['configuration_key']; ?></td>

 504            </tr>

 505            <tr>

 506              <td class="infoBoxHeading"><?php echo TABLE_TITLE_TITLE; ?></td>

 507              <td class="dataTableHeadingContentWhois"><?php echo $check_configure->fields['configuration_title']; ?></td>

 508            </tr>

 509            <tr>

 510              <td class="infoBoxHeading"><?php echo TABLE_TITLE_DESCRIPTION; ?></td>

 511              <td class="dataTableHeadingContentWhois"><?php echo $check_configure->fields['configuration_description']; ?></td>

 512            </tr>

 513  <?php

 514    if ($show_products_type_layout == 'true') {

 515      $check_configure_group = $db->Execute("select * from " . TABLE_PRODUCT_TYPES . " where type_id='" . $check_configure->fields['product_type_id'] . "'");

 516    } else {

 517      $check_configure_group = $db->Execute("select * from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id='" . $check_configure->fields['configuration_group_id'] . "'");

 518    }

 519  ?>

 520  

 521  <?php

 522    if ($show_products_type_layout == 'true') {

 523  ?>

 524            <tr>

 525              <td class="infoBoxHeading"><?php echo TABLE_TITLE_GROUP; ?></td>

 526              <td class="dataTableHeadingContentWhois"><?php echo 'Product Type Layout'; ?></td>

 527            </tr>

 528  <?php } else { ?>

 529            <tr>

 530              <td class="infoBoxHeading"><?php echo TABLE_TITLE_VALUE; ?></td>

 531              <td class="dataTableHeadingContentWhois"><?php echo $check_configure->fields['configuration_value']; ?></td>

 532            </tr>

 533            <tr>

 534              <td class="infoBoxHeading"><?php echo TABLE_TITLE_GROUP; ?></td>

 535              <td class="dataTableHeadingContentWhois">

 536              <?php

 537                if ($check_configure_group->fields['configuration_group_id'] == '6') {

 538                  $id_note = TEXT_INFO_CONFIGURATION_HIDDEN;

 539                } else {

 540                  $id_note = '';

 541                }

 542                echo 'ID#' . $check_configure_group->fields['configuration_group_id'] . ' ' . $check_configure_group->fields['configuration_group_title'] . $id_note;

 543              ?>

 544              </td>

 545            </tr>

 546  <?php } ?>

 547            <tr>

 548              <td class="main" align="right" valign="middle">

 549                <?php

 550                  if ($show_products_type_layout == 'false' and ($check_configure->fields['configuration_id'] != 0 and $check_configure->fields['configuration_group_id'] != 6)) {

 551                    echo '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $check_configure_group->fields['configuration_group_id'] . '&cID=' . $check_configure->fields['configuration_id']) . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>';

 552                  } else {

 553                    $page= '';

 554                    if (strstr($check_configure->fields['configuration_key'], 'MODULE_SHIPPING')) $page .= 'shipping';

 555                    if (strstr($check_configure->fields['configuration_key'], 'MODULE_PAYMENT')) $page .= 'payment';

 556                    if (strstr($check_configure->fields['configuration_key'], 'MODULE_ORDER_TOTAL')) $page .= 'ordertotal';

 557  

 558                    if ($show_products_type_layout == 'true') {

 559                      echo '<a href="' . zen_href_link(FILENAME_PRODUCT_TYPES) . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>';

 560                    } else {

 561                      if ($page != '') {

 562                        echo '<a href="' . zen_href_link(FILENAME_MODULES, 'set=' . $page) . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>';

 563                      } else {

 564                        echo TEXT_INFO_NO_EDIT_AVAILABLE . '<br />';

 565                      }

 566                    }

 567                  }

 568                ?>

 569                </td>

 570              <td class="main" align="center" valign="middle"><?php echo '<a href="' . zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT) . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a>'; ?></td>

 571            </tr>

 572          </table>

 573        </td></tr>

 574  <?php

 575  } else {

 576  ?>

 577  

 578  <?php

 579  // disabled and here for an example

 580  if (false) {

 581  ?>

 582  <!-- bof: update all products price sorter -->

 583        <tr>

 584          <td colspan="2"><br /><table border="0" cellspacing="0" cellpadding="2">

 585            <tr>

 586              <td class="main" align="left" valign="top"><?php echo TEXT_INFO_PRODUCTS_PRICE_SORTER_UPDATE; ?></td>

 587              <td class="main" align="right" valign="middle"><?php echo '<a href="' . zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, 'action=update_all_products_price_sorter') . '">' . zen_image_button('button_update.gif', IMAGE_UPDATE) . '</a>'; ?></td>

 588            </tr>

 589          </table></td>

 590        </tr>

 591  <!-- eof: update all products price sorter -->

 592  <?php } ?>

 593  

 594  <!-- bof: Locate a configuration constant -->

 595        <tr>

 596          <td colspan="2"><br /><table border="0" cellspacing="0" cellpadding="2">

 597            <tr>

 598              <td colspan="3" class="main" align="left" valign="middle"><?php echo TEXT_CONFIGURATION_CONSTANT; ?></td>

 599            </tr>

 600  

 601            <tr><form name = "locate_configure" action="<?php echo zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, 'action=locate_configuration', 'NONSSL'); ?>"' method="post">

 602              <td class="main" align="left" valign="bottom"><?php echo '<strong>' . TEXT_CONFIGURATION_KEY . '</strong>' . '<br />' . zen_draw_input_field('configuration_key'); ?></td>

 603              <td class="main" align="left" valign="middle">

 604                <?php

 605                  $za_lookup = array(array('id' => '0', 'text' => TEXT_LOOKUP_NONE),

 606                                                array('id' => '1', 'text' => TEXT_LANGUAGE_LOOKUP_CURRENT_LANGUAGE),

 607                                                array('id' => '2', 'text' => TEXT_LANGUAGE_LOOKUP_CURRENT_CATALOG),

 608                                                array('id' => '3', 'text' => TEXT_LANGUAGE_LOOKUP_CURRENT_CATALOG_TEMPLATE),

 609                                                array('id' => '4', 'text' => TEXT_LANGUAGE_LOOKUP_CURRENT_ADMIN),

 610                                                array('id' => '5', 'text' => TEXT_LANGUAGE_LOOKUP_CURRENT_ADMIN_LANGUAGE)

 611                                                      );

 612  //                                              array('id' => '6', 'text' => TEXT_LANGUAGE_LOOKUP_CURRENT_ALL)

 613  

 614                  echo '<strong>' . TEXT_LANGUAGE_LOOKUPS . '</strong>' . '<br />' . zen_draw_pull_down_menu('zv_files', $za_lookup, '0');

 615                ?>

 616              </td>

 617              <td class="main" align="right" valign="bottom"><?php echo zen_image_submit('button_search.gif', IMAGE_SEARCH); ?></td>

 618            </form></tr>

 619            <tr>

 620              <td colspan="4" class="main" align="left" valign="top"><?php echo TEXT_INFO_CONFIGURATION_UPDATE; ?></td>

 621            </tr>

 622          </table></td>

 623        </tr>

 624  <!-- eof: Locate a configuration constant -->

 625  

 626  

 627  <!-- bof: Locate a function -->

 628        <tr>

 629          <td colspan="2"><br /><table border="0" cellspacing="0" cellpadding="2">

 630            <tr>

 631              <td colspan="3" class="main" align="left" valign="middle"><?php echo TEXT_FUNCTION_CONSTANT; ?></td>

 632            </tr>

 633  

 634            <tr><form name = "locate_function" action="<?php echo zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, 'action=locate_function', 'NONSSL'); ?>"' method="post">

 635              <td class="main" align="left" valign="bottom"><?php echo '<strong>' . TEXT_CONFIGURATION_KEY . '</strong>' . '<br />' . zen_draw_input_field('configuration_key'); ?></td>

 636              <td class="main" align="left" valign="middle">

 637                <?php

 638                  $za_lookup = array(array('id' => '0', 'text' => TEXT_LOOKUP_NONE),

 639                                                array('id' => '1', 'text' => TEXT_FUNCTION_LOOKUP_CURRENT),

 640                                                array('id' => '2', 'text' => TEXT_FUNCTION_LOOKUP_CURRENT_CATALOG),

 641                                                array('id' => '3', 'text' => TEXT_FUNCTION_LOOKUP_CURRENT_ADMIN)

 642                                                      );

 643  //                                              array('id' => '6', 'text' => TEXT_LANGUAGE_LOOKUP_CURRENT_ALL)

 644  

 645                  echo '<strong>' . TEXT_FUNCTION_LOOKUPS . '</strong>' . '<br />' . zen_draw_pull_down_menu('zv_files', $za_lookup, '0');

 646                ?>

 647              </td>

 648              <td class="main" align="right" valign="bottom"><?php echo zen_image_submit('button_search.gif', IMAGE_SEARCH); ?></td>

 649            </form></tr>

 650            <tr>

 651              <td colspan="4" class="main" align="left" valign="top"><?php echo TEXT_INFO_CONFIGURATION_UPDATE; ?></td>

 652            </tr>

 653          </table></td>

 654        </tr>

 655  <!-- eof: Locate a function -->

 656  

 657  <!-- bof: Locate a class -->

 658        <tr>

 659          <td colspan="2"><br /><table border="0" cellspacing="0" cellpadding="2">

 660            <tr>

 661              <td colspan="3" class="main" align="left" valign="middle"><?php echo TEXT_CLASS_CONSTANT; ?></td>

 662            </tr>

 663  

 664            <tr><form name = "locate_class" action="<?php echo zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, 'action=locate_class', 'NONSSL'); ?>"' method="post">

 665              <td class="main" align="left" valign="bottom"><?php echo '<strong>' . TEXT_CONFIGURATION_KEY . '</strong>' . '<br />' . zen_draw_input_field('configuration_key'); ?></td>

 666              <td class="main" align="left" valign="middle">

 667                <?php

 668                  $za_lookup = array(array('id' => '0', 'text' => TEXT_LOOKUP_NONE),

 669                                                array('id' => '1', 'text' => TEXT_CLASS_LOOKUP_CURRENT),

 670                                                array('id' => '2', 'text' => TEXT_CLASS_LOOKUP_CURRENT_CATALOG),

 671                                                array('id' => '3', 'text' => TEXT_CLASS_LOOKUP_CURRENT_ADMIN)

 672                                                      );

 673  //                                              array('id' => '6', 'text' => TEXT_LANGUAGE_LOOKUP_CURRENT_ALL)

 674  

 675                  echo '<strong>' . TEXT_CLASS_LOOKUPS . '</strong>' . '<br />' . zen_draw_pull_down_menu('zv_files', $za_lookup, '0');

 676                ?>

 677              </td>

 678              <td class="main" align="right" valign="bottom"><?php echo zen_image_submit('button_search.gif', IMAGE_SEARCH); ?></td>

 679            </form></tr>

 680            <tr>

 681              <td colspan="4" class="main" align="left" valign="top"><?php echo TEXT_INFO_CONFIGURATION_UPDATE; ?></td>

 682            </tr>

 683          </table></td>

 684        </tr>

 685  <!-- eof: Locate a class -->

 686  

 687  <!-- bof: Locate a template files -->

 688        <tr>

 689          <td colspan="2"><br /><table border="0" cellspacing="0" cellpadding="2">

 690            <tr>

 691              <td colspan="3" class="main" align="left" valign="middle"><?php echo TEXT_TEMPLATE_CONSTANT; ?></td>

 692            </tr>

 693  

 694            <tr><form name = "locate_template" action="<?php echo zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, 'action=locate_template', 'NONSSL'); ?>"' method="post">

 695              <td class="main" align="left" valign="bottom"><?php echo '<strong>' . TEXT_CONFIGURATION_KEY . '</strong>' . '<br />' . zen_draw_input_field('configuration_key'); ?></td>

 696              <td class="main" align="left" valign="middle">

 697                <?php

 698                  $za_lookup = array(array('id' => '0', 'text' => TEXT_LOOKUP_NONE),

 699                                                array('id' => '1', 'text' => TEXT_TEMPLATE_LOOKUP_CURRENT),

 700                                                array('id' => '2', 'text' => TEXT_TEMPLATE_LOOKUP_CURRENT_TEMPLATES),

 701                                                array('id' => '3', 'text' => TEXT_TEMPLATE_LOOKUP_CURRENT_SIDEBOXES),

 702                                                array('id' => '4', 'text' => TEXT_TEMPLATE_LOOKUP_CURRENT_PAGES)

 703                                                      );

 704  //                                              array('id' => '6', 'text' => TEXT_LANGUAGE_LOOKUP_CURRENT_ALL)

 705  

 706                  echo '<strong>' . TEXT_TEMPLATE_LOOKUPS . '</strong>' . '<br />' . zen_draw_pull_down_menu('zv_files', $za_lookup, '0');

 707                ?>

 708              </td>

 709              <td class="main" align="right" valign="bottom"><?php echo zen_image_submit('button_search.gif', IMAGE_SEARCH); ?></td>

 710            </form></tr>

 711            <tr>

 712              <td colspan="4" class="main" align="left" valign="top"><?php echo TEXT_INFO_CONFIGURATION_UPDATE; ?></td>

 713            </tr>

 714          </table></td>

 715        </tr>

 716  <!-- eof: Locate template Files -->

 717  

 718  

 719  <!-- bof: Locate all files -->

 720        <tr>

 721          <td colspan="2"><br /><table border="0" cellspacing="0" cellpadding="2">

 722            <tr>

 723              <td colspan="3" class="main" align="left" valign="middle"><?php echo TEXT_ALL_FILES_CONSTANT; ?></td>

 724            </tr>

 725  

 726            <tr><form name = "locate_all_files" action="<?php echo zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, 'action=locate_all_files', 'NONSSL'); ?>" method="post">

 727              <td class="main" align="left" valign="bottom"><?php echo '<strong>' . TEXT_CONFIGURATION_KEY . '</strong>' . '<br />' . zen_draw_input_field('configuration_key'); ?></td>

 728              <td class="main" align="left" valign="middle">

 729                <?php

 730                  $za_lookup = array(array('id' => '0', 'text' => TEXT_LOOKUP_NONE),

 731                                                array('id' => '1', 'text' => TEXT_ALL_FILES_LOOKUP_CURRENT),

 732                                                array('id' => '2', 'text' => TEXT_ALL_FILES_LOOKUP_CURRENT_CATALOG),

 733                                                array('id' => '3', 'text' => TEXT_ALL_FILES_LOOKUP_CURRENT_ADMIN)

 734                                                      );

 735  

 736                  echo '<strong>' . TEXT_ALL_FILES_LOOKUPS . '</strong>' . '<br />' . zen_draw_pull_down_menu('zv_files', $za_lookup, '0');

 737                ?>

 738              </td>

 739              <td class="main" align="right" valign="bottom"><?php echo zen_image_submit('button_search.gif', IMAGE_SEARCH); ?></td>

 740            </form></tr>

 741            <tr>

 742              <td colspan="4" class="main" align="left" valign="top"><?php echo TEXT_INFO_CONFIGURATION_UPDATE; ?></td>

 743            </tr>

 744          </table></td>

 745        </tr>

 746  <!-- eof: Locate all files -->

 747  

 748  <?php

 749  } // eof configure

 750  ?>

 751        <tr>

 752          <td colspan="2"><?php echo '<br />' . zen_draw_separator('pixel_black.gif', '100%', '2'); ?></td>

 753        </tr>

 754  

 755  

 756      </table></td>

 757  <!-- body_text_eof //-->

 758    </tr>

 759  </table>

 760  <!-- body_eof //-->

 761  

 762  <!-- footer //-->

 763  <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

 764  <!-- footer_eof //-->

 765  </body>

 766  </html>

 767  <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>


Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics