. */ if(!defined("SECURECHECK")) {die($lang['error_file_alone']);} if($sid===false OR empty($sid)) { echo "";} else { $error=''; $noerror=''; $newsettings=array(); if(isset($_POST['editchannelname'])) { $channel_edit=$ts3->channelEdit($cid, $_POST['newsettings']); if($channel_edit['success']!==false) { $noerror .= $lang['channelnameeditok']."
"; } else { for($i=0; $i+1==count($channel_edit['errors']); $i++) { $error .= $channel_edit['errors'][$i]."
"; } } } if(isset($_POST['editchannel'])) { if($_POST['chantyp']=='0') { $_POST['newsettings']['channel_flag_permanent']=0; $_POST['newsettings']['channel_flag_semi_permanent']=0; } if($_POST['chantyp']=='1') { $_POST['newsettings']['channel_flag_permanent']=0; $_POST['newsettings']['channel_flag_semi_permanent']=1; } elseif($_POST['chantyp']=='2') { $_POST['newsettings']['channel_flag_permanent']=1; $_POST['newsettings']['channel_flag_semi_permanent']=0; } elseif($_POST['chantyp']=='3') { $_POST['newsettings']['channel_flag_permanent']=1; $_POST['newsettings']['channel_flag_semi_permanent']=0; $_POST['newsettings']['channel_flag_default']=1; } $channel_edit=$ts3->channelEdit($cid, $_POST['newsettings']); if($channel_edit['success']!==false) { $noerror .= $lang['channeleditok']."
"; } else { for($i=0; $i+1==count($channel_edit['errors']); $i++) { $error .= $channel_edit['errors'][$i]."
"; } } } if(isset($_POST['editpw'])) { $channel_edit=$ts3->channelEdit($cid, $_POST['newsettings']); if($channel_edit['success']!==false) { $noerror .= $lang['passwordsetok']."
"; } else { for($i=0; $i+1==count($channel_edit['errors']); $i++) { $error .= $channel_edit['errors'][$i]."
"; } } } if(isset($_POST['movechan'])) { $channel_move=$ts3->channelMove($cid, $_POST['move']); if($channel_move['success']!==false) { $noerror .= $lang['channelmoveok']."
"; } else { for($i=0; $i+1==count($channel_move['errors']); $i++) { $error .= $channel_move['errors'][$i]."
"; } } } $channellist=$ts3->getElement('data', $ts3->channellist()); $channelinfo=$ts3->getElement('data', $ts3->channelInfo($cid)); if(!empty($channellist)) { foreach($channellist AS $key=>$value) { $channellist[$key]=secure($channellist[$key]); } } if(!empty($channelinfo)) { $channelinfo=secure($channelinfo); } $smarty->assign("error", $error); $smarty->assign("noerror", $noerror); $smarty->assign("channellist", $channellist); $smarty->assign("channelinfo", $channelinfo); } ?>