Example #1
0
 case 'accept':
     if (isset($_REQUEST['requested_user_id']) && isset($_REQUEST['authcode'])) {
         if ($user = $GO_USERS->get_user($_REQUEST['requesting_user_id'])) {
             $middle_name = $user['middle_name'] == '' ? '' : $user['middle_name'] . ' ';
             $user_name = $middle_name . $user['last_name'];
             if ($GO_USERS->authorize($_REQUEST['requesting_user_id'], $_REQUEST['authcode'], $GO_SECURITY->user_id)) {
                 $feedback = $ac_auth_success . '<br /><br />';
                 $mail_body = $ac_salutation . " " . $sir_madam[$user['sex']] . " " . $user_name . ",\r\n\r\n";
                 $mail_body .= $_SESSION['GO_SESSION']['name'] . " " . $ac_auth_accept_mail_body;
                 sendmail($user['email'], $GO_CONFIG->webmaster_email, $GO_CONFIG->title, $ac_auth_accept_mail_title, $mail_body, '3 (Normal)', 'text/plain');
             }
         } else {
             $feedback = '<p class="Error">' . $ac_auth_error . '</p>';
         }
         $task = 'privacy';
         $tabtable->set_active_tab('privacy.inc');
     }
     break;
 case 'decline':
     if (isset($_REQUEST['requested_user_id']) && isset($_REQUEST['authcode'])) {
         if ($user = $GO_USERS->get_user($_REQUEST['requesting_user_id'])) {
             $middle_name = $user['middle_name'] == '' ? '' : $user['middle_name'] . ' ';
             $user_name = $middle_name . $user['last_name'];
             $feedback = $ac_auth_decline . '<br /><br />';
             $mail_body = $ac_salutation . " " . $sir_madam[$user['sex']] . " " . $user_name . ",\r\n\r\n";
             $mail_body .= $_SESSION['GO_SESSION']['name'] . " " . $ac_auth_decline_mail_body;
             sendmail($user['email'], $GO_CONFIG->webmaster_email, $GO_CONFIG->title, $ac_auth_decline_mail_title, $mail_body, '3 (Normal)', 'text/plain');
         } else {
             $feedback = '<p class="Error">' . $ac_auth_error . '</p>';
         }
         $task = 'privacy';
Example #2
0
 case 'accept':
     if (isset($_REQUEST['requested_user_id']) && isset($_REQUEST['authcode'])) {
         if ($user = $GO_USERS->get_user($_REQUEST['requesting_user_id'])) {
             $middle_name = $user['middle_name'] == '' ? '' : $user['middle_name'] . ' ';
             $user_name = $middle_name . $user['last_name'];
             if ($GO_USERS->authorize($_REQUEST['requesting_user_id'], $_REQUEST['authcode'], $GO_SECURITY->user_id)) {
                 $feedback = $ac_auth_success . '<br /><br />';
                 $mail_body = $ac_salutation . " " . $sir_madam[$user['sex']] . " " . $user_name . ",\r\n\r\n";
                 $mail_body .= $_SESSION['GO_SESSION']['name'] . " " . $ac_auth_accept_mail_body;
                 sendmail($user['email'], $GO_CONFIG->webmaster_email, $GO_CONFIG->title, $ac_auth_accept_mail_title, $mail_body, '3 (Normal)', 'text/plain');
             }
         } else {
             $feedback = '<p class="Error">' . $ac_auth_error . '</p>';
         }
         $task = 'privacy';
         $tabtable->set_active_tab(2);
     }
     break;
 case 'decline':
     if (isset($_REQUEST['requested_user_id']) && isset($_REQUEST['authcode'])) {
         if ($user = $GO_USERS->get_user($_REQUEST['requesting_user_id'])) {
             $middle_name = $user['middle_name'] == '' ? '' : $user['middle_name'] . ' ';
             $user_name = $middle_name . $user['last_name'];
             $feedback = $ac_auth_decline . '<br /><br />';
             $mail_body = $ac_salutation . " " . $sir_madam[$user['sex']] . " " . $user_name . ",\r\n\r\n";
             $mail_body .= $_SESSION['GO_SESSION']['name'] . " " . $ac_auth_decline_mail_body;
             sendmail($user['email'], $GO_CONFIG->webmaster_email, $GO_CONFIG->title, $ac_auth_decline_mail_title, $mail_body, '3 (Normal)', 'text/plain');
         } else {
             $feedback = '<p class="Error">' . $ac_auth_error . '</p>';
         }
         $task = 'privacy';
Example #3
0
    if (!$GO_SECURITY->has_permission($GO_SECURITY->user_id, $site['acl_write'])) {
        header('Location: ' . $GO_CONFIG->host . 'error_docs/403.php');
        exit;
    }
    $tabtable = new tabtable('sites', htmlspecialchars($site['name'] . ' (' . $site['domain'] . ')'), '600', '400', '100', '', true);
    $tabtable->add_tab('properties', $strProperties);
    $tabtable->add_tab('search_words', $cms_search_words);
    if ($root_publish_path != '') {
        $tabtable->add_tab('publish', $cms_publish);
    }
    $tabtable->add_tab('write_permissions', $strWriteRights);
    if ($site['acl_read'] > 0) {
        $tabtable->add_tab('read_permissions', $strReadRights);
    }
    if ($task == 'edit_search_words') {
        $tabtable->set_active_tab('search_words');
    }
} else {
    $tabtable = new tabtable('properties', $cms_new_site, '600', '400');
}
switch ($task) {
    case 'save_search_word':
        if ($_POST['close'] == 'false') {
            $task = 'add_search_word';
        }
        $search_word_name = smart_addslashes(trim($_POST['search_word_name']));
        if ($search_word_name == '') {
            $feedback = '<p class="Error">' . $error_missing_field . '</p>';
            $task = 'add_search_word';
        } else {
            $search_word_id = isset($_POST['search_word_id']) ? $_POST['search_word_id'] : 0;
        $tabtable->add_tab('groups', $contacts_groups);
        $tabtable->add_tab('import', $contacts_import);
    }
    $tabtable->add_tab('export', $contacts_export);
    $tabtable->add_tab('read_permissions', $strReadRights);
    $tabtable->add_tab('write_permissions', $strWriteRights);
} else {
    $tabtable = new tabtable('addressbook', $ab_new_ab, '460', '400', '120', '', true);
    $write_permission = true;
}
if (!$write_permission && !$read_permission) {
    header('Location: ' . $GO_CONFIG->host . 'error_docs/403.php');
    exit;
}
if (isset($_REQUEST['active_tab'])) {
    $tabtable->set_active_tab($_REQUEST['active_tab']);
}
$link_back .= '&active_tab=' . $tabtable->active_tab;
require $GO_THEME->theme_path . "header.inc";
echo '<form name="addressbook" method="post" action="' . $_SERVER['PHP_SELF'] . '" enctype="multipart/form-data">';
echo '<input type="hidden" name="task" />';
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="addressbook_id" value="' . $addressbook_id . '" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
echo '<input type="hidden" name="link_back" value="' . $link_back . '" />';
$tabtable->print_head();
echo '<br />';
switch ($tabtable->get_active_tab_id()) {
    case 'read_permissions':
        if ($addressbook['user_id'] == $GO_SECURITY->user_id) {
            echo '<a class="normal" href="javascript:copy_acl(\'copy_read_acl\');">' . $ab_copy_read_acl . '</a><br />';
" />

  <?php 
switch ($task) {
    case 'upload':
        require 'upload_template_file.inc';
        break;
    default:
        if ($template_id > 0) {
            $tpl_table->add_tab('template.inc', $strProperties);
            $tpl_table->add_tab('template_items.inc', $cms_templates);
            $tpl_table->add_tab('template_files.inc', $cms_files);
            $tpl_table->add_tab('template_read_permissions.inc', $strReadRights);
            $tpl_table->add_tab('template_write_permissions.inc', $strWriteRights);
            if (isset($active_tab)) {
                $tpl_table->set_active_tab($active_tab);
            }
            $tpl_table->print_head();
            require $tpl_table->get_active_tab_id();
        } else {
            $tpl_table->print_head();
            require 'template.inc';
        }
        $tpl_table->print_foot();
        break;
}
?>

</form>
<?php 
require $GO_THEME->theme_path . "footer.inc";
Example #6
0
    if ($templates_plugin) {
        require_once $templates_plugin['path'] . 'classes/templates.class.inc';
        $tp = new templates();
        if ($tp->has_oo_templates($GO_SECURITY->user_id)) {
            echo '<td class="ModuleIcons" nowrap>';
            echo '<a target="_blank" href="' . $GO_MODULES->url . 'templates/download_oo_template.php?contact_id=' . $contact_id . '"><img src="' . $GO_THEME->images['new_letter'] . '" border="0" height="32" width="32" /><br />' . $ab_oo_doc . '</td>';
            echo '</td>';
        }
    }
    $tabtable->add_tab('read_permissions', $strReadRights);
    $tabtable->add_tab('write_permissions', $strWriteRights);
}
echo '</tr></table>';
$active_tab = isset($_REQUEST['active_tab']) ? $_REQUEST['active_tab'] : null;
if (isset($active_tab)) {
    $tabtable->set_active_tab($active_tab);
}
$link_back = cleanup_url($link_back . '&' . $tabtable->get_link_back());
echo '<input type="hidden" name="link_back" value="' . $link_back . '" />';
$tabtable->print_head();
if ($tabtable->get_active_tab_id() > 0) {
    $catagory_id = $tabtable->get_active_tab_id();
    $active_tab_id = 'custom_fields';
} else {
    $active_tab_id = $tabtable->get_active_tab_id();
}
switch ($active_tab_id) {
    case 'read_permissions':
        print_acl($contact['acl_read']);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
Example #7
0
    }
}
//get the language file
require $GO_LANGUAGE->get_language_file('cms');
//create a tab window
$tabtable = new tabtable('sites', $lang_modules['cms'], '100%', '400');
//$tabtable->add_tab('subscribed.inc', $cms_your_sites);
$tabtable->add_tab('sites.inc', $cms_all_sites);
if ($GO_MODULES->write_permissions) {
    $tabtable->add_tab('templates.inc', $cms_themes_menu);
    $tabtable->add_tab('configuration.inc', $menu_configuration);
}
//perform tasks before output to client
$task = isset($_REQUEST['task']) ? $_REQUEST['task'] : '';
if (isset($_REQUEST['tabindex'])) {
    $tabtable->set_active_tab($_REQUEST['tabindex']);
}
switch ($task) {
    /*
    MS: Removed subscribing to sites
    
      case 'sites':
        if($_SERVER['REQUEST_METHOD'] == 'POST')
        {
          $subscribed = isset($_POST['subscribed']) ? $_POST['subscribed'] : array();
    
          $cms->get_authorized_sites($GO_SECURITY->user_id);
          $cms2 = new cms();
          while ($cms->next_record())
          {
    	$is_subscribed = $cms2->is_subscribed($GO_SECURITY->user_id, $cms->f('id'));
Example #8
0
<?php

/*
  Copyright HPT Commerce 2004
  Author: Tran Kien Duc <*****@*****.**>
  Version: 1.0 Release date: 25 August 2004

  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.
*/
//	$tabtable = new tabtable("config","Config","100%");
$tabtable = new tabtable('active_tab', $strConfig, '100%', '400', '120', '', true);
$tabtable->add_tab("edit_config.php", $contacts_contacts);
$tabtable->add_tab("edit_config.php", $ab_companies);
$tabtable->add_tab("edit_config.php", $contacts_members);
if ($GO_SECURITY->has_admin_permission($GO_SECURITY->user_id)) {
    $tabtable->add_tab("categories.php", $strModifyCategories);
}
$tabtable->set_active_tab(empty($_REQUEST['active_tab']) ? 0 : (isset($_REQUEST['config']) ? $_REQUEST['config'] : null));
$tabtable->print_head();
require $tabtable->get_active_tab_id();
$tabtable->print_foot();
Example #9
0
    if (!$GO_SECURITY->has_permission($GO_SECURITY->user_id, $site['acl_write'])) {
        header('Location: ' . $GO_CONFIG->host . 'error_docs/403.php');
        exit;
    }
    $tabtable = new tabtable('sites', htmlspecialchars($site['name'] . ' (' . $site['domain'] . ')'), '600', '400', '100', '', true);
    $tabtable->add_tab('properties', $strProperties);
    $tabtable->add_tab('search_words', $cms_search_words);
    if ($root_publish_path != '') {
        $tabtable->add_tab('publish', $cms_publish);
    }
    $tabtable->add_tab('write_permissions', $strWriteRights);
    if ($site['acl_read'] > 0) {
        $tabtable->add_tab('read_permissions', $strReadRights);
    }
    if ($task == 'edit_search_words') {
        $tabtable->set_active_tab(1);
    }
} else {
    $tabtable = new tabtable('properties', $cms_new_site, '600', '400');
}
switch ($task) {
    case 'save_search_word':
        if ($_POST['close'] == 'false') {
            $task = 'add_search_word';
        }
        $search_word_name = smart_addslashes(trim($_POST['search_word_name']));
        if ($search_word_name == '') {
            $feedback = '<p class="Error">' . $error_missing_field . '</p>';
            $task = 'add_search_word';
        } else {
            $search_word_id = isset($_POST['search_word_id']) ? $_POST['search_word_id'] : 0;