GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 7a5e4a...056a26 )
by Calima
04:12
created

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 43 and the first side effect is on line 26.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
3
/*
4
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
5
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
6
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
7
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
8
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
9
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
10
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
11
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
12
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
13
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
14
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15
 *
16
 * This software consists of voluntary contributions made by many individuals
17
 * and is licensed under the MIT license. For more information, see
18
 * @category   
19
 * @package    root
20
 * @copyright  Copyright (c) 2006 - 2014 webcol.net (http://www.webcol.net/calima)
21
 * @license	https://github.com/webcol/Calima/blob/master/LICENSE	MIT
22
 * @version	##BETA 1.0##, ##2014 - 2015##
23
 * <http://www.calimaframework.com>.
24
 */
25
26
require_once __DIR__.'/vendor/autoload.php';
27
28
use Sistema\Nucleo;
29
use Sistema\Ayudantes;
30
//use mvc\controladores;
31
32
//lenguaje
33
34
/*session_start();
35
$sesion=new Sistema\Nucleo\CFSesion();
36
$sesion->iniciarSesion('_s', false);
37
header('Cache-control: private'); // IE 6 FIX
38
 */
39
40
41
42
/** Cf directorio separador */
43
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
44
/** Cf raiz del sitio */
45
defined('SITE_ROOT')? null: define('SITE_ROOT', realpath(dirname(__FILE__)).DS);
46
/** Cf PATH del sitio */
47
defined('SITE_PATH') ? NULL : define ('SITE_PATH', realpath(dirname(__FILE__) . DS . '..' . DS) . DS);
48
49
/** Cf definimos constante Ruta directa al nucleo de framework  */
50
define('RUTA_NUCLEO', SITE_ROOT . 'Sistema'.DS.'Nucleo' . DS);
51
52
# define para mvc erp
53
54
/** Cf definimos constante  directa a la vista del framework  */
55
define('VIEW_PATH', SITE_ROOT . 'mvc'.DS.'vistas' . DS);
56
/** Cf definimos constante  directa a los controladores del framework  */
57
define('CONTR_PATH', SITE_ROOT . 'mvc'.DS.'controladores' . DS);
58
/** Cf definimos constante  directa a los modelos del framework  */
59
define('RUTA_MOD', SITE_ROOT . 'mvc'.DS.'modelos' . DS);
60
61
# define ruta a los stilos del public
62
63
/** Cf definimos constante  directa a los css dentro del directorio public_ del framework  */
64
define('CSS_PATH', SITE_ROOT . 'public_'.DS.'css' . DS);
65
/** Cf definimos constante  directa a los css dentro del directorio public_ del framework  */
66
define('IMG_PATH', SITE_ROOT . 'public_'.DS.'img' . DS);
67
/** Cf definimos constante  directa a los js dentro del directorio public_ del framework  */
68
define('JS_PATH', SITE_ROOT . 'public_'.DS.'js' . DS);
69
/** Cf definimos constante  directa a las librerias dentro  del framework  */
70
define('RUTA_LIBS', SITE_ROOT . 'Sistema'.DS.'librerias' . DS);
71
/** Cf definimos constante  directa a los ayudantes del framework  */
72
define('RUTA_AYUDANTES', SITE_ROOT . 'Sistema'.DS.'ayudantes' . DS);
73
74
/** Cf definimos constante  directa a los lenguajes del framework  */
75
define('RUTA_LENGUAJES', SITE_ROOT . 'Sistema'.DS.'lenguajes' . DS);
76
77
78
//LENGUAJES
79
//En el directorio sistema lenguajes hay varios archivos php cada uno para crear las constantes en el idioma especifico
80
//luego por get capturamos la variable lan al inicio de la aplicacion asi: www.tuapp.com/?lang=de
81
82
if(isSet($_GET['lang']))
83
{
84
    $lang = $_GET['lang'];
85
 
86
// register the session and set the cookie
87
    $_SESSION['lang'] = $lang;
88
 
89
    setcookie('lang', $lang, time() + (3600 * 24 * 30));
90
}
91
else if(isSet($_SESSION['lang']))
92
{
93
    $lang = $_SESSION['lang'];
94
}
95
else if(isSet($_COOKIE['lang']))
96
{
97
    $lang = $_COOKIE['lang'];
98
}
99
else
100
{
101
    $lang = 'es'; // por defecto el idioma para el app es español puede ser en, bt, de, zh
102
}
103
 
104
$lang_file = 'lang.'.(empty($lang)?'en':$lang).'.php'; 
105
// optimizacion de codigo al evaluar la llamda del archivo lang
106
/* 
107
switch ($lang) {
108
  case 'en':
109
  $lang_file = 'lang.en.php';
110
  break;
111
 
112
  case 'de':
113
  $lang_file = 'lang.de.php';
114
  break;
115
116
  case 'zh':
117
  $lang_file = 'lang.zh.php';
118
  break;
119
120
  case 'pt':
121
  $lang_file = 'lang.pt.php';
122
  break;
123
124
  case 'pt':
125
  $lang_file = 'lang.pt.php';
126
  break;
127
128
  case 'es':
129
  $lang_file = 'lang.es.php';
130
  break;
131
 
132
  default:
133
  $lang_file = 'lang.en.php';
134
 
135
}
136
*/
137
include_once RUTA_LENGUAJES . $lang_file;
138
139
//FIN LENGUAJES
140
141
142
143
#Firewall desactivado
144
145
/*define('PHP_FIREWALL_REQUEST_URI', strip_tags( $_SERVER['REQUEST_URI'] ) );
146
define('PHP_FIREWALL_ACTIVATION', true );
147
if ( is_file( @dirname(__FILE__).'RUTA_LIBS'.DS.'php-firewall'.DS.'firewall.php' ) )
148
	include_once( @dirname(__FILE__).'RUTA_LIBS'.DS.'php-firewall'.DS.'firewall.php' );*/
149
150
# Cargamos la autocarga dinamica y configuraciones
151
//require_once RUTA_NUCLEO . 'Cf_Autocarga.php';
152
require_once RUTA_NUCLEO . 'CFConfiguracion.php';
153
154
try{
155
   
156
    Nucleo\CFBootstrap::actuar(new Nucleo\CFSolicitud);
157
    //CFBootstrap::actuar(new CFSolicitud);
158
   
159
} catch (Exception $e) {
160
    echo $e->getMessage();
161
}
162
163
/*try{
164
  CfBootstrap::actuar(new Cf_Solicitud);
165
}
166
catch(Exception $e){
167
   
168
}*/
169