This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* SugarCRM RESTS API Call examples | |
* | |
* REST API Wrapper - https://github.com/asakusuma/SugarCRM-REST-API-Wrapper-Class | |
*/ | |
?> | |
<!doctype html> | |
<head> | |
<meta charset="utf-8"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function IncludeHeader($title=SiteName, $includeINC = true, $includeCSS = true, $includeJS = true, $headBegin=true, $headEnd=true) { | |
include_once 'Class/Db.class.inc'; | |
$db = new DB("database", "localhost", "root"); | |
$db->connect(); | |
if ($headBegin) | |
echo('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html><head>'); | |
echo (' | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>' . SiteName." - ".$title . '</title>'); |