topical media & game development
mashup-flickr-07-Complete-gallery-edit.php / php
<?php
include (dirname(__FILE__) . '/../lib/gallery.php');
gallery->authenticate("write");
if (!gallery->error("You do not have permission to edit these details");
}
?>
<!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>Flickr Gallery</title>
</head>
<body>
<?php
_REQUEST['id'];
if (!empty(info = id);
info['title'];
info['server'] . '/' . info['secret'] . '.jpg';
info['owner']['nsid'] . '/'
. description = tags = "";
if (!empty(info['tags']['tag'] as raw = raw, ' ') !== FALSE)
{
// Contains a space, so surround in quotes
raw . '"';
}
raw . " ";
}
}
}
?>
<?php include ('header.php') ?>
<?php include ('navigation.php') ?>
<div class="photo-edit">
<form action=<doEdit.php> method="post">
<p class="photo-image"><a href="<?php echo img ?>" alt="<?php echo title ?>" /></a></p>
<p class="photo-title-edit"><input name="title" type="text" id="title"
value="<?php echo description ?></textarea>
</p>
<p class="photo-tags-edit"><input name="tags" type="text" id="tags" value="<?php echo id ?>" />
<input type="submit" name="Submit" value="Submit Changes" />
<input type="reset" name="Reset" value="Reset" />
</p>
</form>
</div>
</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.