SHARE
TWEET

Untitled

a guest Jun 25th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RewriteEngine On
  2. RewriteCond %{SCRIPT_FILENAME} !-f
  3. RewriteCond %{SCRIPT_FILENAME} !-d
  4. RewriteRule ^(.*) index.php?pagina=$1
  5.      
  6. $url = (isset($_GET['pagina'])) ? $_GET['pagina'] : 'inicio';
  7. $explode = array_filter(explode('/', $url));
  8.  
  9. $pags = 'pages/';
  10. $ext = '.php';
  11.  
  12. if(file_exists($pags.$explode['0'].$ext)){
  13.     include($pags.$explode['0'].$ext);
  14. }else{
  15.     echo "PĆ”gina NĆ£o encontrada!";
  16. }
  17.      
  18. <li class="nav-item dropdown">
  19.     <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  20.         <span class="no-icon">ConfiguraĆ§Ć£o</span>
  21.     </a>
  22.     <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
  23.         <a class="dropdown-item" href="/contas/adicionar">Adicionar</a>
  24.         <a class="dropdown-item" href="?page=contas&config=editar">Editar/Apagar</a>
  25.         <!-- <a class="dropdown-item" href="#"></a>
  26.         <a class="dropdown-item" href="#"></a> -->
  27.         <div class="divider"></div>
  28.         <a class="dropdown-item" href="../pages/api.php?action=write">Sincronizar</a>
  29.     </div>
  30. </li>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top