Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F391229
motd.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
744 B
Subscribers
None
motd.php
View Options
<?php
/*
* Azhàr, faeries intranet
* (c) 2009-2010, Wolfæym, some rights reserved
* Released under BSD license
*
* Raw text or HTML content
*/
//Loads smarty language file
lang_load
(
'motd.conf'
);
//
// Handles form
//
if
(
$_REQUEST
[
'text'
])
{
require_once
(
'includes/objects/motd.php'
);
$motd
=
new
MOTD
();
$motd
->
text
=
$_REQUEST
[
'text'
];
$motd
->
perso_id
=
$CurrentPerso
->
id
;
$motd
->
save_to_database
();
$smarty
->
assign
(
'WAP'
,
lang_get
(
'Published'
));
}
//
// HTML output
//
//Serves header
$smarty
->
assign
(
'PAGE_TITLE'
,
lang_get
(
'PushMessage'
));
include
(
'header.php'
);
//Serves content
$smarty
->
display
(
'motd_add.tpl'
);
//Servers footer
include
(
'footer.php'
);
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 20:21 (20 h, 19 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
22350
Default Alt Text
motd.php (744 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment