-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshare.php
More file actions
38 lines (30 loc) · 718 Bytes
/
share.php
File metadata and controls
38 lines (30 loc) · 718 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
<?php
/**
* share
*
* @package Sngine
* @author Zamblek
*/
// fetch bootloader
require('bootloader.php');
// check if developers (share plugin) enabled
if (!$system['developers_share_enabled']) {
_error(404);
}
// user access
user_access();
try {
// prepare publisher
$smarty->assign('feelings', get_feelings());
$smarty->assign('feelings_types', get_feelings_types());
if ($system['colored_posts_enabled']) {
$smarty->assign('colored_patterns', $user->get_posts_colored_patterns());
}
$smarty->assign('url', $_GET['url']);
} catch (Exception $e) {
_error(__("Error"), $e->getMessage());
}
// page header
page_header(__($system['system_title']));
// page footer
page_footer("share");