18 require_once SQ_CORE_PACKAGE_PATH.
'/system/system_user/system_user.inc';
61 require_once SQ_CORE_PACKAGE_PATH.
'/system/system_asset_fns.inc';
62 if (!system_asset_fns_create_pre_check($this)) {
66 $GLOBALS[
'SQ_SYSTEM']->changeDatabaseConnection(
'db2');
67 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'BEGIN');
69 parent::setAttrValue(
'username',
'root');
70 if ($linkid = parent::create($link)) {
71 if (!system_asset_fns_create_cleanup($this)) {
77 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'COMMIT');
79 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'ROLLBACK');
82 $GLOBALS[
'SQ_SYSTEM']->restoreDatabaseConnection();
100 trigger_localised_error(
'CORE0091', E_USER_WARNING, $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->type(),
'name'));
157 if ($name ==
'username') {
158 trigger_localised_error(
'CORE0113', E_USER_WARNING, $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->type(),
'name'));
162 return parent::setAttrValue($name, $value);