Location: PHPKode > projects > Multimedia2Multimedia > mm2mm/include/umountbox.php
<?php
if ( $config['htmlcomm'] == true ) echo ("<!-- mountbox.php BEGIN -->
");

	echo ("				<ul id=\"uMountbox\">
					<li><i>mm2mm</i> ");

if ( $mountpoints == 1 )
	echo $lang['umountbox_header_b_one'];
	else
	echo $lang['umountbox_header_b_more'];

echo (" ".$mountpoints." ");
if ( $mountpoints == 1 )
	echo $lang['umountbox_header_a_one'];
	else
	echo $lang['umountbox_header_a_more'];
echo ("</li>
					<li>".$lang['umountbox_unmount_message']."</li>
");



$count = 1;
while ( $count < ( $mountpoints + 1 ) ) {
	$mountpoint = (shell_exec("mount | grep www-data | head -n ".$count." | tail -n1"));
	$mountpoint = explode(' ',$mountpoint);
	$mountpoint = $mountpoint[2];
	echo ("					<li><input type=\"submit\" name=\"umount\" value=\"".$mountpoint."\"></li>
");
	$count++;
	}

	echo ("				</ul>
");



if ( $config['htmlcomm'] == true ) echo ("<!-- mountbox.php END -->
");
?>
Return current item: Multimedia2Multimedia