function get_module_db_info()
 {
     global $db;
     $sql = 'SELECT * FROM ' . TABLE_MODULE_VERSION_TRACKER . ' WHERE module_code=\'' . $this->module_code . '\' LIMIT 1';
     $yclass = new yclass();
     $this->module_db_info = $yclass->db_result_to_array($db->Execute($sql), true);
     return $this->module_db_info;
 }
 function list_modules()
 {
     global $db;
     $sql = "SELECT * FROM " . TABLE_MODULE_VERSION_TRACKER;
     $yclass = new yclass();
     $modules = $yclass->db_result_to_array($db->Execute($sql));
     return $modules;
 }
<?php

/**
 * Module Manager
 * @Version: 
 * @Authour: yellow1912
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */
require 'includes/application_top.php';
require_once DIR_WS_CLASSES . 'module_manager.php';
$module_manager = new module_manager();
$yclass = new yclass();
$yclass->init_template();
$yclass->init_validation();
$ytemplate = new ytemplate();
$ytemplate->admin_set_base();
$ytemplate->build_name();
$ytemplate->zen_admin_set_path();
switch ($_GET['action']) {
    case 'list_modules':
        $modules = $module_manager->list_modules();
        $ytemplate->set('modules', $modules);
        break;
    case 'update_module':
        $module_manager->update_module($_GET['ID']);
        $ytemplate->set_name('tpl_index.php');
        break;
    case 'install_modules':
        $modules = $module_manager->list_modules();
        $installed_modules = array();
        if (is_array($modules)) {