Beispiel #1
0
function mm_showMyFileName($filename)
{
    if (vmShouldDebug()) {
        /*@MWM1: Logging/Debugging Enhancements */
        echo vmToolTip('<div class=\'inputbox\'>Begin of File: ' . wordwrap($filename, 70, '<br />', true) . '</div>');
    }
}
            vmConnector::sendHeaderAndContent(200);
            if ($func) {
                echo vmCommonHTML::getSuccessIndicator($ok, $vmDisplayLogger);
            }
            /*@MWM1: Log/Debug enhancements*/
            include PAGEPATH . $modulename . "." . $pagename . ".php";
            // Exit gracefully
            $vm_mainframe->close(true);
        }
        include PAGEPATH . $modulename . "." . $pagename . ".php";
    } elseif (file_exists(PAGEPATH . HOMEPAGE . '.php')) {
        include PAGEPATH . HOMEPAGE . '.php';
    } else {
        include PAGEPATH . 'shop.index.php';
    }
    if (!empty($mosConfig_caching) && $vmDoCaching) {
        echo '<span class="small">' . $VM_LANG->_('LAST_UPDATED') . ': ' . strftime($vendor_date_format) . '</span>';
    }
    echo "\n<div id=\"statusBox\" style=\"text-align:center;display:none;visibility:hidden;\"></div></div>\n";
    if (SHOWVERSION && !$is_popup) {
        include PAGEPATH . "footer.php";
    }
    // Set debug option on/off
    if (vmShouldDebug()) {
        /*@MWM1: Log/Debug enhancements */
        $end = utime();
        $runtime = $end - $start;
        include PAGEPATH . "shop.debug.php";
    }
}
$vm_mainframe->close();
Beispiel #3
0
 /**
  * Set the debug mode
  */
 function setDebug()
 {
     if (function_exists('vmshoulddebug')) {
         $this->_debug = vmShouldDebug() || $GLOBALS['mosConfig_debug'] == '1';
     } else {
         $this->_debug = DEBUG || $GLOBALS['mosConfig_debug'] == '1';
     }
 }