Project

General

Profile

« Previous | Next » 

Revision 1703

Added by Dietmar about 12 years ago

! update headerinfo
! change multi-dimensional arrays (variables) to similar arrays

View differences:

save.php
3 3
 *
4 4
 * @category        admin
5 5
 * @package         pages
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
6
 * @author          Ryan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
11 10
 * @platform        WebsiteBaker 2.8.x
......
67 66
$sql .= 'WHERE `page_id` = '.$page_id;
68 67
$results = $database->query($sql);
69 68
$results_array = $results->fetchRow();
70
if(!$admin->ami_group_member($results_array['admin_users']) && 
69
if(!$admin->ami_group_member($results_array['admin_users']) &&
71 70
   !$admin->is_group_match($admin->get_groups_id(), $results_array['admin_groups']))
72 71
{
73
	$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']);
72
	$admin->print_error($MESSAGE['PAGES_INSUFFICIENT_PERMISSIONS']);
74 73
}
75 74
// Get page module
76 75
$sql  = 'SELECT `module` FROM `'.TABLE_PREFIX.'sections` ';
77 76
$sql .= 'WHERE `page_id`='.$page_id.' AND `section_id`='.$section_id;
78 77
$module = $database->get_one($sql);
79 78
if(!$module) {
80
	$admin->print_error( $database->is_error() ? $database->get_error() : $MESSAGE['PAGES']['NOT_FOUND']);
79
	$admin->print_error( $database->is_error() ? $database->get_error() : $MESSAGE['PAGES_NOT_FOUND']);
81 80
}
82 81
// Update the pages table
83 82
$now = time();
......
96 95
{
97 96
	$admin->print_error($database->get_error(), ADMIN_URL.'/pages/modify.php?page_id='.$page_id );
98 97
} else {
99
	$admin->print_success($MESSAGE['PAGES']['SAVED'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id );
98
	$admin->print_success($MESSAGE['PAGES_SAVED'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id );
100 99
}
101 100

  
102 101
// Print admin footer
103 102
$admin->print_footer();
104

  
105
?>

Also available in: Unified diff