forked from RetroAchievements/RAWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodenotes.php
More file actions
49 lines (33 loc) · 980 Bytes
/
codenotes.php
File metadata and controls
49 lines (33 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
require_once('db.inc.php');
RA_ReadCookieCredentials( $user, $points, $truePoints, $unreadMessageCount, $permissions );
RenderDocType();
$gameID = seekGET( 'g', 1 );
$gameData = getGameData( $gameID );
getCodeNotes( $gameID, $codeNotes );
$errorCode = seekGET('e');
?>
<head>
<?php
RenderSharedHeader( $user );
?>
</head>
<body>
<script type='text/javascript' src='/js/wz_tooltip.js'></script>
<script type='text/javascript' src="js/ping_chat.js"></script>
<?php RenderTitleBar( $user, $points, $truePoints, $unreadMessageCount, $errorCode ); ?>
<?php RenderToolbar( $user, $permissions ); ?>
<div id='mainpage'>
<div style='padding:0px 10px;'>
<?php echo "Game: " . GetGameAndTooltipDiv( $gameData['ID'], $gameData['Title'], $gameData['ImageIcon'], $gameData['ConsoleName'] ); ?>
<?php
if( isset( $gameData ) && isset( $user ) && $permissions >= 3 )
{
RenderCodeNotes( $codeNotes );
}
?>
</div>
</div>
<?php RenderFooter(); ?>
</body>
</html>