- Fórum
- /
- Suporte Joomla
- /
- Templates
- /
- Joomla 1.5
- /
- [RESOLVIDO] Consertar index.php - dá acesso restrito
[RESOLVIDO] Consertar index.php - dá acesso restrito
- riccelly
-
Autor do Tópico
- Offline
- JCB! Geek
-
Menos
Mais
15 anos 5 meses atrás #31125
por riccelly
Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]
[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]
riccelly replied the topic: Re: Consertar index.php - dá acesso restrito
http://www.campinaonline.com.br/templat ... /index.php
http://www.campinaonline.com.br/index.php
MESMA Index gente...
e dá Restricted index access
http://www.campinaonline.com.br/index.php
MESMA Index gente...
e dá Restricted index access
Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]
[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]
Please Entrar ou Registrar to join the conversation.
- thgcivic
-
- Offline
- JCB! Geek
-
15 anos 5 meses atrás #31133
por thgcivic
[b:1fi4zh5y]Acesse minha página [url:1fi4zh5y]http://www.webmasterthg.com.br/[/url:1fi4zh5y][/b:1fi4zh5y]
[b:1fi4zh5y][i:1fi4zh5y]Não respondo dúvidas por MP, por favor crie um tópico ñ custa nada[/i:1fi4zh5y][/b:1fi4zh5y]
thgcivic replied the topic: Re: Consertar index.php - dá acesso restrito
Olá riccelly
pois entao é isso q vc deve estar fazendo errado
o conteúdo da raiz do joomla
ñ tem nada haver com o index q fica no template
são coisas diferentes
vc tem q colocar o index do template na pasta do template
e o index da raiz na raiz
os 2 ñ podem ser o msm
Inté <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->
pois entao é isso q vc deve estar fazendo errado
o conteúdo da raiz do joomla
ñ tem nada haver com o index q fica no template
são coisas diferentes
vc tem q colocar o index do template na pasta do template
e o index da raiz na raiz
os 2 ñ podem ser o msm
Inté <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->
[b:1fi4zh5y]Acesse minha página [url:1fi4zh5y]http://www.webmasterthg.com.br/[/url:1fi4zh5y][/b:1fi4zh5y]
[b:1fi4zh5y][i:1fi4zh5y]Não respondo dúvidas por MP, por favor crie um tópico ñ custa nada[/i:1fi4zh5y][/b:1fi4zh5y]
Please Entrar ou Registrar to join the conversation.
- riccelly
-
Autor do Tópico
- Offline
- JCB! Geek
-
15 anos 5 meses atrás #31137
por riccelly
Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]
[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]
riccelly replied the topic: Re: Consertar index.php - dá acesso restrito
mas e agora?
como é essa index na raiz? é melhor eu reinstalar o joomla? ou tem como resolver?
INDEX DO TEMPLATE:
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
$live_site = $mainframe->getCfg('live_site');
$template_path = $this->baseurl . '/templates/' . $this->template;
$show_flashheader = ($this->params->get("showFlashheader", 1) == 0)?"false":"true";
$show_logo = ($this->params->get("showLogo", 1) == 0)?"false":"true";
$show_date = ($this->params->get("showDate", 1) == 0)?"false":"true";
$show_breadcrumbs = ($this->params->get("showBreadcrumbs", 1) == 0)?"false":"true";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ;
<html xmlns=" www.w3.org/1999/xhtml" ; xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="shortcut icon" href="<?php echo $this->baseurl; ?>/images/favicon.ico" />
<link href="<?php echo $this->baseurl ?>/templates/system/css/system.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl ?>/templates/system/css/general.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/template_css.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie6.css" type="text/css" />
<![endif]-->
</head>
<body class="body_bg">
<div id="bgr">
<div id="wrapper">
<div id="tophead">
<!-- BEGIN: SEARCH -->
<!-- END: SEARCH -->
<!-- BEGIN: LOGO -->
<?php if($show_logo == "true") : ?>
<div id="logo">
<object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/logo.swf" width="230" height="216">
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/logo.swf" />
</object>
</div>
<?php endif; ?>
<!-- END: LOGO -->
<!-- BEGIN: flashheader -->
<?php if($show_flashheader == "true") : ?>
<div id="ol-flashheader">
<object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" width="630" height="216">
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" />
</object>
</div>
<?php endif; ?>
<!-- END: flashheader -->
<!-- BEGIN: Date -->
<?php if($show_date == "true") : ?>
<div id="date-format">
<?php $now = &JFactory::getDate(); echo $now->toFormat("%A, %d %b %Y"); ?>
</div>
<?php endif; ?>
<!-- END: Date -->
</div>
<?php if( $this->countModules('user4') ) {?>
<div id="topcol">
<div id="topmenu">
<table cellspacing="0" cellpadding="0" style="float: left;">
<tr>
<td>
<jdoc:include type="modules" name="user4" />
</td>
</tr>
</table>
</div>
</div>
<?php } ?>
<div id="wrapper_2">
<div id="holder">
<!--pathway start-->
<?php if ($show_breadcrumbs == "true") : ?>
<div class="path">
Você está aqui: <jdoc:include type="module" name="breadcrumbs" />
</div>
<?php endif; ?>
<!--pathway end-->
<div id="content">
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="left">
<jdoc:include type="modules" name="left" style="rounded" />
</div>
<?php endif; ?>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="main">
<?php else: ?>
<div id="main_full">
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<!-- BEGIN: USERS TEMPSPLASH -->
<div id="lr-padd">
<?php if( $this->countModules('destaque') ) {?>
<div id="destaque">
<jdoc:include type="modules" name="destaque" style="xhtml" />
</div>
<?php } ?>
<?php if( $this->countModules('bannerflash') ) {?>
<div id="bannerflash">
<jdoc:include type="modules" name="bannerflash" style="xhtml" />
</div>
<?php if( $this->countModules('ultimas') ) {?>
<div id="ultimas">
<jdoc:include type="modules" name="ultimas" style="xhtml" />
</div>
<?php } ?>
<td valign="top" class="mainbody">
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td>
<jdoc:include type="modules" name="user1" style="xhtml" /></td>
<td>
<jdoc:include type="modules" name="user2" style="xhtml" /></td>
</tr>
</table>
<?php } ?>
<?php if( $this->countModules('banner') ) {?>
<td class="lr-padd">
<jdoc:include type="modules" name="banner" style="xhtml" />
</td>
<?php } ?>
<?php if ($this->countModules('maislidas')) : ?>
<div>
<jdoc:include type="modules" name="maislidas" style="xhtml" />
</div>
<?php endif; ?>
</div>
<!-- END: USERS TEMPSPLASH -->
<jdoc:include type="component" />
</div>
</div>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="right">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
</div>
<?php if ($this->countModules('enquete')) : ?>
<div>
<jdoc:include type="modules" name="enquete" style="xhtml" />
</div>
<?php endif; ?>
<!--footer start-->
<div id="footer">
<div id="footer_in">
<div>
<div style="text-align: center; padding: 18px 0 0;">
<?php include (dirname(__FILE__).DS.'/footer.php');?>
</div>
</div>
</div>
</div>
<!--footer end-->
</div>
</div>
</div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
como é essa index na raiz? é melhor eu reinstalar o joomla? ou tem como resolver?
INDEX DO TEMPLATE:
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
$live_site = $mainframe->getCfg('live_site');
$template_path = $this->baseurl . '/templates/' . $this->template;
$show_flashheader = ($this->params->get("showFlashheader", 1) == 0)?"false":"true";
$show_logo = ($this->params->get("showLogo", 1) == 0)?"false":"true";
$show_date = ($this->params->get("showDate", 1) == 0)?"false":"true";
$show_breadcrumbs = ($this->params->get("showBreadcrumbs", 1) == 0)?"false":"true";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ;
<html xmlns=" www.w3.org/1999/xhtml" ; xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="shortcut icon" href="<?php echo $this->baseurl; ?>/images/favicon.ico" />
<link href="<?php echo $this->baseurl ?>/templates/system/css/system.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl ?>/templates/system/css/general.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/template_css.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie6.css" type="text/css" />
<![endif]-->
</head>
<body class="body_bg">
<div id="bgr">
<div id="wrapper">
<div id="tophead">
<!-- BEGIN: SEARCH -->
<!-- END: SEARCH -->
<!-- BEGIN: LOGO -->
<?php if($show_logo == "true") : ?>
<div id="logo">
<object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/logo.swf" width="230" height="216">
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/logo.swf" />
</object>
</div>
<?php endif; ?>
<!-- END: LOGO -->
<!-- BEGIN: flashheader -->
<?php if($show_flashheader == "true") : ?>
<div id="ol-flashheader">
<object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" width="630" height="216">
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" />
</object>
</div>
<?php endif; ?>
<!-- END: flashheader -->
<!-- BEGIN: Date -->
<?php if($show_date == "true") : ?>
<div id="date-format">
<?php $now = &JFactory::getDate(); echo $now->toFormat("%A, %d %b %Y"); ?>
</div>
<?php endif; ?>
<!-- END: Date -->
</div>
<?php if( $this->countModules('user4') ) {?>
<div id="topcol">
<div id="topmenu">
<table cellspacing="0" cellpadding="0" style="float: left;">
<tr>
<td>
<jdoc:include type="modules" name="user4" />
</td>
</tr>
</table>
</div>
</div>
<?php } ?>
<div id="wrapper_2">
<div id="holder">
<!--pathway start-->
<?php if ($show_breadcrumbs == "true") : ?>
<div class="path">
Você está aqui: <jdoc:include type="module" name="breadcrumbs" />
</div>
<?php endif; ?>
<!--pathway end-->
<div id="content">
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="left">
<jdoc:include type="modules" name="left" style="rounded" />
</div>
<?php endif; ?>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="main">
<?php else: ?>
<div id="main_full">
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<!-- BEGIN: USERS TEMPSPLASH -->
<div id="lr-padd">
<?php if( $this->countModules('destaque') ) {?>
<div id="destaque">
<jdoc:include type="modules" name="destaque" style="xhtml" />
</div>
<?php } ?>
<?php if( $this->countModules('bannerflash') ) {?>
<div id="bannerflash">
<jdoc:include type="modules" name="bannerflash" style="xhtml" />
</div>
<?php if( $this->countModules('ultimas') ) {?>
<div id="ultimas">
<jdoc:include type="modules" name="ultimas" style="xhtml" />
</div>
<?php } ?>
<td valign="top" class="mainbody">
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td>
<jdoc:include type="modules" name="user1" style="xhtml" /></td>
<td>
<jdoc:include type="modules" name="user2" style="xhtml" /></td>
</tr>
</table>
<?php } ?>
<?php if( $this->countModules('banner') ) {?>
<td class="lr-padd">
<jdoc:include type="modules" name="banner" style="xhtml" />
</td>
<?php } ?>
<?php if ($this->countModules('maislidas')) : ?>
<div>
<jdoc:include type="modules" name="maislidas" style="xhtml" />
</div>
<?php endif; ?>
</div>
<!-- END: USERS TEMPSPLASH -->
<jdoc:include type="component" />
</div>
</div>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="right">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
</div>
<?php if ($this->countModules('enquete')) : ?>
<div>
<jdoc:include type="modules" name="enquete" style="xhtml" />
</div>
<?php endif; ?>
<!--footer start-->
<div id="footer">
<div id="footer_in">
<div>
<div style="text-align: center; padding: 18px 0 0;">
<?php include (dirname(__FILE__).DS.'/footer.php');?>
</div>
</div>
</div>
</div>
<!--footer end-->
</div>
</div>
</div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]
[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]
Please Entrar ou Registrar to join the conversation.
- riccelly
-
Autor do Tópico
- Offline
- JCB! Geek
-
15 anos 5 meses atrás #31161
por riccelly
Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]
[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]
riccelly replied the topic: Re: Consertar index.php - dá acesso restrito
RESOLVIDO. Atualizei o Joomla pra versão 1.5.1.7
obg gente.
obg gente.
Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]
[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]
Please Entrar ou Registrar to join the conversation.
- thgcivic
-
- Offline
- JCB! Geek
-
15 anos 5 meses atrás #31173
por thgcivic
[b:1fi4zh5y]Acesse minha página [url:1fi4zh5y]http://www.webmasterthg.com.br/[/url:1fi4zh5y][/b:1fi4zh5y]
[b:1fi4zh5y][i:1fi4zh5y]Não respondo dúvidas por MP, por favor crie um tópico ñ custa nada[/i:1fi4zh5y][/b:1fi4zh5y]
thgcivic replied the topic: Re: [RESOLVIDO] Consertar index.php - dá acesso restrito
Olá Riccelly
foi como eu disse
os index são diferentes
esse q vc colocou logo acima deve ficar na pasta do template
o index da raiz tem outra coisa
veja
sorte sua q tinha atualização no index.php da raiz e foi incluida na atualização!
Inté <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->
foi como eu disse
os index são diferentes
esse q vc colocou logo acima deve ficar na pasta do template
o index da raiz tem outra coisa
veja
<?php
/**
* @version $Id: index.php 14401 2010-01-26 14:10:00Z louis $
* @package Joomla
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// Set flag that this is a parent file
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__) );
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
/**
* CREATE THE APPLICATION
*
* NOTE :
*/
$mainframe =& JFactory::getApplication('site');
/**
* INITIALISE THE APPLICATION
*
* NOTE :
*/
// set the language
$mainframe->initialise();
JPluginHelper::importPlugin('system');
// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');
/**
* ROUTE THE APPLICATION
*
* NOTE :
*/
$mainframe->route();
// authorization
$Itemid = JRequest::getInt( 'Itemid');
$mainframe->authorize($Itemid);
// trigger the onAfterRoute events
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
$mainframe->triggerEvent('onAfterRoute');
/**
* DISPATCH THE APPLICATION
*
* NOTE :
*/
$option = JRequest::getCmd('option');
$mainframe->dispatch($option);
// trigger the onAfterDispatch events
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
$mainframe->triggerEvent('onAfterDispatch');
/**
* RENDER THE APPLICATION
*
* NOTE :
*/
$mainframe->render();
// trigger the onAfterRender events
JDEBUG ? $_PROFILER->mark('afterRender') : null;
$mainframe->triggerEvent('onAfterRender');
/**
* RETURN THE RESPONSE
*/
echo JResponse::toString($mainframe->getCfg('gzip'));
sorte sua q tinha atualização no index.php da raiz e foi incluida na atualização!
Inté <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->
[b:1fi4zh5y]Acesse minha página [url:1fi4zh5y]http://www.webmasterthg.com.br/[/url:1fi4zh5y][/b:1fi4zh5y]
[b:1fi4zh5y][i:1fi4zh5y]Não respondo dúvidas por MP, por favor crie um tópico ñ custa nada[/i:1fi4zh5y][/b:1fi4zh5y]
Please Entrar ou Registrar to join the conversation.