function account_add($account_id)
 {
     $db_map = new db_mapping();
     $db_map->MAP_account_add($account_id, $this);
     ### todo: add the customers_info record
     ### todo: add the address_book_id record
 }
Example #2
0
 function account_add($account_id)
 {
     $db_map = new db_mapping();
     $db_map->MAP_account_add($account_id);
     ### Sync the groups for this account:
     $this->account_group_sync($account_id);
 }
 function account_add($account_id)
 {
     $db_map = new db_mapping();
     $db_map->MAP_account_add($account_id, $this);
     ### Sync the groups for this account:
     if ($this->map['group_type'] != 'none' && $this->map['group_type'] != 'add_remove') {
         $this->account_group_sync($account_id);
     }
 }
 function account_add($account_id)
 {
     $db_map = new db_mapping();
     $db_map->MAP_account_add($account_id, $this);
     ### Sync the groups for this account:
     if ($this->map['group_type'] != 'none' && $this->map['group_type'] != 'add_remove') {
         $this->account_group_sync($account_id);
     }
     ### Do the custom stuff:
     $custom = new dbmapping_sendstudio_2004();
     $custom->MAP_account_add($account_id, $this);
 }
 function account_add($account_id)
 {
     $db_map = new db_mapping();
     $db_map->MAP_account_add($account_id, $this);
     ### Sync the groups for this account:
     if ($this->map['group_type'] != 'none' && $this->map['group_type'] != 'add_remove') {
         $this->account_group_sync($account_id);
     }
     ## Run any Misc IBF operations
     $db_map_misc = new dbmapping_misc();
     $db_map_misc->MAP_account_add_misc($account_id, $this);
 }
 function account_add($account_id)
 {
     if (MOD_AUTH_MYSQL_PW == 'md5') {
         $db_map = new db_mapping();
         $db_map->MAP_account_add($account_id, $this);
     } elseif (MOD_AUTH_MYSQL_PW == 'plaintext') {
         $db_map_misc = new dbmapping_mod_auth_mysql();
         $db_map_misc->MAP_account_add($account_id, $this);
         ### Sync the groups for this account:
         $remote_account_id = $this->account_group_sync($account_id);
     }
     ### Sync the groups for this account:
     $this->account_group_sync($account_id);
 }
 function account_add($account_id)
 {
     $db_map = new db_mapping();
     $db_map->MAP_account_add($account_id, $this);
     ### Sync the groups for this account:
     if ($this->map['group_type'] != 'none' && $this->map['group_type'] != 'add_remove') {
         $remote_account_id = $this->account_group_sync($account_id);
     }
     ### Update the remote account:
     $dbm = new db_mapping();
     $db2 = $dbm->DB_connect(false, $this->map['map']);
     eval('@$db_prefix = DB2_PREFIX' . strtoupper($this->map['map']) . ';');
     $sql = "INSERT INTO " . $db_prefix . "userfield SET userid =  " . $db2->qstr($remote_account_id);
     $group_result = $db2->Execute($sql);
 }
 function account_add($account_id)
 {
     $db_map = new db_mapping();
     $db_map->MAP_account_add($account_id, $this);
     ### Sync the groups for this account:
     if ($this->map['group_type'] != 'none' && $this->map['group_type'] != 'add_remove') {
         $remote_account_id = $this->account_group_sync($account_id);
     }
     ### Create the alias record:
     $dbm = new db_mapping();
     $db2 = $dbm->DB_connect(false, $this->map['map']);
     eval('@$db_prefix = DB2_PREFIX' . strtoupper($this->map['map']) . ';');
     $sql = "SELECT username FROM " . $db_prefix . "hive_user WHERE\n                    userid =  " . $db2->qstr($remote_account_id);
     $result = $db2->Execute($sql);
     $remote_username = $result->fields['username'];
     $sql = "INSERT INTO " . $db_prefix . "hive_alias SET\n                    userid =  " . $db2->qstr($remote_account_id) . ",\n                    alias =  " . $db2->qstr($remote_username);
     $group_result = $db2->Execute($sql);
 }