| 1 |
<?php |
<?php |
| 2 |
/** |
/** |
| 3 |
* @package Mambo Open Source |
* @package Mambo |
| 4 |
* @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
* @copyright Refer to copyright.php |
| 5 |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
| 6 |
* |
* @author Mambo Foundation Inc see README.php |
|
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
|
|
* that Mambo remained free Open Source software owned and managed by the community. |
|
|
* Mambo is Free Software |
|
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
/** ensure this file is being included by a parent file */ |
/** ensure this file is being included by a parent file */ |
| 57 |
$this->accept['MOSINSTALL'] = array ('NAME', 'CREATIONDATE', 'AUTHOR', 'COPYRIGHT', |
$this->accept['MOSINSTALL'] = array ('NAME', 'CREATIONDATE', 'AUTHOR', 'COPYRIGHT', |
| 58 |
'LICENSE', 'AUTHOREMAIL', 'AUTHORURL', 'VERSION', 'DESCRIPTION', 'FILES', 'MEDIA', |
'LICENSE', 'AUTHOREMAIL', 'AUTHORURL', 'VERSION', 'DESCRIPTION', 'FILES', 'MEDIA', |
| 59 |
'PARAMS', 'INSTALL', 'UNINSTALL', 'INSTALLFILE', 'UNINSTALLFILE', 'ADMINISTRATION', |
'PARAMS', 'INSTALL', 'UNINSTALL', 'INSTALLFILE', 'UNINSTALLFILE', 'ADMINISTRATION', |
| 60 |
'IMAGES', 'CSS', 'GROUP'); |
'IMAGES', 'CSS', 'GROUP', 'LOCALE', 'REMOVE_FILES'); |
| 61 |
$this->accept['PARAMS'] = array ('PARAM'); |
$this->accept['PARAMS'] = array ('PARAM'); |
| 62 |
$this->accept['PARAM'] = array ('OPTION'); |
$this->accept['PARAM'] = array ('OPTION'); |
| 63 |
$this->accept['FILES'] = array ('FILENAME'); |
$this->accept['FILES'] = array ('FILENAME'); |
| 64 |
|
$this->accept['REMOVE_FILES'] = array ('FILENAME'); |
| 65 |
$this->accept['INSTALL'] = array ('QUERIES'); |
$this->accept['INSTALL'] = array ('QUERIES'); |
| 66 |
$this->accept['UNINSTALL'] = array ('QUERIES'); |
$this->accept['UNINSTALL'] = array ('QUERIES'); |
| 67 |
$this->accept['QUERIES'] = array ('QUERY'); |
$this->accept['QUERIES'] = array ('QUERY'); |
| 70 |
$this->accept['SUBMENU'] = array('MENU'); |
$this->accept['SUBMENU'] = array('MENU'); |
| 71 |
$this->accept['MEDIA'] = array('FILENAME'); |
$this->accept['MEDIA'] = array('FILENAME'); |
| 72 |
$this->accept['CSS'] = array('FILENAME'); |
$this->accept['CSS'] = array('FILENAME'); |
| 73 |
|
$this->accept['LOCALE'] = array('PLURAL_FORM', 'DATE_FORMAT', 'CODESETS', 'DAYS', 'MONTHS', 'WINCODEPAGE'); |
| 74 |
|
$this->accept['CODESETS'] = array('CHARSET'); |
| 75 |
} |
} |
| 76 |
|
|
| 77 |
function start_element ($parser, $element_name, $element_attrs) { |
function start_element ($parser, $element_name, $element_attrs) { |
| 207 |
} |
} |
| 208 |
|
|
| 209 |
function end_element_option () { |
function end_element_option () { |
| 210 |
$this->options[] = mosHTML::makeOption($this->optvalue, $this->chardata); |
$this->options[] = mosHTML::makeOption($this->optvalue, T_($this->chardata)); |
| 211 |
$this->optvalue = ''; |
$this->optvalue = ''; |
| 212 |
} |
} |
| 213 |
|
|
| 214 |
function end_element_param () { |
function end_element_param () { |
| 215 |
$type = mosGetParam ($this->paramattrs, 'TYPE', ''); |
$type = mosGetParam ($this->paramattrs, 'TYPE', ''); |
| 216 |
$name = mosGetParam ($this->paramattrs, 'NAME', ''); |
$name = mosGetParam ($this->paramattrs, 'NAME', ''); |
| 217 |
$label = mosGetParam ($this->paramattrs, 'LABEL', $name); |
$label = T_(mosGetParam ($this->paramattrs, 'LABEL', $name)); |
| 218 |
$default = mosGetParam ($this->paramattrs, 'DEFAULT', ''); |
$default = T_(mosGetParam ($this->paramattrs, 'DEFAULT', '')); |
| 219 |
if ($description = mosGetParam ($this->paramattrs, 'DESCRIPTION', '')) $tooltip = mosToolTip($description, $name); |
if ($description = mosGetParam ($this->paramattrs, 'DESCRIPTION', '')) $tooltip = mosToolTip(T_($description), $name); |
| 220 |
else $tooltip = ''; |
else $tooltip = ''; |
| 221 |
if (is_object($this->mosParameter)) { |
if (is_object($this->mosParameter)) { |
| 222 |
$mp = $this->mosParameter; |
$mp = $this->mosParameter; |
| 251 |
case 'textarea': |
case 'textarea': |
| 252 |
$rows = mosGetParam ($this->paramattrs, 'ROWS', 0); |
$rows = mosGetParam ($this->paramattrs, 'ROWS', 0); |
| 253 |
$cols = mosGetParam ($this->paramattrs, 'COLS', 0); |
$cols = mosGetParam ($this->paramattrs, 'COLS', 0); |
| 254 |
$value = str_replace ('<br /', "\n", $value); |
$value = str_replace ('<br />', "\n", $value); |
| 255 |
$controlstring = "<textarea name='params[$name]' cols='$cols' rows='$rows' class='text_area'>$value</textarea>"; |
$controlstring = "<textarea name='params[$name]' cols='$cols' rows='$rows' class='text_area'>$value</textarea>"; |
| 256 |
break; |
break; |
| 257 |
case 'spacer': |
case 'spacer': |
| 482 |
<td width="100%" colspan="4"> |
<td width="100%" colspan="4"> |
| 483 |
<div class="title"> |
<div class="title"> |
| 484 |
<img src="<?php echo $imagepath; ?>" alt="<?php echo $title; ?>" /> |
<img src="<?php echo $imagepath; ?>" alt="<?php echo $title; ?>" /> |
| 485 |
<span class="sectionname"> <?php echo T_('Mambo '); echo $title; ?></span> |
<span class="sectionname"> <?php echo $title; ?></span> |
| 486 |
</div> |
</div> |
| 487 |
</td> |
</td> |
| 488 |
</tr> |
</tr> |
| 609 |
} |
} |
| 610 |
|
|
| 611 |
function mosLoadCustomModule( &$module, &$params ) { |
function mosLoadCustomModule( &$module, &$params ) { |
| 612 |
die ("The function mosLoadCustomModule has had its code removed as it appears unused"); |
if ($module->content) { |
| 613 |
|
$moduleclass_sfx = $params->get( 'moduleclass_sfx', '' ); |
| 614 |
|
echo '<table cellpadding="0" cellspacing="0" class="moduletable' . $moduleclass_sfx . '">'; |
| 615 |
|
echo '<tr>'; |
| 616 |
|
echo '<td>' . $module->content . '</td>'; |
| 617 |
|
echo '</tr>'; |
| 618 |
|
echo '</table>'; |
| 619 |
|
} |
| 620 |
|
|
| 621 |
} |
} |
| 622 |
|
|
| 623 |
function mosShowSource( $filename, $withLineNums=false ) { |
function mosShowSource( $filename, $withLineNums=false ) { |