AIUTO!!!! HO AGGIORNATO LA VERSIONE 1.0.9 DI JOOMLA

ESCE SOLO QUESTO IN PRIMA PAGINA AIUTO

XCHè??
ASE ); } else { return ''; } } } $_VERSION = new joomlaVersion(); $version = $_VERSION->PRODUCT .' '. $_VERSION->RELEASE .'.'. $_VERSION->DEV_LEVEL .' ' . $_VERSION->DEV_STATUS .' [ '.$_VERSION->CODENAME .' ] '. $_VERSION->RELDATE .' ' . $_VERSION->RELTIME .' '. $_VERSION->RELTZ; ?> continue; } if ($k[0] == '_') { // internal field continue; } $xml .= '<' . $k . '> return 1; } } ?>$string; } } ?> PHP 4 if ( _JOS_FEED_ENCODING ) { // handling for utf-8 feed if ( _JOS_SITE_ENCODING ) { // utf-8 page $encoding = ''; } else { // non utf-8 page $encoding = 'utf8_decode'; } } else { // handling for non utf-8 feed if ( _JOS_SITE_ENCODING ) { // utf-8 page $encoding = 'utf8_encode'; } else { // non utf-8 page $encoding = 'html_entity_decode'; } } } if ( $encoding ) { $text = $encoding( $text ); } $text = str_replace(''', "'", $text); return $text; } } /** * Sorts an Array of objects */ function SortArrayObjects_cmp( &$a, &$b ) { global $csort_cmp; if ( $a->$csort_cmp['key'] > $b->$csort_cmp['key'] ) { return $csort_cmp['direction']; } if ( $a->$csort_cmp['key'] < $b->$csort_cmp['key'] ) { return -1 * $csort_cmp['direction']; } return 0; } /** * Sorts an Array of objects * sort_direction [1 = Ascending] [-1 = Descending] */ function SortArrayObjects( &$a, $k, $sort_direction=1 ) { global $csort_cmp; $csort_cmp = array( 'key' => $k, 'direction' => $sort_direction ); usort( $a, 'SortArrayObjects_cmp' ); unset( $csort_cmp ); } /** * Sends mail to admin */ function mosSendAdminMail( $adminName, $adminEmail, $email, $type, $title, $author ) { global $mosConfig_mailfrom, $mosConfig_fromname, $mosConfig_live_site; $subject = _MAIL_SUB." '$type'"; $message = _MAIL_MSG; eval ("\$message = \"$message\";"); mosMail($mosConfig_mailfrom, $mosConfig_fromname, $adminEmail, $subject, $message); } /* * Includes pathway file */ function mosPathWay() { global $mosConfig_absolute_path; $Itemid = intval( mosGetParam( $_REQUEST, 'Itemid', '' ) ); require_once ( $mosConfig_absolute_path . '/includes/pathway.php' ); } /** * Displays a not authorised message * * If the user is not logged in then an addition message is displayed. */ function mosNotAuth() { global $my; echo _NOT_AUTH; if ($my->id < 1) { echo "
" . _DO_LOGIN; } } /** * Replaces & with & for xhtml compliance * * Needed to handle unicode conflicts due to unicode conflicts */ function ampReplace( $text ) { $text = str_replace( '&&', '*--*', $text ); $text = str_replace( '&#', '*-*', $text ); $text = str_replace( '&', '&', $text ); $text = preg_replace( '|&(?![\w]+;)|', '&', $text ); $text = str_replace( '*-*', '&#', $text ); $text = str_replace( '*--*', '&&', $text ); return $text; } /** * Prepares results from search for display * @param string The source string * @param int Number of chars to trim * @param string The searchword to select around * @return string */ function mosPrepareSearchContent( $text, $length=200, $searchword ) { // strips tags won't remove the actual jscript $text = preg_replace( "']*>.*?'si", "", $text ); $text = preg_replace( '/{.+?}/', '', $text); //$text = preg_replace( '/]*>([^<]+)<\/a>/is','\2', $text ); // replace line breaking tags with whitespace $text = preg_replace( "'<(br[^/>]*?/|hr[^/>]*?/|/(div|h[1-6]|li|p|td))>'si", ' ', $text ); $text = mosSmartSubstr( strip_tags( $text ), $length, $searchword ); return $text; } /** * returns substring of characters around a searchword * @param string The source string * @param int Number of chars to return * @param string The searchword to select around * @return string */ function mosSmartSubstr($text, $length=200, $searchword) { $wordpos = strpos(strtolower($text), strtolower($searchword)); $halfside = intval($wordpos - $length/2 - strlen($searchword)); if ($wordpos && $halfside > 0) { return '...' . substr($text, $halfside, $length) . '...'; } else { return substr( $text, 0, $length); } } /** * Chmods files and directories recursively to given permissions. Available from 1.0.0 up. * @param path The starting file or directory (no trailing slash) * @param filemode Integer value to chmod files. NULL = dont chmod files. * @param dirmode Integer value to chmod directories. NULL = dont chmod directories. * @return TRUE=all succeeded FALSE=one or more chmods failed */ function mosChmodRecursive($path, $filemode=NULL, $dirmode=NULL) { $ret = TRUE; if (is_dir($path)) { $dh = opendir($path); while ($file = readdir($dh)) { if ($file != '.' && $file != '..') { $fullpath = $path.'/'.$file; if (is_dir($fullpath)) { if (!mosChmodRecursive($fullpath, $filemode, $dirmode)) $ret = FALSE; } else { if (isset($filemode)) if (!@chmod($fullpath, $filemode)) $ret = FALSE; } // if } // if } // while closedir($dh); if (isset($dirmode)) if (!@chmod($path, $dirmode)) $ret = FALSE; } else { if (isset($filemode)) $ret = @chmod($path, $filemode); } // if return $ret; } // mosChmodRecursive /** * Chmods files and directories recursively to mos global permissions. Available from 1.0.0 up. * @param path The starting file or directory (no trailing slash) * @param filemode Integer value to chmod files. NULL = dont chmod files. * @param dirmode Integer value to chmod directories. NULL = dont chmod directories. * @return TRUE=all succeeded FALSE=one or more chmods failed */ function mosChmod($path) { global $mosConfig_fileperms, $mosConfig_dirperms; $filemode = NULL; if ($mosConfig_fileperms != '') $filemode = octdec($mosConfig_fileperms); $dirmode = NULL; if ($mosConfig_dirperms != '') $dirmode = octdec($mosConfig_dirperms); if (isset($filemode) || isset($dirmode)) return mosChmodRecursive($path, $filemode, $dirmode); return TRUE; } // mosChmod /** * Function to convert array to integer values * @param array * @param int A default value to assign if $array is not an array * @return array */ function mosArrayToInts( &$array, $default=null ) { if (is_array( $array )) { $n = count( $array ); for ($i = 0; $i < $n; $i++) { $array[$i] = intval( $array[$i] ); } } else { if (is_null( $default )) { return array(); } else { return array( $default ); } } } /** * Utility class for helping with patTemplate */ class patHTML { /** * Converts a named array to an array or named rows suitable to option lists * @param array The source array[key] = value * @param mixed A value or array of selected values * @param string The name for the value field * @param string The name for selected attribute (use 'checked' for radio of box lists) */ function selectArray( &$source, $selected=null, $valueName='value', $selectedAttr='selected' ) { if (!is_array( $selected )) { $selected = array( $selected ); } foreach ($source as $i => $row) { if (is_object( $row )) { $source[$i]->selected = in_array( $row->$valueName, $selected ) ? $selectedAttr . '="true"' : ''; } else { $source[$i]['selected'] = in_array( $row[$valueName], $selected ) ? $selectedAttr . '="true"' : ''; } } } /** * Converts a named array to an array or named rows suitable to checkbox or radio lists * @param array The source array[key] = value * @param mixed A value or array of selected values * @param string The name for the value field */ function checkArray( &$source, $selected=null, $valueName='value' ) { patHTML::selectArray( $source, $selected, $valueName, 'checked' ); } /** * @param mixed The value for the option * @param string The text for the option * @param string The name of the value parameter (default is value) * @param string The name of the text parameter (default is text) */ function makeOption( $value, $text, $valueName='value', $textName='text' ) { return array( $valueName => $value, $textName => $text ); } /** * Writes a radio pair * @param object Template object * @param string The template name * @param string The field name * @param int The value of the field * @param array Array of options * @param string Optional template variable name */ function radioSet( &$tmpl, $template, $name, $value, $a, $varname=null ) { patHTML::checkArray( $a, $value ); $tmpl->addVar( 'radio-set', 'name', $name ); $tmpl->addRows( 'radio-set', $a ); $tmpl->parseIntoVar( 'radio-set', $template, is_null( $varname ) ? $name : $varname ); } /** * Writes a radio pair * @param object Template object * @param string The template name * @param string The field name * @param int The value of the field * @param string Optional template variable name */ function yesNoRadio( &$tmpl, $template, $name, $value, $varname=null ) { $a = array( patHTML::makeOption( 0, 'No' ), patHTML::makeOption( 1, 'Si' ) ); patHTML::radioSet( $tmpl, $template, $name, $value, $a, $varname ); } } /** * Provides a secure hash based on a seed * @param string Seed string * @return string */ function mosHash( $seed ) { return md5( $GLOBALS['mosConfig_secret'] . md5( $seed ) ); } /** * Format a backtrace