+
- hidden('User/lat', array('id' => 'lat'));
- echo $html->hidden('User/long', array('id' => 'long'));
- echo $html->hidden('User/zoom', array('id' => 'zoom')); ?>
+
Privacy
+
+ Show email:
+ checkbox('User/showemail'); ?>
+ Show location:
+ checkbox('User/showloc'); ?>
+ Show map:
+ checkbox('User/showmap'); ?>
+
+
Password
+
+ New password:
+ password('User/password', array('size' => 20)); ?>
+ tagErrorMsg('User/password', 'Passwords don\'t match!')?>
+
+
+ Confirm new password:
+ password('User/confpassword', array('size' => 20)); ?>
+
+ hidden('User/lat', array('id' => 'lat'));
+ echo $html->hidden('User/long', array('id' => 'long'));
+ echo $html->hidden('User/zoom', array('id' => 'zoom')); ?>
submit('Update'); ?>
\ No newline at end of file
diff --git a/webtools/partytool/views/user/register.thtml b/webtools/partytool/views/user/register.thtml
index 2c045cc8db19..c158cf5ebc71 100755
--- a/webtools/partytool/views/user/register.thtml
+++ b/webtools/partytool/views/user/register.thtml
@@ -24,6 +24,36 @@
Location:
input('User/location', array('id' => 'location', 'size' => 20, 'onkeypress' => 'capture(event)')); ?>
+
Website:
input('User/website', array('size' => 20)); ?>
@@ -56,7 +86,8 @@
hidden('User/lat', array('id' => 'lat'));
echo $html->hidden('User/long', array('id' => 'long'));
- echo $html->hidden('User/zoom', array('id' => 'zoom')); ?>
+ echo $html->hidden('User/zoom', array('id' => 'zoom'));
+ echo $html->hidden('User/icode', array('value' => $icode)); ?>
submit('Register'); ?>
diff --git a/webtools/partytool/views/user/view.thtml b/webtools/partytool/views/user/view.thtml
index 64f985f4e3e7..2126cd5f504b 100755
--- a/webtools/partytool/views/user/view.thtml
+++ b/webtools/partytool/views/user/view.thtml
@@ -11,13 +11,28 @@
if (!empty($user['User']['website']))
echo 'Website:
'.$user['User']['website'].' ';
- echo "Attending: ";
- $c = count($parties) - 1;
- $i = 0;
- foreach ($parties as $party) {
- echo '
'.$party['parties']['name'].' ';
- echo ($i < $c) ? ', ' : '';
- $i++;
+ if (!empty($parties)) {
+ echo "Attending: ";
+ $c = count($parties) - 1;
+ $i = 0;
+
+ foreach ($parties as $party) {
+ echo '
'.$party['parties']['name'].' ';
+ echo ($i < $c) ? ', ' : '
';
+ $i++;
+ }
+ }
+
+ if (!empty($hparties)) {
+ echo "Host of: ";
+ $c = count($hparties) - 1;
+ $i = 0;
+
+ foreach ($hparties as $party) {
+ echo '
'.$party['parties']['name'].' ';
+ echo ($i < $c) ? ', ' : '
';
+ $i++;
+ }
}
?>
diff --git a/webtools/partytool/webroot/.htaccess b/webtools/partytool/webroot/.htaccess
index 0e0ecab7d2e9..f9d8b938bdbe 100755
--- a/webtools/partytool/webroot/.htaccess
+++ b/webtools/partytool/webroot/.htaccess
@@ -3,4 +3,4 @@
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
-
+
\ No newline at end of file
diff --git a/webtools/partytool/webroot/css.php b/webtools/partytool/webroot/css.php
index 0a5a7c6e92b6..711a84cb8b21 100755
--- a/webtools/partytool/webroot/css.php
+++ b/webtools/partytool/webroot/css.php
@@ -1,104 +1,104 @@
-
- * Copyright (c) 2006, Cake Software Foundation, Inc.
- * 1785 E. Sahara Avenue, Suite 490-204
- * Las Vegas, Nevada 89104
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @filesource
- * @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
- * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
- * @package cake
- * @subpackage cake.app.webroot
- * @since CakePHP v 0.2.9
- * @version $Revision: 1.1 $
- * @modifiedby $LastChangedBy: phpnut $
- * @lastmodified $Date: 2006/09/11 05:56:11 $
- * @license http://www.opensource.org/licenses/mit-license.php The MIT License
- */
-if (!defined(CAKE_CORE_INCLUDE_PATH)) {
- die('You can not access this file directly');
-}
-/**
- * Enter description here...
- */
- require(CONFIGS . 'paths.php');
- require(CAKE . 'basics.php');
- require(LIBS . 'folder.php');
- require(LIBS . 'file.php');
- require(LIBS . 'legacy.php');
-/**
- * Enter description here...
- *
- * @param unknown_type $path
- * @param unknown_type $name
- * @return unknown
- */
- function make_clean_css($path, $name) {
- require(VENDORS . 'csspp' . DS . 'csspp.php');
- $data =file_get_contents($path);
- $csspp =new csspp();
- $output=$csspp->compress($data);
- $ratio =100 - (round(strlen($output) / strlen($data), 3) * 100);
- $output=" /* file: $name, ratio: $ratio% */ " . $output;
- return $output;
- }
-/**
- * Enter description here...
- *
- * @param unknown_type $path
- * @param unknown_type $content
- * @return unknown
- */
- function write_css_cache($path, $content) {
- if (!is_dir(dirname($path))) {
- mkdir(dirname($path));
- }
- $cache=new File($path);
- return $cache->write($content);
- }
-
- if (preg_match('|\.\.|', $url) || !preg_match('|^ccss/(.+)$|i', $url, $regs)) {
- die('Wrong file name.');
- }
-
- $filename = 'css/' . $regs[1];
- $filepath = CSS . $regs[1];
- $cachepath = CACHE . 'css' . DS . str_replace(array('/','\\'), '-', $regs[1]);
-
- if (!file_exists($filepath)) {
- die('Wrong file name.');
- }
-
- if (file_exists($cachepath)) {
- $templateModified=filemtime($filepath);
- $cacheModified =filemtime($cachepath);
-
- if ($templateModified > $cacheModified) {
- $output=make_clean_css($filepath, $filename);
- write_css_cache($cachepath, $output);
- } else {
- $output = file_get_contents($cachepath);
- }
- } else {
- $output=make_clean_css($filepath, $filename);
- write_css_cache($cachepath, $output);
- }
-
- header("Date: " . date("D, j M Y G:i:s ", $templateModified) . 'GMT');
- header("Content-Type: text/css");
- header("Expires: " . gmdate("D, j M Y H:i:s", time() + DAY) . " GMT");
- header("Cache-Control: cache"); // HTTP/1.1
- header("Pragma: cache"); // HTTP/1.0
- print $output;
+
+ * Copyright (c) 2006, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
+ * @package cake
+ * @subpackage cake.app.webroot
+ * @since CakePHP v 0.2.9
+ * @version $Revision: 1.3 $
+ * @modifiedby $LastChangedBy: phpnut $
+ * @lastmodified $Date: 2006/09/28 03:22:10 $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+if (!defined(CAKE_CORE_INCLUDE_PATH)) {
+ die('You can not access this file directly');
+}
+/**
+ * Enter description here...
+ */
+ require(CONFIGS . 'paths.php');
+ require(CAKE . 'basics.php');
+ require(LIBS . 'folder.php');
+ require(LIBS . 'file.php');
+ require(LIBS . 'legacy.php');
+/**
+ * Enter description here...
+ *
+ * @param unknown_type $path
+ * @param unknown_type $name
+ * @return unknown
+ */
+ function make_clean_css($path, $name) {
+ require(VENDORS . 'csspp' . DS . 'csspp.php');
+ $data =file_get_contents($path);
+ $csspp =new csspp();
+ $output=$csspp->compress($data);
+ $ratio =100 - (round(strlen($output) / strlen($data), 3) * 100);
+ $output=" /* file: $name, ratio: $ratio% */ " . $output;
+ return $output;
+ }
+/**
+ * Enter description here...
+ *
+ * @param unknown_type $path
+ * @param unknown_type $content
+ * @return unknown
+ */
+ function write_css_cache($path, $content) {
+ if (!is_dir(dirname($path))) {
+ mkdir(dirname($path));
+ }
+ $cache=new File($path);
+ return $cache->write($content);
+ }
+
+ if (preg_match('|\.\.|', $url) || !preg_match('|^ccss/(.+)$|i', $url, $regs)) {
+ die('Wrong file name.');
+ }
+
+ $filename = 'css/' . $regs[1];
+ $filepath = CSS . $regs[1];
+ $cachepath = CACHE . 'css' . DS . str_replace(array('/','\\'), '-', $regs[1]);
+
+ if (!file_exists($filepath)) {
+ die('Wrong file name.');
+ }
+
+ if (file_exists($cachepath)) {
+ $templateModified=filemtime($filepath);
+ $cacheModified =filemtime($cachepath);
+
+ if ($templateModified > $cacheModified) {
+ $output=make_clean_css($filepath, $filename);
+ write_css_cache($cachepath, $output);
+ } else {
+ $output = file_get_contents($cachepath);
+ }
+ } else {
+ $output=make_clean_css($filepath, $filename);
+ write_css_cache($cachepath, $output);
+ }
+
+ header("Date: " . date("D, j M Y G:i:s ", $templateModified) . 'GMT');
+ header("Content-Type: text/css");
+ header("Expires: " . gmdate("D, j M Y H:i:s", time() + DAY) . " GMT");
+ header("Cache-Control: cache"); // HTTP/1.1
+ header("Pragma: cache"); // HTTP/1.0
+ print $output;
?>
\ No newline at end of file
diff --git a/webtools/partytool/webroot/css/main.css b/webtools/partytool/webroot/css/main.css
index ef5c896a5d90..a32ed2d97f78 100755
--- a/webtools/partytool/webroot/css/main.css
+++ b/webtools/partytool/webroot/css/main.css
@@ -1,74 +1,81 @@
-.error {
- background: #ffa5a5;
- border: 1px solid red;
- text-align: center;
- font-weight: bold;
- padding: 5px;
- margin: 5px 0 5px 0;
-}
-
-.info {
- background: #fffe94;
- border: 1px solid yellow;
- text-align: center;
- font-weight: bold;
- padding: 5px;
- margin: 5px 0 5px 0;
-}
-
-#user {
-position: absolute;
-right: 0;
-}
-
-img { border: 1px solid #555 }
-
-body {
- background: #fff url("/cake/img/body_back.png") top repeat-x;
- color: #555;
- font-family: arial, sans-serif;
- margin: 0 10px;
- padding: 0;
- font-size: x-small;
- voice-family: "\"}\"";
- voice-family: inherit;
- font-size: small;
-}
-
-a { color: #34518c; text-decoration: none; }
-a:hover { text-decoration: underline; }
-
-#container {
- width: 742px;
- position: relative;
- margin: 0 auto;
- padding: 22px 0;
-}
-
-#mozilla-com a {
- position: absolute;
- top: 0;
- left: 0;
- display: block;
- text-indent: -5000em;
- width: 110px;
- height: 25px;
- text-decoration: none;
- background: url("/cake/img/mozilla-org.png") no-repeat;
-}
-
-#header {
- background: url("/cake/img/header.gif") no-repeat;
- color: white;
- font-family: Arial;
- font-size: 30px;
- font-weight: bold;
- text-align: center;
- height: 127px;
-}
-
-#header a { color: white; text-decoration: none; }
-
-#map {
- border: 1px solid #555;
+.error, .error_message {
+ background: #ffa5a5;
+ border: 1px solid red;
+ text-align: center;
+ font-weight: bold;
+ padding: 5px;
+ margin: 5px 0 5px 0;
+}
+
+.form_error {
+ background: #ffa5a5;
+ border: 1px solid red;
+}
+
+.info {
+ background: #fffe94;
+ border: 1px solid yellow;
+ text-align: center;
+ font-weight: bold;
+ padding: 5px;
+ margin: 5px 0 5px 0;
+}
+
+#user {
+position: absolute;
+right: 0;
+}
+
+img { border: 1px solid #555 }
+
+h2 + hr { padding: 0; margin: 0;}
+
+body {
+ background: #fff url("/cake/img/body_back.png") top repeat-x;
+ color: #555;
+ font-family: arial, sans-serif;
+ margin: 0 10px;
+ padding: 0;
+ font-size: x-small;
+ voice-family: "\"}\"";
+ voice-family: inherit;
+ font-size: small;
+}
+
+a { color: #34518c; text-decoration: none; }
+a:hover { text-decoration: underline; }
+
+#container {
+ width: 742px;
+ position: relative;
+ margin: 0 auto;
+ padding: 22px 0;
+}
+
+#mozilla-com a {
+ position: absolute;
+ top: 0;
+ left: 0;
+ display: block;
+ text-indent: -5000em;
+ width: 110px;
+ height: 25px;
+ text-decoration: none;
+ background: url("/cake/img/mozilla-org.png") no-repeat;
+}
+
+#header {
+ background: url("/cake/img/header.gif") no-repeat;
+ color: white;
+ font-family: Arial;
+ font-size: 30px;
+ font-weight: bold;
+ text-align: center;
+ height: 127px;
+}
+
+#header a { color: white; text-decoration: none; }
+
+#map {
+ border: 1px solid #555;
}
\ No newline at end of file
diff --git a/webtools/partytool/webroot/index.php b/webtools/partytool/webroot/index.php
index aed4dc325cec..9f2b7bc3dd34 100755
--- a/webtools/partytool/webroot/index.php
+++ b/webtools/partytool/webroot/index.php
@@ -1,87 +1,87 @@
-
- * Copyright (c) 2006, Cake Software Foundation, Inc.
- * 1785 E. Sahara Avenue, Suite 490-204
- * Las Vegas, Nevada 89104
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @filesource
- * @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
- * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
- * @package cake
- * @subpackage cake.app.webroot
- * @since CakePHP v 0.2.9
- * @version $Revision: 1.1 $
- * @modifiedby $LastChangedBy: phpnut $
- * @lastmodified $Date: 2006/09/11 05:56:11 $
- * @license http://www.opensource.org/licenses/mit-license.php The MIT License
- */
-/**
- * Do not change
- */
- if (!defined('DS')) {
- define('DS', DIRECTORY_SEPARATOR);
- }
-/**
- * These defines should only be edited if you have cake installed in
- * a directory layout other than the way it is distributed.
- * Each define has a commented line of code that explains what you would change.
- *
- */
- if (!defined('ROOT')) {
- //define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS LOCATED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
- //You should also use the DS define to seperate your directories
- define('ROOT', dirname(dirname(dirname(__FILE__))));
- }
- if (!defined('APP_DIR')) {
- //define('APP_DIR', 'DIRECTORY NAME OF APPLICATION';
- define('APP_DIR', basename(dirname(dirname(__FILE__))));
- }
-/**
- * This only needs to be changed if the cake installed libs are located
- * outside of the distributed directory structure.
- */
- if (!defined('CAKE_CORE_INCLUDE_PATH')) {
- //define ('CAKE_CORE_INCLUDE_PATH', FULL PATH TO DIRECTORY WHERE CAKE CORE IS INSTALLED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
- //You should also use the DS define to seperate your directories
- define('CAKE_CORE_INCLUDE_PATH', ROOT);
- }
-///////////////////////////////
-//DO NOT EDIT BELOW THIS LINE//
-///////////////////////////////
- if (!defined('WEBROOT_DIR')) {
- define('WEBROOT_DIR', basename(dirname(__FILE__)));
- }
- if (!defined('WWW_ROOT')) {
- define('WWW_ROOT', dirname(__FILE__) . DS);
- }
- if (!defined('CORE_PATH')) {
- if (function_exists('ini_set')) {
- ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS);
- define('APP_PATH', null);
- define('CORE_PATH', null);
- } else {
- define('APP_PATH', ROOT . DS . APP_DIR . DS);
- define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
- }
- }
- require CORE_PATH . 'cake' . DS . 'bootstrap.php';
- if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
- } else {
- $Dispatcher=new Dispatcher();
- $Dispatcher->dispatch($url);
- }
- if (DEBUG) {
- echo "";
- }
+
+ * Copyright (c) 2006, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
+ * @package cake
+ * @subpackage cake.app.webroot
+ * @since CakePHP v 0.2.9
+ * @version $Revision: 1.4 $
+ * @modifiedby $LastChangedBy: phpnut $
+ * @lastmodified $Date: 2006/10/08 03:39:23 $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * Do not change
+ */
+ if (!defined('DS')) {
+ define('DS', DIRECTORY_SEPARATOR);
+ }
+/**
+ * These defines should only be edited if you have cake installed in
+ * a directory layout other than the way it is distributed.
+ * Each define has a commented line of code that explains what you would change.
+ *
+ */
+ if (!defined('ROOT')) {
+ //define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS LOCATED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
+ //You should also use the DS define to seperate your directories
+ define('ROOT', dirname(dirname(dirname(__FILE__))));
+ }
+ if (!defined('APP_DIR')) {
+ //define('APP_DIR', 'DIRECTORY NAME OF APPLICATION';
+ define('APP_DIR', basename(dirname(dirname(__FILE__))));
+ }
+/**
+ * This only needs to be changed if the cake installed libs are located
+ * outside of the distributed directory structure.
+ */
+ if (!defined('CAKE_CORE_INCLUDE_PATH')) {
+ //define ('CAKE_CORE_INCLUDE_PATH', FULL PATH TO DIRECTORY WHERE CAKE CORE IS INSTALLED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
+ //You should also use the DS define to seperate your directories
+ define('CAKE_CORE_INCLUDE_PATH', ROOT);
+ }
+///////////////////////////////
+//DO NOT EDIT BELOW THIS LINE//
+///////////////////////////////
+ if (!defined('WEBROOT_DIR')) {
+ define('WEBROOT_DIR', basename(dirname(__FILE__)));
+ }
+ if (!defined('WWW_ROOT')) {
+ define('WWW_ROOT', dirname(__FILE__) . DS);
+ }
+ if (!defined('CORE_PATH')) {
+ if (function_exists('ini_set')) {
+ ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS);
+ define('APP_PATH', null);
+ define('CORE_PATH', null);
+ } else {
+ define('APP_PATH', ROOT . DS . APP_DIR . DS);
+ define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
+ }
+ }
+ require CORE_PATH . 'cake' . DS . 'bootstrap.php';
+ if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
+ } else {
+ $Dispatcher=new Dispatcher();
+ $Dispatcher->dispatch($url);
+ }
+ if (DEBUG) {
+ echo "";
+ }
?>
\ No newline at end of file
diff --git a/webtools/partytool/webroot/js/vendors.php b/webtools/partytool/webroot/js/vendors.php
index 840ff7771bef..7b1c93432f13 100755
--- a/webtools/partytool/webroot/js/vendors.php
+++ b/webtools/partytool/webroot/js/vendors.php
@@ -1,36 +1,36 @@
-
- * Copyright (c) 2006, Cake Software Foundation, Inc.
- * 1785 E. Sahara Avenue, Suite 490-204
- * Las Vegas, Nevada 89104
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @filesource
- * @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
- * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
- * @package cake
- * @subpackage cake.app.webroot.js
- * @since CakePHP v 0.2.9
- * @version $Revision: 1.1 $
- * @modifiedby $LastChangedBy: phpnut $
- * @lastmodified $Date: 2006/09/11 05:56:11 $
- * @license http://www.opensource.org/licenses/mit-license.php The MIT License
- */
-/**
- * Enter description here...
- */
- if (is_file('../../vendors/javascript/' . $_GET['file']) && (preg_match('/(.+)\\.js/', $_GET['file']))) {
- readfile('../../vendors/javascript/' . $_GET['file']);
- }
-?>
+
+ * Copyright (c) 2006, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
+ * @package cake
+ * @subpackage cake.app.webroot.js
+ * @since CakePHP v 0.2.9
+ * @version $Revision: 1.3 $
+ * @modifiedby $LastChangedBy: phpnut $
+ * @lastmodified $Date: 2006/09/28 03:22:10 $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * Enter description here...
+ */
+ if (is_file('../../vendors/javascript/' . $_GET['file']) && (preg_match('/(.+)\\.js/', $_GET['file']))) {
+ readfile('../../vendors/javascript/' . $_GET['file']);
+ }
+?>