17 require_once SQ_INCLUDE_PATH.
'/asset_edit/asset_edit_fns.inc';
18 require_once SQ_PACKAGES_PATH.
'/data/data_source_db/data_source_db_edit_fns.inc';
42 $this->static_screens[
'details'][
'force_unlock'] = FALSE;
44 unset($this->static_screens[
'dependants']);
45 unset($this->static_screens[
'metadata']);
46 unset($this->static_screens[
'preview']);
47 unset($this->static_screens[
'tagging']);
68 return $edit_fns->paintDSN($asset, $o, $prefix);
86 return $edit_fns->processDSN($asset, $o, $prefix);
103 $dsn = $asset->attr(
'dsn');
104 $wa = $asset->writeAccess(
'attributes');
105 $user = $asset->attr(
'user');
106 $database = $asset->attr(
'database');
108 text_area(
'dsn[dsn]', empty($database) ? $dsn :
'', 70, 5);
112 $pos = strpos($dsn,
':');
113 $no_database = substr($dsn, $pos + 3, strlen($dsn) - 1);
114 if (($colon_pos = strpos($no_database,
':')) !== FALSE) {
116 $at_pos = strpos($no_database,
'@');
117 $no_password = substr($no_database, 0, $colon_pos).substr($no_database, $at_pos, strlen($no_database) - 1);
118 echo substr($dsn, 0, $pos).
'://'.$no_password;
158 $links = $GLOBALS[
'SQ_SYSTEM']->am->getLinks($asset->id, SQ_LINK_NOTICE,
'', FALSE,
'minor',
'db_connector');
161 echo
'<span class="sq-backend-warning">'.translate(
'connector_not_used').
'</span>';
165 foreach ($links as $one_link) {
166 echo
'<div>'.get_asset_tag_line($one_link[
'majorid']).
'</div>';