forked from SimpleMachines/SimpleDesk
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
81 lines (78 loc) · 3.16 KB
/
index.php
File metadata and controls
81 lines (78 loc) · 3.16 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**************************************************************
* Simple Desk Project - www.simpledesk.net *
***************************************************************
* An advanced help desk modification built on SMF *
***************************************************************
* *
* * Copyright 2025 - SimpleDesk.net *
* *
* This file and its contents are subject to the license *
* included with this distribution, license.txt, which *
* states that this software is New BSD Licensed. *
* Any questions, please contact SimpleDesk.net *
* *
***************************************************************
* SimpleDesk Version: 2.1.0 *
* File Info: index.php *
**************************************************************/
/**
* @package plugin-frontpage
* @since 2.0
*/
if (!defined('SHD_VERSION'))
die('Hacking attempt...');
/*
* Return information about this plugin.
*
* details
* - name: a $txt reference for the plugin's name (so it can be translated), if not present as a $txt will be used as a literal. (Note, see includes - language below)
* - description: a $txt reference one line description of the mod (translatable) - if not present, it will be used as a literal.
* - author: Author's name, literal
* - website: Website to link back to the author
* - version: Plugin version
* - compatibility: Array of supported SD version-strings
*
* includes
* - source: a key-value pair array of file names to include at strategic points, key name is the point to include it on, value is a filename or array of filenames to include within the plugin's dir
* - language: a key-value pair of array of language files to include, much like source.
*
* hooks
* - key-value pair of hook name to function name or array of function names to be called at the hook point
*
* @since 2.0
*/
function shdplugin_front_page()
{
return array(
'details' => array( // general plugin details
'title' => 'shdp_frontpage',
'description' => 'shdp_frontpage_desc',
'author' => 'SimpleDesk Team',
'website' => 'https://www.simpledesk.net/',
'version' => '2.1.0',
'compatibility' => array(
'SimpleDesk 2.1.*', // should tie up with the SHD_VERSION constants
),
'acp_url' => 'action=admin;area=helpdesk_options;sa=frontpage',
),
'includes' => array(
'source' => array(
'init' => 'SDPluginFrontPage.php',
),
'language' => array(
'hdadmin' => 'SDPluginFrontPage',
'helpdesk' => 'SDPluginFrontPage',
),
),
'hooks' => array( // what functions to call when
'hdadminopts' => 'shd_frontpage_hdadminopts',
'hdadminoptssrch' => 'shd_frontpage_hdadminoptssrch',
'adminmenu' => 'shd_frontpage_adminmenu',
'helpdesk' => 'shd_frontpage_helpdesk',
'after_main' => 'shd_frontpage_aftermain',
'mainmenu' => 'shd_frontpage_mainmenu',
'boardindex_before' => 'shd_frontpage_boardindex',
),
);
}