예제 #1
0
     if ($st->setJingle($audiofile)) {
         $status = "&okjingle=1";
     } else {
         $status = "&errorjingle=1";
     }
     $page->redirect("editStation.php?station=" . rawurlencode($station) . $status . "#manage_files");
 } elseif ($setlogo) {
     $file =& new sotf_File($user->getUserDir() . '/' . $filename);
     if ($st->setLogo($file)) {
         $status = "&oklogo=1";
     } else {
         $status = "&errorlogo=1";
     }
     $page->redirect("editStation.php?station=" . rawurlencode($station) . $status . "#manage_files");
 }
 $usergroups = sotf_Permission::getUsersAndGroups($station);
 for ($i = 0; $i < count($usergroups); $i++) {
     $USERS[$usergroups[$i]['username']]['username'] = $usergroups[$i]['username'];
     $USERS[$usergroups[$i]['username']]['groups'][] = $usergroups[$i]['group_id'];
 }
 if ($USERS) {
     $smarty->assign('USERS', $USERS);
 }
 $GROUPS = sotf_Permission::getGroups();
 if ($GROUPS) {
     $smarty->assign('GROUPS', $GROUPS);
 }
 $smarty->assign('USERFILES', $user->getUserFiles());
 if ($st->getLogo()) {
     $smarty->assign('LOGO', 'getStationLogo.php/icon.png?station=' . rawurlencode($station));
 }