print_hidden(2); echo '<p align="center"><input type="submit" class="button" value=" Next » " name="submit" /></p></form>'; return; } } print_progress($step); unset($_POST['submit']); if (isset($progress)) { print_feedback($progress); } if (isset($errors)) { print_errors($errors); } echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post" name="form"> <input type="hidden" name="step" value="2" />'; store_steps(1); print_hidden(2); if ($found_lang) { ?> <table width="60%" class="tableborder" cellspacing="0" cellpadding="1" border="0" align="center"> <tr> <td colspan="2" class="row1"><p><small>All installed language packs and changes made to the default English language will be deleted. You will have to re-install any language packs by downloading the latest versions from ATutor.ca. Some language packs may not currently be available.</small></p></td> </tr> <tr> <td class="row1"><small><b><label for="dir">Continue with the upgrade?</label></b></small></td> <td class="row1" valign="middle" nowrap="nowrap"><input type="radio" name="override" value="1" id="c2" /><label for="c2">Yes, Continue</label>, <input type="radio" name="override" value="0" id="c1" checked="checked" /><label for="c1">No, Cancel</label></td> </tr> </table><br /> <?php } echo '<input type="hidden" name="db_login" value="' . urlencode($_POST['db_login']) . '" />';
/* AContent */ /************************************************************************/ /* Copyright (c) 2010 */ /* Inclusive Design Institute */ /* */ /* This program is free software. You can redistribute it and/or */ /* modify it under the terms of the GNU General Public License */ /* as published by the Free Software Foundation. */ /************************************************************************/ if (!defined('TR_INCLUDE_PATH')) { exit; } if (isset($_POST['submit'])) { unset($_POST['submit']); unset($action); store_steps($step); $step++; return; } $file = '../include/config.inc.php'; unset($errors); unset($progress); if (file_exists($file)) { @chmod($file, 0666); if (!is_writeable($file)) { $errors[] = '<strong>' . $file . '</strong> is not writeable. Use <kbd>chmod a+rw ' . $file . '</kbd> to change permissions.'; } else { $progress[] = '<strong>' . $file . '</strong> is writeable.'; } } else { $errors[] = '<strong>' . $file . '</strong> does not exist.';
print_hidden(2); print_post_for_step9($_POST); echo '</form>'; return; } } } //Failed if (isset($errors)) { print_errors($errors); } echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post" name="form"> <input type="hidden" name="step" value="3" />'; store_steps(2); print_hidden(3); print_post_for_step9($_POST); echo '<p align="center"><input type="submit" class="button" value=" Retry " name="submit" /></p></form>'; return; /** --------------------------------------------------------------------------- * Functions declaraion * --------------------------------------------------------------------------- */ /** * Runs through the database and get all the courses' titles and languages out * @param table_prefix is the database table prefix * @course_info is the array that stores the course_id->[charset, encoding] mapping. */