16 |
$alxos = $alxinfo[os]; |
$alxos = $alxinfo[os]; |
17 |
$alxutils = $alxinfo[utils]; |
$alxutils = $alxinfo[utils]; |
18 |
|
|
19 |
|
// get gfxdriver |
20 |
|
$gfxinfo = sqlfirst('SELECT * FROM cfg_graphic WHERE serial='.$id); |
21 |
|
|
22 |
if($kill==1) |
if($kill==1) |
23 |
{ |
{ |
24 |
foreach($tabs as $t) mysql_query('UPDATE '.$t.' SET serial=-serial WHERE serial='.$id); |
foreach($tabs as $t) mysql_query('UPDATE '.$t.' SET serial=-serial WHERE serial='.$id); |
38 |
if($alxos >= '0.6.0') |
if($alxos >= '0.6.0') |
39 |
{ |
{ |
40 |
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'vmware'); |
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'vmware'); |
41 |
|
if($gfxinfo[module] = 'intel') |
42 |
|
{ |
43 |
|
$drop['cfg_graphic_hdmi'] = array('disable', 'enable'); |
44 |
|
} |
45 |
|
else |
46 |
|
{ |
47 |
|
$drop['cfg_graphic_hdmi'] = 'ignore'; |
48 |
|
} |
49 |
} |
} |
50 |
else if($alxos >= '0.5.3') |
else if($alxos >= '0.5.3') |
51 |
{ |
{ |
52 |
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng'); |
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng'); |
53 |
|
$drop['cfg_graphic_hdmi'] = 'ignore'; |
54 |
} |
} |
55 |
else |
else |
56 |
{ |
{ |
57 |
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i810', 'i710', 'nv', 'mga', 'r128', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'via'); |
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i810', 'i710', 'nv', 'mga', 'r128', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'via'); |
58 |
|
$drop['cfg_graphic_hdmi'] = 'ignore'; |
59 |
} |
} |
60 |
$drop['resolution'] = array('640x480', '800x600', '1024x768', '1280x960', '1280x1024', '1360x768', '1366x768', '1400x1050', '1440x900', '1600x1200', '1680x1050', '1280x720', '1920x1080'); |
$drop['resolution'] = array('640x480', '800x600', '1024x768', '1280x960', '1280x1024', '1360x768', '1366x768', '1400x1050', '1440x900', '1600x1200', '1680x1050', '1280x720', '1920x1080'); |
61 |
$drop['depth'] = array('24', '16', '8'); |
$drop['depth'] = array('24', '16', '8'); |