Exemple #1
0
/**
 * Output form for gathering admi account data
 *
 * @param array $params
 *
 * @return bool
 */
function module_cfg_create_admin(&$params)
{
    global $error, $skinsDir;
    $paramFields = array('login' => array('title' => xtr('E-mail'), 'description' => xtr('E-mail address of the store administrator'), 'def_value' => isset($params['_login']) ? $params['_login'] : '', 'required' => true, 'type' => 'text'), 'password' => array('title' => xtr('Password'), 'description' => '', 'def_value' => isset($params['_password']) ? $params['_password'] : '', 'required' => true, 'type' => 'password', 'disableAutofill' => true));
    $clrNumber = 1;
    ?>

<div>

<div class="field-left">

<?php 
    echo xtr('E-mail and password that you provide on this screen will be used to create primary administrator profile. Use them as credentials to access the Administrator Zone of your online store.');
    ?>

<br />
<br />

<table width="100%" border="0" cellpadding="10">

<?php 
    foreach ($paramFields as $fieldName => $fieldData) {
        displayFormElement($fieldName, $fieldData, $clrNumber);
        $clrNumber = $clrNumber == 2 ? 1 : 2;
    }
    ?>

</table>

</div>

<div class="field-right">

    <img class="keyhole-icon" src="<?php 
    echo $skinsDir;
    ?>
images/keyhole_icon.png" alt="" />

</div>

</div>

<div class="clear"></div>

<?php 
    if (is_null($params["new_installation"])) {
        ?>

<input type="hidden" name="params[force_current]" value="<?php 
        echo get_step("install_done");
        ?>
" />

<?php 
    }
    ?>

<?php 
}
Exemple #2
0
            <span class="field-notice"><?php 
        echo xtr('Prevents unauthorized use of installation script');
        ?>
</span>
        </td>

    </tr>

</table>

<?php 
    } else {
        ?>

<input type="hidden" name="params[new_installation]" value="<?php 
        print get_step("check_cfg");
        ?>
" />

<?php 
    }
    ?>

<br />

<span class="checkbox-field">
<input type="checkbox" id="agree" name="agree" onclick="javascript:setNextButtonDisabled(!this.checked);" />
<label for="agree"><?php 
    echo xtr('I accept the License Agreement');
    ?>
</label>
Exemple #3
0
}
// Process 'Go back' action: remove params
if (isset($_POST['go_back']) && $_POST['go_back'] === '1') {
    for ($i = $current; $i < count($modules); $i++) {
        for ($j = 0; $j < count($modules[$i]['remove_params']); $j++) {
            if (isset($params[$modules[$i]['remove_params'][$j]])) {
                unset($params[$modules[$i]['remove_params'][$j]]);
            }
        }
    }
}
// Force current step processing
if (isset($params['force_current']) && !isset($params['start_at'])) {
    $params['start_at'] = $params['force_current'];
}
if (isset($params['force_current']) && $params['force_current'] == get_step('check_cfg')) {
    $params['new_installation'] = $params['force_current'];
    unset($params['force_current']);
}
if ($current < 0 || $current >= count($modules)) {
    die(xtr('Fatal error: Invalid current step. Stopped.'));
}
// check for the pre- and post- methods
if ($current) {
    if (isset($modules[$current - 1]['post_func'])) {
        check_authcode($params);
        $func = 'module_' . $modules[$current - 1]['name'] . '_post_func';
        if (function_exists($func)) {
            $func();
        } else {
            die(xtr('Internal error: function :funcname() not found', array(':funcname' => $func)));
Exemple #4
0
  <input id="try-button" name="try_again" type="button" value="<?php 
            echo xtr('Try again');
            ?>
" onclick="javascript:document.ifrm.go_back.value='1'; document.ifrm.current.value='1'; document.ifrm.submit();" />
</td>

<?php 
        }
        ?>

<td class="next-button-layer">
  <input id="next-button" name="next_button" type="submit" value="<?php 
        echo xtr('Next');
        ?>
"<?php 
        echo $error || $current == get_step('check_cfg') ? ' class="next-button disabled-button" disabled="disabled"' : ' class="next-button"';
        ?>
 onclick="javascript: if (step_next()) { ifrm.submit(); return true; } else { return false; }" />
</td>

</tr>

</table>

<?php 
    }
}
?>

</form>
Exemple #5
0
	<![endif]-->
	<title>OU Calendar powered by Helios <?php 
echo $curVersion;
?>
 Setup</title>
<body>
	<section>
		<article>
			<div id="progress">
				<?php 
progress();
?>
				
			</div>
		<?php 
get_step();
?>
		
		</article>
		<aside>
			<img src="../admin/img/logo.png" width="235" alt="" border="0" />
			
<?php 
if (isset($_SESSION['code_valid']) && $_SESSION['code_valid'] == true) {
    ?>
			<h2>Server Profile <span></h2>
			<ul>
				<li><span>PHP</span><?php 
    echo phpversion();
    ?>
</li>
Exemple #6
0
    exit;
}
$auth->login_if($dologin == "1" and $auth->auth["uid"] == "nobody");
$nobody = ($auth->auth["uid"] == "nobody" or $auth->auth["uid"] == "" or $auth->auth["uid"] == "form");
$kat = ereg_replace('^/([^-\\]*-[^/]*)(.*)', '\\2', $PHP_SELF);
if (preg_match('/^\\/Tour[\\/]*(.*)$/', $kat, $matches)) {
    if ($matches[1] == "") {
        if (substr($kat, -1) != '/') {
            page_close();
            Header("Location: " . $sess->url("/Tour/"));
        } else {
            $matches[1] = $tour_steps[0][0];
        }
    }
    $step_name = $matches[1];
    $step = get_step($step_name) + 1;
    $step_title = $tour_steps[$step - 1][1];
    if ($step <= 0) {
        page_close();
        Header("Location: " . $sess->url("/Tour/"));
        exit;
    }
} else {
    if (substr($kat, -1) != '/') {
        Header("Location: " . $sess->url("/Tour/"));
    } else {
        $step_name = $tour_steps[0][0];
        $step_title = $tour_steps[0][1];
        $step = 1;
    }
}