/** J\"{a}rjest\"{a} kysymykset tagin mukaan */ function organize_questions_by_tag() { /* $end_array array * $tags_and_Qid array * $titles_and_Qid array * $titles array * $was_sent_at_times array * $usernames array * $user_ids array */ $end_array = get_tags(); $tags_and_Qid = get_tags(); $titles_and_Qid = get_titles(); $titles = get_titles(); $was_sent_at_times = get_was_sent_at_times(); $usernames = get_usernames(); $user_ids = get_user_ids(); if ($_GET['tab_tag'] == 'oldest') { organize_questions($end_array, $tags_and_Qid, $titles_and_Qid, $titles, $was_sent_at_times, $usernames, $user_ids); } else { organize_questions(array_reverse($end_array, true), $tags_and_Qid, $titles_and_Qid, $titles, $was_sent_at_times, $usernames, $user_ids); } }
$_GET['id' . $j] = abs($_GET['id' . $j]); if ($_GET['id' . $j] == $owner) { //do nothing } else { $hidden_vars['id[' . $j . ']'] = $_GET['id' . $j]; $member_ids .= $_GET['id' . $j] . ', '; } $j++; } $member_ids = substr($member_ids, 0, -2); $hidden_vars['func'] = $_GET['func']; $hidden_vars['current_tab'] = $_GET['current_tab']; $hidden_vars['gid'] = abs($_GET['gid']); $hidden_vars['course_id'] = $course_id; //get usernames of users about to be edited $str = get_usernames($member_ids); //Print appropriate confirm msg for action if ($_GET['func'] == 'remove') { $confirm = array('REMOVE_STUDENT', $str); $msg->addConfirm($confirm, $hidden_vars); } else { if ($_GET['func'] == 'enroll') { $confirm = array('ENROLL_STUDENT', $str); $msg->addConfirm($confirm, $hidden_vars); } else { if ($_GET['func'] == 'unenroll') { if (check_roles($member_ids) == 1) { $confirm = array('UNENROLL_PRIV', $str); $msg->addConfirm($confirm, $hidden_vars); } else { $confirm = array('UNENROLL_STUDENT', $str);
<tr class="inbox_item <?php echo $unread ? 'unread' : ''; ?> <?php echo $view ? '' : 'hide'; ?> "> <td width="180"> <div> <img class="user_avatar" src="<?php echo get_avatar($message['last_from']); ?> " width="50" height="50"> <div> <span class="user"><?php echo $_GET["m"] == "sent" ? 'To: ' . implode(', ', get_usernames($message['to'])) : get_username($message['last_from']); ?> </span> <span class="date"><?php echo contextual_time(strtotime($message['last_datetime'])); ?> <?php echo $_GET["m"] != "sent" ? $to : ''; ?> </span> </div> </div> </td> <td> <div class="pad_right"> <span class="subject"><a href="?id=<?php
?> <a class="badge alert" href="http://getdirectus.com/">Free Version</a><?php } ?> </div> <ul id="user_nav" class="clearfix"> <li id="throbber"><img src="<?php echo $directus_path; ?> media/site/throbber.gif" width="16" height="16" /></li> <li><img class="user_avatar" src="<?php echo get_avatar($cms_user['id']); ?> " width="16" height="16"> <span class="username" title="<?php echo implode(', ', get_usernames(implode(',', $users_online))); ?> "><?php echo $cms_user["username"]; ?> </span></li> <li><a href="<?php echo $directus_path; ?> messages.php"><span>Inbox<?php echo $unread_messages_total > 0 ? '<span class="badge inbox_count">' . $unread_messages_total . '</span>' : ''; ?> </span></a></li> <?php if ($cms_user['editable'] == '1') { ?>