<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

  session_start();
  
  define('ISKUFERTOOLS', true);
  

  if (!defined('BASEDIR')) {
    include_once '..' . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'constants.php';
  }



  

  $tool_id = PostOperations::getVarValue('tool');
  $sight_id = PostOperations::getVarValue('sightid');
  $column_id = PostOperations::getVarValue('column_id');
  $anchor = PostOperations::getVarValue('anchor');
  $art = PostOperations::getVarValue('art');
  $gruppe = PostOperations::getVarValue('gruppe');

  $user_id = SessionOperations::getUserID();
  $writecolumns = new writeColumns();
  if ($user_id != -1) {
    switch ($art) {
      case 'nachrichtAnVhs':

        $objsettings = ToolSettingsAPI::getToolSettings($tool_id);
        $objsettings->vhsEmailTool23Section315 = PostOperations::getVarValue('vhsEmailTool23Section315');
        
        ToolSettingsAPI::setToolSettings($objsettings);
        
        echo $writecolumns->getLink($tool_id, $sight_id, $gruppe);
        
        break;
    }
  }