Skip to content

Instantly share code, notes, and snippets.

@osin
osin / index.php
Created May 16, 2012 14:33 — forked from ashfame/index.php
SugarCRM REST API call examples
<?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">
@osin
osin / main.php
Created May 26, 2011 12:12
function to Include *inc *css *js
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>');