voxforge.org
VoxForge Dev

Changeset 2307

Show
Ignore:
Timestamp:
10/03/07 14:28:15 (1 year ago)
Author:
kmaclean
Message:

updates to server-side scripts for Speech Submission app

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/SpeechSubmission/VFSpeechSubmission/server/SubmitSpeechServerStart.php

    r2306 r2307  
    22 
    33<head> 
    4         <title>Applet test</title> 
     4        <title>VoxForge Speech Submission Application</title> 
    55</head> 
    66         
    77<body> 
    8 <?php 
    9 setcookie("user", "VoxForge", time()+3600); 
    10 if (isset($_COOKIE["user"])) 
    11   echo "Welcome " . $_COOKIE["user"] . "!<br />"; 
    12 else 
    13   echo "Welcome guest!<br />"; 
    148 
    15 ?> 
    169<?php 
    1710require_once('NewSubmitSpeechServer.php'); 
     
    1912echo speex_postlet_applet( 
    2013'http://www.repository.voxforge1.org/SubmitSpeech/javaUploadServer.php',  
    21 'http://www.repository.voxforge1.org/SubmitSpeech/endpage.html', 
     14'http://www.repository.voxforge1.org/SubmitSpeech/endpage.php', 
    2215'http://www.repository.voxforge1.org/SubmitSpeech' 
    2316     ); 
  • Trunk/SpeechSubmission/VFSpeechSubmission/server/endpage.php

    r2306 r2307  
    1 <HTML> 
    2 <P>Thank you for the upload</P> 
    3 <P><BR><BR> 
    4 </P> 
    5 </HTML> 
     1<title>VoxForge Repository</title> 
     2 
     3        <style type="text/css"> 
     4        .siteFunctions { 
     5                text-align: right; 
     6        } 
     7        .copyright { 
     8                test-align: left; 
     9                color: #2E3436; 
     10                font-family: sans-serif; 
     11                font-size: small; 
     12        } 
     13 
     14        body { 
     15                font-family: "DejaVu Sans", "Lucida Sans Unicode", sans-serif; 
     16                font-weight:    normal; 
     17                word-spacing:   normal; 
     18                letter-spacing: normal;  
     19                text-transform: none; 
     20                font-size: medium; 
     21                text-align: justify; 
     22        } 
     23        h2 { 
     24                font-size:      1.5em; 
     25                font-weight:    700; 
     26                margin-top:1em; 
     27                margin-bottom:0.8em; 
     28        } 
     29        h3 { 
     30                font-size:      1.1em; 
     31                font-weight:    600; 
     32                margin-top:1em; 
     33                margin-bottom:0.4em; 
     34        } 
     35        p, ol, ul { 
     36                font-size:      1em; 
     37                margin-top:0.4em; 
     38                margin-bottom:0.4em; 
     39        }        
     40        .heading { 
     41                background-color: #555753; 
     42                color: #D3D7CF; 
     43                font-size: 40px; 
     44                vertical-align: bottom; 
     45        } 
     46        .logo { 
     47                width: 100px;  
     48                float: left; 
     49                text-align: left; 
     50        } 
     51        .logo img { 
     52                border: 0px; 
     53        } 
     54        img { 
     55                border: 0px; 
     56        } 
     57        .clickableicons { 
     58        } 
     59        .endFloat { 
     60                clear: both; 
     61         
     62        } 
     63        .padding { 
     64                padding: 10px; 
     65        } 
     66        .bodyContent { 
     67                background-color: #ffffff; 
     68                color: #2E3436; 
     69                text-align: justify; 
     70        } 
     71        .menu { 
     72                color: #D3D7CF; 
     73                background-color: #555753; 
     74                text-align: left; 
     75        } 
     76 
     77        .menu2 { 
     78                color: #D3D7CF; 
     79                background-color: #555753; 
     80                text-align: center; 
     81                 
     82        } 
     83        a { 
     84                color: #f57900; 
     85                text-decoration:none; 
     86        } 
     87        a:visited { 
     88                color: #ce5c00; 
     89        } 
     90        a:hover { 
     91                text-decoration:underline; 
     92        } 
     93        .menu a { 
     94                color: #D3D7CF; 
     95                font-weight: bold;  
     96        } 
     97        .menu a:hover { 
     98                color: #eeeeec; 
     99                text-decoration:none; 
     100        } 
     101 
     102        </style> 
     103</head><body> 
     104 
     105 
     106 
     107<div class="heading"> 
     108<div class="padding"> 
     109<div class="logo"><a href="http://www.voxforge.org"><img src="http://www.voxforge.org/uploads/CQ/vE/CQvEzFYe85HH5hkI705eXQ/voxforge-logo.jpg" alt="VoxForge Repository"> </a></div>  
     110 
     111<div class="endFloat"></div> 
     112 
     113</div> 
     114</div> 
     115 
     116<div class="menu"> 
     117        <div class="padding">            
     118                 
     119                 
     120<span class="horizontalMenu"> 
     121 
     122<a class="horizontalMenu" href="http://www.voxforge.org/home">Home</a> 
     123    &middot;  
     124 
     125<a class="horizontalMenu" href="http://www.voxforge.org/home/read">Read</a> 
     126    &middot;  
     127 
     128<a class="horizontalMenu" href="http://www.voxforge.org/home/listen">Listen</a> 
     129    &middot;  
     130 
     131<a class="horizontalMenu" href="http://www.voxforge.org/home/audiobooks">AudioBooks</a> 
     132    &middot;  
     133 
     134<a class="horizontalMenu" href="http://www.voxforge.org/home/forums">Forums</a> 
     135    &middot;  
     136 
     137<a class="horizontalMenu" href="http://www.voxforge.org/home/dev">Dev</a> 
     138 
     139    &middot;  
     140 
     141<a class="horizontalMenu" href="http://www.voxforge.org/home/downloads">Downloads</a> 
     142    &middot;  
     143 
     144<a class="horizontalMenu" href="http://www.voxforge.org/home/about">About</a> 
     145  
     146 
     147   
     148 
     149</span></div> 
     150 
     151</div> 
     152 
     153 
     154 
     155</div> 
     156 
     157 
     158</br></br> 
     159<P><b>Thank you for your submission!</b></P> 
     160</br> 
     161<P>See below for a current list of the speech submissions waiting to be incorporated into the VoxForge Corpus.</P> 
     162 
     163<table style="background-color: #cccccc"  border="1" height="135" width="500"> 
     164<tbody><tr><td><font size="2"> 
     165      <p>Please Note: </p> 
     166      <p>1. It may take a few minutes for your submission to appear in the listing below (the speech submission application will continue to upload your submission in the background, even though it appears that the applications has completed uploading - it all depends on the upload speed of your Internet connection).   try clicking refresh after waiting a bit.  If your submission still does not appear, please leave a message in the forum on the <a class="horizontalMenu" href="http://www.voxforge.org/home/read">Read</a> page.</p> 
     167      <p>2. For security reasons, the files in the listing below are non-clickable.&nbsp;&nbsp; <br /> 
     168      </p> 
     169</font></td></tr></tbody> 
     170</table> 
     171</br></br> 
     172<?PHP 
     173 
     174//define the path as relative 
     175$path = "../public/speechsubmissions/"; 
     176 
     177//using the opendir function 
     178$dir_handle = @opendir($path) or die("Unable to open $path"); 
     179echo "<b>Speech Submissions Awaiting Processing</b><br/>"; 
     180echo "===========================<br/>"; 
     181//running the while loop 
     182while (false !== ($file = readdir($dir_handle))) { 
     183    if ($file != "." && $file != "..") { 
     184        echo "$file<br>"; 
     185    } 
     186
     187echo "===========================<br/>"; 
     188//closing the directory 
     189closedir($dir_handle); 
     190?>  
     191 
     192<br><br> 
     193<div class="copyright">&#169; 2005-2007 VoxForge; Legal: <a href="http://www.voxforge.org/home/about/legal">Terms and Conditions</a></div> 
     194</body> 
     195 
     196<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> 
     197</script> 
     198<script type="text/javascript"> 
     199_uacct = "UA-1183615-5"; 
     200urchinTracker(); 
     201</script> 
  • Trunk/SpeechSubmission/VFSpeechSubmission/server/javaUploadServer.php

    r2306 r2307  
    2424// or "c:\php\uploads\" 
    2525// Note, this MUST have the trailing slash. 
    26 $uploaddir = 'public/'; 
     26//$uploaddir = 'public/'; 
     27$uploaddir = '../public/speechsubmissions/'; 
    2728// Whether or not to allow the upload of specific files 
    2829$allow_or_deny = true;