summaryrefslogtreecommitdiff
blob: d1d152d8c774e7406d40d108ff1ba6bb4aecd8f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
function gentoo_init_step3() {
	return array('title' => 'Step 3 - Image Format');
}
function gentoo_body_step3() {
	echo 'Image type: <select name="image_type"><option value="tgz">Tar/Gzip</option><option value="tbz2">Tar/Bzip2</option><option value="installcd">Installer CD with Tar/Bzip2 image</option><option value="livecd">LiveCD</option><option value="ext2">ext2</option><option value="jffs2">jffs2</option></select><br/>';
}
function gentoo_process_step3() {
	global $S, $request;
	if (isset($request['image_type'])) {
		debug('wizard', 'step3: image type='.$request['image_type']);
		$opt=new sql_buildopt($S['wizard.build']->id, 'image_type', $request['image_type']);
		$opt->write();
	} else {
		debug('wizard', 'step3: no image_type variable');
	}
	return true;
}