public function runVersionUpdates($updates) { global $class_path, $site; include_once $class_path . 'install.inc.php'; global $CONF, $FDAT, $conn, $default_data_files, $install, $skip_html; $default_data_files = $updates; $install = 0; $CONF = ReadConf(); $FDAT = $site->fdat; $skip_html = $this->cli; $conn = $site->db; run_dumpfile(); }
<? } # / if INSTALL step4 ######################### ######################### # if UPDATE step4 else { ?> <h2>Updating Database</h2> <font class="txt"> <form action="install.php" method="post" name="form"> <? ############### # run sql $upd_error = run_dumpfile(); ?> <table width="580" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font class="txt"> <? if ($upd_error != '') { ?> <font color="red"> <br />Fatal error occured during updating database "<?=$CONF["db"] ?>"!</font> <INPUT type="button" value="Previous" onclick="javascript:document.getElementById('op').value='Step3';document.form.submit();" class="redbutton"> <? } else { ?> Database "<?=$CONF["db"] ?>" update finished.<br> <?