1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* **************************************************************************** |
4
|
|
|
* - A Project by Developers TEAM For Xoops - ( https://xoops.org ) |
5
|
|
|
* **************************************************************************** |
6
|
|
|
* XNEWSLETTER - MODULE FOR XOOPS |
7
|
|
|
* Copyright (c) 2007 - 2012 |
8
|
|
|
* Goffy ( wedega.com ) |
9
|
|
|
* |
10
|
|
|
* You may not change or alter any portion of this comment or credits |
11
|
|
|
* of supporting developers from this source code or any supporting |
12
|
|
|
* source code which is considered copyrighted (c) material of the |
13
|
|
|
* original comment or credit authors. |
14
|
|
|
* |
15
|
|
|
* This program is distributed in the hope that it will be useful, |
16
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
17
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18
|
|
|
* GNU General Public License for more details. |
19
|
|
|
* --------------------------------------------------------------------------- |
20
|
|
|
* @copyright Goffy ( wedega.com ) |
21
|
|
|
* @license GPL 2.0 |
22
|
|
|
* @package xnewsletter |
23
|
|
|
* @author Goffy ( [email protected] ) |
24
|
|
|
* |
25
|
|
|
* Version : 1 Mon 2012/11/05 14:31:32 : Exp $ |
26
|
|
|
* **************************************************************************** |
27
|
|
|
*/ |
28
|
|
|
// defined("XOOPS_ROOT_PATH") || die("XOOPS root path not defined"); |
29
|
|
|
require_once dirname(__DIR__) . '/include/common.php'; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @param $options |
33
|
|
|
* |
34
|
|
|
* @return array |
35
|
|
|
*/ |
36
|
|
|
function b_xnewsletter_subscrinfo($options) |
|
|
|
|
37
|
|
|
{ |
38
|
|
|
xoops_loadLanguage('modinfo', 'xnewsletter'); |
39
|
|
|
$unique_id = uniqid(mt_rand(), true); |
40
|
|
|
$subscrinfo = []; |
41
|
|
|
$subscrinfo['formname'] = "formsubscrinfo_{$unique_id}"; |
42
|
|
|
$subscrinfo['formaction'] = XOOPS_URL . '/modules/xnewsletter/subscription.php'; |
43
|
|
|
$subscrinfo['infotext'] = _MI_XNEWSLETTER_SUBSCRINFO_TEXT_BLOCK; |
44
|
|
|
$subscrinfo['buttontext'] = _MI_XNEWSLETTER_SUBSCRIBE; |
45
|
|
|
|
46
|
|
|
return $subscrinfo; |
47
|
|
|
} |
48
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.