From ae8311e9de8d9d467506b74d387500956f164d4d Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 23 Dec 2005 03:32:45 +0000 Subject: --- .gitattributes | 3 --- demos/hangman/protected/data/application.xml | 14 -------------- demos/hangman/protected/data/words.txt | 27 --------------------------- demos/hangman/protected/pages/HomePage.php | 2 +- demos/hangman/protected/pages/config.xml | 7 ------- 5 files changed, 1 insertion(+), 52 deletions(-) delete mode 100644 demos/hangman/protected/data/application.xml delete mode 100644 demos/hangman/protected/data/words.txt delete mode 100644 demos/hangman/protected/pages/config.xml diff --git a/.gitattributes b/.gitattributes index 3a77e5fe..da283469 100644 --- a/.gitattributes +++ b/.gitattributes @@ -20,13 +20,10 @@ demos/controls/themes/BlueTheme/labels.skin -text demos/controls/themes/BlueTheme/simple.css -text demos/hangman/index.php -text demos/hangman/protected/.htaccess -text -demos/hangman/protected/data/application.xml -text -demos/hangman/protected/data/words.txt -text demos/hangman/protected/pages/HomePage.php -text demos/hangman/protected/pages/HomePage.tpl -text demos/hangman/protected/pages/Layout.php -text demos/hangman/protected/pages/Layout.tpl -text -demos/hangman/protected/pages/config.xml -text demos/personal/index.php -text demos/personal/protected/Data/application.xml -text demos/personal/protected/Modules/DataModule.php -text 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 @@ - - - - - - - - - - - - Application.data.words - - \ 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 @@ - - - - - - - \ No newline at end of file -- cgit v1.2.3