Skip to content

Commit

Permalink
Delete, preferences, restored now using new cms/alert box
Browse files Browse the repository at this point in the history
  • Loading branch information
John Luxford committed Jan 12, 2009
1 parent 933fc98 commit f63d85f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
2 changes: 2 additions & 0 deletions inc/app/cms/boxes/delete/index.php
Expand Up @@ -89,6 +89,8 @@
)
);

session_set ('sitellite_alert', intl_get ('The items have been deleted.'));

if (! empty ($parameters['_return']) && $parameters['_return'] != site_prefix () . '/index/' . $parameters['_key'][0] && ! strpos ($parameters['_return'], $parameters['_key'][0])) {
header ('Location: ' . $parameters['_return']);
exit;
Expand Down
2 changes: 2 additions & 0 deletions inc/app/cms/boxes/deleted/restore/index.php
Expand Up @@ -17,6 +17,8 @@
die ($rex->error);
}

session_set ('sitellite_alert', intl_get ('The items have been restored.'));

header ('Location: ' . site_prefix () . '/index/cms-deleted-items-action?collection=' . urlencode ($cgi->collection) . '&_msg=restored');
exit;

Expand Down
2 changes: 2 additions & 0 deletions inc/app/cms/boxes/messages/compose/index.php
Expand Up @@ -63,6 +63,8 @@ function onSubmit ($vals) {
echo '<p>Error: ' . $msg->error . '</p>';
}

session_set ('sitellite_alert', intl_get ('Your message has been sent.'));

header ('Location: ' . site_prefix () . '/index/cms-cpanel-action?_msg=sent');
exit;
}
Expand Down
20 changes: 11 additions & 9 deletions inc/app/cms/boxes/user/preferences/index.php
Expand Up @@ -125,17 +125,19 @@ function onSubmit ($vals) {
}
}

page_title (intl_get ('Preferences Saved'));
echo '<p>' . intl_get ('Your preferences have been saved.') . '</p>';
echo '<p><a href="' . site_prefix () . '/index/cms-app">' . intl_get ('Continue') . '</a></p>';
//page_title (intl_get ('Preferences Saved'));
//echo '<p>' . intl_get ('Your preferences have been saved.') . '</p>';
//echo '<p><a href="' . site_prefix () . '/index/cms-app">' . intl_get ('Continue') . '</a></p>';

//if (session_pref ('start_page') == 'web view') {
//header ('Location: ' . site_prefix () . '/index');
//} else {
//header ('Location: ' . site_prefix () . '/index/cms-cpanel-action?_msg=prefs');
//}
session_set ('sitellite_alert', intl_get ('Your preferences have been saved.'));

//exit;
if (session_pref ('start_page') == 'web view') {
header ('Location: ' . site_prefix () . '/index');
} else {
header ('Location: ' . site_prefix () . '/index/cms-cpanel-action');
}

exit;
}
}

Expand Down

0 comments on commit f63d85f

Please sign in to comment.