Exemplo n.º 1
0
    if (isset($progress)) {
        print_feedback($progress);
    }
    print_errors($errors);
    echo '<input type="hidden" name="step" value="' . $step . '" />';
    unset($_POST['step']);
    unset($_POST['action']);
    unset($errors);
    print_hidden($step);
    echo '<p><strong>Note:</strong> To change permissions on Unix use <kbd>chmod a+rw</kbd> then the file name.</p>';
    echo '<p align="center"><input type="submit" class="button" value=" Try Again " name="retry" />';
} else {
    if (!copy('../../' . $_POST['step1']['old_path'] . '/include/config.inc.php', '../include/config.inc.php')) {
        echo '<input type="hidden" name="step" value="' . $step . '" />';
        print_feedback($progress);
        $errors[] = 'include/config.inc.php cannot be written! Please verify that the file exists and is writeable. On Unix issue the command <kbd>chmod a+rw include/config.inc.php</kbd> to make the file writeable. On Windows edit the file\'s properties ensuring that the <kbd>Read-only</kbd> attribute is <em>not</em> checked and that <kbd>Everyone</kbd> access permissions are given to that file.';
        print_errors($errors);
        echo '<p><strong>Note:</strong> To change permissions on Unix use <kbd>chmod a+rw</kbd> then the file name.</p>';
        echo '<p align="center"><input type="submit" class="button" value=" Try Again " name="retry" />';
    } else {
        echo '<input type="hidden" name="step" value="' . $step . '" />';
        print_hidden($step);
        $progress[] = 'Data has been saved successfully.';
        @chmod('../include/config.inc.php', 0444);
        print_feedback($progress);
        echo '<p align="center"><input type="submit" class="button" value=" Next &raquo; " name="submit" /></p>';
    }
}
?>

</form>
Exemplo n.º 2
0
        }
        if ($row["patch_files"] != "") {
            $patch_files = get_array_by_delimiter($row["patch_files"], "|");
            if (count($patch_files) > 0) {
                $feedbacks[] = _AT('patcher_show_patch_files');
                foreach ($patch_files as $patch_file) {
                    if ($patch_file != "") {
                        $feedbacks[count($feedbacks) - 1] .= "<strong>" . $patch_file . "</strong><br />";
                    }
                }
            }
        }
        if (count($feedbacks) > 0) {
            print_feedback($feedbacks);
        } else {
            print_feedback(array());
        }
    }
}
$msg->printAll();
?>

<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="post" name="form">
<div class="input-form">

<table class="data" summary="" style="width: 100%" rules="cols">
<thead>
	<tr>