示例#1
0
        $pos = 0;
        $php = isset($actions['php']['file']) ? $actions['php']['file'] : '';
        $sql = isset($actions['sql']['file']) ? $actions['sql']['file'] : '';
        $error = isset($actions['error']['file']) ? $actions['error']['file'] : '';
        if ($error) {
            echo "<font color=red>{$error}</font>";
            continue;
        }
        if ($php && ++$pos) {
            echo "<br/>{$pos}º ";
            print_upgrade_link($php, 'php_pre', gettext("PHP script: PRE"), $version, $v['required']);
        }
        if ($sql && ++$pos) {
            echo "<br/>{$pos}º ";
            print_upgrade_link($sql, 'sql', gettext("SQL schema update"), $version, $v['required']);
            Upgrade::info_upgrade($v['required'], basename($sql));
        }
        if ($php && ++$pos) {
            echo "<br/>{$pos}º ";
            print_upgrade_link($php, 'php_post', gettext("PHP script: POST"), $version, $v['required']);
        }
        echo "<br/>&nbsp;";
        ?>
				</tr>
				<?php 
    }
    ?>
		</table>
		<br/>
        <?php 
    if ($v['required']) {