<?php
/*
// +--------------------------------------------------------------------------+
// | Project: Webtrans - Webinterface for sc_trans_linux |
// +--------------------------------------------------------------------------+
// | This file is part of Webtrans. Webtrans is a web interface for |
// | sc_trans_linux from shoutcast.com. This interface should make it |
// | easyer to handle the playlists and config files. |
// | |
// | Webtrans is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | Webtrans is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with Webtrans; if not, write to the Free Software Foundation, |
// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +--------------------------------------------------------------------------+
// | Obige Zeilen dürfen nicht entfernt werden! Do not remove above lines! |
// +--------------------------------------------------------------------------+
*/
include('loginauth.php');
function getRequestVar($varName)
{
if (array_key_exists($varName,$_REQUEST))
{
if (is_array($_REQUEST[$varName]))
{
$tmpArr = $_REQUEST[$varName];
foreach($tmpArr as $key => $value);
{
$tmpArr[$key] = htmlentities(trim($value), ENT_QUOTES);
}
return $tmpArr;
} else {
return htmlentities(trim($_REQUEST[$varName]), ENT_QUOTES);
}
}
else
{
return '';
}
}
?>