Skip to content

Commit ee5be8c

Browse files
committed
Merge pull request #5 from mambax7/master
1.12 RC 1
2 parents 1ab48bd + 7ddb601 commit ee5be8c

107 files changed

Lines changed: 7386 additions & 6929 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,24 @@
22
[![Software License](https://img.shields.io/badge/license-GPL-brightgreen.svg?style=flat)](LICENSE)
33

44
SmartFAQ, as you would probably have guessed it by the name, is a Frequently Asked Questions system for XOOPS 2.x web sites.
5+
6+
![alt XOOPS CMS](http://xoops.org/images/logoXoops4GithubRepository.png)
7+
## SmartFAQ for [XOOPS CMS 2.5.8+](https://xoops.org)
8+
[![Software License](https://img.shields.io/badge/license-GPL-brightgreen.svg?style=flat)](LICENSE)
9+
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/mambax7/smartfaq.svg?style=flat)](https://scrutinizer-ci.com/g/mambax7/smartfaq/?branch=master)
10+
[![Codacy Badge](https://api.codacy.com/project/badge/grade/2d27c0023ee54f0b9ba2b5d17a68b2a5)](https://www.codacy.com/app/mambax7/smartfaq)
11+
[![Code Climate](https://img.shields.io/codeclimate/github/mambax7/smartfaq.svg?style=flat)](https://codeclimate.com/github/mambax7/smartfaq)
12+
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/10555054-c772-45fb-9d69-231ca48bb8a0/mini.png)](https://insight.sensiolabs.com/projects/10555054-c772-45fb-9d69-231ca48bb8a0)
13+
[![Latest Pre-Resease](https://img.shields.io/github/tag/XoopsModules25x/smartfaq.svg?style=flat)](https://github.com/XoopsModules25x/smartfaq/tags/)
14+
[![Latest Version](https://img.shields.io/github/release/XoopsModules25x/smartfaq.svg?style=flat)](https://github.com/XoopsModules25x/smartfaq/releases/)
15+
16+
SmartFAQ for [XOOPS CMS](http://xoops.org) as you would probably have guessed by the name, is a Frequently Asked Questions system for XOOPS 2.x websites.
17+
18+
[![Tutorial Available](http://xoops.org/images/tutorial-available-blue.svg)](https://www.gitbook.com/book/xoops/xoops-smartfaq-module/) Tutorial: see [here](https://www.gitbook.com/book/xoops/xoops-smartfaq-module/).
19+
To contribute to the Tutorial, [fork it on GitHub](https://github.com/XoopsDocs/smartfaq-tutorial)
20+
21+
[![Translations on Transifex](http://xoops.org/images/translations-transifex-blue.svg)](https://www.transifex.com/xoops)
22+
23+
Please visit us on [http://xoops.org](https://xoops.org)
24+
25+
The upcoming "next generation" version of XOOPS CMS is being crafted on GitHub at: https://github.com/XOOPS

admin/about.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
*/
1111

1212
/**
13-
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
13+
* @copyright XOOPS Project (http://xoops.org)
1414
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
1515
* @package
1616
* @since
17-
* @author XOOPS Development Team
18-
* @version $Id $
17+
* @author XOOPS Development Team
1918
*/
2019

2120
include_once __DIR__ . '/admin_header.php';
@@ -24,7 +23,7 @@
2423

2524
$aboutAdmin = new ModuleAdmin();
2625

27-
echo $aboutAdmin->addNavigation('about.php');
26+
echo $aboutAdmin->addNavigation(basename(__FILE__));
2827
echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false);
2928

3029
include_once __DIR__ . '/admin_footer.php';

admin/about2.php

Lines changed: 83 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
<?php
22

33
/**
4-
* $Id: about.php,v 1.12 2004/12/14 01:59:42 malanciault Exp $
5-
* Module: SmartFAQ
6-
* Author: The SmartFactory <www.smartfactory.ca>
7-
* Licence: GNU
8-
*/
4+
* Module: SmartFAQ
5+
* Author: The SmartFactory <www.smartfactory.ca>
6+
* Licence: GNU
7+
*/
98

109
include_once __DIR__ . '/admin_header.php';
11-
$myts = &MyTextSanitizer::getInstance();
10+
$myts = MyTextSanitizer::getInstance();
1211

13-
Global $xoopsModule;
12+
global $xoopsModule;
1413

1514
xoops_cp_header();
1615

17-
$module_handler = &xoops_gethandler('module');
18-
$versioninfo = &$module_handler->get($xoopsModule->getVar('mid'));
19-
20-
//sf_adminMenu(-1, _AM_SF_ABOUT . " " . $versioninfo->getInfo('name'));
16+
$moduleHandler = xoops_getHandler('module');
17+
$versioninfo =& $moduleHandler->get($xoopsModule->getVar('mid'));
2118

2219
/* Centered heading
2320
echo "<br />";
@@ -41,144 +38,144 @@
4138
echo "</table>";
4239
*/
4340
// Left headings...
44-
echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname') . "/" . $versioninfo->getInfo('image') . "' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'/></a>";
45-
echo "<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>" . $versioninfo->getInfo('name') . " version " . $versioninfo->getInfo('version') . " (" . $versioninfo->getInfo('status_version') . ")</div>";
41+
echo "<img src='" . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $versioninfo->getInfo('image') . "' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'/></a>";
42+
echo "<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>" . $versioninfo->getInfo('name') . ' version ' . $versioninfo->getInfo('version') . ' (' . $versioninfo->getInfo('status_version') . ')</div>';
4643
if ($versioninfo->getInfo('author_realname') != '') {
47-
$author_name = $versioninfo->getInfo('author') . " (" . $versioninfo->getInfo('author_realname') . ")";
44+
$author_name = $versioninfo->getInfo('author') . ' (' . $versioninfo->getInfo('author_realname') . ')';
4845
} else {
4946
$author_name = $versioninfo->getInfo('author');
5047
}
5148

52-
echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>" . _AM_SF_BY . " " . $author_name;
53-
echo "</div>";
49+
echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>" . _AM_SF_BY . ' ' . $author_name;
50+
echo '</div>';
5451
echo "<div style = 'line-height: 16px; display: block;'>" . $versioninfo->getInfo('license') . "</div>\n";
5552

5653
// Developers Information
5754
echo "<br /><table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
58-
echo "<tr>";
59-
echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_AUTHOR_INFO . "</b></td>";
60-
echo "</tr>";
55+
echo '<tr>';
56+
echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_AUTHOR_INFO . '</b></td>';
57+
echo '</tr>';
6158

6259
if ($versioninfo->getInfo('developer_lead') != '') {
63-
echo "<tr>";
64-
echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_LEAD . "</td>";
65-
echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_lead') . "</td>";
66-
echo "</tr>";
60+
echo '<tr>';
61+
echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_LEAD . '</td>';
62+
echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_lead') . '</td>';
63+
echo '</tr>';
6764
}
6865
if ($versioninfo->getInfo('developer_contributor') != '') {
69-
echo "<tr>";
70-
echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_CONTRIBUTOR . "</td>";
71-
echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_contributor') . "</td>";
72-
echo "</tr>";
66+
echo '<tr>';
67+
echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_CONTRIBUTOR . '</td>';
68+
echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_contributor') . '</td>';
69+
echo '</tr>';
7370
}
7471
if ($versioninfo->getInfo('developer_website_url') != '') {
75-
echo "<tr>";
76-
echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_WEBSITE . "</td>";
77-
echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('developer_website_url') . "' target='blank'>" . $versioninfo->getInfo('developer_website_name') . "</a></td>";
78-
echo "</tr>";
72+
echo '<tr>';
73+
echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_WEBSITE . '</td>';
74+
echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('developer_website_url') . "' target='blank'>" . $versioninfo->getInfo('developer_website_name') . '</a></td>';
75+
echo '</tr>';
7976
}
8077
if ($versioninfo->getInfo('developer_email') != '') {
81-
echo "<tr>";
82-
echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_EMAIL . "</td>";
83-
echo "<td class='even' align='left'><a href='mailto:" . $versioninfo->getInfo('developer_email') . "'>" . $versioninfo->getInfo('developer_email') . "</a></td>";
84-
echo "</tr>";
78+
echo '<tr>';
79+
echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_EMAIL . '</td>';
80+
echo "<td class='even' align='left'><a href='mailto:" . $versioninfo->getInfo('developer_email') . "'>" . $versioninfo->getInfo('developer_email') . '</a></td>';
81+
echo '</tr>';
8582
}
8683

87-
echo "</table>";
84+
echo '</table>';
8885
echo "<br />\n";
8986
// Module Developpment information
9087
echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
91-
echo "<tr>";
92-
echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_MODULE_INFO . "</b></td>";
93-
echo "</tr>";
88+
echo '<tr>';
89+
echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_MODULE_INFO . '</b></td>';
90+
echo '</tr>';
9491

9592
if ($versioninfo->getInfo('date') != '') {
96-
echo "<tr>";
97-
echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_RELEASE_DATE . "</td>";
98-
echo "<td class='even' align='left'>" . $versioninfo->getInfo('date') . "</td>";
99-
echo "</tr>";
93+
echo '<tr>';
94+
echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_RELEASE_DATE . '</td>';
95+
echo "<td class='even' align='left'>" . $versioninfo->getInfo('date') . '</td>';
96+
echo '</tr>';
10097
}
10198

10299
if ($versioninfo->getInfo('status') != '') {
103-
echo "<tr>";
104-
echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_STATUS . "</td>";
105-
echo "<td class='even' align='left'>" . $versioninfo->getInfo('status') . "</td>";
106-
echo "</tr>";
100+
echo '<tr>';
101+
echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_STATUS . '</td>';
102+
echo "<td class='even' align='left'>" . $versioninfo->getInfo('status') . '</td>';
103+
echo '</tr>';
107104
}
108105

109106
if ($versioninfo->getInfo('demo_site_url') != '') {
110-
echo "<tr>";
111-
echo "<td class='head' align='left'>" . _MI_SF_MODULE_DEMO . "</td>";
112-
echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('demo_site_url') . "' target='blank'>" . $versioninfo->getInfo('demo_site_name') . "</a></td>";
113-
echo "</tr>";
107+
echo '<tr>';
108+
echo "<td class='head' align='left'>" . _MI_SF_MODULE_DEMO . '</td>';
109+
echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('demo_site_url') . "' target='blank'>" . $versioninfo->getInfo('demo_site_name') . '</a></td>';
110+
echo '</tr>';
114111
}
115112

116113
if ($versioninfo->getInfo('support_site_url') != '') {
117-
echo "<tr>";
118-
echo "<td class='head' align='left'>" . _MI_SF_MODULE_SUPPORT . "</td>";
119-
echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('support_site_url') . "' target='blank'>" . $versioninfo->getInfo('support_site_name') . "</a></td>";
120-
echo "</tr>";
114+
echo '<tr>';
115+
echo "<td class='head' align='left'>" . _MI_SF_MODULE_SUPPORT . '</td>';
116+
echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('support_site_url') . "' target='blank'>" . $versioninfo->getInfo('support_site_name') . '</a></td>';
117+
echo '</tr>';
121118
}
122119

123120
if ($versioninfo->getInfo('submit_bug') != '') {
124-
echo "<tr>";
125-
echo "<td class='head' align='left'>" . _MI_SF_MODULE_BUG . "</td>";
126-
echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_bug') . "' target='blank'>" . "Submit a Bug in SmartFAQ Bug Tracker" . "</a></td>";
127-
echo "</tr>";
121+
echo '<tr>';
122+
echo "<td class='head' align='left'>" . _MI_SF_MODULE_BUG . '</td>';
123+
echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_bug') . "' target='blank'>" . 'Submit a Bug in SmartFAQ Bug Tracker' . '</a></td>';
124+
echo '</tr>';
128125
}
129126
if ($versioninfo->getInfo('submit_feature') != '') {
130-
echo "<tr>";
131-
echo "<td class='head' align='left'>" . _MI_SF_MODULE_FEATURE . "</td>";
132-
echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_feature') . "' target='blank'>" . "Request a feature in the SmartFAQ Feature Tracker" . "</a></td>";
133-
echo "</tr>";
127+
echo '<tr>';
128+
echo "<td class='head' align='left'>" . _MI_SF_MODULE_FEATURE . '</td>';
129+
echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_feature') . "' target='blank'>" . 'Request a feature in the SmartFAQ Feature Tracker' . '</a></td>';
130+
echo '</tr>';
134131
}
135132

136-
echo "</table>";
133+
echo '</table>';
137134
// Warning
138135
if ($versioninfo->getInfo('warning') != '') {
139136
echo "<br />\n";
140137
echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
141-
echo "<tr>";
142-
echo "<td class='bg3' align='left'><b>" . _MI_SF_MODULE_DISCLAIMER . "</b></td>";
143-
echo "</tr>";
138+
echo '<tr>';
139+
echo "<td class='bg3' align='left'><b>" . _MI_SF_MODULE_DISCLAIMER . '</b></td>';
140+
echo '</tr>';
144141

145-
echo "<tr>";
146-
echo "<td class='even' align='left'>" . $versioninfo->getInfo('warning') . "</td>";
147-
echo "</tr>";
142+
echo '<tr>';
143+
echo "<td class='even' align='left'>" . $versioninfo->getInfo('warning') . '</td>';
144+
echo '</tr>';
148145

149-
echo "</table>";
146+
echo '</table>';
150147
}
151148
// Author's note
152149
if ($versioninfo->getInfo('author_word') != '') {
153150
echo "<br />\n";
154151
echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
155-
echo "<tr>";
156-
echo "<td class='bg3' align='left'><b>" . _MI_SF_AUTHOR_WORD . "</b></td>";
157-
echo "</tr>";
152+
echo '<tr>';
153+
echo "<td class='bg3' align='left'><b>" . _MI_SF_AUTHOR_WORD . '</b></td>';
154+
echo '</tr>';
158155

159-
echo "<tr>";
160-
echo "<td class='even' align='left'>" . $versioninfo->getInfo('author_word') . "</td>";
161-
echo "</tr>";
156+
echo '<tr>';
157+
echo "<td class='even' align='left'>" . $versioninfo->getInfo('author_word') . '</td>';
158+
echo '</tr>';
162159

163-
echo "</table>";
160+
echo '</table>';
164161
}
165162

166163
// Version History
167164
if ($versioninfo->getInfo('version_history') != '') {
168165
echo "<br />\n";
169166
echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
170-
echo "<tr>";
171-
echo "<td class='bg3' align='left'><b>" . _MI_SF_VERSION_HISTORY . "</b></td>";
172-
echo "</tr>";
167+
echo '<tr>';
168+
echo "<td class='bg3' align='left'><b>" . _MI_SF_VERSION_HISTORY . '</b></td>';
169+
echo '</tr>';
173170

174-
echo "<tr>";
175-
echo "<td class='even' align='left'>" . $versioninfo->getInfo('version_history') . "</td>";
176-
echo "</tr>";
171+
echo '<tr>';
172+
echo "<td class='even' align='left'>" . $versioninfo->getInfo('version_history') . '</td>';
173+
echo '</tr>';
177174

178-
echo "</table>";
175+
echo '</table>';
179176
}
180177

181-
echo "<br />";
178+
echo '<br />';
182179
//$modfooter = sf_modFooter();
183180
//echo "<div align='center'>" . $modfooter . "</div>";
184181
//xoops_cp_footer();

0 commit comments

Comments
 (0)