Exemple #1
0
 public function __construct()
 {
     sajax_init();
     sajax_export("AJAXSynchronizeDB");
     sajax_export("AJAXSynchronizeOffersCount");
     sajax_handle_client_request();
     $this->synchronizeDB = $this->GetSynchronizeJS();
     $this->synchronizeOffersCount = $this->GetSynchronizeOffersCount();
     $this->ajax = sajax_show_javascript();
 }
        }
        $reqarg .= " {$guid}/{$versarg}";
        SUEXEC($uid, "{$unix_pid},{$unix_gid}", "webtemplate_control {$reqarg} {$optarg}", SUEXEC_ACTION_DIE);
    }
    $template->Refresh();
    $html = "";
    if (!$no_output) {
        $html = Show("graph", 0, 0);
    }
    return $html;
}
#
# See if this request is to the above function. Does not return
# if it is. Otherwise return and continue on.
#
sajax_handle_client_request();
#
# Active/Inactive is a plain menu link.
#
if (isset($action) && ($action == "activate" || $action == "inactivate")) {
    GraphChange($action, 0, 1);
}
# Delete is just plain special!
if (isset($action) && $action == "deletetemplate" && isset($confirmed) && $confirmed == "yep") {
    PAGEHEADER("Delete Template: {$guid}/{$vers}");
    STARTBUSY("Deleting template {$guid}/{$vers} recursively");
    # Pass recursive option all the time.
    $retval = SUEXEC($uid, "{$unix_pid},{$unix_gid}", "webtemplate_delete -r {$guid}/{$vers}", SUEXEC_ACTION_IGNORE);
    CLEARBUSY();
    #
    # Fatal Error. Report to the user, even though there is not much he can
/**
 * @package JoomlaPack
 * @copyright Copyright (c)2006-2009 JoomlaPack Developers
 * @license GNU General Public License version 2, or later
 * @version $id$
 * @since 1.3
 */
// Protect from unauthorized access
defined('_JEXEC') or die('Restricted Access');
jpimport('helpers.sajax', true);
sajax_init();
sajax_force_page_ajax('backup');
sajax_export('start', 'tick', 'renderProgress', 'addWarning');
$null = null;
sajax_handle_client_request($null);
function start($description, $comment)
{
    jpimport('core.cube');
    JoomlapackCUBE::reset();
    $cube =& JoomlapackCUBE::getInstance();
    $cube->start($description, $comment);
    $cube->save();
    $array = $cube->getCUBEArray();
    return _processCUBE($array);
}
function tick()
{
    jpimport('core.cube');
    JoomlapackLogger::WriteLog(_JP_LOG_DEBUG, '--- Preparing to get instance');
    $cube =& JoomlapackCUBE::getInstance();
Exemple #4
0
 function processAJAX()
 {
     $this->commonSAJAX();
     sajax_handle_client_request($this);
 }