PHP Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: AnySoft Informatica
* Marcelo Leite (aka Mr. Milk)
* 2005-10-01 mrmilk@anysoft.com.br
*
* The Updated Code is: Kenneth Brill
* 2006-02-04 ken.brill@gmail.com
*
* The Updated Code is: Phillip Cole
* 2006-02-05 filcole@gmail.com
* Added en_gb & ge_at language file.
* Added en_gb, fr_FR, ge_at to manifest
*
* 2006-02-05 filcole@gmail.com
* Added fi_fi language file contributed by Markku Suominen
* 2006-03-02 filcole@gmail.com
* fr_fr needs to be fr_FR to fit in with French lang pack
* 2006-03-02 filcole@gmail.com
* Incorporated updated fr_FR translation by pierreavista
* Made compatible with PRO and ENT editions of SugarCRM
* 2006-05-30 filcole@gmail.com
* Incorporated updated es_es translation by Jose Maldonado
* josemaldonado@palmtree.cc
* Made compatible with sugar 4.2.0d
*
* Made Compatible with 4.2.1 and 4.5
*
* The Initial Developer of the Original Code is AnySoft Informatica Ltda.
* Portions created by AnySoft are Copyright (C) 2005 AnySoft Informatica Ltda
*
* Nearly a complete rewrite by Ken Brill (c)2006 SugarCubed
* Portions created by Ken Brill are Copyright (C) 2006 Kenneth Brill, SugarCubed
*
* All Rights Reserved.
********************************************************************************/
$manifest = array(
'acceptable_sugar_versions' => array (
'regex_matches' => array (
0 => "4\.2\.1.*",
1 => "4\.5\.0.*",
2 => "4\.5\.1.*",
3 => "5\.0\.0.*",
),
),
'acceptable_sugar_flavors' => array (
0 => 'OS',
1 => 'PRO',
2 => 'ENT',
3 => 'CE',
),
'name' => "Whos Online",
'description' => "Whos Online Admin Panel",
'author' => 'Kenneth Brill & Contributors',
'published_date' => '02/18/08',
'version' => '5.0.0b',
'type' => 'module',
'icon' => 'include/images/CRMUpgrades.gif',
'is_uninstallable' => true,
);
$installdefs = array(
'id'=> 'WhosOline',
'image_dir'=>'<basepath>/include/images',
'copy' => array(
array('from'=> '<basepath>/newfiles/modules/Administration/WhosOnline.php',
'to'=> 'modules/Administration/WhosOnline.php',
),
array('from'=> '<basepath>/include/images/CRMUpgrades.gif',
'to'=> 'include/images/CRMUpgrades.gif',
),
array('from'=> '<basepath>/include/images/WhosOnline.gif',
'to'=> 'themes/default/images/WhosOnline.gif',
),
),
'language'=> array(
array('from'=> '<basepath>/language/Administration/mod_strings_en_us.php',
'to_module'=> 'Administration',
'language'=>'en_us'
),
array('from'=> '<basepath>/language/Administration/mod_strings_es_es.php',
'to_module'=> 'Administration',
'language'=>'es_es'
),
array('from'=> '<basepath>/language/Administration/mod_strings_fr_FR.php',
'to_module'=> 'Administration',
'language'=>'fr_FR'
),
array('from'=> '<basepath>/language/Administration/mod_strings_ge_at.php',
'to_module'=> 'Administration',
'language'=>'ge_at'
),
),
'custom_fields'=>array(
array(
'name' => 'user_laston',
'label' => 'User Last On:',
'type' => 'text',
'max_size' => 254,
'require_option' => 'optional',
'default_value' => '',
'ext1' => '',
'ext2' => '',
'ext3' => '',
'audited' => 0,
'module' => 'Users',
),
array(
'name' => 'user_module',
'label' => 'User Module:',
'type' => 'text',
'max_size' => 254,
'require_option' => 'optional',
'default_value' => '',
'ext1' => '',
'ext2' => '',
'ext3' => '',
'audited' => 0,
'module' => 'Users',
),
array(
'name' => 'user_ip',
'label' => 'User IP:',
'type' => 'text',
'max_size' => 254,
'require_option' => 'optional',
'default_value' => '',
'ext1' => '',
'ext2' => '',
'ext3' => '',
'audited' => 0,
'module' => 'Users',
),
),
'administration'=> array(
array('from'=>'<basepath>/administration/admin_gadgets.php',
),
),
'menu'=> array(
array('from'=> '<basepath>/menus/whosonline-menu.php',
'to_module'=> 'application',
),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Accounts',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Activities',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Bugs',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Calendar',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Calls',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Cases',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Contacts',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Dashboard',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Documents',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Emails',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Home',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Meetings',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Notes',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Opportunities',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Project',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'ProjectTask',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Prospects',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Tasks',
// ),
// array('from'=> '<basepath>/menus/whosonline-menu.php',
// 'to_module'=> 'Users',
// ),
),
);
?>
(just remove everything and place this as the file's content)
Bookmarks