예제 #1
0
파일: index.php 프로젝트: Mayoh/grupo-ha
<?php

require_once '../Connections/ha.php';
// Require the MXI classes
require_once '../includes/mxi/MXI.php';
// Load the tNG classes
require_once '../includes/tng/tNG.inc.php';
// Make unified connection variable
$conn_ha = new KT_connection($ha, $database_ha);
//Start Restrict Access To Page
$restrict = new tNG_RestrictAccess($conn_ha, "../");
//Grand Levels: Any
$restrict->Execute();
//End Restrict Access To Page
// Include Multiple Static Pages
$mxiObj = new MXI_Includes("mod");
$mxiObj->IncludeStatic("usuarios", "usuarios.php", "", "", "");
$mxiObj->IncludeStatic("usuarios_detalle", "usuarios_detalle.php", "", "", "");
$mxiObj->IncludeStatic("banners", "banners.php", "", "", "");
$mxiObj->IncludeStatic("banners_detalle", "banners_detalle.php", "", "", "");
$mxiObj->IncludeStatic("categorias", "categorias.php", "", "", "");
$mxiObj->IncludeStatic("categorias_detalle", "categorias_detalle.php", "", "", "");
$mxiObj->IncludeStatic("subcategorias", "subcategorias.php", "", "", "");
$mxiObj->IncludeStatic("subcategorias_detalle", "subcategorias_detalle.php", "", "", "");
$mxiObj->IncludeStatic("servicios", "servicios.php", "", "", "");
$mxiObj->IncludeStatic("servicios_detalle", "servicios_detalle.php", "", "", "");
$mxiObj->IncludeStatic("paginas", "paginas.php", "", "", "");
$mxiObj->IncludeStatic("paginas_detalle", "paginas_detalle.php", "", "", "");
// End Include Multiple Static Pages
?>
<!DOCTYPE HTML>
예제 #2
0
파일: index.php 프로젝트: Mayoh/grupo-ha
                break;
            case "double":
                $theValue = $theValue != "" ? doubleval($theValue) : "NULL";
                break;
            case "date":
                $theValue = $theValue != "" ? "'" . $theValue . "'" : "NULL";
                break;
            case "defined":
                $theValue = $theValue != "" ? $theDefinedValue : $theNotDefinedValue;
                break;
        }
        return $theValue;
    }
}
// Include Multiple Dynamic Pages
$mxiObj = new MXI_Includes("mod");
$mxiObj->IncludeDynamic($conn_ha, "paginas", "pag", "base", "", "", "");
mysql_select_db($database_ha, $ha);
$query_menu = "SELECT * FROM categorias";
$menu = mysql_query($query_menu, $ha) or die(mysql_error());
$row_menu = mysql_fetch_assoc($menu);
$totalRows_menu = mysql_num_rows($menu);
?>
<!doctype html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?php 
if ($_GET[mod] == '') {