PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Muhammad Mengrani   PHP CouchDB Product CRUD   index.php   Download  
File: index.php
Role: Auxiliary script
Content type: text/plain
Description: Sample output
Class: PHP CouchDB Product CRUD
Manage products stored in a CouchDB database
Author: By
Last change: Update of index.php
Date: 5 months ago
Size: 819 bytes
 

Contents

Class file image Download
<?php
//ini_set("error_reporting","E_ERROR | E_STRICT | E_COMPILE_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING");
session_start();
require
'site/config.php';
?>
<html>
<head>
<title><?php echo $site->site_title;?></title>
<!-- <link rel=\"icon\" href=\"images/favicon.ico\" type=\"image/x-icon\">"
<link rel=\"shortcut icon\" href=\"images/favicon.ico\" type=\"image/x-icon\">" -->
<?php
include $site->site_header;
?>
</head>
<body>
<div class="page" align="center">
<?php
if($_GET['page'] == "index" || $_GET['page'] == ""){
include
$site->site_views['index'];
}
elseif(
$_GET['page'] == "admin"){
    include
$site->site_views['admin'];
}
elseif(
$_GET['page'] == "griddata"){
    include
'site/modal/grid_modal.php';
}
else{
    include
$site->site_404;
}
?>
</div>
<?php include $site->site_footer;?>
</body>
</html>