</TD></TR> <TR><TD align="left"> <INPUT class="button" type=submit name="save_preview" class="small" value="' . lang('mail_preview') . '"> </TD><TD align="right"> <INPUT class="button" type=submit name="save" value="' . lang('save') . '"> </TD></TR> </TABLE> </TD></TR> <TR> <TD colspan=2> <TABLE class="or_option_buttons_box" style="background: ' . $color['options_box_background'] . ';"> <TR> <TD colspan=3>' . lang('reminder_mails_in_mail_queue') . ': '; $qmails = experimentmail__mails_in_queue("session_reminder", $experiment_id); echo $qmails; if (check_allow('mailqueue_show_experiment')) { echo ' ' . button_link('experiment_mailqueue_show.php?experiment_id=' . $experiment['experiment_id'], lang('monitor_experiment_mail_queue'), 'envelope-square'); } echo '</TD></TR></TABLE> </TD> </TR>'; echo ' </TABLE> </FORM>'; echo '<BR><A HREF="experiment_show.php?experiment_id=' . $experiment_id . '">' . lang('mainpage_of_this_experiment') . '</A><BR><BR> </CENTER>'; } } include "footer.php";
echo ' </TD> <TD>'; if ($inputform == 'area') { echo '<textarea name="' . $language . '" cols=50 rows=20 wrap=virtual>' . stripslashes($titem[$language]) . '</textarea>'; } else { echo '<INPUT name="' . $language, '" type="text" size=30 maxlength=100 value="' . stripslashes($titem[$language]) . '">'; } echo ' </TD> </TR>'; } echo ' </TABLE> <TABLE> <TR> <TD COLSPAN=2 align=center> <INPUT class="button" name=edit type=submit value="' . $button_title . '"> </TD> </TR> </table> </FORM> <BR>'; if ($id && check_allow($allow_cat . '_delete')) { echo '<BR><BR> ' . button_link('lang_item_delete.php?id=' . urlencode($id) . '&item=' . urlencode($item), lang('delete'), 'trash-o') . ' '; } echo '<BR><BR> <A href="lang_item_main.php?item=' . $item . '"><i class="fa fa-level-up fa-lg" style="padding-right: 3px;"></i>' . lang('back') . '</A><BR><BR> </center>'; } include "footer.php";
<?php // part of orsee. see orsee.org ob_start(); $menu__area = "options"; $title = "sub_subjectpools"; include "header.php"; if ($proceed) { $allow = check_allow('subjectpool_edit', 'options_main.php'); } if ($proceed) { echo '<center>'; if (check_allow('subjectpool_add')) { echo '<BR>' . button_link('subpool_edit.php?addit=true', lang('create_new'), 'plus-circle'); } echo '<BR><BR> <table class="or_listtable"><thead> <TR style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';"> <TD>' . lang('id') . '</TD> <TD>' . lang('name') . ' <TD>' . lang('description') . '</TD> <TD>' . lang('subjects') . '</TD> <TD></TD> </TR></thead> <tbody>'; $part_counts = array(); $query = "SELECT count(*) as part_count, subpool_id FROM " . table('participants') . " GROUP BY subpool_id"; $result = or_query($query); while ($line = pdo_fetch_assoc($result)) { $part_counts[$line['subpool_id']] = $line['part_count']; }
if ($proceed) { // form echo ' <CENTER> <TABLE class="or_formtable"> <TR><TD colspan=2> <TABLE width="100%" border=0 class="or_panel_title"><TR> <TD style="background: ' . $color['panel_title_background'] . '; color: ' . $color['panel_title_textcolor'] . '" align="center"> ' . $header . ' - ' . $titem[$headervar] . ' </TD> </TR></TABLE> </TD></TR> <TR> <TD colspan=2> ' . lang('do_you_really_want_to_delete') . ' <BR><BR>'; dump_array($titem); echo ' </TD> </TR> <TR> <TD align=left> ' . button_link('lang_item_delete.php?id=' . urlencode($id) . '&item=' . urlencode($item) . '&reallydelete=true', lang('yes_delete'), 'check-square biconred') . ' </TD> <TD align=right> ' . button_link('lang_item_delete.php?id=' . urlencode($id) . '&item=' . urlencode($item) . '&betternot=true', lang('no_sorry'), 'undo bicongreen') . ' </TD> </TR> </TABLE> </center>'; } include "footer.php";
<TD> ' . lang('answer_in_xxxlang') . ' ' . $language . ' </TD> <TD> <textarea name="answer[' . $language . ']" cols=40 rows=20 wrap=virtual>' . stripslashes($answer[$language]) . '</textarea> </TD> </TR>'; } echo ' <TR> <TD COLSPAN=2 align=center> <INPUT class="button" name=edit type=submit value="'; if ($faq_id) { echo lang('change'); } else { echo lang('add'); } echo '"> </TD> </TR> </table> </FORM> <BR>'; if ($faq_id && check_allow('faq_delete')) { echo '<BR><BR> ' . button_link('faq_delete.php?faq_id=' . urlencode($faq_id), lang('delete'), 'trash-o'); } echo '<BR><BR> <A href="faq_main.php">' . icon('back') . ' ' . lang('back') . '</A><BR><BR> </center>'; } include "footer.php";
<?php require '../../include/ctf.inc.php'; enforce_authentication(CONST_USER_CLASS_MODERATOR); head('Hints'); menu_management(); section_head('Hints', button_link('Add new hint', 'new_hint'), false); echo ' <table id="hints" class="table table-striped table-hover"> <thead> <tr> <th>Challenge</th> <th>Added</th> <th>Hint</th> <th>Manage</th> </tr> </thead> <tbody> '; $hints = db_query_fetch_all(' SELECT h.id, h.added, h.body, c.title FROM hints AS h LEFT JOIN challenges AS c ON c.id = h.challenge'); foreach ($hints as $hint) { echo ' <tr> <td>', htmlspecialchars($hint['title']), '</td>
<?php require '../../include/ctf.inc.php'; enforce_authentication(CONST_USER_CLASS_MODERATOR); head('Dynamic pages'); menu_management(); section_head('Dynamic pages', button_link('New page', 'new_dynamic_page'), false); $pages = db_select_all('dynamic_pages', array('id', 'title', 'visibility', 'min_user_class'), null, 'title ASC'); echo ' <table id="dynamic_pages" class="table table-striped table-hover"> <thead> <tr> <th>Title</th> <th>visibility</th> <th>Min user class</th> <th>Manage</th> </tr> </thead> <tbody> '; foreach ($pages as $item) { echo ' <tr> <td>', htmlspecialchars($item['title']), '</td> <td>', visibility_enum_to_name($item['visibility']), '</td> <td>', user_class_name($item['min_user_class']), '</td> <td><a href="' . CONFIG_SITE_ADMIN_URL . 'edit_dynamic_page?id=', $item['id'], '" class="btn btn-xs btn-primary">Edit</a></td> </tr> '; } echo '
} $query = ' FROM submissions AS s LEFT JOIN users AS u on s.user_id = u.id LEFT JOIN challenges AS c ON c.id = s.challenge '; if (!empty($where)) { $query .= 'WHERE ' . implode('=? AND ', array_keys($where)) . '=? '; } if (array_get($_GET, 'user_id')) { section_head('User submissions', button_link('List all submissions', 'list_submissions?only_needing_marking=0'), false); } else { if ($only_needing_marking) { section_head('Submissions in need of marking', button_link('List all submissions', 'list_submissions?only_needing_marking=0'), false); } else { section_head('All submissions', button_link('Show only submissions in need of marking', 'list_submissions?only_needing_marking=1'), false); } } $num_subs = db_query_fetch_one(' SELECT COUNT(*) AS num ' . $query, array_values($where)); $from = get_pager_from($_GET); $results_per_page = 70; pager(CONFIG_SITE_ADMIN_URL . 'list_submissions', $num_subs['num'], $results_per_page, $from); echo ' <table id="files" class="table table-striped table-hover"> <thead> <tr> <th>Challenge</th> <th>Team name</th>
' . lang('delete_language') . ' ' . $lang_names[$tlang] . ' (' . $tlang . ') </TD> </TR></TABLE> </TD></TR> <TR> <TD colspan=2> ' . lang('do_you_really_want_to_delete') . ' <BR><BR> </TD> </TR> <TR> <TD align=left> ' . button_link('lang_lang_delete.php?elang=' . urlencode($tlang) . '&nlang=' . urlencode($slang) . '&reallydelete=true', lang('yes_delete'), 'check-square biconred') . ' </TD> <TD align=right> ' . button_link('lang_lang_delete.php?elang=' . urlencode($tlang) . '&nlang=' . urlencode($slang) . '&betternot=true', lang('no_sorry'), 'undo bicongreen') . ' </TD> </TR> </TABLE> </FORM> </center>'; } } else { // delete form echo ' <BR><BR> <center>'; echo ' <FORM action="lang_lang_delete.php"> <TABLE class="or_formtable"> <TR>
<?php // part of orsee. see orsee.org ob_start(); $menu__area = "options"; $title = "participant_statuses"; include "header.php"; if ($proceed) { $allow = check_allow('participantstatus_edit', 'options_main.php'); } if ($proceed) { echo '<center>'; if (check_allow('participantstatus_add')) { echo ' <BR> ' . button_link('participant_status_edit.php?addit=true', lang('create_new'), 'plus-circle'); } echo '<BR> <table class="or_listtable" style="width: 80%;"><thead> <TR style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';"> <TD>' . lang('id') . '</TD> <TD>' . lang('name') . ' <TD>' . lang('access_to_profile') . '</TD> <TD>' . lang('eligible_for_experiments') . '</TD> <TD>' . lang('default_for_active_participants') . '</TD> <TD>' . lang('default_for_inactive_participants') . '</TD> <TD>' . lang('subjects') . '</TD>'; if (check_allow('participantstatus_edit')) { echo '<TD></TD>'; } echo '
</TD> </TR> </TABLE> </FORM> </center> '; } } } else { if (!isset($preloaded_laboratories)) { $preloaded_laboratories = laboratories__get_laboratories(); } echo '<center>'; echo '<p align="right"><TABLE border=0>'; echo '<TR><TD>' . button_link('participant_edit.php' . $token_string, lang('edit_your_profile'), 'pencil-square-o') . '</TD></TR>'; echo '</TABLE></P>'; echo '<table border="0" width="90%">'; echo '<TR><TD> <TABLE width="100%" class="or_panel" style="width: 100%;"> <TR><TD> <TABLE width="100%" border=0 class="or_panel_title"><TR> <TD style="background: ' . $color['panel_title_background'] . '; color: ' . $color['panel_title_textcolor'] . '"> ' . lang('experiments_you_are_invited_for') . ' </TD> </TR></TABLE> </TD></TR> <TR><TD> ' . lang('please_check_availability_before_register') . ' </TD></TR> <TR><TD>';
echo ' <TD> ' . button_link('participants_show.php?active=true', lang('edit_active_participants'), 'list-alt') . ' </TD> <TD> ' . button_link('participants_show.php', lang('edit_all_participants'), 'search') . ' </TD> '; } if (check_allow('participants_edit')) { echo ' <TD> ' . button_link('participants_edit.php', lang('add_participant'), 'plus-circle') . ' </TD> '; } if (check_allow('participants_duplicates')) { echo ' <TD> ' . button_link('participants_duplicates.php', lang('search_for_duplicates'), 'magnet') . ' </TD> '; } echo ' </TR> </TABLE> </TD></TR> </TABLE> </center>'; } include "footer.php";
log__participant("logout", $participant['participant_id']); participant__logout(); redirect("public/participant_login.php?pw=true"); } $proceed = false; } } if ($proceed) { echo ' <center>'; show_message(); echo '<TABLE border=0><TR><TD align="center">'; echo '<form action="participant_change_pw.php" method="POST">'; echo '<table class="or_formtable" style="width: 50%;"> <tr><td>' . lang('old_password') . '<BR> <input type="password" name="passold" size="20" max-length="30"> </td></tr>'; echo participant__password_form_fields(true, false); echo '<tr><td align="center"> <input class="button" type="submit" name="submit" value="' . lang('change') . '"> </td></tr> </table> </form>'; echo '</TD><TD align="right" valign="top">'; echo '<TABLE border=0>'; echo '<TR><TD>' . button_link('participant_edit.php', lang('edit_your_profile'), 'pencil-square-o') . '</TD></TR>'; echo '<TR><TD>' . button_link('participant_show.php', lang('my_registrations'), 'calendar-o') . '</TD></TR>'; echo '</TABLE>'; echo '</TD><TR></TABLE>'; echo '</center>'; } include "footer.php";
if ($mode == 'inbox') { echo lang('mailbox_inbox'); } elseif ($mode == 'experiment') { echo lang('experiment') . ': ' . $experiment['experiment_name']; } elseif ($mode == 'session') { echo lang('session') . ': ' . $experiment['experiment_name'] . ', ' . session__build_name($session); } elseif ($mode == 'participant') { echo lang('participant') . ': ' . $participant['email']; } elseif ($mode == 'mailbox') { echo lang('email_mailbox') . ': ' . $mailboxes[$id]; } elseif ($mode == 'listmailboxes') { echo lang('all_mailboxes'); } elseif ($mode == 'trash') { echo lang('mailbox_trash'); if (check_allow('emails_trash_empty')) { echo button_link(thisdoc() . '?mode=trash&empty_trash=true', lang('email_empty_trash'), 'trash') . '<BR>'; } } echo ' </TD></TR></TABLE> </TD></TR> <TR><TD align="center">'; // list emails if ($mode == 'listmailboxes') { // show mail boxes email__show_mail_boxes(); } elseif ($mode == 'search') { // search for emails and list them } else { echo javascript__email_popup(); email__list_emails($mode, $id, $rmode, $url_string);
echo ' </TD> <TD>'; if (isset($lang['cron_job_time_' . $line['job_time']])) { echo $lang['cron_job_time_' . $line['job_time']]; } else { echo $line['job_time']; } echo ' </TD> <TD>'; if ($line['job_last_exec'] == 0) { echo lang('never'); } else { echo ortime__format($line['job_last_exec'], 'hide_second:false', lang('lang')); } echo ' </TD> <TD>'; if ($allow_edit) { echo '<A HREF="cronjob_edit.php?job_name=' . $line['job_name'] . '">' . lang('edit') . '</A>'; } echo ' </TD>'; echo '<TD>'; if ($allow_run) { echo button_link('cronjob_main.php?job_name=' . $line['job_name'] . '&exec=true', lang('run_now'), 'play-circle', 'font-size: 8pt;'); } echo '</TD>'; echo '</tr>'; } echo '</tbody></table> </CENTER>'; } include "footer.php";
if (check_allow('lang_symbol_add')) { echo ' <TD> ' . button_link('lang_symbol_edit.php?go=true', lang('add_symbol'), 'plus-circle') . ' </TD>'; } if (check_allow('lang_lang_add')) { echo ' <TD> ' . button_link('lang_lang_add.php', lang('add_language'), 'plus') . ' </TD>'; } if (check_allow('lang_lang_delete')) { echo ' <TD> ' . button_link('lang_lang_delete.php', lang('delete_language'), 'times') . ' </TD>'; } echo ' </TR> </TABLE><BR><BR> '; // show languages echo '<FORM action="' . thisdoc() . '">'; echo '<TABLE class="or_listtable" style="width: 80%;"><thead> <TR style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';"> <TD colspan=2>' . lang('installed_languages') . '</TD> <TD>' . lang('available_in_public_area') . '</TD> <TD>' . lang('available_for_participants') . '</TD> <TD></TD> <TD></TD> </TR></thead>
while ($row = mysqli_fetch_assoc($result)) { // extract($row); $Name = $row['name_group']; $ID = $row['id_group']; $KName = $row['name_kingdom']; $link = "<li class='list-group-item text-left'><a href='./list.php?group={$ID}'>{$Name} - {$KName}</a></li>"; // $link = "<li> $Name </li>"; echo "{$link}"; } echo "</ul></div> <!-- ./col-md-8 --></div><!-- ./row -->"; //close out list and open divs /*#######################################################################################*/ echo "<div class='container'><div class='row'><div class='col-md-8 col-md-offset-2'>"; echo form_title("<a name='events'>Events matching <i>{$part_name}</i></a><small><a href='#top'> (Return to Top)</a></small>"); if (permissions("Herald") >= 3) { echo button_link("./add_event.php", "Add A New Event"); } echo "<div class='list-group'><ul type='none'>"; // make the list pretty with formatting if ($k_id == -1) { $query = "SELECT id_event, name_event, date_event_start, date_event_stop, name_group, name_kingdom\n FROM Events, Groups, Kingdoms\n WHERE name_event like '%{$part_name}%'\n AND Events.id_group = Groups.id_group\n AND Groups.id_kingdom = Kingdoms.id_kingdom " . "ORDER BY name_event"; } else { $query = "SELECT id_event, name_event, date_event_start, date_event_stop, name_group, name_kingdom\n FROM Events, Groups, Kingdoms\n WHERE name_event like '%{$part_name}%'\n AND Events.id_group = Groups.id_group\n AND Groups.id_kingdom = Kingdoms.id_kingdom " . "AND Groups.id_kingdom = {$k_id} " . "ORDER BY name_group"; } $result = mysqli_query($cxn, $query) or die("Couldn't execute events query"); $matches = $result->num_rows; echo "{$matches} events matches"; while ($row = mysqli_fetch_assoc($result)) { extract($row); if (permissions("Herald") >= 3) { $link = "<li class='list-group-item text-left'>" . "<a href='./edit_event.php?id={$id_event}'>" . "{$name_event}</a> hosted by {$name_group} ({$name_kingdom}) " . "{$date_event_start} -- {$date_event_stop}" . "</li>";
$shade = false; } else { echo ' bgcolor="' . $color['list_shade2'] . '"'; $shade = true; } echo '> <TD>' . $line['content_name'] . '</TD> <TD>' . $lang[$line['content_name']] . '</TD> <TD> <textarea rows=2 cols=30 wrap=virtual name="symbols[' . $line['content_name'] . ']">' . trim(stripslashes($line[$el])) . '</textarea> </TD> <TD> <A HREF="lang_symbol_edit.php?lang_id=' . $line['lang_id'] . '">' . lang('edit') . '</A> </TD> </TR> '; } echo ' </tbody> <tfoot><TR> <TD colspan=3 align=center> <INPUT class="button" type=submit name=alter_lang value="' . lang('change') . '"> </TD> </TR></tfoot> </TABLE> </FORM>'; echo ' <BR><BR>' . button_link('lang_symbol_edit.php?go=true', lang('add_symbol'), 'plus-circle'); echo '<BR><BR> <A href="lang_main.php">' . icon('back') . ' ' . lang('back') . '</A><BR><BR> </center>'; } include "footer.php";
foreach ($_REQUEST['admin_type'] as $a => $d) { $pars[] = array(':a' => $a, ':d' => $d); } $query = "UPDATE " . table("admin") . "\n SET admin_type= :d\n WHERE admin_id= :a"; $done = or_query($query, $pars); } log__admin("admin_show_edit"); message(lang('changes_saved')); redirect("admin/admin_show.php"); $proceed = false; } } } if ($proceed) { echo '<center><br> ' . button_link('admin_edit.php?new=true', lang('create_new'), 'plus-circle'); echo '<br> <FORM action="' . thisdoc() . '" method="POST">'; echo '<table class="or_listtable"><thead>'; if (check_allow('admin_edit')) { echo '<tr style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';"> <td colspan="5"></td> <td><INPUT name="change" type="submit" class="button" value="' . lang('save_changes_in_list') . '"></td> <td></td> </tr>'; } echo ' <tr style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';"> <td>' . lang('firstname') . '</td> <td>' . lang('lastname') . '</td>
<?php require '../../include/mellivora.inc.php'; enforce_authentication(CONST_USER_CLASS_MODERATOR); head('Exceptions'); menu_management(); section_subhead('Exceptions', button_link('Clear exceptions', 'edit_exceptions'), false); echo ' <table id="hints" class="table table-striped table-hover"> <thead> <tr> <th>Message</th> <th>Added</th> <th>User</th> <th>IP</th> </tr> </thead> <tbody> '; $from = get_pager_from($_GET); $num_exceptions = db_count_num('exceptions'); $results_per_page = 30; pager(CONFIG_SITE_ADMIN_URL . 'list_exceptions', $num_exceptions, $results_per_page, $from); $exceptions = db_query_fetch_all(' SELECT e.id, e.message, e.added, e.added_by, e.trace, INET_NTOA(e.user_ip) AS user_ip,
</TD> <TD> <TEXTAREA type=text name="lang_icon_base64" cols=40 rows=10 wrap=virtual>' . $tlang_icon . '</TEXTAREA> </TD> </TR>'; echo ' <TR> <TD colspan=2 align=center> <INPUT class="button" type=submit name="add" value="' . lang('change') . '"> </TD> </TR> </TABLE> </FORM>'; echo '<TABLE width="80%" border=0> <TR> <TD width="50%" align=center>'; if (check_allow('lang_lang_export')) { echo button_link('lang_lang_export.php?lang_id=' . urlencode($tlang), lang('export_language'), 'cloud-upload'); } echo ' </TD> <TD width=50% align=center>'; if (check_allow('lang_lang_import')) { echo button_link('lang_lang_import.php?lang_id=' . urlencode($tlang), lang('import_language'), 'cloud-download'); } echo ' </TD> </TR> </TABLE>'; echo '<BR><BR> <A href="lang_main.php">' . icon('back') . ' ' . lang('back') . '</A><BR><BR> </center>'; } include "footer.php";
// form echo '<center>'; echo ' <TABLE class="or_formtable"> <TR><TD colspan="2"> <TABLE width="100%" border=0 class="or_panel_title"><TR> <TD style="background: ' . $color['panel_title_background'] . '; color: ' . $color['panel_title_textcolor'] . '" align="center"> ' . lang('delete_symbol') . ' ' . $symbol['content_name'] . ' </TD> </TR></TABLE> </TD></TR> <TR> <TD colspan=2> ' . lang('do_you_really_want_to_delete') . ' <BR><BR>'; dump_array($symbol); echo ' </TD> </TR> <TR> <TD align=left> ' . button_link('lang_symbol_delete.php?lang_id=' . urlencode($lang_id) . '&reallydelete=true', lang('yes_delete'), 'check-square biconred') . ' </TD> <TD align=right> ' . button_link('lang_symbol_delete.php?lang_id=' . urlencode($lang_id) . '&betternot=true', lang('no_sorry'), 'undo bicongreen') . ' </TD> </TR> </TABLE> </center>'; } include "footer.php";
} else { $row .= stripslashes($line[$language]); } $row .= '</td>'; } if ($show_part_stats) { if (isset($num_p[$line['content_name']])) { $np = $num_p[$line['content_name']]; } else { $np = 0; } $row .= '<td class="small">' . $np . '</td>'; } $row .= '<TD valign="top">'; //$row.='<A HREF="lang_item_edit.php?item='.$item.'&id='.$line['lang_id'].'">'.lang('edit').'</A>'; $row .= button_link('lang_item_edit.php?item=' . $item . '&id=' . $line['lang_id'], lang('edit'), 'pencil-square-o'); $row .= '</TD>'; $rowelem = array('content_name' => $line['content_name'], 'text' => $row); $rows[] = $rowelem; } $table_head = ''; $thc = 0; if ($show_id) { $table_head .= '<TD class="small">' . lang('id') . '</TD>'; $thc++; } foreach ($languages as $language) { $table_head .= '<td class="small">' . $language . '</td>'; $thc++; } if ($show_part_stats) {
$query = "DELETE FROM " . table('events') . "\n WHERE event_id= :event_id"; $result = or_query($query, $pars); log__admin("events_delete", "event_id:" . $event_id); message(lang('lab_reservation_deleted')); redirect('admin/calendar_main.php'); } } if ($proceed) { // form echo ' <CENTER> <TABLE> <TR> <TD colspan=2> ' . lang('do_you_really_want_to_delete') . ' <BR><BR>'; dump_array($space); echo ' </TD> </TR> <TR> <TD align=left> ' . button_link('events_delete.php?event_id=' . $event_id . '&reallydelete=true', lang('yes_delete'), 'check-square biconred') . ' </TD> <TD align=right> ' . button_link('events_delete.php?event_id=' . $event_id . '&betternot=true', lang('no_sorry'), 'undo bicongreen') . ' </TD> </TR> </TABLE> </center>'; } include "footer.php";
// Add Links back to the main list, and to the next site needing to be verified. echo "<div class=\"btn-group\" role=\"group\" aria-label=\"navigation\">\n"; if ($previous_item >= 1) { echo button_link("./edit_site.php?id=" . $previous_item, "Previous Site") . "\n"; } if ($next_item < $max_item) { echo button_link("./edit_site.php?id=" . $next_item, "Next Site") . "\n"; } $query = "SELECT id_site, verified_site from Sites order by verified_site desc, id_site;"; $result = mysqli_query($cxn, $query) or die("Couldn't execute query"); if (mysqli_num_rows($result) >= 1) { $next_site = mysqli_fetch_assoc($result); // echo button_link("./edit_site.php?id=".$next_site["id_site"], // "Next Site Needed to Verify"); } echo button_link("./list_site.php", "Return to List of Sites") . "\n"; echo "</div><!-- ./col-md-8 --></div><!-- ./row -->\n"; //close out list and open divs // Now that the variables are all populated, // let's go ahead and update the database if the Update button was pressed. if ($_SERVER['REQUEST_METHOD'] == 'POST') { // First, update local variables // Process form by updating the database $update = "UPDATE Sites SET "; if (!empty($name_site)) { $update = $update . "name_site='" . mysqli_real_escape_string($cxn, $name_site) . "'"; } if ($url_site != $site["url_site"]) { $update = $update . ", url_site='" . mysqli_real_escape_string($cxn, $url_site) . "' "; } if ($facilities_site != $site["facilities_site"]) {
<INPUT class="button" name="copy" type="submit" value="' . lang('copy_as_new_session') . '"> </TD> </TR>'; } echo ' </table> </FORM> <BR>'; if ($session_id) { $reg = experiment__count_participate_at($edit['experiment_id'], $session_id); if ($reg == 0 && check_allow('session_empty_delete') || check_allow('session_nonempty_delete')) { echo ' <table> <TR> <TD> ' . button_link('session_delete.php?session_id=' . $edit['session_id'], lang('delete'), 'trash-o') . ' </TD> </TR> </table>'; } } if ($session_id) { $experiment_id = $edit['experiment_id']; } else { $experiment_id = $_REQUEST['experiment_id']; } echo '<BR><BR> <a href="experiment_show.php?experiment_id=' . $experiment_id . '"><i class="fa fa-level-up fa-lg" style="padding-right: 3px;"></i>' . lang('mainpage_of_this_experiment') . '</A> </center>'; } include "footer.php";
<?php // part of orsee. see orsee.org ob_start(); $menu__area = "options"; $title = "budgets"; include "header.php"; if ($proceed) { $allow = check_allow('payments_budget_edit', 'options_main.php'); } if ($proceed) { echo '<center>'; if (check_allow('payments_budget_add')) { echo ' <BR> ' . button_link('payments_budget_edit.php?addit=true', lang('create_new'), 'plus-circle'); } echo '<BR> <table class="or_listtable" style="width: 80%;"><thead> <TR style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';"> <TD>' . lang('id') . '</TD> <TD>' . lang('enabled?') . '</TD> <TD>' . lang('name') . '</TD> <TD>' . lang('experimenter') . '</TD> <TD>' . lang('budget_limit') . '</TD>'; if (check_allow('payments_budget_edit')) { echo '<TD></TD>'; } echo ' </TR></thead> <tbody>';
foreach ($user_columns as $k => $uc) { echo '<tr'; if ($shade) { echo ' bgcolor="' . $color['list_shade1'] . '"'; } else { echo ' bgcolor="' . $color['list_shade2'] . '"'; } echo '>'; echo '<TD>' . $k . '</TD>'; echo '<TD>' . $uc['Type'] . '</TD>'; echo '<TD>' . ($uc['has_index'] ? lang('yes') : lang('no')) . '</TD>'; if ($uc['is_configured']) { echo '<TD>' . lang('yes') . '</TD>'; echo '<TD>' . ($uc['enabled'] ? lang('yes') : lang('no')) . '</TD>'; echo '<TD>' . $uc['type'] . '</TD>'; echo '<TD><A HREF="options_participant_profile_edit.php?mysql_column_name=' . $k . '">' . lang('edit') . '</A></TD>'; } else { echo '<TD>' . lang('no') . '</TD>'; echo '<TD>-</TD>'; echo '<TD>-</TD>'; echo '<TD><A HREF="options_participant_profile_edit.php?mysql_column_name=' . $k . '">' . lang('configure') . '</A></TD>'; } echo '</TR>'; } echo '</tbody></TABLE>'; echo '<TABLE width="80%"><TR><TD>' . button_link('options_participant_profile_add.php', lang('create_new_mysql_table_column'), 'plus-circle') . ' </TD></TR></TABLE>'; echo '<BR><BR><A href="options_main.php">' . icon('back') . ' ' . lang('back') . '</A><BR><BR>'; echo '</center>'; } include "footer.php";
<?php // part of orsee. see orsee.org ob_start(); $title = "faq_long"; $menu__area = "options_main"; include "header.php"; if ($proceed) { $allow = check_allow('faq_edit', 'options_main.php'); } if ($proceed) { echo '<center>'; if (check_allow('faq_add')) { echo ' <BR> ' . button_link('faq_edit.php?addit=true', lang('create_new'), 'plus-circle'); } // load languages $languages = get_languages(); echo '<BR><BR> <table class="or_listtable" style="width: 80%;"><thead> <TR style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';">'; foreach ($languages as $language) { echo '<td class="small">' . $language . '</td>'; } echo '<TD>' . lang('this_faq_answered_questions_of_xxx') . '</TD> <TD></TD> </TR></thead> <tbody>'; $query = "SELECT *\n FROM " . table('faqs') . ", " . table('lang') . "\n WHERE content_type='faq_question'\n AND " . table('faqs') . ".faq_id=" . table('lang') . ".content_name\n ORDER BY " . lang('lang'); $result = or_query($query);
<?php require '../../include/mellivora.inc.php'; enforce_authentication(CONST_USER_CLASS_MODERATOR); head('Submissions'); menu_management(); if (!isset($_GET['all'])) { $_GET['all'] = 0; } if ($_GET['all']) { section_head('All submissions', button_link('Show only submissions in need of marking', 'list_submissions?all=0'), false); } else { section_head('Submissions in need of marking', button_link('List all submissions', 'list_submissions?all=1'), false); } $num_subs = db_query_fetch_one(' SELECT COUNT(*) AS num FROM submissions AS s LEFT JOIN challenges AS c ON c.id = s.challenge ' . ($_GET['all'] ? '' : 'WHERE c.automark = 0 AND s.marked = 0') . ' '); $from = get_pager_from($_GET); $results_per_page = 70; pager(CONFIG_SITE_ADMIN_URL . 'list_submissions?' . (isset($_GET['all']) ? 'all=' . $_GET['all'] : ''), $num_subs['num'], $results_per_page, $from); echo ' <table id="files" class="table table-striped table-hover"> <thead> <tr> <th>Challenge</th> <th>Team name</th> <th>Added</th>