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');
$GLOBALS['phpgw']->common->phpgw_footer();
?>

View File

@ -381,5 +381,4 @@
$GLOBALS['phpgw']->template->set_var('hiddenvars',$hiddenvars);
$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.
From preferences, you can grant access to users to the be able to view,
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
asetuksen. Osoitekirjan asetuksista voit antaa muille käyttäjille
oikeuden selata, muokata tai jopa poistaa tallentamiasi tietoja.<p/>
<?php $phpgw->common->phpgw_footer(); ?>

View File

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

View File

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

View File

@ -100,7 +100,6 @@
$GLOBALS['phpgw']->common->phpgw_header();
echo "<pre>$buffer</pre>";
echo '<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.index') . '">'.lang('OK').'</a>';
$GLOBALS['phpgw']->common->phpgw_footer();
}
}
else
@ -108,9 +107,7 @@
$GLOBALS['phpgw']->common->phpgw_header();
echo "<pre>$buffer</pre>";
echo '<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.index'). '">'.lang('OK').'</a>';
$GLOBALS['phpgw']->common->phpgw_footer();
}
}
else
{
@ -183,7 +180,6 @@
$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 '&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();
}
@ -203,7 +199,6 @@
echo $buffer;
echo "\n</pre>\n";
echo '<a href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiXport.export') . '">' . lang('OK') . '</a>';
$GLOBALS['phpgw']->common->phpgw_footer();
}
}
else

View File

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

View File

@ -23,5 +23,4 @@
$obj = CreateObject('addressbook.uiaddressbook');
$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/>
Create, edit and delete groups.<p/>
</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/>
At present phpinfo of the server that is running.</li><p/>
</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/>
At present phpinfo of the server that is running.</li><p/>
</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>
<br>LoginId, IP, Login Time, Logout Time, Total time spent.
</ul>
<?php $phpgw->common->phpgw_footer(); ?>

View File

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

View File

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

View File

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

View File

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

View File

@ -30,4 +30,3 @@
<i>ユーザグループ:</i><br/>
ユーザが所属するグループを追加、訂正削除することができます。<p/>
</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/>
サーバで動作している PHP の情報を、phpinfo() で表示します。</li><p/>
</ul></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

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

View File

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

View File

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

View File

@ -89,6 +89,4 @@
$GLOBALS['phpgw']->hooks->process('admin');
$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 $phpgw_info["apps"][$key]["title"]."</A><BR>";
}
$phpgw->common->phpgw_footer();
?>

View File

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

View File

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

View File

@ -28,6 +28,4 @@
print "<br>the same as ascii<br>";
print $button->createInputButton("Lars is the best ;)",'submit','ascii');
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/>
<b>Note:</b> Access can be set as with other applications in this suite, Private,Group Readable,Globally
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.
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>
<?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.
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>
<?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/>
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>
<?php $phpgw->common->phpgw_footer(); ?>

View File

@ -46,4 +46,3 @@ T
<b>Huomaa:</b>
Kuten muidenkin sovellusten kohdalla, voit antaa tiedon
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.
Valitse muokkaa tai poista sivun alareunasta.<br/>
<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.
Valitse muokkaa tai poista sivun alareunasta.</li><p/>
<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/>
Valittu kuukausi sekä edellinen ja seuraava kuukausi mini-kalentereina.
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>
などの項目を入力し、実行ボタンをクリックします。<br/>
<b>備考:</b> 他のアプリケーションで備えているアクセス権(プライベート、グループ、グローバル)も、このアプリケーションで備えています。</li></ul><p/></font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

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

View File

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

View File

@ -30,4 +30,3 @@
月単位で予定を表示します。月の表示はデフォルト設定となっています。先月や翌月にワンクリックでアクセスすることができます。<br/>
<i>今年:</i><br/>
年単位で予定を表示します。小さい月単位のカレンダーを一年分表示します。<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/>
Transformed by <a href="<?php echo $phpgw->link('/email/compose.php','to=skeeter@phpgroupware.org'); ?>" target="_new">Mark A Peters (Skeeter)</a><br/>
</font>
<?php $phpgw->common->phpgw_footer(); ?>

View File

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

View File

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

View File

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

View File

@ -106,6 +106,4 @@
$_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()
{
global $HTMLCOMPLIANT;
if(!defined('PHPGW_FOOTER_RAN'))
{
define('PHPGW_FOOTER_RAN',True);
@ -1522,22 +1521,6 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
$GLOBALS['phpgw']->db->disconnect();
$this->phpgw_header();
$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 */

View File

@ -1,4 +1,17 @@
<?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');
class xslttemplates

View File

@ -528,21 +528,27 @@
/* error_reporting(0); */
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]) ||
!$GLOBALS['phpgw_info']['flags']['included_classes'][$classname])
if (!isset($included_files[$filename]))
{
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');
$GLOBALS['phpgw_info']['flags']['included_classes'][$classname] = True;
include_once($filename);
$is_included = True;
}
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)
{

View File

@ -268,6 +268,12 @@
define('PHPGW_ACL_PRIVATE',16);
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 *
\****************************************************************************/
@ -476,7 +482,7 @@
}
if(PHPGW_USE_FRAMES)
{
$GLOBALS['phpgw']->common->phpgw_footer();
exit;
}
}
/*************************************************************************\
@ -498,7 +504,7 @@
}
if(PHPGW_USE_FRAMES)
{
$GLOBALS['phpgw']->common->phpgw_footer();
exit;
}
}
/*************************************************************************\
@ -520,7 +526,7 @@
}
if(PHPGW_USE_FRAMES)
{
$GLOBALS['phpgw']->common->phpgw_footer();
exit;
}
}
/*************************************************************************\
@ -542,7 +548,7 @@
}
if(PHPGW_USE_FRAMES)
{
$GLOBALS['phpgw']->common->phpgw_footer();
exit;
}
}
@ -571,7 +577,6 @@
$GLOBALS['phpgw_info']['flags']['msgbox_data']['Access not permitted']=False;
$continue_app_data = False;
$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);
}
}
@ -583,6 +588,11 @@
$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 */
/* Maybe we should create a common function in the phpgw_accounts_shared.inc.php file */
/* to get rid of duplicate code. */

View File

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

View File

@ -105,6 +105,3 @@
</table>
</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/>
<li><b>Monitor Newsgroups:</b><br/>
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/>
Easily choose which news groups you want to set for reading.</li></ul>
</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
let them know if you want some that are not there ;)
</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">
Version: <b><?php echo $setup_info[$appname]['version']; ?></b><p/>
</font>
<?php $GLOBALS['phpgw']->common->phpgw_footer(); ?>

View File

@ -68,7 +68,6 @@
elseif(@isset($save_my_owner))
{
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'));
$pref_tpl->pfp('out','list');
$GLOBALS['phpgw']->common->phpgw_footer();
?>

View File

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

View File

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