//modules user get's access to. $modules_read[] = 'products'; $modules_read[] = 'filesystem'; $modules_write = array(); //user groups the user will be added to. $user_groups = array(); //Start module of the user $start_module = 'products'; //Theme for the user $theme = 'Professional'; //Visible to all users? $visible = false; require "../../../Group-Office.php"; require $GO_LANGUAGE->get_base_language_file('users'); require $GO_LANGUAGE->get_base_language_file('common'); $datepicker = new date_picker(); $GO_HEADER['head'] = $datepicker->get_header(); $page_title = $registration_title; require $GO_THEME->theme_path . "header.inc"; require $GO_CONFIG->class_path . "validate.class.inc"; $val = new validate(); if ($_SERVER['REQUEST_METHOD'] == "POST") { $first_name = smart_addslashes(trim($_POST['first_name'])); $middle_name = smart_addslashes(trim($_POST['middle_name'])); $last_name = smart_addslashes(trim($_POST['last_name'])); $initials = smart_addslashes($_POST["initials"]); $birthday = smart_addslashes($_POST["birthday"]); $email = smart_addslashes($_POST["email"]); $home_phone = smart_addslashes($_POST["home_phone"]); $fax = smart_addslashes($_POST["fax"]); $cellular = smart_addslashes($_POST["cellular"]);
/* Copyright Intermesh 2003 Author: Merijn Schering <*****@*****.**> Version: 1.0 Release date: 08 July 2003 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ require "../../Group-Office.php"; $GO_SECURITY->authenticate(true); require $GO_LANGUAGE->get_base_language_file('users'); require $GO_LANGUAGE->get_base_language_file('common'); $datepicker = new date_picker(); $GO_HEADER['head'] = $datepicker->get_header(); $page_title = $registration_title; require $GO_THEME->theme_path . "header.inc"; require $GO_CONFIG->class_path . "/validate.class.inc"; $val = new validate(); $module_acl = isset($_POST['module_acl']) ? $_POST['module_acl'] : array(); if ($_SERVER['REQUEST_METHOD'] == "POST") { $first_name = smart_addslashes(trim($_POST['first_name'])); $middle_name = smart_addslashes(trim($_POST['middle_name'])); $last_name = smart_addslashes(trim($_POST['last_name'])); $initials = smart_addslashes($_POST["initials"]); $title = smart_addslashes($_POST["title"]); $birthday = smart_addslashes($_POST["birthday"]); $email = smart_addslashes($_POST["email"]); $work_phone = smart_addslashes($_POST["work_phone"]);
$cal_start_hour = $calendar['start_hour']; $cal_end_hour = $calendar['end_hour']; } } } if ($calendar_id > 0) { $cal->set_default_view($GO_SECURITY->user_id, $calendar_id, 0); $calendar_view_id = 'calendar:' . $calendar_id; } else { $cal->set_default_view($GO_SECURITY->user_id, 0, $view_id); $calendar_view_id = 'view:' . $view_id; } $overlib = new overlib(); $GO_HEADER['head'] = $overlib->get_header(); if (!$print) { $datepicker = new date_picker(); $GO_HEADER['head'] .= $datepicker->get_header(); $GO_HEADER['auto_refresh']['interval'] = '300'; $GO_HEADER['auto_refresh']['url'] = $GO_MODULES->full_url; require $GO_THEME->theme_path . "header.inc"; ?> <script type="text/javascript"> function date_picker(calendar) { // Beware that this function is called even if the end-user only // changed the month/year. In order to determine if a date was // clicked you can use the dateClicked property of the calendar: if (calendar.dateClicked) { // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php var y = calendar.date.getFullYear(); var m = calendar.date.getMonth()+1; // integer, 0..11 var d = calendar.date.getDate(); // integer, 1..31
$todo['due_hour'] = isset($_POST['due_hour']) ? $_POST['due_hour'] : $tmp; $todo['due_min'] = isset($_POST['due_min']) ? $_POST['due_min'] : '00'; $todo['completed'] = isset($_POST['completed']) ? true : false; $todo['completion_date'] = isset($_POST['completion_date']) ? $_POST['completion_date'] : $date; $todo['completion_hour'] = date('G', $local_time); $todo['completion_min'] = date('i', $local_time); $todo['reminder'] = isset($_POST['reminder']) ? true : false; $todo['remind_interval'] = isset($_POST['remind_interval']) ? $_POST['remind_interval'] : '300'; $todo['remind_style'] = isset($_POST['remind_style']) ? $_POST['remind_style'] : REMIND_BEFORE_STARTTIME; $todo['background'] = isset($_POST['background']) ? $_POST['background'] : 'FFFFCC'; $todo['location'] = isset($_POST['location']) ? smartstrip($_POST['location']) : ''; $todo['priority'] = isset($_POST['priority']) ? smartstrip($_POST['priority']) : '1'; $todo['status'] = isset($_POST['status']) ? smartstrip($_POST['status']) : '1'; $todo['res_user_id'] = isset($_POST['res_user_id']) ? smartstrip($_POST['res_user_id']) : $GO_SECURITY->user_id; } $datepicker = new date_picker(); $GO_HEADER['head'] = $datepicker->get_header(); require $GO_THEME->theme_path . 'header.inc'; echo '<form name="todo_form" method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="todo_id" value="' . $todo_id . '" />'; echo '<input type="hidden" name="task" value="" />'; echo '<input type="hidden" name="close" value="false" />'; echo '<input type="hidden" name="return_to" value="' . $return_to . '" />'; //address_string used by the addressbok selector echo '<input type="hidden" name="address_string" value="" />'; $tabtable = new tabtable('todo_table', $title, '600', '400', '120', '', true); $tabtable->print_head(); echo '<br />'; echo '<table border="0" cellpadding="2" cellspacing="0">'; if (isset($feedback)) { echo '<tr><td colspan="2" class="Error">' . $feedback . '</td></tr>';
if ($note) { $write_permissions = $GO_SECURITY->has_permission($GO_SECURITY->user_id, $note['acl_write']); $read_permissions = $GO_SECURITY->has_permission($GO_SECURITY->user_id, $note['acl_read']); } else { $write_permissions = true; $read_permissions = true; } if (!$write_permissions && !$read_permissions) { header('Location: ' . $GO_CONFIG->host . 'error_docs/403.php'); exit; } //create htmlarea if ($tabtable->get_active_tab_id() != 'read_permissions' && $tabtable->get_active_tab_id() != 'write_permissions') { $htmlarea = new htmlarea(); $GO_HEADER['head'] = $htmlarea->get_header('content', -70, -240, 25); $datepicker = new date_picker(); $GO_HEADER['head'] .= $datepicker->get_header(); $GO_HEADER['body_arguments'] = 'onload="initEditor()"'; } $page_title = $lang_modules['notes']; require $GO_THEME->theme_path . "header.inc"; echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '" name="notes_form">'; echo '<input type="hidden" name="close" value="false" />'; echo '<input type="hidden" name="note_id" value="' . $note_id . '" />'; echo '<input type="hidden" name="task" value="" />'; echo '<input type="hidden" name="return_to" value="' . $return_to . '" />'; echo '<input type="hidden" name="link_back" value="' . $link_back . '" />'; echo '<input type="hidden" name="contact_id" value="' . $contact_id . '" />'; echo '<input type="hidden" name="user_id" value="' . $user_id . '" />'; echo '<input type="hidden" name="project_id" value="' . $project_id . '" />'; echo '<input type="hidden" name="file_path" value="' . stripslashes($file_path) . '" />';
$event['repeat_forever'] = isset($_POST['repeat_forever']) ? $_POST['repeat_forever'] : '0'; $event['repeat_every'] = isset($_POST['repeat_every']) ? $_POST['repeat_every'] : '0'; $event['month_time'] = isset($_POST['month_time']) ? $_POST['month_time'] : '0'; $event['sun'] = isset($_POST['repeat_days_0']) ? true : false; $event['mon'] = isset($_POST['repeat_days_1']) ? true : false; $event['tue'] = isset($_POST['repeat_days_2']) ? true : false; $event['wed'] = isset($_POST['repeat_days_3']) ? true : false; $event['thu'] = isset($_POST['repeat_days_4']) ? true : false; $event['fri'] = isset($_POST['repeat_days_5']) ? true : false; $event['sat'] = isset($_POST['repeat_days_6']) ? true : false; $event['reminder'] = isset($_POST['reminder']) ? $_POST['reminder'] : '0'; $event['background'] = isset($_POST['background']) ? $_POST['background'] : 'FFFFCC'; $event['location'] = isset($_POST['location']) ? smartstrip($_POST['location']) : ''; $event['permissions'] = isset($_POST['permissions']) ? $_POST['permissions'] : 'everybody_read'; } $datepicker = new date_picker(); $GO_HEADER['head'] = $datepicker->get_header(); require $GO_THEME->theme_path . 'header.inc'; if ($ab_module) { $ab->enable_contact_selector(); } echo '<form name="event_form" method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="calendar_id" value="' . $calendar_id . '" />'; echo '<input type="hidden" name="event_id" value="' . $event_id . '" />'; echo '<input type="hidden" name="task" value="" />'; echo '<input type="hidden" name="close" value="false" />'; echo '<input type="hidden" name="emptyform" value="false" />'; echo '<input type="hidden" name="return_to" value="' . $return_to . '" />'; echo '<input type="hidden" name="link_back" value="' . $link_back . '" />'; //address_string used by the addressbok selector echo '<input type="hidden" name="address_string" value="" />';
//if so, the auto mail checker must now too. $unseen_state_changed = true; $mail->set_message_flag($mailbox, $_POST['messages'], "\\Seen", "reset"); break; case 'flag': $mail->set_message_flag($mailbox, $_POST['messages'], "\\Flagged"); break; case 'clear_flag': $mail->set_message_flag($mailbox, $_POST['messages'], "\\Flagged", "reset"); break; } break; } } $GO_HEADER['head'] = '<script type="text/javascript" src="' . $GO_MODULES->url . 'email.js"></script>'; $date_picker = new date_picker(); $GO_HEADER['head'] .= $date_picker->get_header(); require $GO_THEME->theme_path . "header.inc"; echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '" name="email_client">'; echo '<input type="hidden" name="empty_mailbox" />'; echo '<input type="hidden" name="link_back" value="' . $link_back . '" />'; echo '<input type="hidden" name="return_to" value="' . $return_to . '" />'; echo '<input type="hidden" name="account_id" value="' . $account['id'] . '" />'; echo '<input type="hidden" name="task" value="search" />'; echo '<input type="hidden" name="first_row" value="' . $first_row . '" />'; echo '<input type="hidden" name="max_rows" value="' . $max_rows . '" />'; echo '<input type="hidden" name="form_action" value="" />'; echo '<input type="hidden" name="new_sort_field" value="' . $em_settings['sort_field'] . '" />'; echo '<input type="hidden" name="new_sort_order" value="' . $em_settings['sort_order'] . '" />'; echo '<table border="0"><tr>'; echo '<td class="ModuleIcons">';
//for this to work there must be a module named 'example' $GO_MODULES->authenticate('example'); //If you want to know if the user is allowed to manage this module //check write permissions if ($GO_MODULES->write_permissions) { //This user is allowed to manage the example module } //require the header file. This should file should always be included before output //to the client starts. //some of the controls require some code in the <head></head> part of the HTML page. //You can use $GO_HEADER['head'] for this. //The HTMLArea control requires a header: $htmlarea = new htmlarea(); $GO_HEADER['head'] = $htmlarea->get_header('content', -70, -240, 25); //The JSCalendar control requires a header too: $datepicker = new date_picker(); $GO_HEADER['head'] .= $datepicker->get_header(); //several control classes are available from classes/base/controls/ //First we create a tabbed window. (From classes/base/controls/tabtable.class.inc) //We only create the object here but we actually print it later after the header.inc //file is included $tabtable = new tabtable('example_tabtable', 'Example tab window title', '100%', '400'); $tabtable->add_tab('welcome', 'Welcome'); $tabtable->add_tab('controls', 'Some controls'); $tabtable->add_tab('acl_demo', 'ACL'); $tabtable->add_tab('htmlarea', 'HTMLArea'); $tabtable->add_tab('jscalendar', 'JSCalendar'); //You can set <body> arguments too. This is required for HTMLArea: //but only if the htmlarea is in this page so we have to check if //we are in the htmlarea tab if ($tabtable->get_active_tab_id() == 'htmlarea') {
$tabtable->set_active_tab($active_tab); } } else { $name = isset($_GET['name']) ? smartstrip($_GET['name']) : ''; $contact_id = isset($_GET['contact_id']) ? $_GET['contact_id'] : '0'; $comments = isset($_GET['comments']) ? smartstrip($_GET['comments']) : ''; $start_date = isset($_GET['start_date']) ? $_GET['start_date'] : date($_SESSION['GO_SESSION']['date_format'], get_time()); $end_date = isset($_GET['end_date']) ? $_GET['end_date'] : date($_SESSION['GO_SESSION']['date_format'], get_time()); $status = isset($_GET['status']) ? $_GET['status'] : '-3'; $responsible_user_id = isset($_GET['responsible_user_id']) ? $_GET['responsible_user_id'] : $GO_SECURITY->user_id; $fee_id = isset($_GET['fee_id']) ? $_GET['fee_id'] : 0; $probability = isset($_GET['probability']) ? $_GET['probability'] : 0; $budget = isset($_GET['budget']) ? $_GET['budget'] : 0; $description = isset($_GET['description']) ? smartstrip($_GET['description']) : ''; } $datepicker = new date_picker(); $GO_HEADER['head'] = $datepicker->get_header(); $page_title = $lang_modules['projects']; require $GO_THEME->theme_path . "header.inc"; echo '<form method="get" action="' . $_SERVER['PHP_SELF'] . '" name="projects_form">'; echo '<input type="hidden" name="close" value="false" />'; echo '<input type="hidden" name="project_id" value="' . $project_id . '" />'; echo '<input type="hidden" name="task" value="" />'; echo '<input type="hidden" name="return_to" value="' . $return_to . '" />'; $tabtable->print_head(); switch ($tabtable->get_active_tab_id()) { case 'read_permissions': print_acl($project['acl_read'] . '&project_acl=1'); echo '<br />'; echo '<br /> '; $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
/************************************************************************/ /* TTS: Ticket tracking system */ /* ============================================ */ /* */ /* Copyright (c) 2002 by Meir Michanie */ /* http://www.riunx.com */ /* */ /* This program is free software. You can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ /************************************************************************/ require "../../Group-Office.php"; //authenticate the user //if $GO_SECURITY->authenticate(true); is used the user needs admin permissons $datepicker = new date_picker(); $GO_HEADER['head'] = $datepicker->get_header(); $hours = array("00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"); $mins = array("00", "05", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55"); $javascript = <<<EOF <script type="text/javascript" language="javascript"> \t\tfunction update_end_hour(start_hour) \t\t{ \t\t if (start_hour == 24) \t\t { \t\t document.new_ticket.end_date_h.value='01'; \t\t }else \t\t { \t\t start_hour = parseInt(start_hour)+1 \t\t if (start_hour < 10)
} else { if ($GO_SECURITY->group_in_acl($GO_CONFIG->group_everyone, $profile['acl_id'])) { $GO_SECURITY->delete_group_from_acl($GO_CONFIG->group_everyone, $profile['acl_id']); } } if (!$GO_USERS->update_profile($_REQUEST['id'], $first_name, $middle_name, $last_name, $initials, $title, $_POST["sex"], $birthday, $email, $work_phone, $home_phone, $fax, $cellular, $country, $state, $city, $zip, $address, $company, $work_country, $work_state, $work_city, $work_zip, $work_address, $work_fax, $homepage, $department, $function)) { $feedback = "<p class=\"Error\">" . $strSaveError . "</p>"; } elseif ($_POST['close'] == 'true' && !isset($feedback)) { header('Location: ' . $return_to); exit; } } else { $feedback = "<p class='Error'>" . $errors_in_form . "</p>"; } } $datepicker = new date_picker(); $GO_HEADER['head'] = $datepicker->get_header(); $page_title = $menu_users; require $GO_THEME->theme_path . "header.inc"; $profile = $GO_USERS->get_user($_REQUEST['id']); if (!$profile) { $feedback = '<p class="Error">' . $strDataError . '</p>'; } ?> <form method="post" name="user" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <input type="hidden" name="id" value="<?php echo $_REQUEST['id']; ?>