.
*/
if(isset($_POST['create']))
{
if($_POST['password']!='' AND $_POST['duration']!='')
{
if($ts3->getElement('success', $ts3->serverTemppasswordAdd($_POST['password'], $_POST['duration'], $_POST['tcid'], $_POST['description'])))
{
$noerror.=$lang['temppwcnoerr']."
";
}
else
{
$debug=$ts3->getDebugLog();
foreach($debug AS $key=>$value)
{
$error.=$value."
";
}
}
}
}
if(isset($_POST['temppwdel']))
{
if($ts3->getElement('success', $ts3->serverTemppasswordDel($_POST['pw'])))
{
$noerror.=$lang['temppwdnoerr']."
";
}
else
{
$debug=$ts3->getDebugLog();
foreach($debug AS $key=>$value)
{
$error.=$value."
";
}
}
}
$channellist=$ts3->getElement('data', $ts3->channelList());
$temppwlist=$ts3->getElement('data', $ts3->serverTemppasswordList());
$smarty->assign("channellist", $channellist);
$smarty->assign("temppwlist", $temppwlist);
$smarty->assign("error", $error);
$smarty->assign("noerror", $noerror);
?>