[go: up one dir, main page]

Menu

[r33]: / index.php  Maximize  Restore  History

Download this file

108 lines (96 with data), 4.0 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
<?php
/*
* ABC ERP - Sistema ERP para PYMEs
* Copyright (C) 2013 Santiago Faci <santi@arkabytes.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
session_start();
$id = "";
if (isset($_REQUEST["id"]))
$id = $_REQUEST["id"];
/* Si no se ha iniciado sesión se muestra el formulario de login */
$mensaje = "";
if (!isset($_SESSION["usuario"])) {
if (($id != "login") || ($id == ""))
$mensaje = "Estás desconectado. Debe iniciar una sesión para continuar";
$id = "login";
}
else {
require_once("include/arkabytes/usuario.php");
require_once("config/abc-config.php");
$usuario = new Usuario();
$usuario = unserialize($_SESSION["usuario"]);
// TODO por ahora no se muestra la zona de clientes
if ($usuario->nivel == "admin") {
printf(BASE_URL . "admin/index.php");
header("Location: " . BASE_URL . "admin/?id=inicio");
}
}
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<link href="css/estilo.css" rel="stylesheet" type="text/css"/>
<link href="css/formularios.css" rel="stylesheet" type="text/css"/>
<link href="css/comun.css" rel="stylesheet" type="text/css"/>
<link href="../include/ui/css/custom-theme/jquery-ui-1.8.7.custom.css" rel="stylesheet" type="text/css"/>
<link rel="icon" href="img/logo.ico" type="image/gif"/>
<script type="text/javascript" src="include/ui/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="include/jquery/jquery.message.js"></script>
<script type="text/javascript" src="include/jquery/jquery.validate.js"></script>
<script type="text/javascript" src="include/ui/js/jquery-ui-1.8.7.custom.min.js"></script>
<script type="text/javascript" src="include/jquery/jquery.form.js"></script>
<script type="text/javascript" src="include/arkabytes/miajax.js"></script>
<title>ABC | Arkabytes</title>
</head>
<body>
<div id="container">
<div id="logo"></div>
<div id="header">
<?php
include("header.php");
?>
</div>
<div id="content">
<?php
if ($id == "")
$id = "inicio";
include($id . ".php");
?>
</div>
<div id='footer'>&copy; 2013 Arkabytes - Servicios y Desarrollos Web | contacto@arkabytes.com</div>
</div>
<!-- <div id="pie">
<a href="http://www.arkabytes.com"><img src="img/logoarkabytes200.png" alt="Logo Arkabytes" /></a>
</div> -->
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.arkabytes.com/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "3"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
</body>
</html>