- Nov 6, 2010
- 5,213
- 1,000,000
<?php
$current_rel = "1.7.22";
// Function to get files name is correct to our rom /pack
function check_files_name($file, $marker)
{
return strpos($file, $marker) === 0;
}
// EF
// Function to get device name from file name
function device_name($file)
{
$device = substr($file, 12, 33);
$device = substr($device, 0, -11);
return $device;
}
// Function to get device name from file name
function device_name2($file)
{
$device = substr($file, 18, 33);
$device = substr($device, 0, -10);
return $device;
}
// Deodex ROM
if ( ($handle = opendir('/home/miuiandroid/public_html/rom-dev/output/')) )
{
// Start table
echo '<table border="0" cellspacing="0" cellpadding="0" width="580">
<tbody>';
while( false !== ($file = readdir($handle)) )
{
if(check_files_name($file, 'miuiandroid'))
{
// Loop table for devices
echo '<tr>
<td><img src="http://miuiandroid.com/wp-content/uploads/'.device_name($file).'.png" width="115" height="201" /></td>
<td></td>
<td valign="top">';
echo '<h3>'.device_name($file).' '.$current_rel.'</h3>' . "\n";
echo '<span class="deodex"><a href="http://deodex.miuiandroid.com/miuiandroid_'.device_name($file).'-'.$current_rel.'.zip">Download deodex</a></span>';
echo '<span class="langpack"><a href="http://packs.miuiandroid.com/miuiandroid-'.$current_rel.'_'.device_name($file).'-EN-PACK1_2.3.4.zip">Download language pack</a></span>';
echo '<div class="infobox"><div class="md5">Chinese deodex MD5: <span>'.md5_file("/home/miuiandroid/public_html/rom-dev/output/miuiandroid_".device_name($file)."-".$current_rel.".zip").'</span></div>';
echo '<div class="md5">Language pack MD5: <span>'.md5_file("/home/miuiandroid/public_html/rom-dev/packs/miuiandroid-".$current_rel."_".device_name($file)."-EN-PACK1_2.3.4.zip").'</span></div></div>';
echo '</td>
</tr>';
}
}
echo '</tbody>
</table>' . "\n";
// close directory
closedir($handle);
}
?>
<h2>Unofficial ports</h2>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><img src="http://miuiandroid.com/wp-content/uploads/2011/04/droid-incredible.png" alt="HTC Desire CDMA (Bravo)" width="115" height="201" /></td>
<td></td>
<td valign="top">
<h3>HTC Droid Incredible 1.7.22</h3>
Download: <a href="http://t.co/SqyHJcn" target="_blank">ROM</a>
MD5: 251FC8BB0B4FF6355B33D3C302085A97
Credit:barnacles10 & TheBigNoob</td>
</tr>
<tr>
<td><img src="http://miuiandroid.com/wp-content/uploads/2011/04/desire-generic.png" alt="HTC Desire CDMA (Bravo)" width="115" height="201" /></td>
<td></td>
<td valign="top">
<h3>HTC Desire (CDMA Bravo) 1.7.8 & 2.4.3a</h3>
Download: <a href="http://forums.miuiandroid.com/forumdisplay.php?23-HTC-Desire-CDMA" target="_blank">ROM</a>
MD5: (See forum link in above)
Credit:2fast4u88 &smhouston88 & skuddy</td>
</tr>
<tr>
<td><img src="http://miuiandroid.com/wp-content/uploads/2011/04/usa-droid.png" alt="Motorola Droid" width="115" height="201" /></td>
<td></td>
<td valign="top">
<h3>Motorola Droid 1.7.22</h3>
Download: <a href="http://forums.miuiandroid.com/showthread.php?6600-DEV-ROM-THREAD-NEW-UPDATE-MIUI-1.7.22" target="_blank">ROM</a>
CREDIT: TreyM (MIUI Android Staff)</td>
</tr>
<tr>
<td><img src="http://www.miuiandroid.com/wp-content/uploads/Evo4G.png" alt="HTC Evo 4G" width="115" height="201" /></td>
<td></td>
<td valign="top">
<h3>HTC Evo 4G 1.7.15</h3>
Download: <a href="http://miuiandroid.com/terms-conditions/" target="_blank">http://miuiandroid.com/terms-conditions/</a></td>
</tr>
<tr>
<td><img src="http://www.miuiandroid.com/wp-content/uploads/AcerLiquid.png" alt="Acer Liquid" width="115" height="201" /></td>
<td></td>
<td valign="top"><h3>Acer Liquid 1.7.22</h3>
Download: <a href="http://forums.miuiandroid.com/showthread.php?7878-MIUI-1.7.22" target="_blank">http://forums.miuiandroid.com/showthread.php?7878-MIUI-1.7.22</a></td>
</tr>
<tr>
<td valign="top"><img src="http://www.miuiandroid.com/wp-content/uploads/SGS2.png" alt="Samsung Galaxy S II" width="115" height="201" /></td>
<td></td>
<td valign="top"><h3>Samsung Galaxy S II 1.7.22</h3>
Download: <a href="http://forums.miuiandroid.com/showthread.php?7732-ROM-MIUI-for-GalaxyS2-1.7.22-DEV-bmarko82" target="_blank">http://forums.miuiandroid.com/showthread.php?7732-ROM-MIUI-for-GalaxyS2-1.7.22-DEV-bmarko82</a></td>
</tr>
</tbody>
</table>
$current_rel = "1.7.22";
// Function to get files name is correct to our rom /pack
function check_files_name($file, $marker)
{
return strpos($file, $marker) === 0;
}
// EF
// Function to get device name from file name
function device_name($file)
{
$device = substr($file, 12, 33);
$device = substr($device, 0, -11);
return $device;
}
// Function to get device name from file name
function device_name2($file)
{
$device = substr($file, 18, 33);
$device = substr($device, 0, -10);
return $device;
}
// Deodex ROM
if ( ($handle = opendir('/home/miuiandroid/public_html/rom-dev/output/')) )
{
// Start table
echo '<table border="0" cellspacing="0" cellpadding="0" width="580">
<tbody>';
while( false !== ($file = readdir($handle)) )
{
if(check_files_name($file, 'miuiandroid'))
{
// Loop table for devices
echo '<tr>
<td><img src="http://miuiandroid.com/wp-content/uploads/'.device_name($file).'.png" width="115" height="201" /></td>
<td></td>
<td valign="top">';
echo '<h3>'.device_name($file).' '.$current_rel.'</h3>' . "\n";
echo '<span class="deodex"><a href="http://deodex.miuiandroid.com/miuiandroid_'.device_name($file).'-'.$current_rel.'.zip">Download deodex</a></span>';
echo '<span class="langpack"><a href="http://packs.miuiandroid.com/miuiandroid-'.$current_rel.'_'.device_name($file).'-EN-PACK1_2.3.4.zip">Download language pack</a></span>';
echo '<div class="infobox"><div class="md5">Chinese deodex MD5: <span>'.md5_file("/home/miuiandroid/public_html/rom-dev/output/miuiandroid_".device_name($file)."-".$current_rel.".zip").'</span></div>';
echo '<div class="md5">Language pack MD5: <span>'.md5_file("/home/miuiandroid/public_html/rom-dev/packs/miuiandroid-".$current_rel."_".device_name($file)."-EN-PACK1_2.3.4.zip").'</span></div></div>';
echo '</td>
</tr>';
}
}
echo '</tbody>
</table>' . "\n";
// close directory
closedir($handle);
}
?>
<h2>Unofficial ports</h2>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><img src="http://miuiandroid.com/wp-content/uploads/2011/04/droid-incredible.png" alt="HTC Desire CDMA (Bravo)" width="115" height="201" /></td>
<td></td>
<td valign="top">
<h3>HTC Droid Incredible 1.7.22</h3>
Download: <a href="http://t.co/SqyHJcn" target="_blank">ROM</a>
MD5: 251FC8BB0B4FF6355B33D3C302085A97
Credit:barnacles10 & TheBigNoob</td>
</tr>
<tr>
<td><img src="http://miuiandroid.com/wp-content/uploads/2011/04/desire-generic.png" alt="HTC Desire CDMA (Bravo)" width="115" height="201" /></td>
<td></td>
<td valign="top">
<h3>HTC Desire (CDMA Bravo) 1.7.8 & 2.4.3a</h3>
Download: <a href="http://forums.miuiandroid.com/forumdisplay.php?23-HTC-Desire-CDMA" target="_blank">ROM</a>
MD5: (See forum link in above)
Credit:2fast4u88 &smhouston88 & skuddy</td>
</tr>
<tr>
<td><img src="http://miuiandroid.com/wp-content/uploads/2011/04/usa-droid.png" alt="Motorola Droid" width="115" height="201" /></td>
<td></td>
<td valign="top">
<h3>Motorola Droid 1.7.22</h3>
Download: <a href="http://forums.miuiandroid.com/showthread.php?6600-DEV-ROM-THREAD-NEW-UPDATE-MIUI-1.7.22" target="_blank">ROM</a>
CREDIT: TreyM (MIUI Android Staff)</td>
</tr>
<tr>
<td><img src="http://www.miuiandroid.com/wp-content/uploads/Evo4G.png" alt="HTC Evo 4G" width="115" height="201" /></td>
<td></td>
<td valign="top">
<h3>HTC Evo 4G 1.7.15</h3>
Download: <a href="http://miuiandroid.com/terms-conditions/" target="_blank">http://miuiandroid.com/terms-conditions/</a></td>
</tr>
<tr>
<td><img src="http://www.miuiandroid.com/wp-content/uploads/AcerLiquid.png" alt="Acer Liquid" width="115" height="201" /></td>
<td></td>
<td valign="top"><h3>Acer Liquid 1.7.22</h3>
Download: <a href="http://forums.miuiandroid.com/showthread.php?7878-MIUI-1.7.22" target="_blank">http://forums.miuiandroid.com/showthread.php?7878-MIUI-1.7.22</a></td>
</tr>
<tr>
<td valign="top"><img src="http://www.miuiandroid.com/wp-content/uploads/SGS2.png" alt="Samsung Galaxy S II" width="115" height="201" /></td>
<td></td>
<td valign="top"><h3>Samsung Galaxy S II 1.7.22</h3>
Download: <a href="http://forums.miuiandroid.com/showthread.php?7732-ROM-MIUI-for-GalaxyS2-1.7.22-DEV-bmarko82" target="_blank">http://forums.miuiandroid.com/showthread.php?7732-ROM-MIUI-for-GalaxyS2-1.7.22-DEV-bmarko82</a></td>
</tr>
</tbody>
</table>