Esempio n. 1
0
 /** constructor function for the main user class
             instantiates the Logger class and PearDatabase Class	
   	  *
  	*/
 function Users()
 {
     $this->log = LoggerManager::getLogger('user');
     $this->log->debug("Entering Users() method ...");
     $this->db =& getSingleDBInstance();
     $this->log->debug("Exiting Users() method ...");
 }
Esempio n. 2
0
 function Relsettings()
 {
     $this->log = LoggerManager::getLogger('relsettings');
     $this->log->debug("Entering Relsettings() method ...");
     $this->db =& getSingleDBInstance();
     $this->column_fields = getColumnFields('Relsettings');
     $this->log->debug("Exiting Relsettings method ...");
 }
Esempio n. 3
0
 function Maillists()
 {
     $this->log = LoggerManager::getLogger('maillists');
     $this->log->debug("Entering Maillists() method ...");
     $this->db =& getSingleDBInstance();
     $this->column_fields = getColumnFields('Maillists');
     $this->log->debug("Exiting Maillists method ...");
 }
Esempio n. 4
0
 function Qunfatmps()
 {
     $this->log = LoggerManager::getLogger('qunfatmps');
     $this->log->debug("Entering Qunfatmps() method ...");
     $this->db =& getSingleDBInstance();
     $this->column_fields = getColumnFields('Qunfatmps');
     $this->log->debug("Exiting Qunfatmps method ...");
 }
Esempio n. 5
0
 /**	Constructor which will set the column_fields in this object
  */
 function Products()
 {
     $this->log = LoggerManager::getLogger('product');
     $this->log->debug("Entering Products() method ...");
     $this->db =& getSingleDBInstance();
     $this->column_fields = getColumnFields('Products');
     $this->log->debug("Exiting Product method ...");
 }
Esempio n. 6
0
 function Notes()
 {
     $this->log = LoggerManager::getLogger('notes');
     $this->log->debug("Entering Notes() method ...");
     $this->db =& getSingleDBInstance();
     $this->column_fields = getColumnFields('Notes');
     $this->log->debug("Exiting Note method ...");
 }
Esempio n. 7
0
 function ClearColumnFields()
 {
     $this->log = LoggerManager::getLogger('import_salesorder');
     $this->db =& getSingleDBInstance();
     $colf = getColumnFields("SalesOrder");
     foreach ($colf as $key => $value) {
         $this->column_fields[$key] = '';
     }
 }
Esempio n. 8
0
 function ClearColumnFields()
 {
     $this->log = LoggerManager::getLogger('import_account');
     $this->db =& getSingleDBInstance();
     $colf = getColumnFields("Accounts");
     foreach ($colf as $key => $value) {
         //$this->importable_fields[$key]=1;
         $this->column_fields[$key] = '';
     }
 }
Esempio n. 9
0
 /** Constructor which will set the importable_fields as $this->importable_fields[$key]=1 in this object where key is the fieldname in the field table
  */
 function ImportLead()
 {
     $this->log = LoggerManager::getLogger('import_lead');
     $this->db =& getSingleDBInstance();
     $this->db->println("IMP ImportLead");
     $colf = getColumnFields("Leads");
     foreach ($colf as $key => $value) {
         $this->importable_fields[$key] = 1;
     }
     $this->db->println($this->importable_fields);
 }
Esempio n. 10
0
 function DeleteMemdays()
 {
     $this->log = LoggerManager::getLogger('DeleteMemdays');
     $this->db =& getSingleDBInstance();
 }
Esempio n. 11
0
 function QunfatmpsDataPopulator()
 {
     $this->log = LoggerManager::getLogger('QunfatmpsDataPopulator');
     $this->db =& getSingleDBInstance();
 }
Esempio n. 12
0
 /** Constructor which will set the importable_fields as $this->importable_fields[$key]=1 in this object where key is the fieldname in the field table
  */
 function ImportNote()
 {
     $this->log = LoggerManager::getLogger('import_notes');
     $this->db =& getSingleDBInstance();
     $colf = getColumnFields("Notes");
     foreach ($colf as $key => $value) {
         $this->importable_fields[$key] = 1;
     }
 }
Esempio n. 13
0
        $_POST = stripslashes_deep($_POST);
    }
    $_COOKIE = stripslashes_deep($_COOKIE);
    $_REQUEST = stripslashes_deep($_REQUEST);
}
header('Content-Type: text/html; charset=UTF-8');
global $entityDel;
global $display;
global $category;
global $currentModule;
require_once $root_directory . 'include/utils/utils.php';
require_once $root_directory . 'include/database/PearDatabase.php';
require_once $root_directory . 'include/logging.php';
require_once $root_directory . 'modules/Users/Users.php';
$log =& LoggerManager::getLogger('index');
$adb =& getSingleDBInstance();
$skipActions = array("Save", "Delete", "Popup", "Ajax", "ChangePassword", "CreatePDF");
$theme = "softed";
$current_language = "zh_cn";
if (isset($_REQUEST['PHPSESSID'])) {
    session_id($_REQUEST['PHPSESSID']);
    //Setting the same session id to Forums as in CRM
    $sid = $_REQUEST['PHPSESSID'];
}
// Create or reestablish the current session
session_start();
/**
 * 递归方式的对变量中的特殊字符去除转义
 *
 * @access  public
 * @param   mix     $value
 function OnlineAccsalesreportsDataPopulator()
 {
     $this->log = LoggerManager::getLogger('OnlineAccsalesreportsDataPopulator');
     $this->db =& getSingleDBInstance();
 }
 function AddressreportsDataPopulator()
 {
     $this->log = LoggerManager::getLogger('AddressreportsDataPopulator');
     $this->db =& getSingleDBInstance();
 }
Esempio n. 16
0
 function Accounts()
 {
     $this->log = LoggerManager::getLogger('account');
     $this->db =& getSingleDBInstance();
     $this->column_fields = getColumnFields('Accounts');
 }
Esempio n. 17
0
 function LoginHistory()
 {
     $this->log = LoggerManager::getLogger('loginhistory');
     $this->db =& getSingleDBInstance();
 }
 function NewmemberreportsDataPopulator()
 {
     $this->log = LoggerManager::getLogger('NewmemberreportsDataPopulator');
     $this->db =& getSingleDBInstance();
 }
 function RelsettingsDataPopulator()
 {
     $this->log = LoggerManager::getLogger('RelsettingsDataPopulator');
     $this->db =& getSingleDBInstance();
 }
Esempio n. 20
0
 function ContactsDataPopulator()
 {
     $this->log = LoggerManager::getLogger('ContactsDataPopulator');
     $this->db =& getSingleDBInstance();
 }
 function OrdernumreportsDataPopulator()
 {
     $this->log = LoggerManager::getLogger('OrdernumreportsDataPopulator');
     $this->db =& getSingleDBInstance();
 }
Esempio n. 22
0
 /**	Constructor
  */
 function UsersLastImport()
 {
     $this->log = LoggerManager::getLogger('UsersLastImport');
     $this->db =& getSingleDBInstance();
 }
Esempio n. 23
0
 /**	Constructor
  */
 function ImportMap()
 {
     $this->log = LoggerManager::getLogger('file');
     $this->db =& getSingleDBInstance();
 }
Esempio n. 24
0
 /** Constructor Function for SalesOrder class
  *  This function creates an instance of LoggerManager class using getLogger method
  *  creates an instance for PearDatabase class and get values for column_fields array of SalesOrder class.
  */
 function SalesOrder()
 {
     $this->log = LoggerManager::getLogger('SalesOrder');
     $this->db =& getSingleDBInstance();
     $this->column_fields = getColumnFields('SalesOrder');
 }