Location: PHPKode > scripts > DB Version Manager > add.php
<?php 
/**
 * File for handling adding new queries from GUI
 */
require('profile.php');
require('lib/config_manager.php');
require('lib/db_updater.php');

if (!empty($_POST['commands'])) {
	
	$oConf = new ConfigManager(CURRENT_PROFILE);
	$oDbUpdater = new DbUpdater($oConf);
	
	$oDbUpdater->prepareFIles($_POST['commands']);
	
	//@TODO add host path
	header('Location: update.php');
}


?>

<html>
	<head>
	<title>Add new commands</title>
	</head>
	
	<body>
	
	<form action="add.php" method="post">
	
	<label>Type new sql commands</label><br />
	<textarea rows="30" cols="100" name="commands"></textarea>
	<br />
	<input type="submit" />
	
	</form>
	</body>
</html>

Return current item: DB Version Manager