Location: PHPKode > projects > Tagging manager > version 1.02/add.php
<?php
/**
 * add.php sends all session data to a nice template for futher review by the user
 *
 * @author hide@address.com
 * @version 1.0.2
 * @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.'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('title', $_SESSION['title']);
$tpl->set('url', $_SESSION['url']);
$tpl->set('meta_descr', $_SESSION['meta_descr']);
$tpl->set('meta_lang', $_SESSION['meta_lang']);
$tpl->set('snipset', $_SESSION['snipset']);
if(count($_SESSION['arrayTags'])>1)$tpl->set('arrayTags', $_SESSION['arrayTags']);
$tpl->set('seperator', $_SESSION['seperator']);
$tpl->set('captcha', $captcha);
$tpl->set('userid', $myUser->user_id);
$tpl->set('username', $myUser->userName);
$tpl->set('redirect', $backtourl);
$tpl->set('archivelink', "html.php");
/*
$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 {
header("Location: $location/loginbox.php?path=add.php");
}

?>
Return current item: Tagging manager