Code Search for Developers
 
 
  

select_plugin.php from Group-Office groupware at Krugle


Show select_plugin.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();

//authenticate the user
$GO_SECURITY->authenticate();

//see if the user has access to this module
//for this to work there must be a module named 'example'
$GO_MODULES->authenticate('cms');

//get the language file
require_once ($GO_LANGUAGE->get_language_file('cms'));

	

require_once ($GO_MODULES->class_path.'cms.class.inc');
$cms = new cms();




require_once ($GO_THEME->theme_path."header.inc");

$form = new form('select_plugin_form');

$tabstrip = new tabstrip('select_plugin_tabstrip', $cms_insert_plugin);
$tabstrip->set_attribute('style','width:100%');

$plugins = $cms->get_plugins();
foreach($plugins as $plugin)
{
	$plugin_class = 'cms_'.$plugin;
	require_once($GO_MODULES->path.'plugins/'.$plugin.'.class.inc');
	
	if(file_exists($GO_MODULES->path.'plugins/dialog/'.$plugin.'.php'))
	{
		@$plugin_obj=new $plugin_class();
		if($plugin_obj->has_permission())
		{
			$link = new hyperlink('plugins/dialog/'.$plugin.'.php' ,$plugin_obj->get_name());
			$link->set_attribute('class','selectableItem');
			$tabstrip->add_html_element($link);
		}
	}
}

$form->add_html_element($tabstrip);

echo $form->get_html();
?>
<script type="text/javascript" language="javascript">

function _insertHyperlink(url, name)
{
  window.opener.SetUrl(url, "", "", name);
  window.close();
}

document.onblur = function() {
  setTimeout('self.focus()',100);
}

</script>
<?php
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

  classes/
    cms.class.inc
    cms_site.class.inc
  components/
    contactform-big.php
    contactform-formal.php
    contactform-simple.php
    register.php
    select.php
  flags/
    de.gif
    dk.gif
    en.gif
    es.gif
    fr.gif
    it.gif
    nl.gif
    no.gif
    pt.gif
    se.gif
  language/
    bg.inc
    ca.inc
    da.inc
    de.inc
    en.inc
    es.inc
    fi.inc
    fr.inc
    hu.inc
    it.inc
    ja.inc
    nl.inc
    no.inc
    pt-br.inc
    pt.inc
    ru.inc
    sl.inc
    sv.inc
    th.inc
    tr.inc
    zh-tw.inc
    zh_TW_big5.inc
  plugins/
    dialog/
      comments.php
      contact.php
      gallery.php
      search.php
      users.php
    account.class.inc
    comments.class.inc
    contact.class.inc
    gallery.class.inc
    search.class.inc
    userfield.class.inc
    users.class.inc
  sql/
    12.inc
    13.inc
    16.inc
    17.inc
    cms.install.sql
    cms.uninstall.sql
    cms.updates.inc
    convert_utf8.php
  themes/
    Default/
      images/
        move_top.png
        move_up.png
      images.inc
  add_file.inc
  add_folder.inc
  add_site.php
  browse.php
  download.php
  edit.php
  fckconfig.js
  fckstyles.php
  files.inc
  index.php
  index.php.move
  insert_link.php
  listview.inc
  module.info
  select.php
  select_file.php
  select_plugin.php
  site.php
  stylesheet.php
  template.inc
  template.php
  template_file.php
  template_item.php
  templates.php
  treeview.inc
  view.inc
  view.php