Switched to using the register_exit_function() and added scrolling divs to a couple places for examples

This commit is contained in:
seek3r 2002-09-28 15:20:20 +00:00
parent 36c3370f35
commit 8abf9fa1a5
58 changed files with 45 additions and 104 deletions

View File

@ -53,5 +53,4 @@
} }
$tpl->pparse('out','phpgw_about'); $tpl->pparse('out','phpgw_about');
$GLOBALS['phpgw']->common->phpgw_footer();
?> ?>

View File

@ -381,5 +381,4 @@
$GLOBALS['phpgw']->template->set_var('hiddenvars',$hiddenvars); $GLOBALS['phpgw']->template->set_var('hiddenvars',$hiddenvars);
$GLOBALS['phpgw']->template->fp('phpgw_body','import'); $GLOBALS['phpgw']->template->fp('phpgw_body','import');
$GLOBALS['phpgw']->common->phpgw_footer();
?> ?>

View File

@ -52,5 +52,3 @@ Simply fill in the fields, and click OK.</li><p/></ul>
Access can be restricted to private, overriding acl preferences settings. Access can be restricted to private, overriding acl preferences settings.
From preferences, you can grant access to users to the be able to view, From preferences, you can grant access to users to the be able to view,
edit, and even delete your entries.<p/> edit, and even delete your entries.<p/>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -51,4 +51,3 @@ T
Tiedon käyttöoikeus voidaan rajoittaa yksityiseksi, mikä ohittaa ACL:n Tiedon käyttöoikeus voidaan rajoittaa yksityiseksi, mikä ohittaa ACL:n
asetuksen. Osoitekirjan asetuksista voit antaa muille käyttäjille asetuksen. Osoitekirjan asetuksista voit antaa muille käyttäjille
oikeuden selata, muokata tai jopa poistaa tallentamiasi tietoja.<p/> oikeuden selata, muokata tai jopa poistaa tallentamiasi tietoja.<p/>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -51,5 +51,3 @@ FAX:<br/>
プライベートデータにアクセスするには、利用許可(ユーザ設定)を設定する必要があります。 プライベートデータにアクセスするには、利用許可(ユーザ設定)を設定する必要があります。
ユーザ設定ではあなたが作成したアドレス帳を他のユーザが、表示・訂正・削除することができるアクセス権を設定することができます。 ユーザ設定ではあなたが作成したアドレス帳を他のユーザが、表示・訂正・削除することができるアクセス権を設定することができます。
<p/> <p/>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -23,4 +23,3 @@
<font face="<?php echo $phpgw_info['theme']['font']; ?>" size="2"> <font face="<?php echo $phpgw_info['theme']['font']; ?>" size="2">
Version: <b><?php echo $setup_info[$appname]['version']; ?></b> Version: <b><?php echo $setup_info[$appname]['version']; ?></b>
</font> </font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -100,7 +100,6 @@
$GLOBALS['phpgw']->common->phpgw_header(); $GLOBALS['phpgw']->common->phpgw_header();
echo "<pre>$buffer</pre>"; echo "<pre>$buffer</pre>";
echo '<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.index') . '">'.lang('OK').'</a>'; echo '<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.index') . '">'.lang('OK').'</a>';
$GLOBALS['phpgw']->common->phpgw_footer();
} }
} }
else else
@ -108,9 +107,7 @@
$GLOBALS['phpgw']->common->phpgw_header(); $GLOBALS['phpgw']->common->phpgw_header();
echo "<pre>$buffer</pre>"; echo "<pre>$buffer</pre>";
echo '<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.index'). '">'.lang('OK').'</a>'; echo '<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.index'). '">'.lang('OK').'</a>';
$GLOBALS['phpgw']->common->phpgw_footer();
} }
} }
else else
{ {
@ -183,7 +180,6 @@
$GLOBALS['phpgw']->common->phpgw_header(); $GLOBALS['phpgw']->common->phpgw_header();
echo lang('<b>No conversion type &lt;none&gt; could be located.</b> Please choose a conversion type from the list'); echo lang('<b>No conversion type &lt;none&gt; could be located.</b> Please choose a conversion type from the list');
echo '&nbsp<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiXport.export') . '">' . lang('OK') . '</a>'; echo '&nbsp<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiXport.export') . '">' . lang('OK') . '</a>';
$GLOBALS['phpgw']->common->phpgw_footer();
$GLOBALS['phpgw']->common->phpgw_exit(); $GLOBALS['phpgw']->common->phpgw_exit();
} }
@ -203,7 +199,6 @@
echo $buffer; echo $buffer;
echo "\n</pre>\n"; echo "\n</pre>\n";
echo '<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiXport.export') . '">' . lang('OK') . '</a>'; echo '<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiXport.export') . '">' . lang('OK') . '</a>';
$GLOBALS['phpgw']->common->phpgw_footer();
} }
} }
else else

View File

@ -64,8 +64,6 @@
$this->template->set_var('group_option',$group_option); $this->template->set_var('group_option',$group_option);
$this->template->pparse('out','vcardin'); $this->template->pparse('out','vcardin');
$GLOBALS['phpgw']->common->phpgw_footer();
} }
function out() function out()
@ -189,11 +187,6 @@
echo '<a href="' . $GLOBALS['phpgw']->link('/addressbook/index.php') . '">' . lang('OK') . '</a>'; echo '<a href="' . $GLOBALS['phpgw']->link('/addressbook/index.php') . '">' . lang('OK') . '</a>';
echo '</center>'; echo '</center>';
} }
if($nolname || $nofname)
{
$GLOBALS['phpgw']->common->phpgw_footer();
}
} }
} }
?> ?>

View File

@ -23,5 +23,4 @@
$obj = CreateObject('addressbook.uiaddressbook'); $obj = CreateObject('addressbook.uiaddressbook');
$obj->index(); $obj->index();
$GLOBALS['phpgw']->common->phpgw_footer();
?> ?>

View File

@ -30,4 +30,3 @@ Create, edit and delete users accounts. Set membership of groups, and access to
<i>User groups:</i><br/> <i>User groups:</i><br/>
Create, edit and delete groups.<p/> Create, edit and delete groups.<p/>
</ul></font> </ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -46,4 +46,3 @@ Manual update for news groups.</li><p/>
<li><b>Server information:</b><br/> <li><b>Server information:</b><br/>
At present phpinfo of the server that is running.</li><p/> At present phpinfo of the server that is running.</li><p/>
</ul></font> </ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -29,4 +29,3 @@ Manual update for news groups.</li><p/>
<li><b>Server information:</b><br/> <li><b>Server information:</b><br/>
At present phpinfo of the server that is running.</li><p/> At present phpinfo of the server that is running.</li><p/>
</ul></font> </ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -32,4 +32,3 @@ Administration of all applications, user and group accounts, session logging and
<p><i>View Access Log:</i> <p><i>View Access Log:</i>
<br>LoginId, IP, Login Time, Logout Time, Total time spent. <br>LoginId, IP, Login Time, Logout Time, Total time spent.
</ul> </ul>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -32,4 +32,3 @@ ryhm
<i>Käyttäjäryhmät:</i><br/> <i>Käyttäjäryhmät:</i><br/>
Toiminnolla voit lisätä, muuttaa ja poistaa käyttäjäryhmiä.<p/> Toiminnolla voit lisätä, muuttaa ja poistaa käyttäjäryhmiä.<p/>
</ul></font> </ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -50,4 +50,3 @@ Uutisryhmien p
<li><b>Palvelimen tiedot:</b><br/> <li><b>Palvelimen tiedot:</b><br/>
Tällä hetkellä palvelimen phpinfo.</li><p/> Tällä hetkellä palvelimen phpinfo.</li><p/>
</ul></font> </ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -30,4 +30,3 @@ Uutisryhmien p
<li><b>Palvelimen tiedot:</b><br/> <li><b>Palvelimen tiedot:</b><br/>
Tällä hetkellä palvelimen phpinfo.</li><p/> Tällä hetkellä palvelimen phpinfo.</li><p/>
</ul></font> </ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -34,4 +34,3 @@ on ollut tekem
<p><i>Näytä käyttöloki:</i> <p><i>Näytä käyttöloki:</i>
<br>Tunnus, IP-osoite, Sisäänkirjautumisaika, Uloskirjautumisaika, Istunnon kesto. <br>Tunnus, IP-osoite, Sisäänkirjautumisaika, Uloskirjautumisaika, Istunnon kesto.
</ul> </ul>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -30,4 +30,3 @@
<i>ユーザグループ:</i><br/> <i>ユーザグループ:</i><br/>
ユーザが所属するグループを追加、訂正削除することができます。<p/> ユーザが所属するグループを追加、訂正削除することができます。<p/>
</ul></font> </ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -51,4 +51,3 @@ you a checking page to be sure you do want to delete.<br/>
<li><b>サーバ情報:</b><br/> <li><b>サーバ情報:</b><br/>
サーバで動作している PHP の情報を、phpinfo() で表示します。</li><p/> サーバで動作している PHP の情報を、phpinfo() で表示します。</li><p/>
</ul></font> </ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -29,4 +29,3 @@
<li><b>サーバ情報:</b><br/> <li><b>サーバ情報:</b><br/>
サーバで動作している PHP の情報を、phpinfo() で表示します。</li><p/> サーバで動作している PHP の情報を、phpinfo() で表示します。</li><p/>
</ul></font> </ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -32,4 +32,3 @@
<p><i>アクセスログ参照:</i> <p><i>アクセスログ参照:</i>
<br>phpGroupWareへのアクセスログを表示します。ログインID,IPアドレス,ログイン時間,ログアウト時間,利用時間を表示します。 <br>phpGroupWareへのアクセスログを表示します。ログインID,IPアドレス,ログイン時間,ログアウト時間,利用時間を表示します。
</ul> </ul>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -24,4 +24,3 @@
<font face="<?php echo $phpgw_info['theme']['font']; ?>" size="2"> <font face="<?php echo $phpgw_info['theme']['font']; ?>" size="2">
Version: <b><?php echo $setup_info[$appname]['version']; ?></b> Version: <b><?php echo $setup_info[$appname]['version']; ?></b>
</font> </font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -89,6 +89,4 @@
$GLOBALS['phpgw']->hooks->process('admin'); $GLOBALS['phpgw']->hooks->process('admin');
$GLOBALS['admin_tpl']->pparse('out','list'); $GLOBALS['admin_tpl']->pparse('out','list');
$GLOBALS['phpgw']->common->phpgw_footer();
?> ?>

View File

@ -27,6 +27,4 @@ The instructions are as follows:
echo "\n<A HREF=\"".$phpgw->link("/admin/navbar-sel.php","filename=".$phpgw_info["server"]["server_root"]."/".$key."/images/navbar.gif")."\">"; echo "\n<A HREF=\"".$phpgw->link("/admin/navbar-sel.php","filename=".$phpgw_info["server"]["server_root"]."/".$key."/images/navbar.gif")."\">";
echo $phpgw_info["apps"][$key]["title"]."</A><BR>"; echo $phpgw_info["apps"][$key]["title"]."</A><BR>";
} }
$phpgw->common->phpgw_footer();
?> ?>

View File

@ -26,6 +26,4 @@
} }
phpinfo(); phpinfo();
// $phpgw->common->phpgw_footer();
?> ?>

View File

@ -19,10 +19,11 @@
} }
} }
</SCRIPT> </SCRIPT>
<div style="width: 100%; height: 100%; overflow: auto;">
<table width="75%" border="0" cellspacing="0" cellpadding="0"> <table width="75%" border="0" cellspacing="0" cellpadding="0">
{rows} {rows}
</table> </table>
</div>
<!-- END list --> <!-- END list -->
<!-- BEGIN app_row --> <!-- BEGIN app_row -->

View File

@ -28,6 +28,4 @@
print "<br>the same as ascii<br>"; print "<br>the same as ascii<br>";
print $button->createInputButton("Lars is the best ;)",'submit','ascii'); print $button->createInputButton("Lars is the best ;)",'submit','ascii');
print "</form>"; print "</form>";
$phpgw->common->phpgw_footer();
?> ?>

View File

@ -43,4 +43,3 @@ Frequency:</td></table>
Simply fill in the fields, and click Submit.</ul><br/> Simply fill in the fields, and click Submit.</ul><br/>
<b>Note:</b> Access can be set as with other applications in this suite, Private,Group Readable,Globally <b>Note:</b> Access can be set as with other applications in this suite, Private,Group Readable,Globally
Readable.<p/></font> Readable.<p/></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -61,4 +61,3 @@ To edit an entry group click on the small icon as shown above.
A form page will be presented, where you can edit the relevant fields. A form page will be presented, where you can edit the relevant fields.
Chose edit or delete from the bottom of the page.<br/> Chose edit or delete from the bottom of the page.<br/>
<b>Note:</b>You can only make changes or delete those calendar entries created by you.</li><p/></ul></font> <b>Note:</b>You can only make changes or delete those calendar entries created by you.</li><p/></ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -25,4 +25,3 @@ To edit an entry group click on the small icon as shown above.
A form page will be presented, where you can edit the relevant fields. A form page will be presented, where you can edit the relevant fields.
Chose edit or delete from the bottom of the page.</li><p/> Chose edit or delete from the bottom of the page.</li><p/>
<b>Note:</b>You can only make changes or delete those calendar entries created by you.<p/></ul></font> <b>Note:</b>You can only make changes or delete those calendar entries created by you.<p/></ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -31,4 +31,3 @@ Current week is displayed. Start day of week can be set in preferences.<p/>
<i>Month:</i><br/> <i>Month:</i><br/>
Default entry is to the current month, viewed in monthly option, with both prior and future Default entry is to the current month, viewed in monthly option, with both prior and future
months easily accessible with one click.<p/></li></ul></font> months easily accessible with one click.<p/></li></ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -46,4 +46,3 @@ T
<b>Huomaa:</b> <b>Huomaa:</b>
Kuten muidenkin sovellusten kohdalla, voit antaa tiedon Kuten muidenkin sovellusten kohdalla, voit antaa tiedon
käyttöoikeudeksi Yksityinen, Oma ryhmä tai Kaikki.<p/></font> käyttöoikeudeksi Yksityinen, Oma ryhmä tai Kaikki.<p/></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -66,4 +66,3 @@ Muokataksesi tapahtumaa napsauta t
Näytölle avautuu muokkauslomake. Näytölle avautuu muokkauslomake.
Valitse muokkaa tai poista sivun alareunasta.<br/> Valitse muokkaa tai poista sivun alareunasta.<br/>
<b>Huomaa:</b>Voit muokata ja poistaa vain itse luomiasi tapahtumia.</li><p/></ul></font> <b>Huomaa:</b>Voit muokata ja poistaa vain itse luomiasi tapahtumia.</li><p/></ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -26,4 +26,3 @@ Muokataksesi tapahtumaa napsauta t
Näytölle avautuu muokkauslomake. Näytölle avautuu muokkauslomake.
Valitse muokkaa tai poista sivun alareunasta.</li><p/> Valitse muokkaa tai poista sivun alareunasta.</li><p/>
<b>Huomaa:</b>Voit muokata ja poistaa vain itse luomiasi tapahtumia.<p/></ul></font> <b>Huomaa:</b>Voit muokata ja poistaa vain itse luomiasi tapahtumia.<p/></ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -34,4 +34,3 @@ asetuksista.<br/>
<i>Kuukausi:</i><br/> <i>Kuukausi:</i><br/>
Valittu kuukausi sekä edellinen ja seuraava kuukausi mini-kalentereina. Valittu kuukausi sekä edellinen ja seuraava kuukausi mini-kalentereina.
Voit siirtyä päivänäkymään haluamaasi päivää napsauttamalla.<p/></li></ul></font> Voit siirtyä päivänäkymään haluamaasi päivää napsauttamalla.<p/></li></ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -42,4 +42,3 @@
頻度:</td></table> 頻度:</td></table>
などの項目を入力し、実行ボタンをクリックします。<br/> などの項目を入力し、実行ボタンをクリックします。<br/>
<b>備考:</b> 他のアプリケーションで備えているアクセス権(プライベート、グループ、グローバル)も、このアプリケーションで備えています。</li></ul><p/></font> <b>備考:</b> 他のアプリケーションで備えているアクセス権(プライベート、グループ、グローバル)も、このアプリケーションで備えています。</li></ul><p/></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -57,4 +57,3 @@
予定を訂正するために、このアイコンをクリックします。 予定を訂正するために、このアイコンをクリックします。
訂正する予定が表示され、訂正か削除を選択するボタンが表示されます。<br/> 訂正する予定が表示され、訂正か削除を選択するボタンが表示されます。<br/>
<b>備考:</b>訂正や削除は、自分で作成したものに限ります。</li><p/></ul></font> <b>備考:</b>訂正や削除は、自分で作成したものに限ります。</li><p/></ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -24,4 +24,3 @@
予定を訂正するために、このアイコンをクリックします。 予定を訂正するために、このアイコンをクリックします。
訂正する予定が表示され、訂正か削除を選択するボタンが表示されます。<br/> 訂正する予定が表示され、訂正か削除を選択するボタンが表示されます。<br/>
<b>備考:</b>訂正や削除は、自分で作成したものに限ります。</li><p/></ul></font> <b>備考:</b>訂正や削除は、自分で作成したものに限ります。</li><p/></ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -30,4 +30,3 @@
月単位で予定を表示します。月の表示はデフォルト設定となっています。先月や翌月にワンクリックでアクセスすることができます。<br/> 月単位で予定を表示します。月の表示はデフォルト設定となっています。先月や翌月にワンクリックでアクセスすることができます。<br/>
<i>今年:</i><br/> <i>今年:</i><br/>
年単位で予定を表示します。小さい月単位のカレンダーを一年分表示します。<p/></li></ul></font> 年単位で予定を表示します。小さい月単位のカレンダーを一年分表示します。<p/></li></ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -25,4 +25,3 @@ Version: <b><?php echo $setup_info[$appname]['version']; ?></b><p/>
This app was based on <a href="http://webcalendar.sourceforge.net" target="_new">WebCalendar</a><br/><p/> This app was based on <a href="http://webcalendar.sourceforge.net" target="_new">WebCalendar</a><br/><p/>
Transformed by <a href="<?php echo $phpgw->link('/email/compose.php','to=skeeter@phpgroupware.org'); ?>" target="_new">Mark A Peters (Skeeter)</a><br/> Transformed by <a href="<?php echo $phpgw->link('/email/compose.php','to=skeeter@phpgroupware.org'); ?>" target="_new">Mark A Peters (Skeeter)</a><br/>
</font> </font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -234,5 +234,4 @@
display_item(lang('Print calendars in black & white'),$str); display_item(lang('Print calendars in black & white'),$str);
$p->pparse('out','pref'); $p->pparse('out','pref');
$phpgw->common->phpgw_footer();
?> ?>

View File

@ -20,5 +20,3 @@
include('../header.inc.php'); include('../header.inc.php');
ExecMethod('etemplate.etemplate.process_exec'); ExecMethod('etemplate.etemplate.process_exec');
$GLOBALS['phpgw']->common->phpgw_footer();

View File

@ -205,5 +205,4 @@
} }
$GLOBALS['phpgw']->preferences->save_repository(); $GLOBALS['phpgw']->preferences->save_repository();
} }
$GLOBALS['phpgw']->common->phpgw_footer();
?> ?>

View File

@ -106,6 +106,4 @@
$_obj->get_list(); $_obj->get_list();
*/ */
} }
$GLOBALS['phpgw']->common->phpgw_footer();
?> ?>

View File

@ -1506,7 +1506,6 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
function phpgw_footer() function phpgw_footer()
{ {
global $HTMLCOMPLIANT;
if(!defined('PHPGW_FOOTER_RAN')) if(!defined('PHPGW_FOOTER_RAN'))
{ {
define('PHPGW_FOOTER_RAN',True); define('PHPGW_FOOTER_RAN',True);
@ -1522,22 +1521,6 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
$GLOBALS['phpgw']->db->disconnect(); $GLOBALS['phpgw']->db->disconnect();
$this->phpgw_header(); $this->phpgw_header();
$GLOBALS['phpgw']->template->pfp('out','phpgw_main_end'); $GLOBALS['phpgw']->template->pfp('out','phpgw_main_end');
/*
$GLOBALS['phpgw']->template->p('phpgw_head');
$GLOBALS['phpgw']->template->p('phpgw_navbar_start');
$this->msgbox('',False);
$GLOBALS['phpgw']->template->fp('phpgw_msgbox');
$GLOBALS['phpgw']->template->p('phpgw_appspace');
$GLOBALS['phpgw']->template->set_root(PHPGW_TEMPLATE_DIR);
parse_navbar_end();
$GLOBALS['phpgw']->template->reset_root();
$GLOBALS['phpgw']->hooks->process('navbar_end');
$GLOBALS['phpgw']->template->p('phpgw_navbar_end');
$GLOBALS['phpgw']->template->p('phpgw_footer');
$GLOBALS['phpgw']->template->parse('phpgw_main_body','login_form');
$GLOBALS['phpgw']->template->pfp('out','phpgw_main');
*/
} }
/* Clean up mcrypt */ /* Clean up mcrypt */

View File

@ -1,4 +1,17 @@
<?php <?php
if (!extension_loaded('xslt'))
{
if (PHP_OS == 'Windows' || PHP_OS == 'OS/2')
{
dl('php_xslt.dll');
}
else
{
dl('xslt.so');
}
}
require_once('class.xmltool.inc.php'); require_once('class.xmltool.inc.php');
class xslttemplates class xslttemplates

View File

@ -528,21 +528,27 @@
/* error_reporting(0); */ /* error_reporting(0); */
list($appname,$classname) = explode('.', $class); list($appname,$classname) = explode('.', $class);
$filename = PHPGW_INCLUDE_ROOT.'/'.$appname.'/inc/class.'.$classname.'.inc.php';
$included_files = get_included_files();
if (!isset($GLOBALS['phpgw_info']['flags']['included_classes'][$classname]) || if (!isset($included_files[$filename]))
!$GLOBALS['phpgw_info']['flags']['included_classes'][$classname])
{ {
if(@file_exists(PHPGW_INCLUDE_ROOT.'/'.$appname.'/inc/class.'.$classname.'.inc.php')) if(@file_exists($filename))
{ {
include(PHPGW_INCLUDE_ROOT.'/'.$appname.'/inc/class.'.$classname.'.inc.php'); include_once($filename);
$GLOBALS['phpgw_info']['flags']['included_classes'][$classname] = True; $is_included = True;
} }
else else
{ {
$GLOBALS['phpgw_info']['flags']['included_classes'][$classname] = False; $is_included = False;
} }
} }
if($GLOBALS['phpgw_info']['flags']['included_classes'][$classname]) else
{
$is_included = True;
}
if($is_included)
{ {
if ($p1 == '_UNDEF_' && $p1 != 1) if ($p1 == '_UNDEF_' && $p1 != 1)
{ {

View File

@ -268,6 +268,12 @@
define('PHPGW_ACL_PRIVATE',16); define('PHPGW_ACL_PRIVATE',16);
define('PHPGW_ACL_GROUP_MANAGERS',32); define('PHPGW_ACL_GROUP_MANAGERS',32);
/****************************************************************************\
* Forcing the footer to run when the rest of the script is done. *
\****************************************************************************/
$footer_common = &$GLOBALS['phpgw']->common;
register_shutdown_function(array(&$footer_common, 'phpgw_footer'));
/****************************************************************************\ /****************************************************************************\
* Stuff to use if logging in or logging out * * Stuff to use if logging in or logging out *
\****************************************************************************/ \****************************************************************************/
@ -476,7 +482,7 @@
} }
if(PHPGW_USE_FRAMES) if(PHPGW_USE_FRAMES)
{ {
$GLOBALS['phpgw']->common->phpgw_footer(); exit;
} }
} }
/*************************************************************************\ /*************************************************************************\
@ -498,7 +504,7 @@
} }
if(PHPGW_USE_FRAMES) if(PHPGW_USE_FRAMES)
{ {
$GLOBALS['phpgw']->common->phpgw_footer(); exit;
} }
} }
/*************************************************************************\ /*************************************************************************\
@ -520,7 +526,7 @@
} }
if(PHPGW_USE_FRAMES) if(PHPGW_USE_FRAMES)
{ {
$GLOBALS['phpgw']->common->phpgw_footer(); exit;
} }
} }
/*************************************************************************\ /*************************************************************************\
@ -542,7 +548,7 @@
} }
if(PHPGW_USE_FRAMES) if(PHPGW_USE_FRAMES)
{ {
$GLOBALS['phpgw']->common->phpgw_footer(); exit;
} }
} }
@ -571,7 +577,6 @@
$GLOBALS['phpgw_info']['flags']['msgbox_data']['Access not permitted']=False; $GLOBALS['phpgw_info']['flags']['msgbox_data']['Access not permitted']=False;
$continue_app_data = False; $continue_app_data = False;
$GLOBALS['phpgw']->template->set_var('phpgw_body',"user has no rights to this app!!!<br>\n"); $GLOBALS['phpgw']->template->set_var('phpgw_body',"user has no rights to this app!!!<br>\n");
//$GLOBALS['phpgw']->common->phpgw_footer();
$GLOBALS['phpgw']->common->phpgw_exit(True); $GLOBALS['phpgw']->common->phpgw_exit(True);
} }
} }
@ -583,6 +588,11 @@
$GLOBALS['phpgw']->common->phpgw_header(); $GLOBALS['phpgw']->common->phpgw_header();
} }
if(!PHPGW_USE_FRAMES)
{
// echo '<div style="width: 100%; height: 100%; overflow: auto;">';
}
/* Make sure user is keeping his password in order */ /* Make sure user is keeping his password in order */
/* Maybe we should create a common function in the phpgw_accounts_shared.inc.php file */ /* Maybe we should create a common function in the phpgw_accounts_shared.inc.php file */
/* to get rid of duplicate code. */ /* to get rid of duplicate code. */

View File

@ -61,7 +61,6 @@
{ {
$GLOBALS['phpgw']->common->phpgw_header(); $GLOBALS['phpgw']->common->phpgw_header();
$GLOBALS['phpgw']->template->pfp('out','form'); $GLOBALS['phpgw']->template->pfp('out','form');
$GLOBALS['phpgw']->common->phpgw_footer();
} }
else else
{ {
@ -88,6 +87,5 @@
{ {
$GLOBALS['phpgw']->common->phpgw_header(); $GLOBALS['phpgw']->common->phpgw_header();
$GLOBALS['phpgw']->template->pfp('out','form'); $GLOBALS['phpgw']->template->pfp('out','form');
$GLOBALS['phpgw']->common->phpgw_footer();
} }
?> ?>

View File

@ -105,6 +105,3 @@
</table> </table>
</form> </form>
<?php
$GLOBALS['phpgw']->common->phpgw_footer();
?>

View File

@ -35,4 +35,3 @@ Here you can set a few details about yourself, for public viewing by the
rest of the users of the system. Title,Phone number, Comments, Picture upload.</li><p/> rest of the users of the system. Title,Phone number, Comments, Picture upload.</li><p/>
<li><b>Monitor Newsgroups:</b><br/> <li><b>Monitor Newsgroups:</b><br/>
Easily choose which news groups you want to set for reading.</li> Easily choose which news groups you want to set for reading.</li>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -67,4 +67,3 @@ of the system. Title,Phone number, Comments, Picture upload.</li><p/>
<li><b>Monitor Newsgroups:</b><br/> <li><b>Monitor Newsgroups:</b><br/>
Easily choose which news groups you want to set for reading.</li></ul> Easily choose which news groups you want to set for reading.</li></ul>
</font> </font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -55,4 +55,3 @@ Click on as many news headline news sites as you wish, these will be displayed f
when using the headlines function.The systems admin set these as default, so be sure to when using the headlines function.The systems admin set these as default, so be sure to
let them know if you want some that are not there ;) let them know if you want some that are not there ;)
</li></ul></font> </li></ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -23,4 +23,3 @@
<font face="<?php echo $GLOBALS['phpgw_info']['theme']['font']; ?>" size="2"> <font face="<?php echo $GLOBALS['phpgw_info']['theme']['font']; ?>" size="2">
Version: <b><?php echo $setup_info[$appname]['version']; ?></b><p/> Version: <b><?php echo $setup_info[$appname]['version']; ?></b><p/>
</font> </font>
<?php $GLOBALS['phpgw']->common->phpgw_footer(); ?>

View File

@ -68,7 +68,6 @@
elseif(@isset($save_my_owner)) elseif(@isset($save_my_owner))
{ {
echo '<center>'.lang('You do not have permission to set ACL\'s in this mode!').'</center>'; echo '<center>'.lang('You do not have permission to set ACL\'s in this mode!').'</center>';
$GLOBALS['phpgw']->common->phpgw_footer();
} }
*/ */

View File

@ -135,5 +135,4 @@
$GLOBALS['phpgw']->hooks->process('preferences',array('preferences')); $GLOBALS['phpgw']->hooks->process('preferences',array('preferences'));
$pref_tpl->pfp('out','list'); $pref_tpl->pfp('out','list');
$GLOBALS['phpgw']->common->phpgw_footer();
?> ?>

View File

@ -326,6 +326,4 @@
$t->pfp('out','list'); $t->pfp('out','list');
$t->pfp('out','footer'); $t->pfp('out','footer');
} }
$GLOBALS['phpgw']->common->phpgw_footer();
?> ?>

View File

@ -1,4 +1,5 @@
<!-- BEGIN list --> <!-- BEGIN list -->
<div style="width: 100%; height: 100%; overflow: auto;">
<table border="0" width="100%" cellspacing="0" cellpadding="0"> <table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr> <tr>
<td align="left">{tabs}</td> <td align="left">{tabs}</td>
@ -8,6 +9,7 @@
<table width="75%" border="0" cellspacing="0" cellpadding="0"> <table width="75%" border="0" cellspacing="0" cellpadding="0">
{rows} {rows}
</table> </table>
</div>
<!-- END list --> <!-- END list -->
<!-- BEGIN app_row --> <!-- BEGIN app_row -->