[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 #!/usr/bin/php -q 2 3 <?php 4 /**************************************************************************\ 5 * eGroupWare - EditableTemplates - GTK User Interface * 6 * http://www.egroupware.org * 7 * Written by Ralf Becker <RalfBecker@outdoor-training.de> * 8 * -------------------------------------------- * 9 * This program is free software; you can redistribute it and/or modify it * 10 * under the terms of the GNU General Public License as published by the * 11 * Free Software Foundation; either version 2 of the License, or (at your * 12 * option) any later version. * 13 \**************************************************************************/ 14 15 /* $Id: phpGtk_test.php 20295 2006-02-15 12:31:25Z $ */ 16 17 //echo "Hello World!!!\n"; 18 19 // To be able to test eTemplates with phpGtk you need a standalone/cgi php interpreter with compiled-in phpGtk installed 20 // (for instruction on how to do so look at the phpGtk website http://gtk.php.net/). 21 22 // Then start this script with the parameters <login> <passwd> 23 24 global $argv; 25 26 if ($argv[1] == '' || $argv[2] == '') 27 { 28 echo "Usage: $argv[0] <login> <passwd>\n"; 29 exit; 30 } 31 $GLOBALS['egw_info']['flags'] = array( 32 'currentapp' => 'login', 33 'noheader' => True, 34 'nonavbar' => True 35 ); 36 include('../header.inc.php'); 37 38 $GLOBALS['egw']->session->create($argv[1],$argv[2],'text') || die("Can't create session !!!\n"); 39 40 $GLOBALS['egw_info']['flags']['currentapp'] = 'etemplate'; 41 42 ExecMethod('etemplate.db_tools.edit'); 43 44 $GLOBALS['egw_info']['flags']['nodisplay'] = True; 45 exit;
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |