summaryrefslogtreecommitdiff
path: root/demos/hangman/protected
diff options
context:
space:
mode:
authorxue <>2005-12-23 03:32:45 +0000
committerxue <>2005-12-23 03:32:45 +0000
commitae8311e9de8d9d467506b74d387500956f164d4d (patch)
tree51e63c2cfa729c28ca0a8b610fdf072ab1d22d02 /demos/hangman/protected
parent153581e1081ba4225eb93221aced493709cb606c (diff)
Diffstat (limited to 'demos/hangman/protected')
-rw-r--r--demos/hangman/protected/data/application.xml14
-rw-r--r--demos/hangman/protected/data/words.txt27
-rw-r--r--demos/hangman/protected/pages/HomePage.php2
-rw-r--r--demos/hangman/protected/pages/config.xml7
4 files changed, 1 insertions, 49 deletions
diff --git a/demos/hangman/protected/data/application.xml b/demos/hangman/protected/data/application.xml
deleted file mode 100644
index 7cdc3a0b..00000000
--- a/demos/hangman/protected/data/application.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<application id="hangman" mode="Debug">
- <paths>
- <alias id="Application" path=".." />
- <alias id="Pages" path="../pages" />
- </paths>
- <services>
- <service id="page" BasePath="Pages" DefaultPage="home" />
- </services>
- <parameters>
- <parameter id="wordFile">Application.data.words</parameter>
- </parameters>
-</application> \ No newline at end of file
diff --git a/demos/hangman/protected/data/words.txt b/demos/hangman/protected/data/words.txt
deleted file mode 100644
index 80814580..00000000
--- a/demos/hangman/protected/data/words.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-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.
-
-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.
-
-PRADO is an event-driven and component-based framework
-for Web application development in PHP 5.
-
-Components following the PRADO protocol are highly
-configurable and reusable. Properties defining
-the basic features of a component can be configured
-in specifications, templates or code.
-New components can be developed by either inheriting
-an existing component class or composing several
-components together. The work of using a component
-amounts to placing the component tag on the page template,
-configuring component properties, and writing handler
-functions to respond to component events.
-
-PRADO shares many similarities with ASP.NET and other
-RAD tools for Windows GUI development, such as Borland Delphi.
-In particular, it supports event-driven programming,
-viewstate maintenance, javascript, template, form validations, etc. \ No newline at end of file
diff --git a/demos/hangman/protected/pages/HomePage.php b/demos/hangman/protected/pages/HomePage.php
index ed030d2f..6e0388bc 100644
--- a/demos/hangman/protected/pages/HomePage.php
+++ b/demos/hangman/protected/pages/HomePage.php
@@ -19,7 +19,7 @@ class HomePage extends TPage
$this->LevelError->Visible=true;
return;
}
- $wordFile=Prado::getPathOfNamespace($this->Application->Parameters['wordFile'],'.txt');
+ $wordFile=dirname(__FILE__).'/words.txt';
$words=preg_split("/[\s,]+/",file_get_contents($wordFile));
do
{
diff --git a/demos/hangman/protected/pages/config.xml b/demos/hangman/protected/pages/config.xml
deleted file mode 100644
index 80842300..00000000
--- a/demos/hangman/protected/pages/config.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<configuration>
- <pages>
- <page id="home" class="HomePage" />
- </pages>
-</configuration> \ No newline at end of file