echo 'Tab';
}
?>
"><?php 
echo $strWriteRights;
?>
</a></td>
<td class="Tab" width="200">&nbsp;</td>
</tr>
<tr>
<td class="TableInside" height="300" valign="top" colspan="5">
<table border="0" cellpadding="10">
<tr>
<td>
<?php 
print_acl($acl_id, false);
?>
</td>
</tr>
<tr>
<td class="cmd">
<?php 
$button = new button($cmdClose, 'javascript:window.close()');
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
Esempio n. 2
0
$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;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    case 'write_permissions':
        print_acl($contact['acl_write']);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    case 'custom_fields':
        require 'custom_fields/custom_fields.inc';
        break;
    case 'projects':
        echo '<input type="hidden" name="sort_cookie_prefix" value="pm_" />';
        require $GO_LANGUAGE->get_language_file('projects');
        require_once $projects_module['class_path'] . 'projects.class.inc';
        $projects = new projects();
        $projects_module_url = $projects_module['url'];
        require $projects_module['path'] . 'projects.inc';
        echo '<br />';
Esempio n. 3
0
     $dropbox->print_dropbox('user', $user);
     echo '<br /><br />';
     //statusbar control
     $statusbar = new statusbar();
     $statusbar->info_text = 'Group-Office usage';
     $statusbar->turn_red_point = 90;
     $statusbar->print_bar(75, 100);
     break;
 case 'acl_demo':
     //You can secure an object by giving it an ACL (Access Control List). When the user
     //you logged in with was created it also got an ACL. This acl is used to protect your personal profile.
     //We already got the user information in the above example so the user acl = stored in $user['acl_id'].
     //So if we want to set the permissions this can be done really easily with the acl control
     echo '<p>You are visible to:</p>';
     $user = $GO_USERS->get_user($GO_SECURITY->user_id);
     print_acl($user['acl_id']);
     //When you are creating your own secured objects you just call th e function: $GO_SECURITY->get_new_acl()
     //to create a new ACL. (See classes/base/*.security.class.inc)
     break;
 case 'htmlarea':
     $content = isset($_POST['content']) ? $_POST['content'] : '<h1>Html editing in Group-Office</h1>';
     $htmlarea->print_htmlarea($content);
     break;
 case 'jscalendar':
     //print date picker using your preference setting date_format.
     //Note that get_time() uses your timezone and Daylight Saving preferences.
     $today = date($_SESSION['GO_SESSION']['date_format'], get_time());
     $datepicker->print_date_picker('date', $_SESSION['GO_SESSION']['date_format'], $today);
     //You can also print a non popup calendar
     ?>
   <div id="date_picker1_container" style="width: 220px;padding-top:20px;"></div>
Esempio n. 4
0
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) . '" />';
$tabtable->print_head();
switch ($tabtable->get_active_tab_id()) {
    case 'read_permissions':
        print_acl($note['acl_read']);
        echo '<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    case 'write_permissions':
        print_acl($note['acl_write']);
        echo '<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    default:
        if (isset($feedback)) {
            echo $feedback;
        }
        ?>
      <table border="0" cellspacing="0" cellpadding="4">
      <tr>
      <td valign="top">
      <table border="0" cellspacing="0" cellpadding="4">
      <tr>
      <td><?php 
        echo $strName;
Esempio n. 5
0
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="type" value="merged" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
$tabtable->print_head();
switch ($tabtable->get_active_tab_id()) {
    case 'read_permissions':
        $read_only = $view['user_id'] == $GO_SECURITY->user_id ? false : true;
        print_acl($view['acl_read']);
        echo '<br /><br />';
        echo '&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
        break;
    case 'write_permissions':
        $read_only = $view['user_id'] == $GO_SECURITY->user_id ? false : true;
        print_acl($view['acl_write']);
        echo '<br /><br />';
        echo '&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
        break;
    default:
        ?>
<table border="0" cellpadding="5" cellspacing="0">
<?php 
        if (isset($feedback)) {
            echo '<tr><td colspan="2">' . $feedback . '</td></tr>';
        }
        ?>
<tr>
	<td>
	<?php 
Esempio n. 6
0
echo '<input type="hidden" name="calendar_id" value="' . $calendar_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 . '" />';
$tabtable->print_head();
switch ($tabtable->get_active_tab_id()) {
    case 'read_permissions':
        $read_only = $calendar['user_id'] == $GO_SECURITY->user_id ? false : true;
        print_acl($calendar['acl_read'], $read_only);
        echo '<br /><br />';
        echo '&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
        break;
    case 'write_permissions':
        $read_only = $calendar['user_id'] == $GO_SECURITY->user_id ? false : true;
        print_acl($calendar['acl_write'], $read_only);
        echo '<br /><br />';
        echo '&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
        break;
    case 'holidays':
        require 'holidays.inc';
        break;
    case 'import':
        require 'import.inc';
        break;
    default:
        ?>
	<table border="0" cellpadding="5" cellspacing="0">
	<?php 
        if (isset($feedback)) {
Esempio n. 7
0
$tabtable->print_head();
echo '</form>';
echo '<TABLE border=1 cellPadding=1 cellSpacing=1 width="100%">
        <TBODY>
<tr><td bgcolor="#def1f9" colspan=100%><H2 align=center>' . $tts_lang_ticket_number . ':' . $Ticket_Number . '</H2></td></tr></table>';
switch ($tabtable->get_active_tab_id()) {
    case 'read_permissions':
        if ($GO_SECURITY->user_in_acl(whoami(), $ticket['acl_read']) or $GO_SECURITY->user_in_acl(whoami(), $ticket['acl_write'])) {
            print_acl($ticket['acl_read']);
            echo '<br />';
            $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        }
        break;
    case 'write_permissions':
        if ($GO_SECURITY->user_in_acl(whoami(), $ticket['acl_write'])) {
            print_acl($ticket['acl_write']);
            echo '<br />';
            $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        }
        $cmdTakeOwnership = 'Take Ownership';
        if (Security::is_action_allowed('take_ownership')) {
            $button = new button($cmdTakeOwnership, "javascript:document.location='" . $return_to . "&take_ownership=yes&acl_write={$acl_write}';");
        }
        break;
    case 'show_tasks':
        if ($acl_read > 0 and $acl_write > 0) {
            showtasks();
        }
        break;
    case 'new_task':
        if ($acl_read > 0 and $acl_write > 0) {
Esempio n. 8
0
                 break;
         }
     }
     echo '<br /><br />';
     $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
     break;
 case 'read_permissions':
     $read_only = $event['user_id'] == $GO_SECURITY->user_id ? false : true;
     print_acl($event['acl_read']);
     echo '<br /><br />';
     echo '&nbsp;&nbsp;&nbsp;&nbsp;';
     $button = new button($cmdCancel, "javascript:document.location='" . $return_to . "'");
     break;
 case 'write_permissions':
     $read_only = $event['user_id'] == $GO_SECURITY->user_id ? false : true;
     print_acl($event['acl_write']);
     echo '<br /><br />';
     echo '&nbsp;&nbsp;&nbsp;&nbsp;';
     $button = new button($cmdCancel, "javascript:document.location='" . $return_to . "'");
     break;
 default:
     echo '<table border="0" cellpadding="2" cellspacing="0">';
     if (isset($feedback)) {
         echo '<tr><td colspan="2" class="Error">' . $feedback . '</td></tr>';
     }
     echo '<tr><td>' . $strName . ':&nbsp;</td><td><input type="text" class="textbox" maxlength="50" name="name" style="width: 300px;" value="' . htmlspecialchars($event['name']) . '" /></td></tr>';
     echo '<tr><td>';
     if ($ab_module) {
         $link = $ab->select_contacts('document.event_form.to', $GO_MODULES->url . 'add_contacts.php');
         echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>" . "<a class=\"normal\" href=\"" . $link . "\"><img src=\"" . $GO_THEME->images['addressbook_small'] . "\" width=\"16\" " . "height=\"16\" border=\"0\" /></a>&nbsp;</td><td>" . '<a class="normal" href="' . $link . '">' . $sc_participants . '</a>:&nbsp;</td></tr></table></td>';
     } else {
Esempio n. 9
0
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="type" value="merged" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
$tabtable->print_head();
switch ($tabtable->get_active_tab_id()) {
    case 'read_permissions':
        $read_only = $view['user_id'] == $GO_SECURITY->user_id ? false : true;
        print_acl($view['acl_read'], $read_only);
        echo '<br /><br />';
        echo '&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
        break;
    case 'write_permissions':
        $read_only = $view['user_id'] == $GO_SECURITY->user_id ? false : true;
        print_acl($view['acl_write'], $read_only);
        echo '<br /><br />';
        echo '&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
        break;
    default:
        ?>
<table border="0" cellpadding="5" cellspacing="0">
<?php 
        if (isset($feedback)) {
            echo '<tr><td colspan="2">' . $feedback . '</td></tr>';
        }
        ?>
<tr>
	<td>
	<?php 
Esempio n. 10
0
echo '<input type="hidden" name="calendar_id" value="' . $calendar_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 . '" />';
$tabtable->print_head();
switch ($tabtable->get_active_tab_id()) {
    case 'read_permissions':
        $read_only = $calendar['user_id'] == $GO_SECURITY->user_id ? false : true;
        print_acl($calendar['acl_read']);
        echo '<br /><br />';
        echo '&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
        break;
    case 'write_permissions':
        $read_only = $calendar['user_id'] == $GO_SECURITY->user_id ? false : true;
        print_acl($calendar['acl_write']);
        echo '<br /><br />';
        echo '&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
        break;
    case 'holidays':
        require 'holidays.inc';
        break;
    case 'import':
        require 'import.inc';
        break;
    default:
        ?>
	<table border="0" cellpadding="5" cellspacing="0">
	<?php 
        if (isset($feedback)) {
Esempio n. 11
0
                 break;
         }
     }
     echo '<br /><br />';
     $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
     break;
 case 'read_permissions':
     $read_only = $event['user_id'] == $GO_SECURITY->user_id ? false : true;
     print_acl($event['acl_read'], $read_only);
     echo '<br /><br />';
     echo '&nbsp;&nbsp;&nbsp;&nbsp;';
     $button = new button($cmdCancel, "javascript:document.location='" . $return_to . "'");
     break;
 case 'write_permissions':
     $read_only = $event['user_id'] == $GO_SECURITY->user_id ? false : true;
     print_acl($event['acl_write'], $read_only);
     echo '<br /><br />';
     echo '&nbsp;&nbsp;&nbsp;&nbsp;';
     $button = new button($cmdCancel, "javascript:document.location='" . $return_to . "'");
     break;
 default:
     echo '<table border="0" cellpadding="2" cellspacing="0">';
     if (isset($feedback)) {
         echo '<tr><td colspan="2" class="Error">' . $feedback . '</td></tr>';
     }
     echo '<tr><td>' . $strName . ':&nbsp;</td><td><input type="text" class="textbox" maxlength="50" name="name" style="width: 300px;" value="' . htmlspecialchars($event['name']) . '" /></td></tr>';
     echo '<tr><td>';
     if ($ab_module) {
         $link = $ab->select_contacts('document.event_form.to', $GO_MODULES->url . 'add_contacts.php');
         echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>" . "<a class=\"normal\" href=\"" . $link . "\"><img src=\"" . $GO_THEME->images['addressbook_small'] . "\" width=\"16\" " . "height=\"16\" border=\"0\" /></a>&nbsp;</td><td>" . '<a class="normal" href="' . $link . '">' . $sc_participants . '</a>:&nbsp;</td></tr></table></td>';
     } else {
    echo 'Tab';
}
?>
"><?php 
echo $strWriteRights;
?>
</a></td>
<td class="Tab" width="200">&nbsp;</td>
</tr>
<tr>
<td class="TableInside" height="300" valign="top" colspan="5">
<table border="0" cellpadding="10">
<tr>
<td>
<?php 
print_acl($acl_id);
?>
</td>
</tr>
<tr>
<td class="cmd">
<?php 
$button = new button($cmdClose, 'javascript:window.close()');
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
    $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()"';
}
require $GO_THEME->theme_path . "header.inc";
echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '" name="announcements_form">';
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="announcement_id" value="' . $announcement_id . '" />';
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="user_id" value="' . $user_id . '" />';
$tabtable->print_head();
switch ($tabtable->get_active_tab_id()) {
    case 'read_permissions':
        print_acl($announcement['acl_id']);
        echo '<br />';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    default:
        if (isset($feedback)) {
            echo $feedback;
        }
        ?>
		<table border="0" cellspacing="0" cellpadding="4">
		<tr>
			<td valign="top">
			<table border="0" cellspacing="0" cellpadding="4">
			<tr>
				<td><?php 
        echo $strTitle;
Esempio n. 14
0
echo '<br />';
switch ($tabtable->get_active_tab_id()) {
    case 'read_permissions':
        if ($catagory['user_id'] == $GO_SECURITY->user_id) {
            echo '<a class="normal" href="javascript:copy_read_permissions()">' . $bm_copy_read_permissions . '</a><br /><br />';
        }
        print_acl($catagory["acl_read"]);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    case 'write_permissions':
        if ($catagory['user_id'] == $GO_SECURITY->user_id) {
            echo '<a class="normal" href="javascript:copy_write_permissions()">' . $bm_copy_write_permissions . '</a><br /><br />';
        }
        print_acl($catagory["acl_write"]);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    default:
        ?>

	<table border="0">
	<?php 
        if (isset($feedback)) {
            echo '<tr><td colspan="2">' . $feedback . '</td></tr>';
        }
        ?>
	<tr>
		<td><?php 
Esempio n. 15
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($company['acl_read']);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        if (isset($return_to)) {
            $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        }
        break;
    case 'write_permissions':
        print_acl($company['acl_write']);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        if (isset($return_to)) {
            $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        }
        break;
    case 'categories':
        require 'company_categories.php';
        break;
    case 'custom_fields':
        require 'custom_fields/custom_fields.inc';
        break;
    case 'contacts':
        require 'company_contacts.inc';
        break;
Esempio n. 16
0
     require 'site_search_words.inc';
     break;
 case 'publish':
     require 'publish.inc';
     break;
 case 'write_permissions':
     echo '<table border="0" cellpadding="10" cellspacing="0"><tr><td>';
     $read_only = $site['user_id'] == $GO_SECURITY->user_id ? false : true;
     print_acl($site["acl_write"]);
     echo '</td></tr></table><br />';
     $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
     break;
 case 'read_permissions':
     echo '<table border="0" cellpadding="10" cellspacing="0"><tr><td>';
     $read_only = $site['user_id'] == $GO_SECURITY->user_id ? false : true;
     print_acl($site["acl_read"]);
     echo '</td></tr></table><br />';
     $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
     break;
 default:
     if ($site_id > 0) {
         $name = $site['name'];
         $domain = $site['domain'];
         $description = $site['description'];
         $keywords = $site['keywords'];
         $template_id = $site['template_id'];
         $secure_check = $site['acl_read'] > 0 ? true : false;
         $display_type = $site['display_type'];
     } else {
         $name = isset($_POST['name']) ? smartstrip($_POST['name']) : '';
         $domain = isset($_POST['domain']) ? smartstrip($_POST['domain']) : '';
Esempio n. 17
0
    $name = isset($_POST['name']) ? $_POST['name'] : '';
    $URL = isset($_POST['URL']) ? $_POST['URL'] : 'http://';
    $check = isset($_POST['new_window']) ? true : false;
    $private = isset($_POST['private']) ? true : false;
    $tabtable = new tabtable('bookmarks_tab', $bm_add_bookmark, '400', '400', '120', '', true);
}
$tabtable->print_head();
switch ($tabtable->get_active_tab_id()) {
    case 'read_permissions':
        print_acl($bookmark["acl_read"]);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $GO_MODULES->url . "';");
        break;
    case 'write_permissions':
        print_acl($bookmark["acl_write"]);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $GO_MODULES->url . "';");
        break;
    default:
        if (isset($feedback)) {
            echo $feedback;
        }
        ?>
      <table border="0" cellpadding="0" cellspacing="3">
      <?php 
        if ($bookmarks->get_catagories($GO_SECURITY->user_id, true)) {
            $dropbox = new dropbox();
            $dropbox->add_value('0', $bm_catagory_other);
            while ($bookmarks->next_record()) {
Esempio n. 18
0
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 />';
        }
        print_acl($addressbook["acl_read"]);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    case 'write_permissions':
        if ($addressbook['user_id'] == $GO_SECURITY->user_id) {
            echo '<a class="normal" href="javascript:copy_acl(\'copy_write_acl\');">' . $ab_copy_write_acl . '</a><br />';
        }
        print_acl($addressbook["acl_write"]);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    case 'groups':
        require 'groups.inc';
        echo '<br />';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    case 'import':
        require 'import.inc';
        break;
    case 'export':
        require 'export.inc';
        break;
Esempio n. 19
0
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 />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;
    case 'write_permissions':
        print_acl($project['acl_write'] . '&project_acl=1');
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        if (!isset($is_brandnew_project) || !$is_brandnew_project) {
            $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        } else {
            $button = new button($cmdNext, "javascript:change_tab('" . TASK_LIST_TAB . "');");
        }
        break;
    case 'book':
        require 'book.inc';
        break;
    case 'task':
        require 'task.inc';
        break;
    case 'load':
Esempio n. 20
0
            $acl_write = $GO_SECURITY->get_new_acl('message write: ' . $GO_SECURITY->user_id);
            if ($acl_write > 0) {
                $db->query("INSERT INTO messages_users (user_id,acl_write) VALUES ('{$GO_SECURITY->user_id}','{$acl_write}')");
            }
            $db->query("SELECT * from messages_users WHERE user_id={$GO_SECURITY->user_id}");
            $db->next_record();
        }
        $tabtable = new tabtable('messages_tab', 'Messages', '100%', '400', '120', '', true);
        $tabtable->add_tab('properties', 'Properties');
        $tabtable->add_tab('permissions', 'Permissions');
        $tabtable->print_head();
        switch ($tabtable->get_active_tab_id()) {
            case 'properties':
                break;
            case 'permissions':
                print_acl($db->f('acl_write'));
                echo '<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;';
                $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
                break;
        }
        $tabtable->print_foot();
        break;
}
echo '</form>';
require $GO_THEME->theme_path . "footer.inc";
?>
<script type="text/javascript" language="javascript">
  <!--
mainform = document.forms[0];
function item_click(check_box)
{
Esempio n. 21
0
        echo '<br/>';
        if (!$module) {
            $button = new button($cmdInstall, "javascript:document.location='{$return_to}'");
        } else {
            $button = new button($cmdUninstall, "javascript:document.location='{$return_to}'");
        }
        echo '&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='{$return_to}'");
        break;
    case 'read_permissions.inc':
        print_acl($module['acl_read']);
        echo '<br/>';
        $button = new button($cmdClose, "javascript:document.location='{$return_to}'");
        break;
    case 'write_permissions.inc':
        print_acl($module['acl_write']);
        echo '<br/>';
        $button = new button($cmdClose, "javascript:document.location='{$return_to}'");
        break;
    default:
        require $tabtable->get_active_tab_id();
}
$tabtable->print_foot();
?>
</form>
<?php 
require $GO_THEME->theme_path . "footer.inc";
function delete_folder($folder)
{
    $dir = @opendir($folder);
    while ($item = readdir($dir)) {