/**
  * Loads a page's HTML or instructs the class to process an AJAX request, based on the contents of
  * the page request.
  *
  * @param object $page A JoomlaPack's page class object
  */
 function _loadPage(&$page)
 {
     if (JoomlapackAbstraction::isSAJAX()) {
         $page->processAJAX();
     } else {
         $page->echoHTML();
     }
 }
예제 #2
0
        if ($task == 'export') {
            $skipFooter = true;
        }
        jpackScreens::fConfigMigrate();
        break;
    case "cpanel":
    default:
        if (!JoomlapackAbstraction::isSAJAX()) {
            echo '<link rel="stylesheet" href="components/' . $option . '/assets/css/jpcss.css" type="text/css" />';
        }
        // Application status check
        jpackScreens::fMain();
        break;
}
// Post-AJAX cleanup
if (JoomlapackAbstraction::isSAJAX()) {
    // Restore error handler
    if (isset($old_error_handler)) {
        restore_error_handler();
    }
} else {
    // Common footer
    if (!isset($skipFooter)) {
        jpackScreens::CommonFooter();
    }
    // PayPal donate on Control Panel
    if ($act == 'cpanel') {
        ?>
			<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
			<p>
			<input type="hidden" name="cmd" value="_s-xclick">