PHP Classes

File: picture.html

Recommend this page to a friend!
  Classes of nanou morgan   noticeboard   picture.html   Download  
File: picture.html
Role: ???
Content type: text/plain
Description: Page used if picture is needed
Class: noticeboard
Author: By
Last change:
Date: 23 years ago
Size: 2,209 bytes
 

Contents

Class file image Download
<? include ('template.inc'); include ('variable.inc'); /* ------------------------------------------------------------------------ * Nanou Morgan Web http://www.vmedia.com.au * NoticeBoard version 1.1 Personal Web http://www.nanou.com.au * January 2001 Email: nanou@nanou.com.au ________________________________________________________________________ */ $title ="Uploading a picture"; $content .="<P><font face=\"Helvetica,Arial,Geneva\"><font size=\"2\"><b>$title</b></font><br> <P><font face=\"Helvetica,Arial,Geneva\"><font size=\"2\"> You can upload a picture from your PC to this site but: <ul><li> It needs to be no bigger than <b>$pix_filesize bytes</b> <li> No more than <b>$pix_wide pixel wide</b> <li> No more than <b>$pix_high pixel long</b> <li>Your file name must not have any blank space and not be more than 26 characters long, including the extension(.jpg or .gif) </ul> You will need to respect those guidelines or your picture will not be displayed properly. <br><br> <FORM ENCTYPE=\"MULTIPART/FORM-DATA\" ACTION=\"upload.php\" METHOD=POST> <INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"$pix_filesize\"> <p><center><font face=\"Helvetica,Arial,Geneva\"><font size=\"2\">Choose a picture stored on you PC<input type=\"FILE\" name=\"userfile\" size=\"35\"><br> </font><br> <input type=\"submit\" name=\"submit\" value=\"Send File\"></P></FORM> <br><br><br> "; /* parse to template */ $t = new Template( $path); // create a template object named $t $t->set_file( "MyFileHandle", "$template"); // set MyFileHandle = our template file $t->set_var(array( "TITLE" => $title, "FOOTER" => $bot, "CONTENT" => $content)); // set template variable $t->parse( "MyOutput", "MyFileHandle"); // set template variable MyOutput = parsed file $t->p( "MyOutput"); // output the value of MyOutput (our parsed data) ?>