Location: PHPKode > projects > Tagging manager > version 1.02/update.php
<?php
/**
 * update metainformation for a certain id (must be migrated with the add.php in the future)
 *
 *
 * @author hide@address.com
 * @version 1.0
 * @package TaggingManager
 */

  session_start();
  $root_path = './';
  
  include_once($root_path.'config.php');
	  
  require_once($root_path.'includes/dbconn.php');
  require_once($root_path.'includes/functions.php');
  require_once($root_path.'includes/form.php');
  require_once($root_path.'includes/template.php');
  require_once($root_path.'includes/user.php');
  require_once($root_path.'includes/metadata.php');
  require_once($root_path.'language/'.$language);
    
if (isset($_COOKIE["user"]) AND isset($_COOKIE["secret"])) {
$myUser = new User;

$myUser->userName = $_COOKIE["user"];
$myUser->userPassword = $_COOKIE["secret"];

$myUser->verifyPassword();

$link = new Link($_GET["id"]);
if ($myUser->user_id == $link->user_id) {
//start templatebuilding (output)
$tpl = & new Template();
$tpl->set('action', 'update');
$tpl->set('button', $lang['update']);
$tpl->set('title', $link->title);
$tpl->set('url', $link->url);
$tpl->set('meta_descr', $link->description);
$tpl->set('meta_id', $link->meta_id);
$tpl->set('snipset', $link->snipset);
$tagList = tagList($_GET['id']); //this is an array with all the tags for this url
//print_r($tagList);
$tpl->set('link_taglist', $tagList);
$tpl->set('taxselected', $link->taxonomy_id);
$tpl->set('datum', $link->datum);
$tpl->set('author', $link->author);
$tpl->set('archivelink', "archive.php?id=".$_GET['id']);
$tpl->set('seperator', $seperator);
$tpl->set('captcha', $captcha);
$tpl->set('userid', $myUser->user_id);
$tpl->set('username', $myUser->userName);
$tpl->set('deletefield', "<input type='checkbox' name='delete' value='1'> ". $lang['delete']);

//$dynform = new Form('1');
//$formpje = $dynform->getFormElements('1');
//$tpl->set('dynform', $formpje);

$tpl->set('taxonomy', 'tax');
$tpl->set('javascripts', '<script type="text/javascript" src="'.$location.'/includes/dtree.js"></script>');

echo $tpl->fetch($root_path.'template/'.$template.'/data.tpl',$language);
}
else { die('This page does not belong to you, you have no permission te adjust it :-)');
}
}

?>
Return current item: Tagging manager