mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-18 05:53:14 +01:00
7a4a18ec0a
from this revision eTemplate requires a 1.0.1/1.2 API, the last working version for 1.0.0 has been taged "last_working_1_0_0"
46 lines
1.6 KiB
PHP
Executable File
46 lines
1.6 KiB
PHP
Executable File
#!/usr/bin/php -q
|
|
|
|
<?php
|
|
/**************************************************************************\
|
|
* eGroupWare - EditableTemplates - GTK User Interface *
|
|
* http://www.egroupware.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$ */
|
|
|
|
//echo "Hello World!!!\n";
|
|
|
|
// To be able to test eTemplates with phpGtk you need a standalone/cgi php interpreter with compiled-in phpGtk installed
|
|
// (for instruction on how to do so look at the phpGtk website http://gtk.php.net/).
|
|
|
|
// Then start this script with the parameters <login> <passwd>
|
|
|
|
global $argv;
|
|
|
|
if ($argv[1] == '' || $argv[2] == '')
|
|
{
|
|
echo "Usage: $argv[0] <login> <passwd>\n";
|
|
exit;
|
|
}
|
|
$GLOBALS['egw_info']['flags'] = array(
|
|
'currentapp' => 'login',
|
|
'noheader' => True,
|
|
'nonavbar' => True
|
|
);
|
|
include('../header.inc.php');
|
|
|
|
$GLOBALS['egw']->session->create($argv[1],$argv[2],'text') || die("Can't create session !!!\n");
|
|
|
|
$GLOBALS['egw_info']['flags']['currentapp'] = 'etemplate';
|
|
|
|
ExecMethod('etemplate.db_tools.edit');
|
|
|
|
$GLOBALS['egw_info']['flags']['nodisplay'] = True;
|
|
exit;
|