Jump to content


marcos223

Member Since 24/01/2016
Offline Last Active 14/09/2017, 23:37
-----

#1034173 Internal Server Error

Posted by marcos223 on 16/11/2016, 22:17

estou desenvolvendo um site com urls amigaveis, estava tudo normal, mas derrepente no servidor apareceu esta msg

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at admin@main-hosting.eu to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

 

enteri em contato com meu servidor e eles me dissram q o problema esta no meu script, mas não consigo achar o erro.

OBS: localhost funciona tudo perfeito, só no servidor é que não funciona

 

já tentei tudo e não consigo achar o problema.

 

 

.htaccess

RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1
Options -Indexes
 

 

config.php

<?php
//host
define('HOST', 'host');
//usuario
define('USER', 'root');
//senha
define('PASS', '');
// base de dados
define('BD', 'banco');
//url
define('PATH', 'http://www.videirasapucaia.esy.es');
?>

 

index.php

 

<?php include "includes/header.php";?>
    <main class="container-fluid" id="conteudo"><!-- div conteudo -->
      <?php

    $url = (isset($_GET['url'])) ? htmlentities(strip_tags($_GET['url'])) : "";
        
            $parametros    = explode('/', $url);
                 $paginas_permitidas = array('home','igreja','celula','escola','encontro','culto','videos','pregacao','quebra-gelo',
                 'galeria','agenda','videira-news','contato','evento','palavra');
                             
            if(isset($_GET['s']) && $_GET['s'] != ""){
                include_once "pages/busca.php";
                }else{
                    if($url == ''){
                        include_once "pages/home.php";
                }elseif(in_array($parametros[0], $paginas_permitidas)){
                    include_once "pages/".$parametros[0].'.php';
                    
                }elseif($parametros[0] == 'categoria'){
                    if(isset($parametros[1]) && !isset($parametros[2])){
                        include_once "pages/categoria.php";
                        }elseif(isset($parametros[2])){
                            include_once "pages/subcategoria.php";    
                        }
                    }else{
                    include_once "pages/erro404.php";    
                }
            }
            
?>
    </main>
    <!-- fim div conteudo -->
    <?php include  "includes/footer.php";?>

 

 

 




#1023703 como deixar pager active no slide Jquery Cycle

Posted by marcos223 on 19/08/2016, 00:58

Criei um slide com Jquery cycle e não consigo deixar o pager active, funciona tudo só que quando trocar de imagem quero que o pager respectivo a imagem tbm troque de cor

html

<div class="col-md-12 banner">
  <div class="col-md-12" id="banner-home">
    <ul>
      <li> <img src="<?php echo PATH;?>../img/img1.jpg" alt=""> </li>
      <li> <img src="<?php echo PATH;?>../img/img2.jpg" alt=""> </li>
      <li> <img src="<?php echo PATH;?>../img/img3.png" alt=""> </li>
      <li> <img src="<?php echo PATH;?>..../img/img4.jpg" alt=""> </li>
    </ul>
    <div class="pager"></div>
  </div>
 
</div>

 

Função

$(document).ready(function(){
    $('#banner-home ul').cycle({    
        fx:'fade',
        speed: 2000,
        timeout: 1000,
        pager: '.pager'    
        });
});

 

 

css

.pager{
    width:100%;
    position:absolute;
    z-index:999;
    top:480px;    
}
.pager a{
    margin:5px;
    padding:2px;
    color:#4B025B;
    background:#4B025B;
    border-radius:100%;
    text-decoration:none;
    border:solid 4px #4B025B;
    font-size:1px;    
    opacity:0.7;
}
.pager a:hover{
    background:    #008000;
    color:#008000;
    border:solid 4px #008000;
}
 




IPB Skin By Virteq