$bgcolor = "bgcolor2"; } $content .= "<tr>\n"; $userLastLogin = XDb::xMultiVariableQueryValue("SELECT last_login FROM user WHERE user_id=:1 ", 0, $report['cache_ownerid']); if ($userLastLogin == "0000-00-00 00:00:00") { $userlogin = "******"; } else { $userlogin = strftime("%Y-%m-%d", strtotime($userLastLogin)); } if ($usr['userid'] == $report['responsible_id']) { $addborder = "style='border-width:2px;'"; } else { $addborder = ""; } $content .= "<td " . $addborder . " class='" . $bgcolor . "'><span class='content-title-noshade-size05'>" . $report['report_id'] . "</span></td>\n"; $content .= "<td " . $addborder . " class='" . $bgcolor . "'><span class='content-title-noshade-size05'>" . $report['submit_date'] . "</span></td>\n"; $content .= "<td " . $addborder . " class='" . $bgcolor . "'><a class='content-title-noshade-size04' title=\"Skrzynka ostatnio modyfikowana: " . strftime("%Y-%m-%d", strtotime($report['lastmodified'])) . "\" href='viewcache.php?cacheid=" . $report['cache_id'] . "'>" . nonEmptyCacheName($report['cachename']) . "</a> <br/> <a title=\"Użytkownik logowal się ostatnio: " . $userlogin . "\" class=\"links\" href=\"viewprofile.php?userid=" . $report['cache_ownerid'] . "\">" . getUsername($report['cache_ownerid']) . "</a><br/><span style=\"font-weight:bold;font-size:10px;color:blue;\">" . $report['adm3'] . "</span></td>\n"; $content .= "<td " . $addborder . " class='" . $bgcolor . "'><span class='content-title-noshade-size05'>" . colorCacheStatus($report['cache_status'], $report['c_status']) . "</span></td>\n"; $content .= "<td " . $addborder . " class='" . $bgcolor . "'><a class='content-title-noshade-size05' href='viewreport.php?reportid=" . $report['report_id'] . "'>" . writeReason($report['type']) . "</a></td></font>\n"; $content .= "<td " . $addborder . " class='" . $bgcolor . "'><a class='content-title-noshade-size05' href='viewprofile.php?userid=" . $report['user_id'] . "'>" . $report['username'] . "</a></td>\n"; $content .= "<td " . $addborder . " class='" . $bgcolor . "'><a class='content-title-noshade-size05' href='viewprofile.php?userid=" . $report['responsible_id'] . "'>" . getUsername($report['responsible_id']) . "</a></td>\n"; $content .= "<td " . $addborder . " class='" . $bgcolor . "' width='60'><span class='content-title-noshade-size05'>" . writeStatus($report['status']) . "</span></td>\n"; $content .= "<td " . $addborder . " class='" . $bgcolor . "'><span class='content-title-noshade-size05'>" . ($report['changed_by'] == '0' ? '' : getUsername($report['changed_by']) . '<br/>(' . $report['changed_date'] . ')') . "</span></td>\n"; $content .= "</tr>\n"; $row_num++; } tpl_set_var('content', $content); } else { $tplname = 'viewreports_error'; } tpl_BuildTemplate();
<?php require_once "../file/access.php"; $id = $_POST['id']; $content = $_POST['content']; $player = $_POST['player']; if ($id != null || $id != "" || $content != null || $player != null || $player != "") { writeStatus($id, $content, $player); echo "{$id}, {$content}, {$player}"; }
} else { $selected = ""; } $content .= "<option value='" . $admins['user_id'] . "' {$selected}>" . $admins['username'] . "</option>"; } $content .= "</select><br /><input type='submit' name='new_resp' value=" . tr('cache_reports_20') . ">"; $content .= "</td>"; $content .= "<td>"; $content .= "<select name='statusSel'>"; for ($i = 0; $i < 4; $i++) { if ($report['status'] == $i) { $selected = "selected='selected'"; } else { $selected = ""; } $content .= "<option value='" . $i . "' {$selected}>" . writeStatus($i) . "</option>"; } $content .= "</select><br /><input type='hidden' name='reportid' value='" . $report['report_id'] . "'><input type='submit' name='new_status' value=" . tr('cache_reports_20') . ">"; $content .= "</td>"; $content .= "<td><span class='content-title-noshade-size05'>" . ($report['changed_by'] == '0' ? '' : getUsername($report['changed_by']) . '<br/>(' . $report['changed_date'] . ')') . "</span></td>\n"; $content .= "</tr>\n"; tpl_set_var('content', $content); tpl_set_var('report_text_lbl', tr('cache_reports_21')); tpl_set_var('report_text', strip_tags($report['text'])); tpl_set_var('perform_action_lbl', tr('cache_reports_22')); if (!isset($_GET['mailto'])) { $active_form = "<input type='hidden' name='reportid' value='" . intval($_REQUEST['reportid']) . "'/><textarea name='note' cols='80' rows='5'></textarea><br /><input type='submit' value=" . tr('cache_reports_23') . "> " . $saved; tpl_set_var('note_lbl', tr("cache_reports_24")); } else { // display email form tpl_set_var('note_lbl', tr("cache_reports_25") . writeRe($_REQUEST['mailto']));
echo $_SESSION['pref_autoreload']; } else { echo $CFG_MINAUTORELOAD; } } echo ";\n"; writeJShistory(); drawboard(); echo 'var gameId = ' . $_SESSION['gameID'] . ";\n"; echo 'var players = "' . $whiteNick . ' - ' . $blackNick . "\";\n"; echo 'var playersColor = "' . $playersColor . "\";\n"; echo 'var isPromoting = "' . $isPromoting . "\";\n"; echo 'var isKingInCheck = "' . $isInCheck . "\";\n"; echo 'var isGameOver = "' . $isGameOver . "\";\n"; echo 'var historyLayout = "' . $_SESSION['pref_historylayout'] . "\";\n"; writeStatus(); writeHistory(); // Captured pieces.. require 'capt.php'; ?> </script> <script type="text/javascript" src="javascript/chessutils.js"></script> <script type="text/javascript" src="javascript/commands.js"></script> <script type="text/javascript" src="javascript/validation.js"></script> <?php if ($isPlayersTurn || $_SESSION['isSharedPC'] || $isPromoting) { echo ' <script type="text/javascript" src="javascript/isCheckMate.js"></script>'; } if (!isBoardDisabled() || $_SESSION['isSharedPC']) { echo '
$tmpPromotedTo = ""; if (!is_null($history[$i]['promotedTo'])) $tmpPromotedTo = $history[$i]['promotedTo']; $tmpCheck = ($history[$i]['check'] == 1); echo("-("); echo(moveToPGNString($history[$i]['curColor'], $history[$i]['curPiece'], $history[$i]['fromRow'], $history[$i]['fromCol'], $history[$i]['toRow'], $history[$i]['toCol'], $tmpReplaced, $tmpPromotedTo, $tmpCheck)); echo(")"); //echo ("</b></td></tr>\n"); } //echo("]"); echo ("</b></font></td></tr>\n"); ?> </table> <? writeStatus(); ?> <BR> <form method=POST action="chess.php" name=chess> <input type=hidden name="gameID" value="<?=$_SESSION["gameID"]?>"> <table border='0' width=300 bgcolor=black cellspacing=1 cellpading=1> <tr><th bgcolor='beige' colspan='3'>NOTES TO SELF <? if ($opponent_language != ""){ $language = $MSG_LANG[strtolower($opponent_language)]; //echo " (".$MSG_LANG['opponentlanguage'].": ".$language.")"; } ?> </th></tr> <tr><td bgcolor=white align=left><?= writeNote($_SESSION['gameID'])?></td></tr> <tr><td align=center bgcolor=white><input type=text name=note_msg size=30 onClick="stopTimer=1"><input type=submit value="<?=$MSG_LANG["write"]?>"></td></tr>