forked from H3Gi/tatar-wars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.php
47 lines (29 loc) · 791 Bytes
/
notes.php
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
<?php
require( '.' . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'boot.php' );
require_once( MODEL_PATH . 'notes.php' );
class GPage extends SecureGamePage {
var $saved = null;
function GPage() {
parent::securegamepage();
$this->viewFile = 'notes.phtml';
$this->contentCssClass = 'messages';
}
function load() {
parent::load();
if (!$this->data['active_plus_account']) {
exit( 0 );
return null;
}
$this->saved = FALSE;
if (( $this->isPost() && isset( $_POST['notes'] ) )) {
$this->data['notes'] = $_POST['notes'];
$m = new NotesModel();
$m->changePlayerNotes( $this->player->playerId, $this->data['notes'] );
$m->dispose();
$this->saved = TRUE;
}
}
}
$p = new GPage();
$p->run();
?>