-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
53 lines (50 loc) · 2.59 KB
/
index.php
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
<?php
### =============================================================
### Mastop InfoDigital - Paixão por Internet
### =============================================================
### Index do Módulo
### =============================================================
### Developer: Fernando Santos (topet05), [email protected]
### Copyright: Mastop InfoDigital © 2003-2007
### -------------------------------------------------------------
### www.mastop.com.br
### =============================================================
###
### =============================================================
require_once dirname(dirname(__DIR__)) . '/mainfile.php';
require_once __DIR__ . '/header.php';
if (!$_POST) {
echo '<h1>' . $xoopsModule->getVar('name') . '</h1>';
echo MGO_MAI_DESC . '<br><br>';
require_once XOOPS_ROOT_PATH . '/modules/' . MGO_MOD_DIR . '/include/generator.form.inc.php';
$dstac_form->display();
} else {
if (isset($_POST)) {
foreach ($_POST as $k => $v) {
${$k} = $v;
}
}
// $sec_classe = mgo_getClass(MGO_MOD_TABELA0, $sec_10_id);
$sec_classe = new \XoopsModules\Mastopgo2\Section($sec_10_id);
if (empty($sec_10_id) || '' == $sec_classe->getVar('sec_10_id') || 0 == $sec_classe->contaDestaques()) {
xoops_error(sprintf(MGO_MAI_SEC_404, $sec_classe->getVar('sec_30_nome')));
} else {
$iframe = '<iframe src="' . XOOPS_URL . '/modules/' . MGO_MOD_DIR . '/tac.php?sec_id=' . $sec_10_id;
$iframe .= ('100%' !== $mgo_w) ? '&w=' . $mgo_w : '';
$iframe .= (200 != $mgo_h) ? '&h=' . (int)$mgo_h : '';
$iframe .= (0 == $setas) ? '&noarrows=1' : '';
$iframe .= (0 == $barra) ? '¬extbar=1' : '';
$iframe .= (6 != $delay) ? '&delay=' . $delay : '';
$iframe .= ('333333' != $barcolor) ? '&barcolor=' . $barcolor : '';
$iframe .= ('FFFFFF' !== $textcolor) ? '&textcolor=' . $textcolor : '';
$iframe .= (50 != $transp) ? '&bartransp=' . $transp : '';
$iframe .= '" scrolling="no" frameborder="0" width="' . $mgo_w . '" height="' . $mgo_h . '" marginheight="0" marginwidth="0" align="' . $align . '"></iframe>';
echo '<h3>' . MGO_MAI_FORM_TITLE . '</h3>';
echo $iframe;
echo '<br><br>' . MGO_MAI_COPY_PASTE . '<br><br>';
echo "<textarea rows='5' style='width:90%; padding:5px; margin-top:10px; margin-bottom:10px;' onfocus='this.select();' >" . $iframe . '</textarea>';
}
require_once XOOPS_ROOT_PATH . '/modules/' . MGO_MOD_DIR . '/include/generator.form.inc.php';
$dstac_form->display();
}
require_once XOOPS_ROOT_PATH . '/footer.php';