topical media & game development

talk show tell print

mashup-flickr-14-Complete-gallery-replace.php / php



  <?php 
  include (dirname(__FILE__) . '/../lib/gallery.php');
  gallery = new FlickrGallery();    
  gallery->authenticate("write");
  if (!gallery->checkAuthenticatedUser())
  {
    gallery->error("You do not have permission to replace photos");
  }
  ?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../css/gallery.css" rel="stylesheet" type="text/css" />
    <title>Replace Photo</title>
  </head>
  <body>
  <?php include ('header.php') ?>
  <?php include ('navigation.php') ?>
  <?php 
  id = _REQUEST['id'];
  if (!empty(id))
  {
  ?>
  <div class="photo-replace">
    <h1>Replace Photo</h1>
    <form action=<doReplace.php> method="post" enctype="multipart/form-data">
      <p class="upload-field">
        <label>Photo</label>
        <input name="file" type="file" size="50" />
      </p>
      <p>
        <input type="hidden" name="id" value="<?php echo id ?>" />
        <input type="submit" name="Submit" value="Upload Photo" />
        <input type="reset" name="Reset" value="Reset" />
      </p>
    </form>
  </div>
  <?php
  }
  ?>
  </body>
  </html>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.