<?php /* $Id: edit_nonusers.php,v 1.23.2.6 2008/05/23 14:14:11 umcesrjones Exp $ */ include_once 'includes/init.php'; print_header(array('js/edit_nonuser.php/false'), '', '', true, '', true, false); if (!$is_admin) { echo print_not_auth(3, true) . ' </body> </html>'; exit; } if (!$NONUSER_PREFIX) { echo print_error_header() . translate('NONUSER_PREFIX not set') . '. </body> </html>'; exit; } $add = getValue('add'); $nid = getValue('nid'); // Adding/Editing nonuser calendar. if (($add == '1' || !empty($nid)) && empty($error)) { $userlist = user_get_users(); $button = translate('Add', true); $buttonAction = 'Add'; $nid = clean_html($nid); if (!empty($nid)) { nonuser_load_variables($nid, 'nonusertemp_'); $id_display = $nid . ' <input type="hidden" name="nid" value="' . $nid . '" />'; $button = translate('Save', true); $buttonAction = 'Save';
function print_not_auth($errno = '', $full = false) { global $settings; return ($full ? print_error_header() : '') . '!!!' . translate('You are not authorized.') . (!empty($settings['mode']) && $settings['mode'] == 'dev' ? ' ' . $errno : '') . "\n"; }