$_POST['filename'] = $mod['filename']; hidden('selected_id', $selected_id); hidden('filename', $_POST['filename']); } tab_list_row(tr("Menu Tab"), 'tab', null); text_row_ex(tr("Name"), 'name', 30); text_row_ex(tr("Folder"), 'path', 20); label_row(tr("Module File"), "<input name='uploadfile' type='file'>"); label_row(tr("SQL File"), "<input name='uploadfile2' type='file'>"); end_table(0); display_note(tr("Select your module PHP file from your local harddisk."), 0, 1); echo "<center><input onclick='javascript:updateModule()' type='button' style='width:150' value='" . tr("Save") . "'>"; end_form(); } //--------------------------------------------------------------------------------------------- if (isset($_GET['c'])) { if ($_GET['c'] == 'df') { handle_delete(); } if ($_GET['c'] == 'u') { if (handle_submit()) { //meta_forward($_SERVER['PHP_SELF']); } } } //--------------------------------------------------------------------------------------------- display_modules(); hyperlink_no_params($_SERVER['PHP_SELF'], tr("Create a new module")); display_module_edit($selected_id); //--------------------------------------------------------------------------------------------- end_page();
<?php require_once 'check-cas-connection.php'; require_once "class/connection.php"; require_once "includes/functions.php"; //phpCAS::getUser(); //USER $my_modules = get_user_modules(phpCAS::getUser()); $every_modules = get_modules(); $modules = mix_modules($my_modules, $every_modules); display_modules($modules); function display_modules($modules) { ?> <br> <br> <br> <div class="container"> <table class="table table-striped"> <thead> <tr> <th></th> </tr> </thead> <tbody> <tr> <?php $n = count($modules); $i = 0; while ($i < $n) { write_module($modules[$i]);
/////////////////////////////////////////////////////////////////////////////// // OBM - File : calendar_index.php // // - Desc : Calendar Index File // // 2002-11-26 - Mehdi Rande // /////////////////////////////////////////////////////////////////////////////// // $Id: calendar_index.php 6282 2010-04-14 09:19:47Z david $ // /////////////////////////////////////////////////////////////////////////////// // Actions : // gw_links // sections_html /////////////////////////////////////////////////////////////////////////////// $path = '..'; $module = 'sections'; $obminclude = getenv('OBM_INCLUDE_VAR'); if ($obminclude == '') $obminclude = 'obminclude'; require("$obminclude/global.inc"); $params = get_global_params('Entity'); page_open(array('sess' => 'OBM_No_Session', 'auth' => 'OBM_No_Auth', 'perm' => 'OBM_Perm')); require("$obminclude/global_pref.inc"); $module = ($_GET['module'])?$_GET['module']:'webmail'; $section = $cgp_show['module'][$module]; echo "<style type='text/css' src='$GLOBALS[css_obm]'></style>"; if ($_GET["action"] == 'gw_links') { echo display_modules($section, $module); } else if ($_GET["action"] == 'sections_html') { echo display_sections($section); } ?>