File size: 5.38Kb
<?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: #9cf; font-weight: normal; font-size: 24px }
.title2 { color: #fff; font-weight: bold }
.tabheader { font-weight: bold; font-size: 10px }
.tabline1 { border-top: 1px dotted #fff }
.tabline4 { border-bottom: 1px dotted #fff }
.tabline2 { border-right: 10px none #69f; border-bottom: 1px dotted #339 }
.tabline3 { font-size: 10px; border-top: 1px dotted #fff }
/* links generic */
a:link { color: #fff; text-decoration: none }
a:visited { color: #fff; text-decoration: none }
a:hover { color: #fff; text-decoration: underline }
a:active { color: #fff; text-decoration: underline }
/* links main menu */
a.main1:link { color: #fff; font-weight: bold; font-size: 10px; text-decoration: none }
a.main1:visited { color: #fff; font-weight: bold; font-size: 10px; text-decoration: none }
a.main1:hover { color: #fff; font-weight: bold; font-size: 10px; text-decoration: underline }
a.main1:active { color: #fff; font-weight: bold; font-size: 10px; text-decoration: underline }
a.main2:link { color: #69f; font-weight: bold; font-size: 10px; text-decoration: none }
a.main2:visited { color: #69f; font-weight: bold; font-size: 10px; text-decoration: none }
a.main2:hover { color: #fff; font-weight: bold; font-size: 10px; text-decoration: underline }
a.main2:active { color: #69f; font-weight: bold; font-size: 10px; text-decoration: underline }
-->
</style>
</head>
<body class="standard" background="mms_template/background.gif">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom" height="46">
<td class="title1" valign="middle" nowrap width="100%" height="46">MMS Gallery</td>
<td class="title1" width="250" height="46"></td>
</tr>
<tr valign="bottom" height="12">
<td class="title1" nowrap width="100%" height="12"></td>
<td class="title1" width="250" height="12"></td>
</tr>
</table>
<br>
<?php if (is_array($mms_table)) { ?>
<table border="1" cellspacing="0" cellpadding="0" bgcolor="#dce0fd">
<tr valign="top"><?php $n=1; for ($k=$os; $k < $looplimit; $k++ ) { ?>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#dce0fd">
<tr valign="top">
<td><b>MMS Nr. <?php print ($k+1).'.' ?></b></td>
</tr>
<tr valign="top">
<td><b>Time:</b> <?php print $mms_table["$k"][0]; ?></td>
</tr>
<tr valign="top">
<td><b>From:</b> +<?php print $mms_table["$k"][1]; ?></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="tabline3"><font size="1" face="Verdana">Powered by <a href="http://www.mms2web.com">mms2web.com</a></font></td>
</tr>
</table>
<br>
</body>
</html>