Ejemplo n.º 1
0
//if ($_POST) {
include 'dbConector.php';
include 'eventListener.php';
include '../siteConfig.php';
include 'navigatorWeb.php';

session_start();

$getArray = array();
$getArray['loginusername'] = isset($_POST["loginUsername"]) ? $_POST["loginUsername"] : "******";
$getArray['loginpassword'] = isset($_POST["loginPassword"]) ? $_POST["loginPassword"] : "******";
$valido = '';

$db = new dbConector($siteConfig); 
$ev = new eventListener();
$nw = new navigatorWeb();

//$resultBR["xy"]="";

	//"CALL spValidarUsuario('".$loginUsername."','".$loginPassword."');"
	
	foreach ($_POST as $key => $value)
		$getArray[$key] = $value;
	
	$resultBR = $ev->rulesExec($siteConfig, $db, 'rules_btnIniciar', $getArray);
		
	if($resultBR["success"])
		$resultBR["xy"] = $resultBR["xy"]."0";
	else
		$resultBR["xy"] = $resultBR["xy"]."1";
Ejemplo n.º 2
0
/* <!---Includes--- */
	require_once('siteConfig.php');
	require_once('arbolServicio.php');

	require_once('class/dbConector.php');
	require_once('class/templateLoader.php');
	require_once('class/screenEngine.php');
	require_once('class/eventListener.php');
	require_once('class/navigatorWeb.php');
/* ---Includes---> */

	$objNavegador   = new navigatorWeb;
	$objDb          = new dbConector($siteConfig);	
	$objTemplate    = new templateLoader();
	$objScreen      = new screenEngine();
	$objListener    = new eventListener();	
	
	$objNavegador->nodoActual = $arbol['index']['auto'];
	
	if ($_POST) {
		$getArray = array();
		$resultBR[] = array();
		
		foreach ($_POST as $key => $value)
			$getArray[$key] = $value;

		$resultBR = $objListener->rulesExec($siteConfig, $objDb,'rules_btnIniciar', $getArray);
		
		$_SESSION['codigousuario']  = $resultBR['codigousuario'];
		$_SESSION['tipousuario']  = $resultBR['tipousuario'];