<?php
/**
* same as add.php but to created empty form for taggingdata
*
* @author michael.zenner
* @package taggingmanager
*/
/* ============================================================
* new.php
* -------------------
* Date : 22 june 2006
* E-mail : hide@address.com
*
* Version : 1.0.2 (08/08/2006 - 16:00)
*
* This a free software
* licensed under GPL (General public license)
*
============================================================ */
session_start();
$root_path = './';
include_once($root_path.'config.php');
require_once($root_path.'includes/dbconn.php');
require_once($root_path.'includes/template.php');
require_once($root_path.'includes/user.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();
//start templatebuilding (output)
$tpl = & new Template();
$tpl->set('action', 'write');
$tpl->set('button', $lang['save']);
$tpl->set('captcha', $captcha);
$tpl->set('archivelink', '#');
$tpl->set('userid', $myUser->user_id);
$tpl->set('username', $myUser->userName);
$tpl->set('redirect', '0');
$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 {
header("Location: $location/loginbox.php?path=new.php");
}
?>