18 require_once SQ_CORE_PACKAGE_PATH.
'/page/page_edit_fns.inc';
41 parent::__construct();
42 $this->static_screens[
'details'][
'lock_type'] =
'redirect';
59 $redirect_asset = $asset->getRedirectAsset();
60 if ($asset->writeAccess(
'links')) {
61 asset_finder($prefix.
'_redirect_assetid', (is_null($redirect_asset) ? 0 : $redirect_asset->id));
63 if (is_null($redirect_asset)) {
64 echo translate(
'cms_redirect_none_set');
66 echo get_asset_tag_line($redirect_asset->id);
86 if (!isset($_POST[$prefix.
'_redirect_assetid'][
'assetid']) || (isset($asset->_tmp[
'reverting_to_system_version']) && $asset->_tmp[
'reverting_to_system_version'])) {
90 $redirect_assetid = $_POST[$prefix.
'_redirect_assetid'][
'assetid'];
92 if ($redirect_assetid) {
93 $redirect_asset = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($redirect_assetid);
95 $redirect_asset = NULL;
98 return $asset->setRedirectAsset($redirect_asset);
115 $wa = $asset->writeAccess(
'attributes');
116 $pmap = $asset->getAttribute(
'session_variables');
117 $current_params = $pmap->_params;
119 $fields = $asset->attr(
'session_vars');
120 if (!empty($fields)) {
121 $vars = explode(
"\n", $fields);
122 foreach ($vars as $value) {
123 $index = str_replace(
' ',
'_', $value);
124 $index = rtrim($index,
"\r");
125 $current_params[
'parameters'][$index] =
'Session Variable: '.$value;
128 $pmap->_params = $current_params;
130 $pmap->paint($prefix);
132 $pmap->paint($prefix, TRUE);
151 $wa = $asset->writeAccess(
'attributes');
152 $pmap = $asset->getAttribute(
'session_variables');
154 $pmap->process($prefix);
155 $asset->setAttrValue(
'session_variables', $pmap->value);
156 $asset->saveAttributes();