wefra-odoo11/models/home.php

26 lines
966 B
PHP
Raw Permalink Normal View History

2019-10-02 21:28:58 +00:00
<?php
$oConf = new ClassConfig();
$oTrans = new ClassTranslation();
$lang_code = (isset($_SESSION['user']['lang_code']))?$_SESSION['user']['lang_code']:$_SESSION['config']['default_lang_code'];
2019-10-02 21:28:58 +00:00
//if(isset($_SESSION['user'])){
// $url = $_SESSION['erp']['url'];
// $db = $_SESSION['erp']['db'];
// $username = $_SESSION['user']['email'];
// $password = $_SESSION['user']['password'];
// //require_once('./custom/modules/ripcord.php');
//
// $xmlrpc = new ClassXMLRPC($url, $db, $username, $password);
// //$xmlrpc = new ClassXMLRPC($url, $db, $username, $password);
//
// $url = $_SESSION['erp']['url'];
// $db = $_SESSION['erp']['db'];
// $username = "admin";
// $password = $_SESSION['erp']['admin_password'];
// require_once('./custom/modules/ripcord.php');
//
// $common = ripcord::client("$url/xmlrpc/2/common");
// $uid = $common->authenticate($db, $username, $password, array());
// $models = ripcord::client("$url/xmlrpc/2/object");
//}