-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunding.php
More file actions
37 lines (29 loc) · 703 Bytes
/
funding.php
File metadata and controls
37 lines (29 loc) · 703 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
<?php
/**
* funding
*
* @package Sngine
* @author Zamblek
*/
// fetch bootloader
require('bootloader.php');
// funding enabled
if (!$system['funding_enabled']) {
_error(404);
}
// user access
if ($user->_logged_in || !$system['system_public']) {
user_access();
}
try {
// page header
page_header(__($system['system_title']) . ' - ' . __("Funding"), __($system['system_description_funding']));
// get fundings
$fundings = $user->get_fundings(['results' => 11]); /* using 11 to match the design layout */
/* assign variables */
$smarty->assign('fundings', $fundings);
} catch (Exception $e) {
_error(__("Error"), $e->getMessage());
}
// page footer
page_footer("funding");