2004-04-01 18:04:58 +02:00
|
|
|
#!/usr/bin/php -q
|
2002-06-02 23:13:04 +02:00
|
|
|
|
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
2004-01-27 17:58:19 +01:00
|
|
|
* eGroupWare - EditableTemplates - GTK User Interface *
|
|
|
|
* http://www.egroupware.org *
|
2002-06-02 23:13:04 +02:00
|
|
|
* 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/).
|
|
|
|
|
2002-06-04 00:27:26 +02:00
|
|
|
// Then start this script with the parameters <login> <passwd>
|
2002-06-02 23:13:04 +02:00
|
|
|
|
2002-06-04 00:27:26 +02:00
|
|
|
global $argv;
|
2002-06-02 23:13:04 +02:00
|
|
|
|
2002-06-04 00:27:26 +02:00
|
|
|
if ($argv[1] == '' || $argv[2] == '')
|
|
|
|
{
|
|
|
|
echo "Usage: $argv[0] <login> <passwd>\n";
|
|
|
|
exit;
|
|
|
|
}
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_info']['flags'] = array(
|
2002-06-04 00:27:26 +02:00
|
|
|
'currentapp' => 'login',
|
|
|
|
'noheader' => True,
|
|
|
|
'nonavbar' => True
|
2002-06-02 23:13:04 +02:00
|
|
|
);
|
|
|
|
include('../header.inc.php');
|
|
|
|
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw']->session->create($argv[1],$argv[2],'text') || die("Can't create session !!!\n");
|
2002-06-04 00:27:26 +02:00
|
|
|
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_info']['flags']['currentapp'] = 'etemplate';
|
2002-06-04 00:27:26 +02:00
|
|
|
|
2002-06-02 23:13:04 +02:00
|
|
|
ExecMethod('etemplate.db_tools.edit');
|
|
|
|
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_info']['flags']['nodisplay'] = True;
|
2002-09-28 22:01:44 +02:00
|
|
|
exit;
|