Ejemplo n.º 1
0
    require_once $ab_module['class_path'] . 'addressbook.class.inc';
    $ab = new addressbook();
}
$html_mail_head = '<html><head><meta content="HPT-OBM ' . $GO_CONFIG->version . '" name="GENERATOR"></head><body>';
$html_mail_foot = '</body></html>';
$_SESSION['num_attach'] = isset($_SESSION['num_attach']) ? $_SESSION['num_attach'] : 0;
$mail_subject = isset($_REQUEST['mail_subject']) ? smartstrip($_REQUEST['mail_subject']) : '';
$mail_body = isset($_REQUEST['mail_body']) ? smartstrip($_REQUEST['mail_body']) : '';
$mail_from = isset($_REQUEST['mail_from']) ? $_REQUEST['mail_from'] : 0;
$mail_to = isset($_REQUEST['mail_to']) ? $_REQUEST['mail_to'] : '';
$mail_cc = isset($_REQUEST['mail_cc']) ? $_REQUEST['mail_cc'] : '';
$mail_bcc = isset($_REQUEST['mail_bcc']) ? $_REQUEST['mail_bcc'] : '';
$uid = isset($_REQUEST['uid']) ? $_REQUEST['uid'] : 0;
$add_recievers = isset($_POST['add_recievers']) ? $_POST['add_recievers'] : '';
$mailing_group_id = isset($_REQUEST['mailing_group_id']) ? $_REQUEST['mailing_group_id'] : 0;
$htmlarea = new htmlarea();
if ($htmlarea->browser_is_supported()) {
    $wysiwyg = true;
    $em_settings = $email->get_settings($GO_SECURITY->user_id);
    $content_type = isset($_POST['content_type']) ? $_POST['content_type'] : $em_settings['send_format'];
    if ($content_type == 'text/PLAIN') {
        $htmlarea->force_textmode();
    }
} else {
    $content_type = 'text/PLAIN';
    $wysiwyg = false;
}
$page_title = $ml_compose;
$sendaction = isset($_REQUEST['sendaction']) ? $_REQUEST['sendaction'] : '';
$attachments_size = 0;
function add_unknown_reciepent($email, $addressbook)
Ejemplo n.º 2
0
//if $GO_SECURITY->authenticate(true); is used the user needs admin permissons
$GO_SECURITY->authenticate();
//see if the user has access to this module
//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:
Ejemplo n.º 3
0
    $mtime = date($_SESSION['GO_SESSION']['date_format'], get_time());
}
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 . '" />';
Ejemplo n.º 4
0
}
$link_back = 'edit.php?site_id=' . $site_id . '&file_id=' . $file_id . '&folder_id=' . $folder_id;
//set the page title for the header file
$page_title = $lang_modules['cms'];
//get the site template
if ($site = $cms->get_site($site_id)) {
    $template = $cms->get_template($site['template_id']);
}
$pagestyle = isset($template) ? $template['additional_style'] : '';
$pagestyle = str_replace("\r", '', $pagestyle);
$pagestyle = str_replace("\n", '', $pagestyle);
$pagestyle = str_replace("\t", '', $pagestyle);
$pagestyle = str_replace("'", '"', $pagestyle);
$pagestyle = str_replace(' ', '', $pagestyle);
//create htmlarea
$htmlarea = new htmlarea();
$htmlarea->add_button('insert', $cms_insert_file, $GO_CONFIG->control_url . 'htmlarea/images/go_image.gif', 'false', "function insertObject()\r\n    {\r\n    popup('select.php?site_id=" . $site_id . "', '600', '400');\r\n    }");
$qn_plugin = $GO_MODULES->get_plugin('questionnaires');
if ($qn_plugin) {
    $htmlarea->add_button('insert_qn', 'Vragenlijst invoegen', $GO_CONFIG->control_url . 'htmlarea/images/questionnaire.gif', 'false', "function insertQN()\r\n    {\r\n    popup('questionnaires/select.php?site_id=" . $site_id . "', '300', '400');\r\n    }");
}
$com_plugin = $GO_MODULES->get_plugin('components');
if ($com_plugin) {
    $htmlarea->add_button('insert_reg', 'Insert component', $GO_CONFIG->control_url . 'htmlarea/images/component.gif', 'false', "function insert_component()\r\n    {\r\n    popup('" . $com_plugin['url'] . "select.php?site_id=" . $site_id . "', '300', '400');\r\n    }");
}
$GO_HEADER['head'] = $htmlarea->get_header('content', -70, -125, 25, $pagestyle, "config.baseURL='';", true, $template['restrict_editor']);
$GO_HEADER['body_arguments'] = 'onload="initEditor()"';
//require the header file. This will draw the logo's and the menu
require $GO_THEME->theme_path . "header.inc";
//echo '<table border="0" cellpadding="10" cellspacing="0"><tr><td>';
if (isset($feedback)) {