Code Search for Developers
 
 
  

user.php from Group-Office groupware at Krugle


Show user.php syntax highlighted

<?php
/*
Copyright Intermesh 2003
Author: Merijn Schering <mschering@intermesh.nl>
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_once("../Group-Office.php");
load_basic_controls();
load_control('tabtable');
$GO_SECURITY->authenticate();
require_once($GO_LANGUAGE->get_language_file('addressbook'));
$profile = $GO_USERS->get_user($_REQUEST['id']);

if ($GO_SECURITY->user_id != $_REQUEST['id'])
{
	if (!$GO_SECURITY->has_permission($GO_SECURITY->user_id,$profile["acl_id"]))
	{
		Header("Location: ".$GO_CONFIG->host."error_docs/403.php");
		exit();
	}
}

require_once($GO_THEME->theme_path."header.inc");
if (!$profile)
{
    echo "<p class=\"Error\">".$strDataError."</p>";
	exit();
}

$return_to = (isset($_REQUEST['return_to']) && $_REQUEST['return_to'] != '') ? $_REQUEST['return_to'] : $_SERVER['HTTP_REFERER'];
$link_back = (isset($_REQUEST['link_back']) && $_REQUEST['link_back'] != '') ? $_REQUEST['link_back'] : $_SERVER['REQUEST_URI'];

$tabtable = new tabtable('user_table', $user_profile, '100%', '400', '100');
$tabtable->print_head(htmlspecialchars($return_to));

?>
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
	<td>
	<table border="0" cellpadding="" cellspacing="3" width="100%">
	<tr>
		<td valign="top" width="50%">
		<table border="0" class="normal" cellpadding="0" cellspacing="3" width="100%">

		<tr>
			<td align="right" nowrap><i><?php echo $strFirstName; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["first_name"])); ?></td>
		</tr>
		<tr>
			<td align="right" nowrap><i><?php echo $strLastName; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["last_name"])); ?></td>
		</tr>
		<tr>
			<td align="right" nowrap><i><?php echo $strInitials; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["initials"])); ?></td>
		</tr>
		<tr>
			<td align="right" nowrap><i><?php echo $strSex; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($strSexes[$profile["sex"]])); ?></td>
		</tr>
		<tr>
			<td align="right" nowrap><i><?php echo $strBirthday; ?></i>:</td>
			<td>
			<?php
				$birthday = $profile['birthday'] > 0 ? db_date_to_date($profile['birthday']) : '';			
				echo empty_to_stripe(htmlspecialchars($birthday));
			?>
			</td>
		</tr>
		<tr><td colspan="2">&nbsp;</td></tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strAddress; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["address"])); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strZip; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["zip"])); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strCity; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["city"])); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strState; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["state"])); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strCountry; ?>:</i>&nbsp;</td>
			<td width="100%"><?php 
			$country = $GO_USERS->get_country($profile['country_id']);
			echo empty_to_stripe(htmlspecialchars($country['name'])); 
			?></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strEmail; ?>:</i>&nbsp;</td>
			<td><?php echo mail_to(empty_to_stripe(htmlspecialchars($profile["email"]))); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strPhone; ?>:</i>&nbsp;</td>
			<td><?php echo empty_to_stripe(htmlspecialchars($profile["home_phone"])); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strFax; ?>:</i>&nbsp;</td>
			<td><?php echo empty_to_stripe(htmlspecialchars($profile["fax"])); ?></td>
		</tr>


		<tr>
			<td align="right" nowrap><i><?php echo $strCellular; ?>:</i>&nbsp;</td>
			<td><?php echo empty_to_stripe(htmlspecialchars($profile["cellular"])); ?></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<?php
		if (isset($contact_id))
		{
			echo '<tr><td valign="top"><i>'.$strComments.':</i></td><td>'.text_to_html($profile["comments"]).'</td></tr>';
		}
		?>
		</table>
		</td>
		<td valign="top" width="50%">
		<table border="0" class="normal" cellpadding="0" cellspacing="3" width="100%">
		<tr>
			<td align="right" nowrap><i><?php echo $strCompany; ?>:</i>&nbsp;</td>
			<td><?php echo empty_to_stripe(htmlspecialchars($profile["company"])); ?></td>
		</tr>
		<tr>
			<td align="right" nowrap><i><?php echo $strDepartment; ?>:</i>&nbsp;</td>
			<td><?php echo empty_to_stripe(htmlspecialchars($profile["department"])); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strFunction; ?>:</i>&nbsp;</td>
			<td><?php echo empty_to_stripe(htmlspecialchars($profile["function"])); ?></td>
		</tr>
		<tr><td colspan="2">&nbsp;</td></tr>
		<tr>
			<td align="right" nowrap><i><?php echo $strAddress; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["work_address"])); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strZip; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["work_zip"])); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strCity; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["work_city"])); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strState; ?>:</i>&nbsp;</td>
			<td width="100%"><?php echo empty_to_stripe(htmlspecialchars($profile["work_state"])); ?></td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php echo $strCountry; ?>:</i>&nbsp;</td>
			<td width="100%"><?php 
			$country = $GO_USERS->get_country($profile['work_country_id']);
			echo empty_to_stripe(htmlspecialchars($country['name'])); 
			 ?></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td align="right" nowrap><i><?php echo $strPhone; ?>:</i>&nbsp;</td>
			<td><?php echo empty_to_stripe(htmlspecialchars($profile["work_phone"])); ?></td>
		</tr>
		<tr>
			<td align="right" nowrap><i><?php echo $strFax; ?>:</i>&nbsp;</td>
			<td><?php echo empty_to_stripe(htmlspecialchars($profile["work_fax"])); ?></td>
		</tr>
		<tr>
			<td align="right" nowrap><i><?php echo $strHomepage; ?>:</i>&nbsp;</td>
			<td><?php echo empty_to_stripe(htmlspecialchars(text_to_html($profile["homepage"]))); ?></td>
		</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td colspan="2">
		<br />
		<?php
		$ab_module = $GO_MODULES->get_module('addressbook');

	
		if ($ab_module && ($GO_SECURITY->has_permission($GO_SECURITY->user_id, $ab_module['acl_read']) || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $ab_module['acl_write'])))
		{
			require_once($ab_module['path'].'classes/addressbook.class.inc');
			$ab = new addressbook();
			if (!$ab->user_is_contact($GO_SECURITY->user_id, $_REQUEST['id']))
			{
				$button = new button($cmdAdd, "document.location='".$ab_module['url']."contact.php?user_id=".$_REQUEST['id']."&return_to=".urlencode($link_back)."';");
				echo $button->get_html();
			}
		}
		$button = new button($cmdClose, "javascript:document.location='".htmlspecialchars($return_to)."'");
		echo $button->get_html();
		?>
		</td>
	</tr>
	</table>
	</td>
</tr>
</table>
<?php
$tabtable->print_foot();
require_once($GO_THEME->theme_path."footer.inc");




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

  FCKeditor/
    editor/
      _source/
        classes/
          fckcontextmenu.js
          fckdocumentfragment_gecko.js
          fckdocumentfragment_ie.js
          fckdomrange.js
          fckdomrange_gecko.js
          fckdomrange_ie.js
          fckeditingarea.js
          fckelementpath.js
          fckenterkey.js
          fckevents.js
          fckicon.js
          fckiecleanup.js
          fckimagepreloader.js
          fckkeystrokehandler.js
          fckmenublock.js
          fckmenublockpanel.js
          fckmenuitem.js
          fckpanel.js
          fckplugin.js
          fckspecialcombo.js
          fckstyledef.js
          fckstyledef_gecko.js
          fckstyledef_ie.js
          fckstylesloader.js
          fcktoolbar.js
          fcktoolbarbreak_gecko.js
          fcktoolbarbreak_ie.js
          fcktoolbarbutton.js
          fcktoolbarbuttonui.js
          fcktoolbarfontformatcombo.js
          fcktoolbarfontscombo.js
          fcktoolbarfontsizecombo.js
          fcktoolbarpanelbutton.js
          fcktoolbarspecialcombo.js
          fcktoolbarstylecombo.js
          fckw3crange.js
          fckxml_gecko.js
          fckxml_ie.js
        commandclasses/
          fck_othercommands.js
          fckfitwindow.js
          fcknamedcommand.js
          fckpasteplaintextcommand.js
          fckpastewordcommand.js
          fckspellcheckcommand_gecko.js
          fckspellcheckcommand_ie.js
          fckstylecommand.js
        internals/
        fckconstants.js
        fckeditorapi.js
        fckjscoreextensions.js
        fckscriptloader.js
      css/
      dialog/
      filemanager/
      images/
      js/
      lang/
      plugins/
      skins/
      _packager.xml
      fckblank.html
      fckdebug.html
      fckdialog.html
      fckdocument.html
      fckeditor.html
      fckeditor.original.html
    _documentation.html
    _upgrade.html
    _whatsnew.html
    fckconfig.js
    fckeditor.afp
    fckeditor.asp
    fckeditor.cfc
    fckeditor.cfm
    fckeditor.js
    fckeditor.lasso
    fckeditor.php
    fckeditor.pl
    fckeditor.py
    fckeditor_php4.php
    fckeditor_php5.php
    fckstyles.xml
    fcktemplates.xml
    go_fckconfig.js
    htaccess.txt
    license.txt
  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