forked from extern/egroupware
changed for new standard of index.php file
This commit is contained in:
parent
172100db95
commit
1a8bab5e44
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare - eTemplates - Example App et_media *
|
||||
* http://www.phpgroupware.org *
|
||||
* Written by Ralf Becker <RalfBecker@outdoor-training.de> *
|
||||
* -------------------------------------------- *
|
||||
* 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. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$GLOBALS['phpgw_info']['flags'] = array(
|
||||
'currentapp' => 'et_media',
|
||||
'noheader' => True,
|
||||
@ -6,8 +19,5 @@
|
||||
);
|
||||
include('../header.inc.php');
|
||||
|
||||
$et_media = CreateObject('et_media.et_media');
|
||||
|
||||
$et_media->edit();
|
||||
|
||||
$GLOBALS['phpgw']->common->phpgw_footer();
|
||||
header('Location: '.$GLOBALS['phpgw']->link('/index.php','menuaction=et_media.et_media.edit'));
|
||||
$GLOBALS['phpgw']->common->phpgw_exit();
|
||||
|
@ -143,11 +143,8 @@ Create the file <b>/et_media/index.php</b> with the following content:</p>
|
||||
);
|
||||
include('../header.inc.php');
|
||||
|
||||
$et_media = CreateObject('et_media.et_media');
|
||||
|
||||
$et_media->edit();
|
||||
|
||||
$GLOBALS['phpgw']->common->phpgw_footer();
|
||||
header('Location: '.$GLOBALS['phpgw']->link('/index.php','menuaction=et_media.et_media.edit'));
|
||||
$GLOBALS['phpgw']->common->phpgw_exit();
|
||||
</pre>
|
||||
|
||||
<h2>7. the code of class.et_media.inc.php</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user