Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/03/2012, 23:52
predicol
 
Fecha de Ingreso: diciembre-2003
Ubicación: santo domingo
Mensajes: 100
Antigüedad: 20 años, 4 meses
Puntos: 0
Pregunta Remover Creditos Phoca Gallery 3.1.4

Buenas noches chicos, hoy estoy solicitando su ayuda con este tremendo componente que imagino que muchos conocemos.

Pues en la empresa donde estoy creandole su website me estan exigiendo eliminar los creditos de phoca gallery o conseguir otra mejor galeria pero el asunto es que no encuentro otra.

Estoy usando actualmente la version de joomla 2.5.1 (hoy es la mas actual)

y navegando dentro del componente expecificamente en esta ruta: administrator/components/com_phocagallery/libraries/phocagallery/render

dentro de esa ruta encontramos el archivo: renderinfo.php
que contiene el siguiente codigo:

Código:
<?php defined( '_JEXEC' ) or die( 'Restricted access' ); class PhocaGalleryRenderInfo { function getPhocaIc($output){ $v = PhocaGalleryRenderInfo::getPhocaVersion(); $i = str_replace('.', '',substr($v, 0, 3)); $n = '<p>&nbsp;</p>'; $l = 'h'.'t'.'t'.'p'.':'.'/'.'/'.'w'.'w'.'w'.'.'.'p'.'h'.'o'.'c'.'a'.'.'.'c'.'z'.'/'; $p = 'P'.'h'.'o'.'c'.'a'.' '.'G'.'a'.'l'.'l'.'e'.'r'.'y'; $im = 'i'.'c'.'o'.'n'.'-'.'p'.'h'.'o'.'c'.'a'.'-'.'l'.'o'.'g'.'o'.'-'.'s'.'m'.'a'.'l'.'l'.'.'.'p'.'n'.'g'; $s = 's'.'t'.'y'.'l'.'e'.'='.'"'.'t'.'e'.'x'.'t'.'-'.'d'.'e'.'c'.'o'.'r'.'a'.'t'.'i'.'o'.'n'.':'.'n'.'o'.'n'.'e'.'"'; $b = 't'.'a'.'r'.'g'.'e'.'t'.'='.'"'.'_'.'b'.'l'.'a'.'n'.'k'.'"'; $im2 = 'i'.'c'.'o'.'n'.'-'.'p'.'h'.'o'.'c'.'a'.'-'.'l'.'o'.'g'.'o'.'-'.'s'.'e'.'a'.'l'.'.'.'p'.'n'.'g'; $i = (int)$i * (int)$i; $lg = ''; if ($output != $i) { $lg .= $n; $lg .= '<div style="text-align:center">'; } if ($output == 1) { $lg .= '<a href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">'. JHTML::_('image', 'components/com_phocagallery/assets/images/'.$im, $p). '</a>'; $lg .= ' <a href="http://www.phoca.cz/" '.$s.' '.$b.' title="'.$p.'">'. $v .'</a>'; } else if ($output == 2 || $output == 3) { $lg .= '<a  href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">'. JHTML::_('image', 'components/com_phocagallery/assets/images/'.$im, $p). '</a>'; } else if ($output == 4) { $lg .= ' <a href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">Phoca Gallery</a>'; } else if ($output == 5) { $lg .= ' <a href="'.$l.'" '.$s.' '.$s.' '.$b.' title="'.$p.'">'.$p.' '.$v.'</a>'; } else if ($output == 6) { $lg .= ' <a href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">'. JHTML::_('image', 'components/com_phocagallery/assets/images/'.$im2, $p). '</a>'; } else if ($output == $i) { $lg .= '<!-- <a href="'.$l.'">site: www.phoca.cz | version: '.$v.'</a> -->'; } else { $lg .= '<a href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">'. JHTML::_('image', 'components/com_phocagallery/assets/images/'.$im, $p). '</a>'; $lg .= ' <a href="http://www.phoca.cz/" '.$s.' '.$b.' title="'.$p.'">'. $v .'</a>'; } if ($output != $i) { $lg .= '</div>' . $n; } return $lg; } function getPhocaVersion() { $folder = JPATH_ADMINISTRATOR .DS. 'components'.DS.'com_phocagallery'; if (JFolder::exists($folder)) { $xmlFilesInDir = JFolder::files($folder, '.xml$'); } else { $folder = JPATH_SITE .DS. 'components'.DS.'com_phocagallery'; if (JFolder::exists($folder)) { $xmlFilesInDir = JFolder::files($folder, '.xml$'); } else { $xmlFilesInDir = null; } } $xml_items = ''; if (count($xmlFilesInDir)) { foreach ($xmlFilesInDir as $xmlfile) { if ($data = JApplicationHelper::parseXMLInstallFile($folder.DS.$xmlfile)) { foreach($data as $key => $value) { $xml_items[$key] = $value; } } } } if (isset($xml_items['version']) && $xml_items['version'] != '' ) { return $xml_items['version']; } else { return ''; } } } ?>

La cual limpie quitando los puntos y las comillas simples que concatenaban el contenido de las variables quedando de esta forma mucho mas legible:

Código:
<?php defined( '_JEXEC' ) or die( 'Restricted access' ); 
class PhocaGalleryRenderInfo { function getPhocaIc($output){ $v = PhocaGalleryRenderInfo::getPhocaVersion(); 
$i = str_replace('.', '',substr($v, 0, 3)); 
$n = '<p>&nbsp;</p>';
$l = 'http://www.phoca.cz/'; 
$p = 'Phoca Gallery2';
$im = 'icon-phoca-logo-small.png'; 
$s = 'style="text-decoration:none"'; 
$b = 'target="_blank"';
$im2 = 'icon-phoca-logo-seal.png';
$i = (int)$i * (int)$i; 
$lg = ''; 



  
if ($output != $i) { $lg .= $n; 
$lg .= '<div style="text-align:center">';
} if ($output == 1) { $lg .= '<a href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">'. JHTML::_('image', 'components/com_phocagallery/assets/images/'.$im, $p). '</a>'; 
$lg .= ' <a href="http://www.phoca.cz/" '.$s.' '.$b.' title="'.$p.'">'. $v .'</a>'; 
} else if ($output == 2 || $output == 3) { $lg .= '<a  href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">'. JHTML::_('image', 'components/com_phocagallery/assets/images/'.$im, $p). '</a>'; 
} else if ($output == 4) { $lg .= ' <a href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">Phoca Gallery22222</a>'; 
} else if ($output == 5) { $lg .= ' <a href="'.$l.'" '.$s.' '.$s.' '.$b.' title="'.$p.'">'.$p.' '.$v.'</a>'; 
} else if ($output == 6) { $lg .= ' <a href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">'. JHTML::_('image', 'components/com_phocagallery/assets/images/'.$im2, $p). '</a>'; 
} else if ($output == $i) { $lg .= '<!-- <a href="'.$l.'">site: www.phoca.cz | version: '.$v.'</a> -->'; 
} else { $lg .= '<a href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">'. JHTML::_('image', 'components/com_phocagallery/assets/images/'.$im, $p). '</a>'; 
$lg .= ' <a href="http://www.phoca.cz/" '.$s.' '.$b.' title="'.$p.'">'. $v .'</a>'; 
} if ($output != $i) { $lg .= '</div>' . $n; 
} return $lg; 
} function getPhocaVersion() { $folder = JPATH_ADMINISTRATOR .DS. 'components'.DS.'com_phocagallery'; 
if (JFolder::exists($folder)) { $xmlFilesInDir = JFolder::files($folder, '.xml$'); 
} else { $folder = JPATH_SITE .DS. 'components'.DS.'com_phocagallery'; 
if (JFolder::exists($folder)) { $xmlFilesInDir = JFolder::files($folder, '.xml$');
} else { $xmlFilesInDir = null; 
} } $xml_items = ''; 
if (count($xmlFilesInDir)) { foreach ($xmlFilesInDir as $xmlfile) { if ($data = JApplicationHelper::parseXMLInstallFile($folder.DS.$xmlfile)) { foreach($data as $key => $value) { $xml_items[$key] = $value; 
} } } } if (isset($xml_items['version']) && $xml_items['version'] != '' ) { return $xml_items['version'];
} else { return '';
 } } } ?>
El problema es que no se que modificar luego de ahi para que se quiten los creditos de: Powered by Phoca Gallery




Agradesco su ayuda
__________________
Visita: http://www.muyinformado.com