File size: 4.08Kb
<?php
#########################################################
# #
# MMS Gallery PHP version 1.0 #
# #
# This MMS Gallery PHP code is written for #
# mms2web.com customers. This code displays #
# the files in a folder defined by the $mms_dir #
# variable at the mms_template/mms_settings.php file. #
# This folder should be the destination folder #
# of the FTP or HTT POST file transfer from #
# mms2web.com. Grant read, write and execute rights #
# for #
# this folder. #
# #
# Save this file to your WWW root directory. #
# MMS Gallery web address will be (for example): #
# http://www.yourdomain.com/mms.php #
# #
# You are free to make changes to this PHP code #
# and you may distribute it further. #
# This file can be edited with frontpage or other #
# HTML editing software. #
# Check for frequent updates at www.mms2web.com #
# #
# This script collection requires PHP v.4.3.0 #
# #
#########################################################
# This calls for the settings and MMS library. CHANGE THE MMS_SETTINGS.PHP FOR YOUR SITE !
include('mms_template/mms_settings.php');
include('mms_template/mms_lib.php');
# Main program: Executes function from mms_template/mms_lib.php that creates table from MMS files in the MMS directory
$mms_table=mms_table($mms_dir);
$os=$_GET['os'];
if (!$os or $os=='') {
$os=0;
}
$count=count($mms_table);
$button=next2prev($count, $os);
if (($mms_per_page+$os)>=$count) {
$looplimit=$count;
} else {
$looplimit=$mms_per_page+$os;
}
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<meta name="generator" content="Adobe GoLive 5">
<title>MMS Gallery</title>
<script type="text/javascript" language="Javascript">
<!--
function showMessage(URL) {
showMMS = window.open("","windowMMS","width=450,height=350,left=20,top=20,resizable=yes,toolbar=no,status=no,location=no,menubar=no");
showMMS.location.href=URL;
showMMS.focus();
}
// -->
</script>
<style type="text/css" media="screen">
<!--
/* generic */
td { color: black; font-size: 11px; font-family: Verdana }
/* assigned CSS */
.color { color: #fff }
.title1 { color: #000; font-weight: normal; font-size: 24px }
.title2 { color: #000; font-weight: bold }
.tabheader { font-weight: bold; font-size: 10px }
.tabline1 { border-top: 1px dotted #000 }
.tabline4 { border-bottom: 1px dotted #000 }
.tabline2 { border-right: 10px none #69f; border-bottom: 1px dotted #339 }
.tabline3 { font-size: 10px; border-top: 1px dotted #000 }
/* links generic */
a:link { color: #1E90FF; text-decoration: none }
a:visited { color: #1E90FF; text-decoration: none }
a:hover { color: #1E90FF; text-decoration: underline }
a:active { color: #1E90FF; text-decoration: underline }
-->
</style>
</head>
<body class="standard">
<br>
<b>MMS Gallery</b><br>
<br>
<?php if (is_array($mms_table)) { ?>
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><?php $n=1; for ($k=$os; $k < $looplimit; $k++ ) { ?>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="white">
<tr valign="top">
<td><font size="2"> <?php print $mms_table["$k"][0]; ?>
</font></td>
</tr>
<tr valign="top">
<td></td>
</tr>
<tr valign="top">
<td><?php print $mms_table["$k"][2]; ?></td>
</tr>
</table>
</td>
<?php if (is_int($n/$mms_per_row)) { echo"</tr><tr valign=\"top\" >"; }
$n++; }
?></tr>
</table>
<?php echo $button; } else { echo '<br><b> No MMS files available yet </b><br>'; } ?><br>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="20">
<tr>
<td class="tabline1"><font size="1" face="Verdana">Powered by <a href="http://www.mms2web.com">mms2web.com</a></font></td>
</tr>
</table>
<br>
</body>
</html>