Code Search for Developers
 
 
  

checker.php from Group-Office groupware at Krugle


Show checker.php syntax highlighted

<?php
/**
 * @copyright Intermesh 2004
 * @author Merijn Schering <mschering@intermesh.nl>
 * @version $Revision: 1.52 $ $Date: 2006/11/22 09:35:30 $
 *
 * 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_once('Group-Office.php');
$GO_SECURITY->authenticate();
?>
<html>
<head>
<script language="javascript" type="text/javascript">
<!-- Centring window Javascipt mods By Muffin Research Labs//-->

function popup(url,w,h,target)
{
	var centered;
	x = (screen.availWidth - w) / 2;
	y = (screen.availHeight - h) / 2;
	centered =',width=' + w + ',height=' + h + ',left=' + x + ',top=' + y + ',scrollbars=yes,resizable=no,status=no';
	popup = window.open(url, target, centered);
	if (!popup.opener) popup.opener = self;
	popup.focus();
}
</script>
<title><?php echo $GO_CONFIG->title; ?>
</title>
<?php
echo '<meta http-equiv="refresh" content="'.$GO_CONFIG->refresh_rate.';url='.$_SERVER['PHP_SELF'].'?initiated=true">';
$height = 0;
//if user uses the calendar then check for events to remind
$calendar_module = isset($GO_MODULES->modules['calendar']) ? $GO_MODULES->modules['calendar'] : false;
if ($calendar_module && $GO_MODULES->modules['calendar']['read_permission'])
{
	require_once($calendar_module['class_path'].'calendar.class.inc');
	$cal = new calendar();
	if($remind_events = $cal->get_events_to_remind($GO_SECURITY->user_id))
	{
		$height += 200+(20*$remind_events);
	}
}else
{
	$remind_events = false;
}

$task = isset($_REQUEST['task']) ? $_REQUEST['task'] : '';


$_SESSION['GO_SESSION']['email_module']['notified'] = isset($_SESSION['GO_SESSION']['email_module']['notified']) ? $_SESSION['GO_SESSION']['email_module']['notified'] : 0;
$_SESSION['GO_SESSION']['email_module']['new'] = 0;
$remind_email = false;
//if(($_SESSION['GO_SESSION']['start_module'] != 'summary' && $_SESSION['GO_SESSION']['start_module'] != 'email')
//|| isset($_REQUEST['initiated']))
//{
	//check for email
	if (isset($GO_MODULES->modules['email']) && $GO_MODULES->modules['email']['read_permission'])
	{
		require_once($GO_MODULES->modules['email']['class_path'].'email.class.inc');
		require_once($GO_CONFIG->class_path.'mail/imap.class.inc');
		$imap = new imap();
		$email = new email();
		
		$settings = $email->get_settings($GO_SECURITY->user_id);
		
		if($settings['auto_check']=='1')
		{

			if(!isset($_SESSION['GO_SESSION']['email_module']['cached']))
			{
				$email->cache_accounts($GO_SECURITY->user_id);
				$_SESSION['GO_SESSION']['email_module']['cached']=true;
			}else {
				$email->cache_accounts($GO_SECURITY->user_id,true);
			}
			
			 $_SESSION['GO_SESSION']['email_module']['new']=$email->get_total_unseen($GO_SECURITY->user_id);
	
	
			if ($_SESSION['GO_SESSION']['email_module']['new'] > 0 && $_SESSION['GO_SESSION']['email_module']['new'] > $_SESSION['GO_SESSION']['email_module']['notified'])
			{
				$_SESSION['GO_SESSION']['email_module']['notified']=$_SESSION['GO_SESSION']['email_module']['new'];
				$remind_email = true;
			}elseif($_SESSION['GO_SESSION']['email_module']['notified'] >  $_SESSION['GO_SESSION']['email_module']['new'])
			{
				$_SESSION['GO_SESSION']['email_module']['notified'] =  $_SESSION['GO_SESSION']['email_module']['new'];
			}
		}
	}
//}

if ($remind_events)
{
	if($height > 600) $height = 600;

	echo '<script language="javascript" type="text/javascript">'.
	'popup("'.$GO_CONFIG->control_url.'reminder.php", "600", "'.$height.'", "reminder");'.
	'</script>';
}
?>
<link href="<?php echo $GO_THEME->theme_url.'css/checker.css'; ?>" rel="stylesheet" type="text/css" />
</head>
<body>
<?php

if (isset($GO_MODULES->modules['email']) && $GO_MODULES->modules['email']['read_permission'] && $_SESSION['GO_SESSION']['email_module']['new']>0)
{
	echo '<a href="'.$GO_MODULES->modules['email']['url'].'" target="main"><img src="'.$GO_THEME->images['mail'].'" border="0" align="absmiddle" /> '.$_SESSION['GO_SESSION']['email_module']['new'].'</a>';
}

if($remind_email && isset($_REQUEST['initiated']) && $settings['beep']=='1')
{


	echo '<br /><br /><br /><object width="0" height="0">'.
		'<param name="movie" value="'.$GO_THEME->sounds['reminder'].'">'.
		'<param name="loop" value="false">'.
		'<embed src="'.$GO_THEME->sounds['reminder'].'" loop="false" width="1" height="1">'.
		'</embed>'.
		'</object>';
}	
?>

</body>
</html>




See more files for this project here

Group-Office groupware

Group-Office is a powerfull modular Internet/Intranet application framework. It features calendaring, project management, e-mail, tasks, addressbook, file management.

Project homepage: http://sourceforge.net/projects/group-office
Programming language(s): JavaScript,Pascal,PHP
License: other

  classes/
    base/
      controls/
        acl.class.inc
        activities_list.class.inc
        autocomplete.class.inc
        autocomplete_select.class.inc
        button.class.inc
        button_menu.class.inc
        checkbox.class.inc
        color_selector.class.inc
        csv.class.inc
        datagrid.class.inc
        datatable.class.inc
        date_picker.class.inc
        dbrecord.class.inc
        dropbox.class.inc
        dynamic_tabstrip.class.inc
        form.class.inc
        global_autocomplete.class.inc
        html_element.class.inc
        htmlarea.class.inc
        htmleditor.class.inc
        hyperlink.class.inc
        image.class.inc
        input.class.inc
        links_list.class.inc
        object_select.class.inc
        overlib.class.inc
        radio_list.class.inc
        radiogroup.class.inc
        select.class.inc
        select_link.class.inc
        select_users.class.inc
        statusbar.class.inc
        table.class.inc
        tabstrip.class.inc
        tabtable.class.inc
        testButton.php
        textarea.class.inc
        tooltip.class.inc
        treeview.class.inc
        user_autocomplete.class.inc
      base.auth.class.inc
      base.groups.class.inc
      base.security.class.inc
      base.users.class.inc
      config.class.inc
      controls.class.inc
      crypto.class.inc
      email.auth.class.inc
      language.class.inc
      ldap.auth.class.inc
      ldap.groups.class.inc
      ldap.security.class.inc
      ldap.users.class.inc
      links.class.inc
      modules.class.inc
      passwd.groups.class.inc
      passwd.security.class.inc
      passwd.users.class.inc
      search.class.inc
      sql.auth.class.inc
      sql.groups.class.inc
      sql.security.class.inc
      sql.users.class.inc
      theme.class.inc
      userlog.class.inc
    date/
      Date/
      tests/
      Date.php
      TODO
    dompdf/
      include/
      lib/
      www/
      ChangeLog
      HACKING
      INSTALL
      LICENSE.LGPL
      README
      TODO
      dompdf.php
      dompdf_config.inc.php
      load_font.php
    fpdf/
      font/
      faq.css
      faq.htm
      fpdf.class.inc
      xfpdf.class.inc
    mail/
      phpmailer/
      RFC822.class.inc
      imap.class.inc
      mimeDecode.class.inc
    xml/
      wbxml.class.inc
      xml.class.inc
      xpath.class.inc
    admin.class.inc
    dav.class.inc
    filesystem.class.inc
    highlighter.class.inc
    html2text.class.inc
    htmlparser.class.inc
    profiles.class.inc
    sajax.class.inc
    validate.class.inc
  configuration/
    index.php
    look.inc
    notations.inc
    privacy.inc
    profile.inc
    security.inc
    statistics.inc
  controls/
    FCKeditor/
    JUpload/
    htmlarea/
    jscalendar/
    overlib/
    overlibmws/
    phpthumb/
    select/
    acl.php
    backend_treeview.php
    color_selector.php
    fixpng.inc
    global_search_xml.php
    group.php
    reminder.php
    table_config.php
    user.php
    userlog.php
  database/
    ldap.class.inc
    mysql.class.inc
    oci8.class.inc
    odbc.class.inc
    oracle.class.inc
    pgsql.class.inc
    usql.class.inc
  error_docs/
    401.inc
    401.php
    403.inc
    403.php
    404.php
  ext/
    adapter/
    resources/
    ext-all-debug.js
    ext-all.js
  install/
    Intermesh.gif
    gotest.php
    install.css
    install.inc
    install.php
    install.sh
    macAddr
    macAddr.c
    test.inc
    update.sh
    update_single.sh
    upgrade.php
  javascript/
    actb.js
    autocomplete.php
    common.js
    datatable.js
    multifile.js
    pngfix.js
    select_users.js
  language/
    about/
    account/
    common/
    filetypes/
    login/
    preferences/
    sync/
    holidays.inc
    languages.inc
    make_language_pack
  lib/
    dav/
    icons/
    ldap/
    scripts/
    sql/
    favicon.ico
    intermesh.gif
    mime.types
    updates.inc
  login_screens/
    Default/
  modules/
    addressbook/
    bookmarks/
    calendar/
    chat/
    cms/
    comics/
    csvimport/
    email/
    example/
    filesystem/
    forum/
    gallery/
    groups/
    modules/
  phpUnit/
  themes/
  yui/
  CHANGELOG
  DEVELOPERS
  FAQ
  Group-Office.php
  LICENSE.GPL
  README
  README.ldap
  RELEASE
  TODO
  TRANSLATORS
  about.php
  adodb-time.inc.php
  auth_sources.dist
  checker.php
  fullscreen.php
  functions.inc
  functions_compat.inc
  groupoffice-cron.php
  groupofficeperson.schema
  index.php
  link.php
  links.js
  lost_password.php
  phpdoc.ini
  register.php
  search.php