phpwebapp-commits Mailing List for phpWebApp (Page 25)
Brought to you by:
dashohoxha
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(15) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(2) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2003 |
Jan
|
Feb
(43) |
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(194) |
Sep
(60) |
Oct
(6) |
Nov
|
Dec
(16) |
| 2004 |
Jan
(73) |
Feb
(13) |
Mar
(5) |
Apr
|
May
(5) |
Jun
|
Jul
(183) |
Aug
|
Sep
(5) |
Oct
(30) |
Nov
|
Dec
|
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
(1) |
Jun
(35) |
Jul
(17) |
Aug
(2) |
Sep
(6) |
Oct
(19) |
Nov
(108) |
Dec
|
| 2006 |
Jan
(10) |
Feb
(1) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Dashamir H. <das...@us...> - 2003-09-09 05:02:08
|
Update of /cvsroot/phpwebapp/web_app/database
In directory sc8-pr-cvs1:/tmp/cvs-serv17598/database
Modified Files:
package.DB.php class.TableRS.php class.StaticRS.php
class.Recordset.php class.PagedRS.php
Log Message:
Index: package.DB.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/database/package.DB.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** package.DB.php 25 Aug 2003 13:18:32 -0000 1.5
--- package.DB.php 8 Sep 2003 13:18:24 -0000 1.6
***************
*** 55,58 ****
--- 55,59 ----
* can create and use other connections as well, or override this one.
*/
+ include_once CONFIG_PATH."const.DB.php";
$cnn = new $CnnType;
}
Index: class.TableRS.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/database/class.TableRS.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** class.TableRS.php 25 Aug 2003 13:18:32 -0000 1.5
--- class.TableRS.php 8 Sep 2003 13:18:24 -0000 1.6
***************
*** 21,25 ****
! include_once DB_PATH."class.Recordset.php";
/**
--- 21,25 ----
! include_once DB_PATH."class.EditableRS.php";
/**
Index: class.StaticRS.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/database/class.StaticRS.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** class.StaticRS.php 25 Aug 2003 13:18:32 -0000 1.5
--- class.StaticRS.php 8 Sep 2003 13:18:24 -0000 1.6
***************
*** 44,48 ****
}
! function Open()
{
if ($this->opened)
--- 44,48 ----
}
! function Open($conn =UNDEFINED)
{
if ($this->opened)
***************
*** 51,55 ****
return; //don't open it a second time
}
! if ($this->query<>"") Recordset::Open();
$this->opened = true;
}
--- 51,55 ----
return; //don't open it a second time
}
! if ($this->query<>"") Recordset::Open($conn);
$this->opened = true;
}
Index: class.Recordset.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/database/class.Recordset.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** class.Recordset.php 25 Aug 2003 13:18:32 -0000 1.7
--- class.Recordset.php 8 Sep 2003 13:18:24 -0000 1.8
***************
*** 103,107 ****
$this->ID = $id;
$this->query = $query;
! $this->cnn = ($conn==UNDEFINED ? $cnn : $conn);
$this->content = array();
$this->count = 0;
--- 103,114 ----
$this->ID = $id;
$this->query = $query;
! if ($conn==UNDEFINED)
! {
! $this->cnn = &$cnn;
! }
! else
! {
! $this->cnn = $conn;
! }
$this->content = array();
$this->count = 0;
***************
*** 110,117 ****
}
! /** Executes the query and puts the result into $this->content. */
! function Open($q =UNDEFINED)
{
- if ($q<>UNDEFINED) $this->query = $q;
$query = $this->query;
if ($query==UNDEFINED) return;
--- 117,126 ----
}
! /**
! * Executes the query and puts the result into $this->content.
! * If $conn is given, it is used instead of its own connection.
! */
! function Open($conn =UNDEFINED)
{
$query = $this->query;
if ($query==UNDEFINED) return;
***************
*** 120,124 ****
$query = WebApp::replaceVars($query);
! $result = $this->cnn->execQuery($query, $this->ID);
if (is_array($result))
{
--- 129,141 ----
$query = WebApp::replaceVars($query);
! if ($conn==UNDEFINED)
! {
! $result = $this->cnn->execQuery($query, $this->ID);
! }
! else
! {
! $result = $conn->execQuery($query, $this->ID);
! }
!
if (is_array($result))
{
***************
*** 126,129 ****
--- 143,147 ----
$this->count = count($result);
$this->pos = 0;
+ return;
}
else
Index: class.PagedRS.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/database/class.PagedRS.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** class.PagedRS.php 25 Aug 2003 13:18:32 -0000 1.6
--- class.PagedRS.php 8 Sep 2003 13:18:24 -0000 1.7
***************
*** 70,80 ****
/** Executes the query and puts the result into $this->content. */
! function Open($cp ="default", $rp ="default", $query ="default")
{
! global $cnn;
!
! if ($query<>"default") $this->query = $query;
! if ($rp<>"default") $this->recs_per_page = $rp;
! if ($cp=="default")
{
//default is to get it from SVars
--- 70,76 ----
/** Executes the query and puts the result into $this->content. */
! function Open($cp =UNDEFINED, $conn =UNDEFINED)
{
! if ($cp==UNDEFINED)
{
//default is to get it from SVars
***************
*** 87,91 ****
$this->nr_of_recs = $this->get_nr_of_recs();
$nr_of_pages = ceil($this->nr_of_recs / $this->recs_per_page);
! if ($this->current_page>$nr_of_pages) $this->current_page=$nr_of_pages;
//modify and execute the query
--- 83,87 ----
$this->nr_of_recs = $this->get_nr_of_recs();
$nr_of_pages = ceil($this->nr_of_recs / $this->recs_per_page);
! if ($this->current_page > $nr_of_pages) $this->current_page = $nr_of_pages;
//modify and execute the query
***************
*** 93,97 ****
$query = WebApp::replaceVars($this->query);
$query .= " LIMIT $first_rec_idx, ".$this->recs_per_page;
! $result = $this->cnn->execQuery($query);
$this->content = $result;
--- 89,100 ----
$query = WebApp::replaceVars($this->query);
$query .= " LIMIT $first_rec_idx, ".$this->recs_per_page;
! if ($conn==UNDEFINED)
! {
! $result = $this->cnn->execQuery($query, $this->ID);
! }
! else
! {
! $result = $conn->execQuery($query, $this->ID);
! }
$this->content = $result;
|
|
From: Dashamir H. <das...@us...> - 2003-09-09 04:50:47
|
Update of /cvsroot/phpwebapp/app1 In directory sc8-pr-cvs1:/tmp/cvs-serv21511 Modified Files: webapp.php Log Message: *** empty log message *** Index: webapp.php =================================================================== RCS file: /cvsroot/phpwebapp/app1/webapp.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** webapp.php 25 Aug 2003 13:41:13 -0000 1.4 --- webapp.php 8 Sep 2003 13:24:17 -0000 1.5 *************** *** 42,46 **** include CONFIG_PATH."const.Options.php"; include CONFIG_PATH."const.Debug.php"; - if (USES_DB) include CONFIG_PATH."const.DB.php"; //include the WebApp framework --- 42,45 ---- |
|
From: Dashamir H. <das...@us...> - 2003-09-09 04:44:44
|
Update of /cvsroot/phpwebapp/empty-sample In directory sc8-pr-cvs1:/tmp/cvs-serv21320 Modified Files: webapp.php Log Message: *** empty log message *** Index: webapp.php =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/webapp.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** webapp.php 25 Aug 2003 13:43:35 -0000 1.2 --- webapp.php 8 Sep 2003 13:23:30 -0000 1.3 *************** *** 49,53 **** include CONFIG_PATH."const.Options.php"; include CONFIG_PATH."const.Debug.php"; - if (USES_DB) include CONFIG_PATH."const.DB.php"; //include the WebApp framework --- 49,52 ---- |
|
From: Dashamir H. <das...@us...> - 2003-09-09 03:50:11
|
Update of /cvsroot/phpwebapp/app2 In directory sc8-pr-cvs1:/tmp/cvs-serv21657 Modified Files: webapp.php Log Message: *** empty log message *** Index: webapp.php =================================================================== RCS file: /cvsroot/phpwebapp/app2/webapp.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** webapp.php 25 Aug 2003 13:46:53 -0000 1.4 --- webapp.php 8 Sep 2003 13:24:59 -0000 1.5 *************** *** 42,46 **** include CONFIG_PATH."const.Options.php"; include CONFIG_PATH."const.Debug.php"; - if (USES_DB) include CONFIG_PATH."const.DB.php"; //include the WebApp framework --- 42,45 ---- |
|
From: Dashamir H. <das...@us...> - 2003-09-09 01:01:02
|
Update of /cvsroot/phpwebapp/web_app
In directory sc8-pr-cvs1:/tmp/cvs-serv17598
Modified Files:
class.WebApp.php
Log Message:
Index: class.WebApp.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/class.WebApp.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** class.WebApp.php 22 Aug 2003 15:54:43 -0000 1.12
--- class.WebApp.php 8 Sep 2003 13:18:24 -0000 1.13
***************
*** 484,489 ****
* @see execQuery(), openRS()
*/
! function execDBCmd($cmd_id, $params =array())
{
global $webPage, $tplVars;
--- 484,490 ----
* @see execQuery(), openRS()
*/
! function execDBCmd($cmd_id, $params =UNDEFINED, $conn =UNDEFINED)
{
+ if ($params==UNDEFINED) $params = array();
global $webPage, $tplVars;
***************
*** 496,500 ****
return false;
}
! $result = $rs->Open();
$tplVars->popScope();
--- 497,501 ----
return false;
}
! $result = $rs->Open($conn);
$tplVars->popScope();
***************
*** 508,513 ****
* @see execDBCmd(), execQuery()
*/
! function openRS($rs_id, $params =array())
{
global $webPage, $tplVars;
--- 509,515 ----
* @see execDBCmd(), execQuery()
*/
! function openRS($rs_id, $params =UNDEFINED, $conn =UNDEFINED)
{
+ if ($params==UNDEFINED) $params = array();
global $webPage, $tplVars;
***************
*** 517,521 ****
$tplVars->addVars($params);
$rs = &$webPage->rs_collection[$rs_id];
! $rs->Open();
$tplVars->popScope();
return $rs;
--- 519,523 ----
$tplVars->addVars($params);
$rs = &$webPage->rs_collection[$rs_id];
! $rs->Open($conn);
$tplVars->popScope();
return $rs;
|
|
From: Dashamir H. <das...@us...> - 2003-09-09 00:29:19
|
Update of /cvsroot/phpwebapp/web_app/parser
In directory sc8-pr-cvs1:/tmp/cvs-serv17598/parser
Modified Files:
class.WebClassTpl.php class.Parser.php
Log Message:
Index: class.WebClassTpl.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebClassTpl.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** class.WebClassTpl.php 25 Aug 2003 13:18:32 -0000 1.7
--- class.WebClassTpl.php 8 Sep 2003 13:18:24 -0000 1.8
***************
*** 76,81 ****
/**
! * Looks for the PHP file in the same folder as WebClass
! * (with the same name as the webclass' ID) and includes it
* if it exists; if not, define a dummy class for this webclass.
*/
--- 76,81 ----
/**
! * Look for the PHP file in the same folder as WebClass
! * (with the same name as the webclass' ID) and include it
* if it exists; if not, define a dummy class for this webclass.
*/
Index: class.Parser.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/parser/class.Parser.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** class.Parser.php 25 Aug 2003 13:18:32 -0000 1.6
--- class.Parser.php 8 Sep 2003 13:18:24 -0000 1.7
***************
*** 763,767 ****
global $webPage, $session;
! //get the attributes 'ID' and 'recs_per_page'
$id = Parser::get_attr_value($line, "ID");
--- 763,767 ----
global $webPage, $session;
! //get the attribute 'ID'
$id = Parser::get_attr_value($line, "ID");
|
|
From: Dashamir H. <das...@us...> - 2003-09-09 00:29:16
|
Update of /cvsroot/phpwebapp/web_app/session
In directory sc8-pr-cvs1:/tmp/cvs-serv17598/session
Modified Files:
class.Session.php class.Request.php
Log Message:
Index: class.Session.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/session/class.Session.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** class.Session.php 25 Aug 2003 13:18:31 -0000 1.6
--- class.Session.php 8 Sep 2003 13:18:23 -0000 1.7
***************
*** 41,46 ****
$this->dbVars = array();
! $sessVars = $request->sessionVars;
! if ($sessVars==UNDEFINED )
{
//new session
--- 41,45 ----
$this->dbVars = array();
! if ($request->firstTime)
{
//new session
***************
*** 49,53 ****
else
{
! $this->getVars($sessVars);
$this->getDBVars();
}
--- 48,52 ----
else
{
! $this->getVars($request->sessionVars);
$this->getDBVars();
}
Index: class.Request.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/session/class.Request.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** class.Request.php 25 Aug 2003 13:18:31 -0000 1.5
--- class.Request.php 8 Sep 2003 13:18:23 -0000 1.6
***************
*** 33,37 ****
var $phpVars;
! /** If true, then this page is the first in the session. */
var $firstTime;
--- 33,37 ----
var $phpVars;
! /** Is true only for the first page in the session. */
var $firstTime;
|
|
From: Dashamir H. <das...@us...> - 2003-09-08 23:32:00
|
Update of /cvsroot/phpwebapp/documentation In directory sc8-pr-cvs1:/tmp/cvs-serv22963 Modified Files: ToDo.txt Log Message: Index: ToDo.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/ToDo.txt,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ToDo.txt 26 Aug 2003 07:39:52 -0000 1.6 --- ToDo.txt 8 Sep 2003 13:29:44 -0000 1.7 *************** *** 4,7 **** --- 4,13 ---- * Put summaries of the tutorials in separate files. + * Find a replacement or rewrite them (because they are not GPL): + web_app/webobjects/datebox/datebox.js + web_app/boxes/editMenus/hierMenus.js + web_app/boxes/editMenus/include_menus.js + web_app/boxes/editMenus/sample_menu/... + * Rewrite and improve the UML model. * Study the texinfo format. |
|
From: Dashamir H. <das...@us...> - 2003-09-08 23:12:36
|
Update of /cvsroot/phpwebapp/app3 In directory sc8-pr-cvs1:/tmp/cvs-serv21981 Modified Files: webapp.php Log Message: *** empty log message *** Index: webapp.php =================================================================== RCS file: /cvsroot/phpwebapp/app3/webapp.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** webapp.php 25 Aug 2003 13:52:02 -0000 1.2 --- webapp.php 8 Sep 2003 13:25:41 -0000 1.3 *************** *** 42,46 **** include CONFIG_PATH."const.Options.php"; include CONFIG_PATH."const.Debug.php"; - if (USES_DB) include CONFIG_PATH."const.DB.php"; //include the WebApp framework --- 42,45 ---- |
|
From: Dashamir H. <das...@us...> - 2003-08-26 16:40:22
|
Update of /cvsroot/phpwebapp/app1
In directory sc8-pr-cvs1:/tmp/cvs-serv22326
Modified Files:
styles.css page3.html page2.html page1.html index.php
external_page.html
Log Message:
converted CRLF to LF
Index: styles.css
===================================================================
RCS file: /cvsroot/phpwebapp/app1/styles.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** styles.css 15 Aug 2003 08:15:53 -0000 1.2
--- styles.css 25 Aug 2003 14:07:01 -0000 1.3
***************
*** 1,23 ****
! body
! {
! background-color: #efe7d6;
! margin-top: 20px;
! margin-left: 20px;
! margin-right: 20px;
! margin-bottom: 20px;
! font-family: arial, helvetica, sans-se;
! font-size: 12pt;
! color: #000000;
! }
!
! h1, h2
! {
! text-align: center;
! }
!
! strong
! {
! color: #000066;
! font-size: 14px;
! font-weight: bold
! }
--- 1,23 ----
! body
! {
! background-color: #efe7d6;
! margin-top: 20px;
! margin-left: 20px;
! margin-right: 20px;
! margin-bottom: 20px;
! font-family: arial, helvetica, sans-se;
! font-size: 12pt;
! color: #000000;
! }
!
! h1, h2
! {
! text-align: center;
! }
!
! strong
! {
! color: #000066;
! font-size: 14px;
! font-weight: bold
! }
Index: page3.html
===================================================================
RCS file: /cvsroot/phpwebapp/app1/page3.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** page3.html 15 Aug 2003 08:15:53 -0000 1.3
--- page3.html 25 Aug 2003 14:07:01 -0000 1.4
***************
*** 1,27 ****
! <html>
! <head>
! <title>Page 3</title>
! <link rel="stylesheet" type="text/css" href="styles.css">
! </head>
!
! <body>
! <h2>Page 3 of the application</h2>
!
! <h3>Debugging Transitions</h3>
!
! <p>If you open in an editor the file
! <em>config/const.Debug.php</em> you will see there a constant
! named <em>DEBUG_GOTO</em>. Make it <em>true</em> and notice that
! each time that you make a transition you get an alert about
! it.</p>
!
! <p>Go To
! [ <a href="javascript:GoTo('page1.html')">Page 1</a>
! | <a href="javascript:GoTo('page2.html')">Page 2</a>
! | Page 3
! ]</p>
!
! <a href="javascript:history.back()"><img src="img/back.png" alt="Back" border="0"></a>
! <a href="{{APP_URL}}"><img src="img/home.png" alt="Home" border="0"></a>
! </body>
! </html>
--- 1,27 ----
! <html>
! <head>
! <title>Page 3</title>
! <link rel="stylesheet" type="text/css" href="styles.css">
! </head>
!
! <body>
! <h2>Page 3 of the application</h2>
!
! <h3>Debugging Transitions</h3>
!
! <p>If you open in an editor the file
! <em>config/const.Debug.php</em> you will see there a constant
! named <em>DEBUG_GOTO</em>. Make it <em>true</em> and notice that
! each time that you make a transition you get an alert about
! it.</p>
!
! <p>Go To
! [ <a href="javascript:GoTo('page1.html')">Page 1</a>
! | <a href="javascript:GoTo('page2.html')">Page 2</a>
! | Page 3
! ]</p>
!
! <a href="javascript:history.back()"><img src="img/back.png" alt="Back" border="0"></a>
! <a href="{{APP_URL}}"><img src="img/home.png" alt="Home" border="0"></a>
! </body>
! </html>
Index: page2.html
===================================================================
RCS file: /cvsroot/phpwebapp/app1/page2.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** page2.html 15 Aug 2003 08:15:53 -0000 1.3
--- page2.html 25 Aug 2003 14:07:01 -0000 1.4
***************
*** 1,32 ****
! <html>
! <head>
! <title>Page 2</title>
! <link rel="stylesheet" type="text/css" href="styles.css">
! </head>
!
! <body>
! <h2>Page 2 of the application</h2>
!
! <h3>External Pages</h3>
!
! <p>The external pages are HTML pages that are outside the
! application. They are linked as usually in HTML, without using
! transitions and the function <strong>GoTo()</strong>. See the
! examples below and click the link to the <em>external
! page</em>.</p>
!
! <ul>
! <li><a href="http://www.yahoo.com/">Yahoo!</a></li>
! <li><a href="external_page.html">external page</a></li>
! </ul>
!
! <p>Go To
! [ <a href="javascript:GoTo('page1.html')">Page 1</a>
! | Page 2
! | <a href="javascript:GoTo('page3.html')">Page 3</a>
! ]</p>
!
! <a href="javascript:history.back()"><img src="img/back.png" alt="Back" border="0"></a>
! <a href="{{APP_URL}}"><img src="img/home.png" alt="Home" border="0"></a>
! </body>
! </html>
--- 1,32 ----
! <html>
! <head>
! <title>Page 2</title>
! <link rel="stylesheet" type="text/css" href="styles.css">
! </head>
!
! <body>
! <h2>Page 2 of the application</h2>
!
! <h3>External Pages</h3>
!
! <p>The external pages are HTML pages that are outside the
! application. They are linked as usually in HTML, without using
! transitions and the function <strong>GoTo()</strong>. See the
! examples below and click the link to the <em>external
! page</em>.</p>
!
! <ul>
! <li><a href="http://www.yahoo.com/">Yahoo!</a></li>
! <li><a href="external_page.html">external page</a></li>
! </ul>
!
! <p>Go To
! [ <a href="javascript:GoTo('page1.html')">Page 1</a>
! | Page 2
! | <a href="javascript:GoTo('page3.html')">Page 3</a>
! ]</p>
!
! <a href="javascript:history.back()"><img src="img/back.png" alt="Back" border="0"></a>
! <a href="{{APP_URL}}"><img src="img/home.png" alt="Home" border="0"></a>
! </body>
! </html>
Index: page1.html
===================================================================
RCS file: /cvsroot/phpwebapp/app1/page1.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** page1.html 15 Aug 2003 08:15:53 -0000 1.3
--- page1.html 25 Aug 2003 14:07:01 -0000 1.4
***************
*** 1,60 ****
! <html>
! <head>
! <title>Page 1</title>
! <link rel="stylesheet" type="text/css" href="styles.css">
! <script language="javascript" type="text/javascript">
! function on_test()
! {
! var msg;
! msg = "Function on_test() is called.\n"
! + "Here we can do input data validations etc.\n"
! + "Finally, if everything is OK, we call\n"
! + "GoTo('page1.html') to make the transition.\n";
! alert(msg);
! GoTo('page1.html');
! }
! </script>
! </head>
!
! <body>
! <h2>Page 1 of the application</h2>
!
! <h3>A phpWebApp Application is Like a State Machine</h3>
!
! <p>The <strong>phpWebApp</strong> thinks of a web application as
! a state machine, where each state is a web page. Each time the browser
! loads something new in its window, you see a snapshot of the application
! in a certain state. For example, this sample application can be
! described by the following state diagram:</p>
!
! <div align="center">
! <img src="img/state_diagram.png"
! alt="A state diagram that represents three pages of the application as three states">
! </div>
!
! <h3>Transitions by GoTo()</h3>
!
! <p>Transitions from one page of the application to another are
! done by using the javascript function
! <strong>GoTo('page.html')</strong>. This function is declared by
! the framework itself and is included automatically at the end of
! each page of the application. Make a 'View Source' now and see
! that there is some code appended to the page by the
! framework.</p>
!
! <p>In real applications, usually <em>GoTo()</em> is called from
! inside a <em>JavaScript</em> function, after making some input
! data validations etc. E.g. try this link:
! <a href="javascript:on_test()">test</a> wich calls the
! <em>JavaScript</em> function <em>on_test()</em>.</p>
!
! <p>Go To
! [ Page 1
! | <a href="javascript:GoTo('page2.html')">Page 2</a>
! | <a href="javascript:GoTo('page3.html')">Page 3</a>
! ]</p>
!
! <a href="javascript:history.back()"><img src="img/back.png" alt="Back" border="0"></a>
! <a href="{{APP_URL}}"><img src="img/home.png" alt="Home" border="0"></a>
! </body>
! </html>
--- 1,60 ----
! <html>
! <head>
! <title>Page 1</title>
! <link rel="stylesheet" type="text/css" href="styles.css">
! <script language="javascript" type="text/javascript">
! function on_test()
! {
! var msg;
! msg = "Function on_test() is called.\n"
! + "Here we can do input data validations etc.\n"
! + "Finally, if everything is OK, we call\n"
! + "GoTo('page1.html') to make the transition.\n";
! alert(msg);
! GoTo('page1.html');
! }
! </script>
! </head>
!
! <body>
! <h2>Page 1 of the application</h2>
!
! <h3>A phpWebApp Application is Like a State Machine</h3>
!
! <p>The <strong>phpWebApp</strong> thinks of a web application as
! a state machine, where each state is a web page. Each time the browser
! loads something new in its window, you see a snapshot of the application
! in a certain state. For example, this sample application can be
! described by the following state diagram:</p>
!
! <div align="center">
! <img src="img/state_diagram.png"
! alt="A state diagram that represents three pages of the application as three states">
! </div>
!
! <h3>Transitions by GoTo()</h3>
!
! <p>Transitions from one page of the application to another are
! done by using the javascript function
! <strong>GoTo('page.html')</strong>. This function is declared by
! the framework itself and is included automatically at the end of
! each page of the application. Make a 'View Source' now and see
! that there is some code appended to the page by the
! framework.</p>
!
! <p>In real applications, usually <em>GoTo()</em> is called from
! inside a <em>JavaScript</em> function, after making some input
! data validations etc. E.g. try this link:
! <a href="javascript:on_test()">test</a> wich calls the
! <em>JavaScript</em> function <em>on_test()</em>.</p>
!
! <p>Go To
! [ Page 1
! | <a href="javascript:GoTo('page2.html')">Page 2</a>
! | <a href="javascript:GoTo('page3.html')">Page 3</a>
! ]</p>
!
! <a href="javascript:history.back()"><img src="img/back.png" alt="Back" border="0"></a>
! <a href="{{APP_URL}}"><img src="img/home.png" alt="Home" border="0"></a>
! </body>
! </html>
Index: index.php
===================================================================
RCS file: /cvsroot/phpwebapp/app1/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** index.php 25 Aug 2003 13:41:13 -0000 1.2
--- index.php 25 Aug 2003 14:07:01 -0000 1.3
***************
*** 1,28 ****
! <?php
! /*
! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
!
! This file is part of phpWebApp.
!
! phpWebApp 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.
!
! phpWebApp is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with phpWebApp; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
! */
!
!
! include_once "webapp.php";
!
! //construct the target page of the transition
! $tpl_page = TPL_PATH.$event->targetPage;
! WebApp::constructHtmlPage($tpl_page);
?>
--- 1,28 ----
! <?php
! /*
! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
!
! This file is part of phpWebApp.
!
! phpWebApp 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.
!
! phpWebApp is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with phpWebApp; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
! */
!
!
! include_once "webapp.php";
!
! //construct the target page of the transition
! $tpl_page = TPL_PATH.$event->targetPage;
! WebApp::constructHtmlPage($tpl_page);
?>
Index: external_page.html
===================================================================
RCS file: /cvsroot/phpwebapp/app1/external_page.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** external_page.html 15 Aug 2003 08:15:53 -0000 1.3
--- external_page.html 25 Aug 2003 14:07:01 -0000 1.4
***************
*** 1,33 ****
! <html>
! <head>
! <title>External Page</title>
! </head>
!
! <body>
! <h3>External Page</h3>
!
! <p>This page is not a part of the application
! <strong>app1</strong>, it is a simple HTML page, or the page of
! another application.</p>
!
! <p>Here you cannot use the function <strong>GoTo()</strong>
! because it is undefined, e.g. if you try this link: <a href=
! "javascript:GoTo('page1.html')">GoTo('page1.html')</a> you
! will get a javascript error.</p>
!
! <p>You can go to the page of the application from which you came
! here only by pressing the button <strong>back</strong> in the
! browser. If you try to link to it like this: <a href=
! "page2.html">page2.html</a> , it will not work, because the page
! will be openned in the browser as a simple html page (like this one)
! not as a page of the application <strong>app1</strong>. Try to click it
! and see that the transitions in 'page2.html' will not work.
! View the source of <a href="page2.html">page2.html</a> and notice
! that additional code added by the framework is missing (the logo
! is missing too).</p>
!
! <a href="javascript:history.back()">
! <img src="img/back.png" alt="Back" border="0">
! </a>
! </body>
! </html>
--- 1,33 ----
! <html>
! <head>
! <title>External Page</title>
! </head>
!
! <body>
! <h3>External Page</h3>
!
! <p>This page is not a part of the application
! <strong>app1</strong>, it is a simple HTML page, or the page of
! another application.</p>
!
! <p>Here you cannot use the function <strong>GoTo()</strong>
! because it is undefined, e.g. if you try this link: <a href=
! "javascript:GoTo('page1.html')">GoTo('page1.html')</a> you
! will get a javascript error.</p>
!
! <p>You can go to the page of the application from which you came
! here only by pressing the button <strong>back</strong> in the
! browser. If you try to link to it like this: <a href=
! "page2.html">page2.html</a> , it will not work, because the page
! will be openned in the browser as a simple html page (like this one)
! not as a page of the application <strong>app1</strong>. Try to click it
! and see that the transitions in 'page2.html' will not work.
! View the source of <a href="page2.html">page2.html</a> and notice
! that additional code added by the framework is missing (the logo
! is missing too).</p>
!
! <a href="javascript:history.back()">
! <img src="img/back.png" alt="Back" border="0">
! </a>
! </body>
! </html>
|
|
From: Dashamir H. <das...@us...> - 2003-08-26 16:24:30
|
Update of /cvsroot/phpwebapp/app2/templates
In directory sc8-pr-cvs1:/tmp/cvs-serv26139/templates
Modified Files:
styles.css page2.html page1_content.html page1.html
header.html footer.html
Log Message:
converted CRLF to LF
Index: styles.css
===================================================================
RCS file: /cvsroot/phpwebapp/app2/templates/styles.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** styles.css 15 Aug 2003 09:09:26 -0000 1.2
--- styles.css 25 Aug 2003 14:28:29 -0000 1.3
***************
*** 1,35 ****
! body
! {
! background-color: #efe7d6;
! margin-top: 20px;
! margin-left: 20px;
! margin-right: 20px;
! margin-bottom: 20px;
! font-family: arial, helvetica, sans-se;
! font-size: 12pt;
! color: #000000;
! }
!
! h1, h2
! {
! text-align: center;
! }
!
! h1, h2, h3, h4
! {
! color: #660000;
! }
!
! pre
! {
! background-color: #eeeeee;
! border: 1px solid #0000aa;
! color: #00aa00;
! }
!
! strong
! {
! color: #000066;
! font-size: 14px;
! font-weight: bold
! }
--- 1,35 ----
! body
! {
! background-color: #efe7d6;
! margin-top: 20px;
! margin-left: 20px;
! margin-right: 20px;
! margin-bottom: 20px;
! font-family: arial, helvetica, sans-se;
! font-size: 12pt;
! color: #000000;
! }
!
! h1, h2
! {
! text-align: center;
! }
!
! h1, h2, h3, h4
! {
! color: #660000;
! }
!
! pre
! {
! background-color: #eeeeee;
! border: 1px solid #0000aa;
! color: #00aa00;
! }
!
! strong
! {
! color: #000066;
! font-size: 14px;
! font-weight: bold
! }
Index: page2.html
===================================================================
RCS file: /cvsroot/phpwebapp/app2/templates/page2.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** page2.html 15 Aug 2003 09:09:26 -0000 1.2
--- page2.html 25 Aug 2003 14:28:29 -0000 1.3
***************
*** 1,95 ****
! <html>
! <head>
! <title>Page 2</title>
! <link rel="stylesheet" type="text/css" href="{{./}}styles.css">
! <link rel="stylesheet" type="text/css" href="{{./}}page2.css">
! </head>
!
! <body>
! <Include SRC="{{./}}header.html" />
!
! <h3>A Page Constructed without Subtemplates</h3>
!
! <table width="95%" align="center" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td class="box_title">tpl.html</td>
! </tr>
!
! <tr>
! <td class="box_content">
! <table width="100%" border="0" cellspacing="20" cellpadding="0">
! <tr>
! <td width="60%" valign="top">
! <table width="100%" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td class="box_title_1">tpl_1.html</td>
! </tr>
!
! <tr>
! <td class="box_content_1" valign="top">
! <p class="content_1"><em>page2.html</em> is the
! same as <em>page3.html</em>, however it is
! implemented in the usual way, without
! templates. After studying how both of them are
! implemented, try to make a small modification
! in both of them and see which one is easier to
! be modified.</p>
! </td>
! </tr>
! </table>
! </td>
!
! <td valign="top">
! <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td class="box_title_2">tpl_2.html</td>
! </tr>
!
! <tr>
! <td class="box_content_2">
! <table width="100%" border="0" cellspacing="10" cellpadding="0">
! <tr>
! <td>
! <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td class="box_title_2_1">tpl_2_1.html</td>
! </tr>
!
! <tr>
! <td class="box_content_2_1">
! tpl_2_1 <br> content
! </td>
! </tr>
! </table>
! </td>
! </tr>
!
! <tr>
! <td>
! <table width="100%" align="center" border="0" cellspacing="0" cellpadding= "0">
! <tr>
! <td class="box_title_2_2">tpl_2_2.html</td>
! </tr>
!
! <tr>
! <td class="box_content_2_2">
! tpl_2_2 <br> content
! </td>
! </tr>
! </table>
! </td>
! </tr>
! </table>
! </td>
! </tr>
! </table>
! </td>
! </tr>
! </table>
! </td>
! </tr>
! </table>
!
! <Include SRC="{{./}}footer.html" />
! </body>
! </html>
--- 1,95 ----
! <html>
! <head>
! <title>Page 2</title>
! <link rel="stylesheet" type="text/css" href="{{./}}styles.css">
! <link rel="stylesheet" type="text/css" href="{{./}}page2.css">
! </head>
!
! <body>
! <Include SRC="{{./}}header.html" />
!
! <h3>A Page Constructed without Subtemplates</h3>
!
! <table width="95%" align="center" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td class="box_title">tpl.html</td>
! </tr>
!
! <tr>
! <td class="box_content">
! <table width="100%" border="0" cellspacing="20" cellpadding="0">
! <tr>
! <td width="60%" valign="top">
! <table width="100%" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td class="box_title_1">tpl_1.html</td>
! </tr>
!
! <tr>
! <td class="box_content_1" valign="top">
! <p class="content_1"><em>page2.html</em> is the
! same as <em>page3.html</em>, however it is
! implemented in the usual way, without
! templates. After studying how both of them are
! implemented, try to make a small modification
! in both of them and see which one is easier to
! be modified.</p>
! </td>
! </tr>
! </table>
! </td>
!
! <td valign="top">
! <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td class="box_title_2">tpl_2.html</td>
! </tr>
!
! <tr>
! <td class="box_content_2">
! <table width="100%" border="0" cellspacing="10" cellpadding="0">
! <tr>
! <td>
! <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td class="box_title_2_1">tpl_2_1.html</td>
! </tr>
!
! <tr>
! <td class="box_content_2_1">
! tpl_2_1 <br> content
! </td>
! </tr>
! </table>
! </td>
! </tr>
!
! <tr>
! <td>
! <table width="100%" align="center" border="0" cellspacing="0" cellpadding= "0">
! <tr>
! <td class="box_title_2_2">tpl_2_2.html</td>
! </tr>
!
! <tr>
! <td class="box_content_2_2">
! tpl_2_2 <br> content
! </td>
! </tr>
! </table>
! </td>
! </tr>
! </table>
! </td>
! </tr>
! </table>
! </td>
! </tr>
! </table>
! </td>
! </tr>
! </table>
!
! <Include SRC="{{./}}footer.html" />
! </body>
! </html>
Index: page1_content.html
===================================================================
RCS file: /cvsroot/phpwebapp/app2/templates/page1_content.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** page1_content.html 20 Aug 2003 07:36:39 -0000 1.3
--- page1_content.html 25 Aug 2003 14:28:29 -0000 1.4
***************
*** 1,63 ****
! <!--# This file is included inside page1.html #-->
!
! <h4>Templates</h4>
!
! <p>Templates are pieces of HTML code, that are used or combined by
! the framework to generate the HTML pages that are sent to the
! browser.</p>
!
! <h4>Template variables</h4>
!
! <p>The templates may contain variables inside them (called
! "template variables"), which are replaced by the framework with
! their string values. The variables inside a template are denoted by
! double curly braces: <strong>{{#tpl_var}}</strong>.</p>
!
! <h4>The <Include> tag</h4>
!
! <p>The templates may also contain some extra tags, which are not
! HTML tags. These tags are reckognised and processed by the
! framework. One of them is the <strong><Include></strong> tag,
! which is used to include another template inside the current template:</p>
! <pre>
! <Include SRC="file_to_be_included" />
! </pre>
!
! <p>It is a very useful tag, because it allows to separate pages
! into subtemplates, which results in a better structured
! application, provides modularity (the graphical designer can work
! with smaller pieces of code), and reusability (templates are easier
! to be reused in other pages or other applications).</p>
!
! <h4>Comments</h4>
!
! <p>The templates may contain some special comments as well:</p>
! <pre>
! <!--# Framework comments #-->
! </pre>
!
! <p>These comments are like HTML comments by they have a diesis (#)
! at the opening and closing marks. These comments are not processed
! by the framework and are not displayed in the HTML page that is
! generated.</p>
!
! <h4>JavaScript code and stylesheet of a template</h4>
!
! <p>If a certain template has some javascript code or some special
! styles of its own, then it is better to include them at the
! begining of the template (instead of including them globally, at
! the header of the page). This makes the template more independant
! from the other parts of the page and thus easier to use it again
! into another page. They are included like this:</p>
! <pre>
! <script language="javascript" src="file.js"></script>
! <link rel="stylesheet" type="text/css" href="file.css">
! </pre>
!
! <p>The inclusion is much better than writting the JS and CSS code
! in the template because it separates the HTML code from the JS and
! CSS codes. It also is more efficient (has a better performance)
! because the next time that this template is loaded in browser
! again, most probably the browser will get "file.js" and "file.css"
! from the cache, instead of retrieving them again from the
! server.</p>
--- 1,63 ----
! <!--# This file is included inside page1.html #-->
!
! <h4>Templates</h4>
!
! <p>Templates are pieces of HTML code, that are used or combined by
! the framework to generate the HTML pages that are sent to the
! browser.</p>
!
! <h4>Template variables</h4>
!
! <p>The templates may contain variables inside them (called
! "template variables"), which are replaced by the framework with
! their string values. The variables inside a template are denoted by
! double curly braces: <strong>{{#tpl_var}}</strong>.</p>
!
! <h4>The <Include> tag</h4>
!
! <p>The templates may also contain some extra tags, which are not
! HTML tags. These tags are reckognised and processed by the
! framework. One of them is the <strong><Include></strong> tag,
! which is used to include another template inside the current template:</p>
! <pre>
! <Include SRC="file_to_be_included" />
! </pre>
!
! <p>It is a very useful tag, because it allows to separate pages
! into subtemplates, which results in a better structured
! application, provides modularity (the graphical designer can work
! with smaller pieces of code), and reusability (templates are easier
! to be reused in other pages or other applications).</p>
!
! <h4>Comments</h4>
!
! <p>The templates may contain some special comments as well:</p>
! <pre>
! <!--# Framework comments #-->
! </pre>
!
! <p>These comments are like HTML comments by they have a diesis (#)
! at the opening and closing marks. These comments are not processed
! by the framework and are not displayed in the HTML page that is
! generated.</p>
!
! <h4>JavaScript code and stylesheet of a template</h4>
!
! <p>If a certain template has some javascript code or some special
! styles of its own, then it is better to include them at the
! begining of the template (instead of including them globally, at
! the header of the page). This makes the template more independant
! from the other parts of the page and thus easier to use it again
! into another page. They are included like this:</p>
! <pre>
! <script language="javascript" src="file.js"></script>
! <link rel="stylesheet" type="text/css" href="file.css">
! </pre>
!
! <p>The inclusion is much better than writting the JS and CSS code
! in the template because it separates the HTML code from the JS and
! CSS codes. It also is more efficient (has a better performance)
! because the next time that this template is loaded in browser
! again, most probably the browser will get "file.js" and "file.css"
! from the cache, instead of retrieving them again from the
! server.</p>
Index: page1.html
===================================================================
RCS file: /cvsroot/phpwebapp/app2/templates/page1.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** page1.html 15 Aug 2003 09:09:26 -0000 1.2
--- page1.html 25 Aug 2003 14:28:29 -0000 1.3
***************
*** 1,12 ****
! <html>
! <head>
! <title>Page 1</title>
! <link rel="stylesheet" type="text/css" href="{{./}}styles.css">
! </head>
! <body>
! <Include SRC="{{./}}header.html"/>
! <Include SRC="{{./}}page1_content.html"/>
! <Include SRC="{{./}}footer.html"/>
! <br>
! </body>
! </html>
--- 1,12 ----
! <html>
! <head>
! <title>Page 1</title>
! <link rel="stylesheet" type="text/css" href="{{./}}styles.css">
! </head>
! <body>
! <Include SRC="{{./}}header.html"/>
! <Include SRC="{{./}}page1_content.html"/>
! <Include SRC="{{./}}footer.html"/>
! <br>
! </body>
! </html>
Index: header.html
===================================================================
RCS file: /cvsroot/phpwebapp/app2/templates/header.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** header.html 15 Aug 2003 09:09:26 -0000 1.2
--- header.html 25 Aug 2003 14:28:29 -0000 1.3
***************
*** 1,6 ****
! <!--# This template is included at the begining of each page #-->
! <!--# This is a framework comment, and it will not
! be displayed in the generated HTML page #-->
! <!-- This is a usual HTML comment and it
! will be part of the generated page -->
! <h1>Sample Application 2: Templates</h1>
--- 1,6 ----
! <!--# This template is included at the begining of each page #-->
! <!--# This is a framework comment, and it will not
! be displayed in the generated HTML page #-->
! <!-- This is a usual HTML comment and it
! will be part of the generated page -->
! <h1>Sample Application 2: Templates</h1>
Index: footer.html
===================================================================
RCS file: /cvsroot/phpwebapp/app2/templates/footer.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** footer.html 20 Aug 2003 07:36:39 -0000 1.4
--- footer.html 25 Aug 2003 14:28:29 -0000 1.5
***************
*** 1,10 ****
! <script language="JavaScript" src="{{./}}footer.js"></script>
! <hr>
! <br>
! Go To
! [ <a href="javascript: goto_page1()"> Page 1 </a>
! | <a href="javascript: goto_page2()"> Page 2 </a>
! | <a href="javascript: goto_page3()"> Page 3 </a> ]
! <br><br>
! <a href="javascript:go_back()"><img src="{{IMG_URL}}back.png" alt="Back" border="0"></a>
! <a href="{{APP_URL}}"><img src="{{IMG_URL}}home.png" alt="Home" border="0"></a>
--- 1,10 ----
! <script language="JavaScript" src="{{./}}footer.js"></script>
! <hr>
! <br>
! Go To
! [ <a href="javascript: goto_page1()"> Page 1 </a>
! | <a href="javascript: goto_page2()"> Page 2 </a>
! | <a href="javascript: goto_page3()"> Page 3 </a> ]
! <br><br>
! <a href="javascript:go_back()"><img src="{{IMG_URL}}back.png" alt="Back" border="0"></a>
! <a href="{{APP_URL}}"><img src="{{IMG_URL}}home.png" alt="Home" border="0"></a>
|
|
From: Dashamir H. <das...@us...> - 2003-08-26 16:05:24
|
Update of /cvsroot/phpwebapp/app3/templates/tip In directory sc8-pr-cvs1:/tmp/cvs-serv19640/templates/tip Modified Files: tips.php tip4.php tip3.php tip2.php tip1.php tip.php fun.get_random_tip.php Log Message: Added copying permission statement for GNU GPL. Index: tips.php =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tips.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tips.php 22 Aug 2003 16:14:26 -0000 1.1.1.1 --- tips.php 25 Aug 2003 13:52:01 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * The array $arr_tips contains a list of tips, from which Index: tip4.php =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tip4.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tip4.php 22 Aug 2003 16:14:26 -0000 1.1.1.1 --- tip4.php 25 Aug 2003 13:52:01 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + include_once TIP_PATH."fun.get_random_tip.php"; Index: tip3.php =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tip3.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tip3.php 22 Aug 2003 16:14:27 -0000 1.1.1.1 --- tip3.php 25 Aug 2003 13:52:01 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + include_once TIP_PATH."fun.get_random_tip.php"; Index: tip2.php =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tip2.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tip2.php 22 Aug 2003 16:14:26 -0000 1.1.1.1 --- tip2.php 25 Aug 2003 13:52:01 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + include_once TIP_PATH."fun.get_random_tip.php"; Index: tip1.php =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tip1.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tip1.php 22 Aug 2003 16:14:26 -0000 1.1.1.1 --- tip1.php 25 Aug 2003 13:52:01 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + include_once TIP_PATH."fun.get_random_tip.php"; Index: tip.php =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tip.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tip.php 22 Aug 2003 16:14:26 -0000 1.1.1.1 --- tip.php 25 Aug 2003 13:52:01 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + include_once TIP_PATH."fun.get_random_tip.php"; Index: fun.get_random_tip.php =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/fun.get_random_tip.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fun.get_random_tip.php 22 Aug 2003 16:14:27 -0000 1.1.1.1 --- fun.get_random_tip.php 25 Aug 2003 13:52:01 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * Returns a random tip form the tips in 'tips.php'. |
|
From: Dashamir H. <das...@us...> - 2003-08-26 16:04:32
|
Update of /cvsroot/phpwebapp/app3/templates/menu
In directory sc8-pr-cvs1:/tmp/cvs-serv26666/templates/menu
Modified Files:
menu.html
Log Message:
converted CRLF to LF
Index: menu.html
===================================================================
RCS file: /cvsroot/phpwebapp/app3/templates/menu/menu.html,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** menu.html 22 Aug 2003 16:14:27 -0000 1.1.1.1
--- menu.html 25 Aug 2003 14:30:38 -0000 1.2
***************
*** 1,15 ****
! <WebBox ID="menu">
! <table width="100%" class="menu">
! <tr>
! <td class="txt">Go To</td>
! <td class="txt">[</td>
! <td class="page"><a href="javascript: goto_page1()"> Page 1 </a></td>
! <td class="txt">|</td>
! <td class="page"><a href="javascript: goto_page2()"> Page 2 </a></td>
! <td class="txt">|</td>
! <td class="page"><a href="javascript: goto_page3()"> Page 3 </a></td>
! <td class="txt">]</td>
! <td class="date">{{date}}</td>
! </tr>
! </table>
! </WebBox>
--- 1,15 ----
! <WebBox ID="menu">
! <table width="100%" class="menu">
! <tr>
! <td class="txt">Go To</td>
! <td class="txt">[</td>
! <td class="page"><a href="javascript: goto_page1()"> Page 1 </a></td>
! <td class="txt">|</td>
! <td class="page"><a href="javascript: goto_page2()"> Page 2 </a></td>
! <td class="txt">|</td>
! <td class="page"><a href="javascript: goto_page3()"> Page 3 </a></td>
! <td class="txt">]</td>
! <td class="date">{{date}}</td>
! </tr>
! </table>
! </WebBox>
|
|
From: Dashamir H. <das...@us...> - 2003-08-26 16:03:16
|
Update of /cvsroot/phpwebapp/documentation/templates
In directory sc8-pr-cvs1:/tmp/cvs-serv27288/templates
Modified Files:
styles.css main.html developer_docs.html
Log Message:
converted CRLF to LF
Index: styles.css
===================================================================
RCS file: /cvsroot/phpwebapp/documentation/templates/styles.css,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** styles.css 22 Aug 2003 06:51:17 -0000 1.5
--- styles.css 25 Aug 2003 14:34:23 -0000 1.6
***************
*** 1,76 ****
! body
! {
! margin: 5px;
! background-color: #ffffff;
! font-family: arial, helvetica, sans-se;
! font-size: 12pt;
! color: #000044;
! }
!
! a
! {
! text-decoration: none;
! }
!
! h1
! {
! text-align: center;
! }
!
! h1, h2, h3, h4, h5
! {
! color: #660000;
! }
!
! .small_font
! {
! font-family: arial, helvetica, sans-se;
! font-size: 8pt;
! color: #000000;
! text-align: right;
! white-space: nowrap;
! }
!
! .content_box
! {
! padding: 10px;
! background-color: #ffddaa;
! }
!
! .white_box
! {
! border: 1px solid #999999;
! padding: 10px;
! background-color: #ffffff;
! }
!
! .white_box_1
! {
! border: 1px solid #999999;
! padding: 0px;
! background-color: #ffffff;
! }
!
! .note
! {
! margin: 20px;
! display: block;
! border: 1px solid #dd0000;
! padding: 5px;
! background-color: #ffffcc;
! font-family: arial, helvetica, sans-se;
! font-size: 12pt;
! color: #000000;
! }
! .note a
! {
! font-size: 12pt;
! text-decoration: none;
! color: #0000ff;
! }
! .note .title
! {
! font-size: 12pt;
! color: #ee0000;
! text-decoration: underline;
! }
--- 1,76 ----
! body
! {
! margin: 5px;
! background-color: #ffffff;
! font-family: arial, helvetica, sans-se;
! font-size: 12pt;
! color: #000044;
! }
!
! a
! {
! text-decoration: none;
! }
!
! h1
! {
! text-align: center;
! }
!
! h1, h2, h3, h4, h5
! {
! color: #660000;
! }
!
! .small_font
! {
! font-family: arial, helvetica, sans-se;
! font-size: 8pt;
! color: #000000;
! text-align: right;
! white-space: nowrap;
! }
!
! .content_box
! {
! padding: 10px;
! background-color: #ffddaa;
! }
!
! .white_box
! {
! border: 1px solid #999999;
! padding: 10px;
! background-color: #ffffff;
! }
!
! .white_box_1
! {
! border: 1px solid #999999;
! padding: 0px;
! background-color: #ffffff;
! }
!
! .note
! {
! margin: 20px;
! display: block;
! border: 1px solid #dd0000;
! padding: 5px;
! background-color: #ffffcc;
! font-family: arial, helvetica, sans-se;
! font-size: 12pt;
! color: #000000;
! }
! .note a
! {
! font-size: 12pt;
! text-decoration: none;
! color: #0000ff;
! }
! .note .title
! {
! font-size: 12pt;
! color: #ee0000;
! text-decoration: underline;
! }
Index: main.html
===================================================================
RCS file: /cvsroot/phpwebapp/documentation/templates/main.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** main.html 20 Aug 2003 07:31:55 -0000 1.4
--- main.html 25 Aug 2003 14:34:23 -0000 1.5
***************
*** 1,44 ****
! <html>
! <head>
! <title>phpWebApp</title>
! <link rel="stylesheet" type="text/css" href="{{./}}styles.css">
! </head>
!
! <body>
!
! <!--# Header #-->
! <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0">
! <tr>
! <td width="1%" align="right" valign="top">
! <img src="http://sourceforge.net/sflogo.php?group_id=41147" width="88" height="31" border="0" alt="SourceForge Logo">
! </td>
! <td align="center">
! <h3>phpWebApp Documentation</h3>
! </td>
! <td width="1%" align="left" valign="top" nowrap>
! <Include SRC="{{./}}bismilah.html" />
! </td>
! </tr>
! </table>
!
! <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0">
! <tr>
! <td>
! <!--# Menu #-->
! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs1.html">
! <WebObject Class="tabs1" Name="mainMenu"
! items="{{./}}mainMenu_items.php" />
! </td>
! </tr>
! <tr>
! <td class="content_box">
! <!--# Content #-->
! <WebBox ID="content">
! <Include SRC="{{./}}{{content_file}}"/>
! </WebBox>
! </td>
! </tr>
! </table>
!
! </body>
! </html>
--- 1,44 ----
! <html>
! <head>
! <title>phpWebApp</title>
! <link rel="stylesheet" type="text/css" href="{{./}}styles.css">
! </head>
!
! <body>
!
! <!--# Header #-->
! <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0">
! <tr>
! <td width="1%" align="right" valign="top">
! <img src="http://sourceforge.net/sflogo.php?group_id=41147" width="88" height="31" border="0" alt="SourceForge Logo">
! </td>
! <td align="center">
! <h3>phpWebApp Documentation</h3>
! </td>
! <td width="1%" align="left" valign="top" nowrap>
! <Include SRC="{{./}}bismilah.html" />
! </td>
! </tr>
! </table>
!
! <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0">
! <tr>
! <td>
! <!--# Menu #-->
! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs1.html">
! <WebObject Class="tabs1" Name="mainMenu"
! items="{{./}}mainMenu_items.php" />
! </td>
! </tr>
! <tr>
! <td class="content_box">
! <!--# Content #-->
! <WebBox ID="content">
! <Include SRC="{{./}}{{content_file}}"/>
! </WebBox>
! </td>
! </tr>
! </table>
!
! </body>
! </html>
Index: developer_docs.html
===================================================================
RCS file: /cvsroot/phpwebapp/documentation/templates/developer_docs.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** developer_docs.html 22 Aug 2003 06:51:17 -0000 1.3
--- developer_docs.html 25 Aug 2003 14:34:23 -0000 1.4
***************
*** 1,58 ****
!
! <h3>Documents</h3>
! <ul>
! <li>
! UML Model (Logical View)
!
! [ Petal
! | XMI
! | <a href="{{APP_URL}}external/uml_model/index.html" target="_blank">HTML Online</a>
! | HTML Download ]
! </li>
! <li>
! Code Documentation (generated by phpDocumentor)
!
! [ PDF
! | HTML Online
! | HTML Download ]
! </li>
! <li>
! Code Documentation (generated by doxygen)
!
! [ PDF
! | HTML Online
! | HTML Download ]
! </li>
! </ul>
!
! <h3>Discussion Lists</h3>
! <ul>
! <li>
! <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-developers" target="_blank">phpwebapp-developers</a>
! -- For communication between the developers of the framework.
! </li>
! <li>
! <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-improvments" target="_blank">phpwebapp-improvments</a>
! -- For discussing improvments that can be made to the framework.
! </li>
! <li>
! <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-discussion" target="_blank">phpwebapp-discussion</a>
! -- Discussing problems of web applications in general and how they can be solved.
! </li>
! <li>
! <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-commits" target="_blank">phpwebapp-commits</a>
! -- Automatic announcement of each commit made to phpwebapp project.
! </li>
! </ul>
!
! <h3>ToDo list</h3>
! <ul>
! <li>
! <a href="http://sourceforge.net/pm/?group_id=41147" target="_blank">
! Tasks
! </a>
! </li>
! <li>
! </li>
! </ul>
! <br>
--- 1,58 ----
!
! <h3>Documents</h3>
! <ul>
! <li>
! UML Model (Logical View)
!
! [ Petal
! | XMI
! | <a href="{{APP_URL}}external/uml_model/index.html" target="_blank">HTML Online</a>
! | HTML Download ]
! </li>
! <li>
! Code Documentation (generated by phpDocumentor)
!
! [ PDF
! | HTML Online
! | HTML Download ]
! </li>
! <li>
! Code Documentation (generated by doxygen)
!
! [ PDF
! | HTML Online
! | HTML Download ]
! </li>
! </ul>
!
! <h3>Discussion Lists</h3>
! <ul>
! <li>
! <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-developers" target="_blank">phpwebapp-developers</a>
! -- For communication between the developers of the framework.
! </li>
! <li>
! <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-improvments" target="_blank">phpwebapp-improvments</a>
! -- For discussing improvments that can be made to the framework.
! </li>
! <li>
! <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-discussion" target="_blank">phpwebapp-discussion</a>
! -- Discussing problems of web applications in general and how they can be solved.
! </li>
! <li>
! <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-commits" target="_blank">phpwebapp-commits</a>
! -- Automatic announcement of each commit made to phpwebapp project.
! </li>
! </ul>
!
! <h3>ToDo list</h3>
! <ul>
! <li>
! <a href="http://sourceforge.net/pm/?group_id=41147" target="_blank">
! Tasks
! </a>
! </li>
! <li>
! </li>
! </ul>
! <br>
|
|
From: Dashamir H. <das...@us...> - 2003-08-26 16:01:17
|
Update of /cvsroot/phpwebapp/web_app/tools/fileBrowser In directory sc8-pr-cvs1:/tmp/cvs-serv9888/tools/fileBrowser Modified Files: panel.php panel.js file.php Log Message: Added the copying permission statement for the GNU GPL. Index: panel.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/panel.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** panel.php 11 Aug 2003 16:17:51 -0000 1.3 --- panel.php 25 Aug 2003 13:18:29 -0000 1.4 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + /** * @package tools Index: panel.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/panel.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** panel.js 16 Jul 2003 09:27:59 -0000 1.2 --- panel.js 25 Aug 2003 13:18:29 -0000 1.3 *************** *** 1,3 **** --- 1,22 ---- //-*- mode: C; -*-//tells emacs to use mode C for this file + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ Index: file.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/file.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** file.php 22 Aug 2003 06:47:20 -0000 1.4 --- file.php 25 Aug 2003 13:18:29 -0000 1.5 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + /** * @package tools |
|
From: Dashamir H. <das...@us...> - 2003-08-26 14:44:59
|
Update of /cvsroot/phpwebapp/app1
In directory sc8-pr-cvs1:/tmp/cvs-serv17951
Modified Files:
webapp.php index.php browse.php
Log Message:
Added copying permission statement for GNU GPL.
Index: webapp.php
===================================================================
RCS file: /cvsroot/phpwebapp/app1/webapp.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** webapp.php 15 Aug 2003 09:03:22 -0000 1.3
--- webapp.php 25 Aug 2003 13:41:13 -0000 1.4
***************
*** 1,3 ****
--- 1,24 ----
<?php
+ /*
+ Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
+
+ This file is part of phpWebApp.
+
+ phpWebApp 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.
+
+ phpWebApp is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with phpWebApp; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+
//define APP_PATH and APP_URL
$script_filename = $_SERVER["SCRIPT_FILENAME"];
***************
*** 26,30 ****
include WEBAPP_PATH."WebApp.php";
! if ($event->targetPage==UNDEFINED)
{
//first time that the user enters in the application
--- 47,51 ----
include WEBAPP_PATH."WebApp.php";
! if (WebApp::first_time())
{
//first time that the user enters in the application
Index: index.php
===================================================================
RCS file: /cvsroot/phpwebapp/app1/index.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** index.php 21 Feb 2003 08:23:37 -0000 1.1.1.1
--- index.php 25 Aug 2003 13:41:13 -0000 1.2
***************
*** 1,3 ****
--- 1,24 ----
<?php
+ /*
+ Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
+
+ This file is part of phpWebApp.
+
+ phpWebApp 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.
+
+ phpWebApp is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with phpWebApp; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+
include_once "webapp.php";
Index: browse.php
===================================================================
RCS file: /cvsroot/phpwebapp/app1/browse.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** browse.php 6 Aug 2003 08:55:36 -0000 1.2
--- browse.php 25 Aug 2003 13:41:13 -0000 1.3
***************
*** 1,5 ****
<?php
include "webapp.php";
WebApp::addVar("APP_STYLE", APP_URL."templates/styles.css");
WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html");
! ?>
--- 1,35 ----
<?php
+ /*
+ Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
+
+ This file is part of phpWebApp.
+
+ phpWebApp 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.
+
+ phpWebApp is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with phpWebApp; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+
include "webapp.php";
+
+ if (WebApp::first_time())
+ {
+ $path = $_SERVER["QUERY_STRING"];
+ WebApp::addSVar("folderListing->fileFilter", ".*");
+ WebApp::addSVar("folderListing->root", APP_PATH);
+ WebApp::addSVar("folderListing->currentPath", $path);
+ }
+
WebApp::addVar("APP_STYLE", APP_URL."templates/styles.css");
WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html");
! ?>
\ No newline at end of file
|
|
From: Dashamir H. <das...@us...> - 2003-08-26 14:15:21
|
Update of /cvsroot/phpwebapp/web_app/boxes/fileView In directory sc8-pr-cvs1:/tmp/cvs-serv9888/boxes/fileView Modified Files: viewUnknown.php viewPHP.php viewImage.php fileView.php Log Message: Added the copying permission statement for the GNU GPL. Index: viewUnknown.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/fileView/viewUnknown.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** viewUnknown.php 11 Aug 2003 16:17:52 -0000 1.3 --- viewUnknown.php 25 Aug 2003 13:18:33 -0000 1.4 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * @package boxes Index: viewPHP.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/fileView/viewPHP.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** viewPHP.php 11 Aug 2003 16:17:52 -0000 1.2 --- viewPHP.php 25 Aug 2003 13:18:33 -0000 1.3 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * @package boxes Index: viewImage.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/fileView/viewImage.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** viewImage.php 11 Aug 2003 16:17:52 -0000 1.3 --- viewImage.php 25 Aug 2003 13:18:33 -0000 1.4 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * @package boxes Index: fileView.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/fileView/fileView.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fileView.php 20 Aug 2003 07:07:56 -0000 1.4 --- fileView.php 25 Aug 2003 13:18:33 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * @package boxes |
|
From: Dashamir H. <das...@us...> - 2003-08-26 14:00:25
|
Update of /cvsroot/phpwebapp/app3/templates/menu
In directory sc8-pr-cvs1:/tmp/cvs-serv19640/templates/menu
Modified Files:
menu.php menu.js
Log Message:
Added copying permission statement for GNU GPL.
Index: menu.php
===================================================================
RCS file: /cvsroot/phpwebapp/app3/templates/menu/menu.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** menu.php 22 Aug 2003 16:14:27 -0000 1.1.1.1
--- menu.php 25 Aug 2003 13:52:02 -0000 1.2
***************
*** 1,3 ****
--- 1,5 ----
<?php
+ /* This file is part of phpWebApp. */
+
class menu extends WebObject
{
Index: menu.js
===================================================================
RCS file: /cvsroot/phpwebapp/app3/templates/menu/menu.js,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** menu.js 22 Aug 2003 16:14:27 -0000 1.1.1.1
--- menu.js 25 Aug 2003 13:52:02 -0000 1.2
***************
*** 1,5 ****
! //This file contains the JavaScript code
! //of the WebBox 'menu'.
function goto_page1()
--- 1,10 ----
+ //-*- mode: C; -*-//tells emacs to use mode C for this file
+ /* This file is part of phpWebApp. */
! /**
! * This file contains the JavaScript code
! * of the WebBox 'menu'.
! */
! /** */
function goto_page1()
|
|
From: Dashamir H. <das...@us...> - 2003-08-26 13:54:33
|
Update of /cvsroot/phpwebapp/web_app/database In directory sc8-pr-cvs1:/tmp/cvs-serv9888/database Modified Files: package.DB.php class.TableRS.php class.StaticRS.php class.Recordset.php class.PagedRS.php class.MySQLCnn.php class.EditableRS.php class.Connection.php Log Message: Added the copying permission statement for the GNU GPL. Index: package.DB.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/package.DB.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** package.DB.php 22 Aug 2003 15:54:42 -0000 1.4 --- package.DB.php 25 Aug 2003 13:18:32 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * @package database Index: class.TableRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.TableRS.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.TableRS.php 22 Aug 2003 15:54:42 -0000 1.4 --- class.TableRS.php 25 Aug 2003 13:18:32 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + include_once DB_PATH."class.Recordset.php"; Index: class.StaticRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.StaticRS.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.StaticRS.php 22 Aug 2003 15:54:42 -0000 1.4 --- class.StaticRS.php 25 Aug 2003 13:18:32 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + include_once DB_PATH."class.Recordset.php"; Index: class.Recordset.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.Recordset.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** class.Recordset.php 22 Aug 2003 15:54:42 -0000 1.6 --- class.Recordset.php 25 Aug 2003 13:18:32 -0000 1.7 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * This class represents a recordset (the table returned by the Index: class.PagedRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.PagedRS.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.PagedRS.php 22 Aug 2003 15:54:42 -0000 1.5 --- class.PagedRS.php 25 Aug 2003 13:18:32 -0000 1.6 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + include_once DB_PATH."class.Recordset.php"; Index: class.MySQLCnn.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.MySQLCnn.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** class.MySQLCnn.php 22 Aug 2003 15:54:42 -0000 1.6 --- class.MySQLCnn.php 25 Aug 2003 13:18:32 -0000 1.7 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + include_once DB_PATH."class.Connection.php"; Index: class.EditableRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.EditableRS.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.EditableRS.php 22 Aug 2003 15:54:42 -0000 1.5 --- class.EditableRS.php 25 Aug 2003 13:18:32 -0000 1.6 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + include_once DB_PATH."class.StaticRS.php"; Index: class.Connection.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.Connection.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** class.Connection.php 22 Aug 2003 15:54:42 -0000 1.6 --- class.Connection.php 25 Aug 2003 13:18:32 -0000 1.7 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + /** * This class is used for opening a connection with a database |
|
From: Dashamir H. <das...@us...> - 2003-08-26 13:20:21
|
Update of /cvsroot/phpwebapp/documentation/config
In directory sc8-pr-cvs1:/tmp/cvs-serv14889/config
Modified Files:
const.Paths.php
Log Message:
Index: const.Paths.php
===================================================================
RCS file: /cvsroot/phpwebapp/documentation/config/const.Paths.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** const.Paths.php 25 Aug 2003 13:29:19 -0000 1.6
--- const.Paths.php 25 Aug 2003 16:12:35 -0000 1.7
***************
*** 38,40 ****
--- 38,42 ----
define("APP2_URL", UP_URL."app2/");
define("APP3_URL", UP_URL."app3/");
+
+ define("HOME_URL", "http://phpwebapp.sourceforge.net/");
?>
|
|
From: Dashamir H. <das...@us...> - 2003-08-26 13:19:44
|
Update of /cvsroot/phpwebapp/documentation/templates
In directory sc8-pr-cvs1:/tmp/cvs-serv14889/templates
Modified Files:
developer_docs.html
Log Message:
Index: developer_docs.html
===================================================================
RCS file: /cvsroot/phpwebapp/documentation/templates/developer_docs.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** developer_docs.html 25 Aug 2003 14:34:23 -0000 1.4
--- developer_docs.html 25 Aug 2003 16:12:35 -0000 1.5
***************
*** 3,26 ****
<ul>
<li>
! UML Model (Logical View)
!
! [ Petal
| XMI
! | <a href="{{APP_URL}}external/uml_model/index.html" target="_blank">HTML Online</a>
! | HTML Download ]
</li>
<li>
! Code Documentation (generated by phpDocumentor)
!
[ PDF
! | HTML Online
! | HTML Download ]
</li>
<li>
! Code Documentation (generated by doxygen)
!
! [ PDF
! | HTML Online
! | HTML Download ]
</li>
</ul>
--- 3,28 ----
<ul>
<li>
! UML Model (Logical View) <br>
! [ <a href="{{UP_URL}}web_app/doc/WebApp.mdl" target="_blank">Petal</a> (300 KB)
| XMI
! | <a href="{{HOME_URL}}documentation/external/uml_model/index.html" target="_blank">HTML</a>
! | <a href="{{HOME_URL}}documentation/external/download/uml_model.tar.gz">HTML.tar.gz</a> (200 KB)
! ]<br><br>
</li>
<li>
! Code Documentation (generated by phpDocumentor) <br>
[ PDF
! | <a href="{{HOME_URL}}documentation/external/phpdoc/" target="_blank">HTML</a>
! | <a href="{{HOME_URL}}documentation/external/download/phpdoc.tar.gz">HTML.tar.gz</a> (160 KB)
! ]<br><br>
</li>
<li>
! Code Documentation (generated by doxygen) <br>
! [ <a href="{{HOME_URL}}documentation/external/doxydoc/latex/refman.pdf" target="_blank">PDF</a>
! | <a href="{{HOME_URL}}documentation/external/download/doxydoc_latex.tar.gz">PDF.tar.gz</a> (1.3 MB)
! | <a href="{{HOME_URL}}documentation/external/download/doxydoc_rtf.tar.gz">RTF.tar.gz</a> (2.8 MB)
! | <a href="{{HOME_URL}}documentation/external/doxydoc/html/" target="_blank">HTML</a>
! | <a href="{{HOME_URL}}documentation/external/download/doxydoc_html.tar.gz">HTML.tar.gz</a> (3 MB)
! ]<br><br>
</li>
</ul>
***************
*** 30,46 ****
<li>
<a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-developers" target="_blank">phpwebapp-developers</a>
! -- For communication between the developers of the framework.
</li>
<li>
<a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-improvments" target="_blank">phpwebapp-improvments</a>
! -- For discussing improvments that can be made to the framework.
</li>
<li>
<a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-discussion" target="_blank">phpwebapp-discussion</a>
! -- Discussing problems of web applications in general and how they can be solved.
</li>
<li>
<a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-commits" target="_blank">phpwebapp-commits</a>
! -- Automatic announcement of each commit made to phpwebapp project.
</li>
</ul>
--- 32,56 ----
<li>
<a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-developers" target="_blank">phpwebapp-developers</a>
! <br>
! For communication between the developers of the framework.
! <br><br>
</li>
<li>
<a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-improvments" target="_blank">phpwebapp-improvments</a>
! <br>
! For discussing improvments that can be made to the framework.
! <br><br>
</li>
<li>
<a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-discussion" target="_blank">phpwebapp-discussion</a>
! <br>
! Discussing problems of web applications in general and how they can be solved.
! <br><br>
</li>
<li>
<a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-commits" target="_blank">phpwebapp-commits</a>
! <br>
! Automatic announcement of each commit made to phpwebapp project.
! <br><br>
</li>
</ul>
|
|
From: Dashamir H. <das...@us...> - 2003-08-26 11:59:09
|
Update of /cvsroot/phpwebapp/web_app/webobjects/table In directory sc8-pr-cvs1:/tmp/cvs-serv9888/webobjects/table Modified Files: table.php Log Message: Added the copying permission statement for the GNU GPL. Index: table.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/table/table.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** table.php 11 Aug 2003 16:17:51 -0000 1.3 --- table.php 25 Aug 2003 13:18:28 -0000 1.4 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp 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. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * @package webobjects |
|
From: Dashamir H. <das...@us...> - 2003-08-26 10:51:24
|
Update of /cvsroot/phpwebapp/web_app/webobjects/tabs
In directory sc8-pr-cvs1:/tmp/cvs-serv27739/webobjects/tabs
Modified Files:
tabs3_items.php tabs3.php tabs3.js tabs3.html tabs2_items.php
tabs2.php tabs2.js tabs2.html tabs1_items.php tabs1.php
tabs1.js tabs1.html
Log Message:
converted CRLF to LF
Index: tabs3_items.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs3_items.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** tabs3_items.php 25 Aug 2003 13:18:28 -0000 1.4
--- tabs3_items.php 25 Aug 2003 14:37:19 -0000 1.5
***************
*** 1,17 ****
! <?php
! /* This file is part of phpWebApp. */
!
! /**
! * The $menu_items array contains the items of the tabs3.
! *
! * @package webobjects
! * @subpackage tabs
! */
! $menu_items = array(
! "item1" => " Menu Item 1 ",
! "item2" => " Menu Item 2 ",
! "item3" => " Menu Item 3 ",
! "etc1" => " . . . ",
! "etc2" => " . . . "
! );
! ?>
--- 1,17 ----
! <?php
! /* This file is part of phpWebApp. */
!
! /**
! * The $menu_items array contains the items of the tabs3.
! *
! * @package webobjects
! * @subpackage tabs
! */
! $menu_items = array(
! "item1" => " Menu Item 1 ",
! "item2" => " Menu Item 2 ",
! "item3" => " Menu Item 3 ",
! "etc1" => " . . . ",
! "etc2" => " . . . "
! );
! ?>
Index: tabs3.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs3.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** tabs3.php 25 Aug 2003 13:18:28 -0000 1.4
--- tabs3.php 25 Aug 2003 14:37:19 -0000 1.5
***************
*** 1,81 ****
! <?php
! /*
! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
!
! This file is part of phpWebApp.
!
! phpWebApp 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.
!
! phpWebApp is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with phpWebApp; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
! */
!
!
! /**
! * @package webobjects
! * @subpackage tabs
! */
! class tabs3 extends WebObject
! {
! function init()
! {
! $items_file = $this->params["items"];
! $items_file = WebApp::replaceVars($items_file);
! $this->addSVar("items_file", $items_file);
!
! //set the first menu item as the selected item
! include $items_file; //read the menu items
! $first_item = key($menu_items);
! $this->addSVar("selected_item", $first_item);
! }
!
! function on_select($event_args)
! {
! $item = $event_args["item"];
! $this->setSVar("selected_item", $item);
! }
!
! function onRender()
! {
! $this->add_items_list();
! }
!
! function add_items_list()
! {
! $obj_vars = $this->getObjVars();
! $obj_name = $obj_vars["obj_name"];
! $obj_count = $obj_vars["obj_count"];
! $rs = new EditableRS($obj_name."_items");
!
! //read the menu items
! $items_file = $this->getSVar("items_file");
! include $items_file;
!
! //fill the recordset
! $selected = $this->getSVar("selected_item");
! while ( list($item, $label) = each($menu_items) )
! {
! $css_class = ($item==$selected ? "tabs3-item-selected" : "tabs3-item");
! $rec = array(
! "item" => $item,
! "label" => $label,
! "class" => $css_class
! );
! $rs->addRec($rec);
! }
!
! //set the recordset to the page
! global $webPage;
! $webPage->addRecordset($rs);
! }
! }
! ?>
--- 1,81 ----
! <?php
! /*
! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
!
! This file is part of phpWebApp.
!
! phpWebApp 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.
!
! phpWebApp is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with phpWebApp; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
! */
!
!
! /**
! * @package webobjects
! * @subpackage tabs
! */
! class tabs3 extends WebObject
! {
! function init()
! {
! $items_file = $this->params["items"];
! $items_file = WebApp::replaceVars($items_file);
! $this->addSVar("items_file", $items_file);
!
! //set the first menu item as the selected item
! include $items_file; //read the menu items
! $first_item = key($menu_items);
! $this->addSVar("selected_item", $first_item);
! }
!
! function on_select($event_args)
! {
! $item = $event_args["item"];
! $this->setSVar("selected_item", $item);
! }
!
! function onRender()
! {
! $this->add_items_list();
! }
!
! function add_items_list()
! {
! $obj_vars = $this->getObjVars();
! $obj_name = $obj_vars["obj_name"];
! $obj_count = $obj_vars["obj_count"];
! $rs = new EditableRS($obj_name."_items");
!
! //read the menu items
! $items_file = $this->getSVar("items_file");
! include $items_file;
!
! //fill the recordset
! $selected = $this->getSVar("selected_item");
! while ( list($item, $label) = each($menu_items) )
! {
! $css_class = ($item==$selected ? "tabs3-item-selected" : "tabs3-item");
! $rec = array(
! "item" => $item,
! "label" => $label,
! "class" => $css_class
! );
! $rs->addRec($rec);
! }
!
! //set the recordset to the page
! global $webPage;
! $webPage->addRecordset($rs);
! }
! }
! ?>
Index: tabs3.js
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs3.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** tabs3.js 25 Aug 2003 13:18:28 -0000 1.3
--- tabs3.js 25 Aug 2003 14:37:19 -0000 1.4
***************
*** 1,7 ****
! //-*- mode: C; -*-//tells emacs to use mode C for this file
! /* This file is part of phpWebApp. */
!
! function tabs3_select(obj_id, item)
! {
! SendEvent(obj_id, "select", "item="+item);
! }
--- 1,7 ----
! //-*- mode: C; -*-//tells emacs to use mode C for this file
! /* This file is part of phpWebApp. */
!
! function tabs3_select(obj_id, item)
! {
! SendEvent(obj_id, "select", "item="+item);
! }
Index: tabs3.html
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs3.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** tabs3.html 23 Feb 2003 14:23:16 -0000 1.1
--- tabs3.html 25 Aug 2003 14:37:19 -0000 1.2
***************
*** 1,12 ****
! <WebClass ID="tabs3">
! <Parameter name="items" default="{{./}}{{obj_name}}_items.php" />
! <table class="tabs3-table" cellspacing="0" cellpadding="0">
! <Repeat rs="{{obj_name}}_items">
! <tr><td class="{{class}}">
! <a href="javascript: tabs3_select('{{obj_id}}', '{{item}}')">
! {{label}}
! </a>
! </td></tr>
! </Repeat>
! </table>
! </WebClass>
--- 1,12 ----
! <WebClass ID="tabs3">
! <Parameter name="items" default="{{./}}{{obj_name}}_items.php" />
! <table class="tabs3-table" cellspacing="0" cellpadding="0">
! <Repeat rs="{{obj_name}}_items">
! <tr><td class="{{class}}">
! <a href="javascript: tabs3_select('{{obj_id}}', '{{item}}')">
! {{label}}
! </a>
! </td></tr>
! </Repeat>
! </table>
! </WebClass>
Index: tabs2_items.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs2_items.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** tabs2_items.php 25 Aug 2003 13:18:28 -0000 1.4
--- tabs2_items.php 25 Aug 2003 14:37:19 -0000 1.5
***************
*** 1,17 ****
! <?php
! /* This file is part of phpWebApp. */
!
! /**
! * The $menu_items array contains the items of the tabs2.
! *
! * @package webobjects
! * @subpackage tabs
! */
! $menu_items = array(
! "item1" => " Menu Item 1 ",
! "item2" => " Menu Item 2 ",
! "item3" => " Menu Item 3 ",
! "etc1" => " . . . ",
! "etc2" => " . . . "
! );
! ?>
--- 1,17 ----
! <?php
! /* This file is part of phpWebApp. */
!
! /**
! * The $menu_items array contains the items of the tabs2.
! *
! * @package webobjects
! * @subpackage tabs
! */
! $menu_items = array(
! "item1" => " Menu Item 1 ",
! "item2" => " Menu Item 2 ",
! "item3" => " Menu Item 3 ",
! "etc1" => " . . . ",
! "etc2" => " . . . "
! );
! ?>
Index: tabs2.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs2.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** tabs2.php 25 Aug 2003 13:18:28 -0000 1.4
--- tabs2.php 25 Aug 2003 14:37:19 -0000 1.5
***************
*** 1,81 ****
! <?php
! /*
! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
!
! This file is part of phpWebApp.
!
! phpWebApp 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.
!
! phpWebApp is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with phpWebApp; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
! */
!
!
! /**
! * @package webobjects
! * @subpackage tabs
! */
! class tabs2 extends WebObject
! {
! function init()
! {
! $items_file = $this->params["items"];
! $items_file = WebApp::replaceVars($items_file);
! $this->addSVar("items_file", $items_file);
!
! //set the first menu item as the selected item
! include $items_file; //read the menu items
! $first_item = key($menu_items);
! $this->addSVar("selected_item", $first_item);
! }
!
! function on_select($event_args)
! {
! $item = $event_args["item"];
! $this->setSVar("selected_item", $item);
! }
!
! function onRender()
! {
! $this->add_items_list();
! }
!
! function add_items_list()
! {
! $obj_vars = $this->getObjVars();
! $obj_name = $obj_vars["obj_name"];
! $obj_count = $obj_vars["obj_count"];
! $rs = new EditableRS($obj_name."_items");
!
! //read the menu items
! $items_file = $this->getSVar("items_file");
! include $items_file;
!
! //fill the recordset
! $selected = $this->getSVar("selected_item");
! while ( list($item, $label) = each($menu_items) )
! {
! $css_class = ($item==$selected ? "tabs2-item-selected" : "tabs2-item");
! $rec = array(
! "item" => $item,
! "label" => $label,
! "class" => $css_class
! );
! $rs->addRec($rec);
! }
!
! //set the recordset to the page
! global $webPage;
! $webPage->addRecordset($rs);
! }
! }
! ?>
--- 1,81 ----
! <?php
! /*
! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
!
! This file is part of phpWebApp.
!
! phpWebApp 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.
!
! phpWebApp is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with phpWebApp; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
! */
!
!
! /**
! * @package webobjects
! * @subpackage tabs
! */
! class tabs2 extends WebObject
! {
! function init()
! {
! $items_file = $this->params["items"];
! $items_file = WebApp::replaceVars($items_file);
! $this->addSVar("items_file", $items_file);
!
! //set the first menu item as the selected item
! include $items_file; //read the menu items
! $first_item = key($menu_items);
! $this->addSVar("selected_item", $first_item);
! }
!
! function on_select($event_args)
! {
! $item = $event_args["item"];
! $this->setSVar("selected_item", $item);
! }
!
! function onRender()
! {
! $this->add_items_list();
! }
!
! function add_items_list()
! {
! $obj_vars = $this->getObjVars();
! $obj_name = $obj_vars["obj_name"];
! $obj_count = $obj_vars["obj_count"];
! $rs = new EditableRS($obj_name."_items");
!
! //read the menu items
! $items_file = $this->getSVar("items_file");
! include $items_file;
!
! //fill the recordset
! $selected = $this->getSVar("selected_item");
! while ( list($item, $label) = each($menu_items) )
! {
! $css_class = ($item==$selected ? "tabs2-item-selected" : "tabs2-item");
! $rec = array(
! "item" => $item,
! "label" => $label,
! "class" => $css_class
! );
! $rs->addRec($rec);
! }
!
! //set the recordset to the page
! global $webPage;
! $webPage->addRecordset($rs);
! }
! }
! ?>
Index: tabs2.js
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs2.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** tabs2.js 25 Aug 2003 13:18:28 -0000 1.3
--- tabs2.js 25 Aug 2003 14:37:19 -0000 1.4
***************
*** 1,7 ****
! //-*- mode: C; -*-//tells emacs to use mode C for this file
! /* This file is part of phpWebApp. */
!
! function tabs2_select(obj_id, item)
! {
! SendEvent(obj_id, "select", "item="+item);
! }
--- 1,7 ----
! //-*- mode: C; -*-//tells emacs to use mode C for this file
! /* This file is part of phpWebApp. */
!
! function tabs2_select(obj_id, item)
! {
! SendEvent(obj_id, "select", "item="+item);
! }
Index: tabs2.html
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs2.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** tabs2.html 23 Feb 2003 14:23:16 -0000 1.1
--- tabs2.html 25 Aug 2003 14:37:19 -0000 1.2
***************
*** 1,15 ****
! <WebClass ID="tabs2">
! <Parameter name="items" default="{{./}}{{obj_name}}_items.php" />
! <table cellspacing="0" cellpadding="0" border="0" width="100%">
! <tr>
! <Repeat rs="{{obj_name}}_items">
! <td class="{{class}}">
! <a href="javascript: tabs2_select('{{obj_id}}', '{{item}}')">
! {{label}}
! </a>
! </td>
! </Repeat>
! <td class="tabs2-empty"> </td>
! </tr>
! </table>
! </WebClass>
--- 1,15 ----
! <WebClass ID="tabs2">
! <Parameter name="items" default="{{./}}{{obj_name}}_items.php" />
! <table cellspacing="0" cellpadding="0" border="0" width="100%">
! <tr>
! <Repeat rs="{{obj_name}}_items">
! <td class="{{class}}">
! <a href="javascript: tabs2_select('{{obj_id}}', '{{item}}')">
! {{label}}
! </a>
! </td>
! </Repeat>
! <td class="tabs2-empty"> </td>
! </tr>
! </table>
! </WebClass>
Index: tabs1_items.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1_items.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** tabs1_items.php 25 Aug 2003 13:18:28 -0000 1.4
--- tabs1_items.php 25 Aug 2003 14:37:19 -0000 1.5
***************
*** 1,17 ****
! <?php
! /* This file is part of phpWebApp. */
!
! /**
! * The $menu_items array contains the items of the tabs1.
! *
! * @package webobjects
! * @subpackage tabs
! */
! $menu_items = array(
! "item1" => " Menu Item 1 ",
! "item2" => " Menu Item 2 ",
! "item3" => " Menu Item 3 ",
! "etc1" => " . . . ",
! "etc2" => " . . . "
! );
! ?>
--- 1,17 ----
! <?php
! /* This file is part of phpWebApp. */
!
! /**
! * The $menu_items array contains the items of the tabs1.
! *
! * @package webobjects
! * @subpackage tabs
! */
! $menu_items = array(
! "item1" => " Menu Item 1 ",
! "item2" => " Menu Item 2 ",
! "item3" => " Menu Item 3 ",
! "etc1" => " . . . ",
! "etc2" => " . . . "
! );
! ?>
Index: tabs1.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** tabs1.php 25 Aug 2003 13:18:28 -0000 1.4
--- tabs1.php 25 Aug 2003 14:37:19 -0000 1.5
***************
*** 1,81 ****
! <?php
! /*
! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
!
! This file is part of phpWebApp.
!
! phpWebApp 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.
!
! phpWebApp is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with phpWebApp; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
! */
!
!
! /**
! * @package webobjects
! * @subpackage tabs
! */
! class tabs1 extends WebObject
! {
! function init()
! {
! $items_file = $this->params["items"];
! $items_file = WebApp::replaceVars($items_file);
! $this->addSVar("items_file", $items_file);
!
! //set the first menu item as the selected item
! include $items_file; //read the menu items
! $first_item = key($menu_items);
! $this->addSVar("selected_item", $first_item);
! }
!
! function on_select($event_args)
! {
! $item = $event_args["item"];
! $this->setSVar("selected_item", $item);
! }
!
! function onRender()
! {
! $this->add_items_list();
! }
!
! function add_items_list()
! {
! $obj_vars = $this->getObjVars();
! $obj_name = $obj_vars["obj_name"];
! $obj_count = $obj_vars["obj_count"];
! $rs = new EditableRS($obj_name."_items");
!
! //read the menu items
! $items_file = $this->getSVar("items_file");
! include $items_file;
!
! //fill the recordset
! $selected = $this->getSVar("selected_item");
! while ( list($item, $label) = each($menu_items) )
! {
! $css_class = ($item==$selected ? "tabs1-item-selected" : "tabs1-item");
! $rec = array(
! "item" => $item,
! "label" => $label,
! "class" => $css_class
! );
! $rs->addRec($rec);
! }
!
! //set the recordset to the page
! global $webPage;
! $webPage->addRecordset($rs);
! }
! }
! ?>
--- 1,81 ----
! <?php
! /*
! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
!
! This file is part of phpWebApp.
!
! phpWebApp 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.
!
! phpWebApp is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with phpWebApp; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
! */
!
!
! /**
! * @package webobjects
! * @subpackage tabs
! */
! class tabs1 extends WebObject
! {
! function init()
! {
! $items_file = $this->params["items"];
! $items_file = WebApp::replaceVars($items_file);
! $this->addSVar("items_file", $items_file);
!
! //set the first menu item as the selected item
! include $items_file; //read the menu items
! $first_item = key($menu_items);
! $this->addSVar("selected_item", $first_item);
! }
!
! function on_select($event_args)
! {
! $item = $event_args["item"];
! $this->setSVar("selected_item", $item);
! }
!
! function onRender()
! {
! $this->add_items_list();
! }
!
! function add_items_list()
! {
! $obj_vars = $this->getObjVars();
! $obj_name = $obj_vars["obj_name"];
! $obj_count = $obj_vars["obj_count"];
! $rs = new EditableRS($obj_name."_items");
!
! //read the menu items
! $items_file = $this->getSVar("items_file");
! include $items_file;
!
! //fill the recordset
! $selected = $this->getSVar("selected_item");
! while ( list($item, $label) = each($menu_items) )
! {
! $css_class = ($item==$selected ? "tabs1-item-selected" : "tabs1-item");
! $rec = array(
! "item" => $item,
! "label" => $label,
! "class" => $css_class
! );
! $rs->addRec($rec);
! }
!
! //set the recordset to the page
! global $webPage;
! $webPage->addRecordset($rs);
! }
! }
! ?>
Index: tabs1.js
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** tabs1.js 25 Aug 2003 13:18:28 -0000 1.3
--- tabs1.js 25 Aug 2003 14:37:19 -0000 1.4
***************
*** 1,7 ****
! //-*- mode: C; -*-//tells emacs to use mode C for this file
! /* This file is part of phpWebApp. */
!
! function tabs1_select(obj_id, item)
! {
! SendEvent(obj_id, "select", "item="+item);
! }
--- 1,7 ----
! //-*- mode: C; -*-//tells emacs to use mode C for this file
! /* This file is part of phpWebApp. */
!
! function tabs1_select(obj_id, item)
! {
! SendEvent(obj_id, "select", "item="+item);
! }
Index: tabs1.html
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** tabs1.html 23 Feb 2003 14:23:16 -0000 1.1
--- tabs1.html 25 Aug 2003 14:37:19 -0000 1.2
***************
*** 1,15 ****
! <WebClass ID="tabs1">
! <Parameter name="items" default="{{./}}tabs1_items.php" />
! <table cellspacing="0" cellpadding="0" border="0">
! <tr>
! <Repeat rs="{{obj_name}}_items">
! <td class="{{class}}">
! <a href="javascript: tabs1_select('{{obj_id}}', '{{item}}')">
! {{label}}
! </a>
! </td>
! <td width="3"></td>
! </Repeat>
! </tr>
! </table>
! </WebClass>
--- 1,15 ----
! <WebClass ID="tabs1">
! <Parameter name="items" default="{{./}}tabs1_items.php" />
! <table cellspacing="0" cellpadding="0" border="0">
! <tr>
! <Repeat rs="{{obj_name}}_items">
! <td class="{{class}}">
! <a href="javascript: tabs1_select('{{obj_id}}', '{{item}}')">
! {{label}}
! </a>
! </td>
! <td width="3"></td>
! </Repeat>
! </tr>
! </table>
! </WebClass>
|
|
From: Dashamir H. <das...@us...> - 2003-08-26 07:58:02
|
Update of /cvsroot/phpwebapp/empty-sample
In directory sc8-pr-cvs1:/tmp/cvs-serv886
Added Files:
COPYING
Log Message:
GNU GPL License
--- NEW FILE: COPYING ---
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
|
|
From: Dashamir H. <das...@us...> - 2003-08-26 07:54:59
|
Update of /cvsroot/phpwebapp/app3
In directory sc8-pr-cvs1:/tmp/cvs-serv542
Added Files:
COPYING
Log Message:
GNU GPL License
--- NEW FILE: COPYING ---
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
|