Example #1
0
<li>
	<div class="sqlform">
		<p><?php 
echo gettext("Fill in the information below and <strong>setup</strong> will attempt to update your configuration file.");
?>
<br />
		</p>
		<form action="" method="post"><input type="hidden" name="db" value="yes" />
			<input type="hidden" name="xsrfToken" value="<?php 
echo setupXSRFToken();
?>
" />
			<?php 
if ($debug) {
    ?>
				<input type="hidden" name="debug" />
				<?php 
}
?>
			<script type="text/javascript">
				function showFields() {
					switch ($('#dbselect').val()) {
<?php 
foreach ($engines as $engine) {
    if ($engine) {
        $handler = $engine['engine'];
        ?>
								case '<?php 
        echo $handler;
        ?>
':
Example #2
0
function acknowledge($value)
{
    global $_zp_conf_vars;
    $link = WEBPATH . '/' . ZENFOLDER . '/setup/index.php?security_ack=' . ((isset($_zp_conf_vars['security_ack']) ? $_zp_conf_vars['security_ack'] : NULL) | $value) . '&amp;xsrfToken=' . setupXSRFToken();
    return sprintf(gettext('Click <a href="%s">here</a> to acknowledge that you wish to ignore this issue. It will then become a warning.'), $link);
}