Пример #1
0
$phase = 0;
$phases = 13;
$progress = 0;
setup_entry($progress, $phases, 'setup_checkingsystem', 'setup_systemchecked', $innomaticLocale->getStr('systemcheckphase_label'), $progress_table, $phase++);
setup_entry($progress, $phases, 'setup_installingfiles', 'setup_filesinstalled', $innomaticLocale->getStr('filesinstallphase_label'), $progress_table, $phase++);
setup_entry($progress, $phases, 'setup_settingedition', 'setup_editionset', $innomaticLocale->getStr('editionchoicephase_label'), $progress_table, $phase++);
setup_entry($progress, $phases, 'setup_creatingdataaccessdrivers', 'setup_dataaccessdriverscreated', $innomaticLocale->getStr('dataaccessdriversphase_label'), $progress_table, $phase++);
setup_entry($progress, $phases, 'setup_creatingdb', 'setup_dbcreated', $innomaticLocale->getStr('rootdaphase_label'), $progress_table, $phase++);
setup_entry($progress, $phases, 'setup_initializingcomponents', 'setup_componentsinitialized', $innomaticLocale->getStr('componentsphase_label'), $progress_table, $phase++);
setup_entry($progress, $phases, 'setup_settinginnomatichost', 'setup_innomatichostset', $innomaticLocale->getStr('innomatichostchoicephase_label'), $progress_table, $phase++);
setup_entry($progress, $phases, 'setup_settingcountry', 'setup_countryset', $innomaticLocale->getStr('countrychoicephase_label'), $progress_table, $phase++);
setup_entry($progress, $phases, 'setup_settinglanguage', 'setup_languageset', $innomaticLocale->getStr('languagechoicephase_label'), $progress_table, $phase++);
setup_entry($progress, $phases, 'setup_settingpassword', 'setup_passwordset', $innomaticLocale->getStr('passwordphase_label'), $progress_table, $phase++);
//    setup_entry($wui_page, $progress, $phases, 'setup_settingappcentral', 'setup_appcentralset', $innomatic_locale->getStr('appcentralphase_label'), $progress_table, $phase ++);
setup_entry($progress, $phases, 'setup_cleaningup', 'setup_cleanedup', $innomaticLocale->getStr('cleanupphase_label'), $progress_table, $phase++);
setup_entry($progress, $phases, 'setup_finishingsetup', 'setup_setupfinished', $innomaticLocale->getStr('finishphase_label'), $progress_table, $phase++);
$progress_vert_group->addChild($progress_table);
$progress_vert_group->addChild(new WuiProgressBar('progress', array('progress' => $progress, 'totalsteps' => $phases)));
// Checks if there are remaining setup phases
//
if (!file_exists($container->getHome() . 'core/temp/setup_lock')) {
    $uri = dirname(\Innomatic\Webapp\WebAppContainer::instance('\\Innomatic\\Webapp\\WebAppContainer')->getProcessor()->getRequest()->getRequestURI());
    $wuiPage = new WuiPage('page', array('title' => $innomaticLocale->getStr('innomaticsetup_title'), 'javascript' => "parent.location.href='" . $uri . "'"));
    $wuiPage->addChild($wuiMainVertGroup);
    $wui->addChild($wuiPage);
    $wui->render();
} else {
    // System check
    //
    if (!file_exists($container->getHome() . 'core/temp/setup_systemchecked')) {
        $wuiPage = new WuiPage('page', array('title' => $innomaticLocale->getStr('innomaticsetup_title')));
         if (array_key_exists($post_entry_key, $post_entry)) {
             $return[$entryId] = $post_entry[$post_entry_key];
         }
     }
     return $return;
 }
 //
 //
 //    echo"<br>";
 //    echo "<pre>";
 //        print_r($_POST['entry']);
 //    echo "</pre>";
 if (isset($_POST['entry']) && !empty($_POST['entry'])) {
     $post_entry = (array) $_POST['entry'];
     $form_id = $post_entry['form_id'];
     $entry = setup_entry($post_entry);
     $entry['orderStatus'] = 'incomplete';
     //        echo "<pre>";
     //            echo "below is the result of your effort <br>";
     //            print_r($entry);
     //        echo "</pre>";
     //        exit;
     $entry_ids = GFAPI::add_entry($entry, $form_id);
     if (is_array($entry_ids) === false) {
         echo json_encode(array('success' => $entry_ids));
         $to = '*****@*****.**';
         $subject = 'Content Empty';
         $message = 'Data: <br/>' . print_r($entry, true);
         //wp_mail( $to, $subject, $message);
     } else {
         echo json_encode(array('error' => "Ooops, something went wrong try again later." . $entry_ids));
Пример #3
0
    $hui->LoadWidget('page');
    $hui->LoadWidget('vertgroup');
    $hui->LoadWidget('vertframe');
    $hui->LoadWidget('treemenu');
    $hui->LoadWidget('progressbar');
    $hui_page = new HuiPage('page', array('title' => 'Ampoliros' . (strlen(AMP_HOST) ? ' - ' . AMP_HOST . (strlen(AMP_DOMAIN) ? '.' . AMP_DOMAIN : '') : '')));
    $hui_page->mArgs['background'] = $hui_page->mThemeHandler->mStyle['menuback'];
    $hui_mainvertgroup = new HuiVertGroup('mainvertgroup');
    $headers[1]['label'] = $amp_locale->GetStr('setupphase_header');
    $hui_table = new HuiTable('sumtable', array('headers' => $headers));
    $phase = 0;
    $phases = 13;
    setup_entry('.checkingsystem', '.systemchecked', $amp_locale->GetStr('systemcheckphase_label'), $hui_table, $phase++);
    setup_entry('.installingfiles', '.filesinstalled', $amp_locale->GetStr('filesinstallphase_label'), $hui_table, $phase++);
    setup_entry('.settingedition', '.editionset', $amp_locale->GetStr('editionchoicephase_label'), $hui_table, $phase++);
    setup_entry('.creatingdblayers', '.dblayerscreated', $amp_locale->GetStr('dblayersphase_label'), $hui_table, $phase++);
    setup_entry('.creatingdb', '.dbcreated', $amp_locale->GetStr('amprootdbphase_label'), $hui_table, $phase++);
    setup_entry('.initializingcomponents', '.componentsinitialized', $amp_locale->GetStr('ampcomponentsphase_label'), $hui_table, $phase++);
    setup_entry('.settingamphost', '.amphostset', $amp_locale->GetStr('amphostchoicephase_label'), $hui_table, $phase++);
    setup_entry('.settingcountry', '.countryset', $amp_locale->GetStr('countrychoicephase_label'), $hui_table, $phase++);
    setup_entry('.settinglanguage', '.languageset', $amp_locale->GetStr('languagechoicephase_label'), $hui_table, $phase++);
    setup_entry('.settingpassword', '.passwordset', $amp_locale->GetStr('passwordphase_label'), $hui_table, $phase++);
    setup_entry('.settingampcentral', '.ampcentralset', $amp_locale->GetStr('ampcentralphase_label'), $hui_table, $phase++);
    setup_entry('.cleaningup', '.cleanedup', $amp_locale->GetStr('cleanupphase_label'), $hui_table, $phase++);
    setup_entry('.finishingsetup', '.setupfinished', $amp_locale->GetStr('finishphase_label'), $hui_table, $phase++);
    $hui_mainvertgroup->AddChild($hui_table);
    $hui_mainvertgroup->AddChild(new HuiProgressBar('progress', array('progress' => $progress, 'totalsteps' => $phases)));
    $hui_page->AddChild($hui_mainvertgroup);
    $hui->AddChild($hui_page);
    $hui->Render();
}