Example #1
0
<?php

ini_set('display_errors', 1);
error_reporting(E_ALL);
// default variables
if (!isset($appCrmListControllers)) {
    $appCrmListControllers = array();
}
/*//--
include_once( dirname( __FILE__ ) . '/../../config/init.php' );

if ( !\user\User::getInstance()->getId() ){
    exit();
}*/
include_once 'crm.php';
$crm = new crm($parameters);
$crm->loadUser();
$jscript_end = "";
$headerinclude = "<!DOCTYPE html>\n<html>\n<head>\n  <meta charset='utf-8'>\n  <meta http-equiv='Content-type' content='text/html; charset=UTF-8'>\n  <meta http-equiv='X-UA-Compatible' content='IE=edge'>\n  <title>Axess CRM | " . $pagetitle . "></title>\n  <!-- Tell the browser to be responsive to screen width -->\n  <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>\n  <!-- Bootstrap 3.3.5 -->\n  <link rel='stylesheet' href='bootstrap/css/bootstrap.min.css'>\n  <!-- Font Awesome -->\n  <link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css'>\n  <!-- Ionicons -->\n  <link rel='stylesheet' href='https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css'>\n  <!-- Theme style -->\n  <link rel='stylesheet' href='dist/css/AdminLTE.min.css'>\n  <!-- AdminLTE Skins. Choose a skin from the css/skins\n       folder instead of downloading all of them to reduce the load. -->\n  <link rel='stylesheet' href='dist/css/skins/_all-skins.min.css'>\n  <!-- iCheck -->\n  <link rel='stylesheet' href='plugins/iCheck/flat/blue.css'>\n  <!-- Morris chart -->\n  <link rel='stylesheet' href='plugins/morris/morris.css'>\n  <!-- jvectormap -->\n  <link rel='stylesheet' href='plugins/jvectormap/jquery-jvectormap-1.2.2.css'>\n  <!-- Date Picker -->\n  <link rel='stylesheet' href='plugins/datepicker/datepicker3.css'>\n  <!-- Daterange picker -->\n  <link rel='stylesheet' href='plugins/daterangepicker/daterangepicker-bs3.css'>\n  <!-- bootstrap wysihtml5 - text editor -->\n  <link rel='stylesheet' href='plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css'>\n";
$headerinclude .= "<link rel='stylesheet' href='libs/css/crmback.css'>";
if (isset($headerinclude_add)) {
    $headerinclude .= $headerinclude_add;
}
$headerinclude .= "\n  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->\n  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\n  <!--[if lt IE 9]>\n  <script src='https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js'></script>\n  <script src='https://oss.maxcdn.com/respond/1.4.2/respond.min.js'></script>\n  <![endif]-->\n</head>";
$headerinclude .= "<body class='hold-transition skin-blue sidebar-mini'>\n<div class='wrapper'>";
echo $headerinclude;
Example #2
0
}
$global_error = array();
$global_messages = array();
$global_avoid_block = 1;
$main_error_jump = "";
$main_error_jump_when = "";
$main_noerror_jump = "";
$main_noerror_jump_when = "";
if (!@(include $path . "config.inc")) {
    exit("No existe la aplicacion " . $app . " en ese directorio en inetpub/wwwroot");
}
$config_dbname = $bd;
$config_appname = "Scan pchost";
include $path . "objects.inc";
include $path . "crm.inc";
$crm = new crm();
$conex = $crm->db_connect();
$recordset = new recordset();
if (!$conex) {
    exit("Error en el acceso a la bd " . $bd);
}
//Tipos de campos en la importacion
$sourcetype_array = array("0" => array("desc" => "no_imported", "rep" => "NI"), "1" => array("desc" => "bd_field", "rep" => "BD"), "2" => array("desc" => "field_copy", "rep" => "CO"), "3" => array("desc" => @constant("constant"), "rep" => "CT"), "4" => array("desc" => "picklist_table", "rep" => "PL"), "5" => array("desc" => "special_fields", "rep" => "SP"));
ini_set("max_execution_time", 500);
ob_start();
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
session_start();
?>