--- /dev/null
+<?php
+/* SVN FILE: $Id$ */
+/**
+ * This is core configuration file.
+ *
+ * Use it to configure core behavior of Cake.
+ *
+ * PHP versions 4 and 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
+ * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision$
+ * @modifiedby $LastChangedBy$
+ * @lastmodified $Date$
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * CakePHP Debug Level:
+ *
+ * Production Mode:
+ * 0: No error messages, errors, or warnings shown. Flash messages redirect.
+ *
+ * Development Mode:
+ * 1: Errors and warnings shown, model caches refreshed, flash messages halted.
+ * 2: As in 1, but also with full debug messages and SQL output.
+ * 3: As in 2, but also with full controller dump.
+ *
+ * In production mode, flash messages redirect after a time interval.
+ * In development mode, you need to click the flash message to continue.
+ */
+ Configure::write('debug', 2);
+/**
+ * Application wide charset encoding
+ */
+ Configure::write('App.encoding', 'UTF-8');
+/**
+ * To configure CakePHP *not* to use mod_rewrite and to
+ * use CakePHP pretty URLs, remove these .htaccess
+ * files:
+ *
+ * /.htaccess
+ * /app/.htaccess
+ * /app/webroot/.htaccess
+ *
+ * And uncomment the App.baseUrl below:
+ */
+ //Configure::write('App.baseUrl', env('SCRIPT_NAME'));
+/**
+ * Uncomment the define below to use CakePHP admin routes.
+ *
+ * The value of the define determines the name of the route
+ * and its associated controller actions:
+ *
+ * 'admin' -> admin_index() and /admin/controller/index
+ * 'superuser' -> superuser_index() and /superuser/controller/index
+ */
+ Configure::write('Routing.admin', 'admin');
+
+/**
+ * Turn off all caching application-wide.
+ *
+ */
+ //Configure::write('Cache.disable', true);
+/**
+ * Enable cache checking.
+ *
+ * If set to true, for view caching you must still use the controller
+ * var $cacheAction inside your controllers to define caching settings.
+ * You can either set it controller-wide by setting var $cacheAction = true,
+ * or in each action using $this->cacheAction = true.
+ *
+ */
+ Configure::write('Cache.check', true);
+/**
+ * Defines the default error type when using the log() function. Used for
+ * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
+ */
+ define('LOG_ERROR', 2);
+/**
+ * The preferred session handling method. Valid values:
+ *
+ * 'php' Uses settings defined in your php.ini.
+ * 'cake' Saves session files in CakePHP's /tmp directory.
+ * 'database' Uses CakePHP's database sessions.
+ *
+ * To define a custom session handler, save it at /app/config/<name>.php.
+ * Set the value of 'Session.save' to <name> to utilize it in CakePHP.
+ *
+ * To use database sessions, execute the SQL file found at /app/config/sql/sessions.sql.
+ *
+ */
+ Configure::write('Session.save', 'database');
+/**
+ * The name of the table used to store CakePHP database sessions.
+ *
+ * 'Session.save' must be set to 'database' in order to utilize this constant.
+ *
+ * The table name set here should *not* include any table prefix defined elsewhere.
+ */
+ Configure::write('Session.table', 'cake_sessions');
+/**
+ * The DATABASE_CONFIG::$var to use for database session handling.
+ *
+ * 'Session.save' must be set to 'database' in order to utilize this constant.
+ */
+ Configure::write('Session.database', 'default');
+/**
+ * The name of CakePHP's session cookie.
+ */
+ Configure::write('Session.cookie', 'CAKEPHP');
+/**
+ * Session time out time (in seconds).
+ * Actual value depends on 'Security.level' setting.
+ */
+ Configure::write('Session.timeout', '432'); // 60 * 60 * 12 / 100
+/**
+ * If set to false, sessions are not automatically started.
+ */
+ Configure::write('Session.start', true);
+/**
+ * When set to false, HTTP_USER_AGENT will not be checked
+ * in the session
+ */
+ Configure::write('Session.checkAgent', true);
+/**
+ * The level of CakePHP security. The session timeout time defined
+ * in 'Session.timeout' is multiplied according to the settings here.
+ * Valid values:
+ *
+ * 'high' Session timeout in 'Session.timeout' x 10
+ * 'medium' Session timeout in 'Session.timeout' x 100
+ * 'low' Session timeout in 'Session.timeout' x 300
+ *
+ * CakePHP session IDs are also regenerated between requests if
+ * 'Security.level' is set to 'high'.
+ */
+ Configure::write('Security.level', 'medium');
+/**
+ * A random string used in security hashing methods.
+ */
+ Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mitest');
+/**
+ * Compress CSS output by removing comments, whitespace, repeating tags, etc.
+ * This requires a/var/cache directory to be writable by the web server for caching.
+ * and /vendors/csspp/csspp.php
+ *
+ * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use HtmlHelper::css().
+ */
+ //Configure::write('Asset.filter.css', 'css.php');
+/**
+ * Plug in your own custom JavaScript compressor by dropping a script in your webroot to handle the
+ * output, and setting the config below to the name of the script.
+ *
+ * To use, prefix your JavaScript link URLs with '/cjs/' instead of '/js/' or use JavaScriptHelper::link().
+ */
+ //Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php');
+/**
+ * The classname and database used in CakePHP's
+ * access control lists.
+ */
+ //Configure::write('Acl.classname', 'DbAcl');
+ //Configure::write('Acl.database', 'default');
+/**
+ * If you are on PHP 5.3 uncomment this line and correct your server timezone
+ * to fix the date & time related errors.
+ */
+ //date_default_timezone_set('UTC');
+/**
+ *
+ * Cache Engine Configuration
+ * Default settings provided below
+ *
+ * File storage engine.
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'File', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path
+ * 'prefix' => 'cake_', //[optional] prefix every cache file with this string
+ * 'lock' => false, //[optional] use file locking
+ * 'serialize' => true, [optional]
+ * ));
+ *
+ *
+ * APC (http://pecl.php.net/package/APC)
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'Apc', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
+ * ));
+ *
+ * Xcache (http://xcache.lighttpd.net/)
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'Xcache', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
+ * 'user' => 'user', //user from xcache.admin.user settings
+ * 'password' => 'password', //plaintext password (xcache.admin.pass)
+ * ));
+ *
+ *
+ * Memcache (http://www.danga.com/memcached/)
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'Memcache', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
+ * 'servers' => array(
+ * '127.0.0.1:11211' // localhost, default port 11211
+ * ), //[optional]
+ * 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
+ * ));
+ *
+ */
+ Cache::config('default', array('engine' => 'File'));
+?>
$isOwner = false;
}
$this->set('isAdmin', $isAdmin);
+ $this->set('isOwner', $isOwner);
$this->pageTitle .= " - ". sprintf(__("%s's Picture", true), $character_picture['Character']['name']);
if (isset($character_picture['Attachment'][0]['alternative']) &&!empty($character_picture['Attachment'][0]['alternative'])) {
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+#: /
+msgid "Submit"
+msgstr "送信"
+
+#: /
+msgid "Cancel"
+msgstr "キャンセル"
+
#: /error.php:8
msgid "PC View"
msgstr ""
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
)
);
echo $token->create();
- echo $form->end('Submit');
+ echo $form->end(array('label' => __('Submit', true)));
?>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
)
);
echo $token->create();
- echo $form->end('Submit');
+ echo $form->end(array('label' => __('Submit', true)));
?>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
<?php
- echo $form->create('CharacterPicture', array('url' => array(
- 'controller' => 'character_pictures', 'action' => 'view'),
+ echo $form->create('', array('url' => array(
+ 'controller' => 'character_pictures', 'action' => 'listview', 'id' => $this->data['CharacterPicture']['character_id']),
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'action' => 'index', $this_system['System']['id']),
'type' => 'GET',
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
)))
).
$token->create().
- $form->end('Submit');
+ $form->end(array('label' => __('Submit', true)));
$body .= "</fieldset>\n";
'default' => $characterSheets['CharacterSheet']['sort_order'],
)).
$token->create().
- $form->end('Submit');
+ $form->end(array('label' => __('Submit', true)));
$body .= "</fieldset>\n";
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
<?php
echo $token->create();
?>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</p>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
));
echo $token->create();
- echo $form->end('Submit');
+ echo $form->end(array('label' => __('Submit', true)));
?>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
<?php
echo $token->create();
- echo $form->end('Submit');?>
+ echo $form->end(array('label' => __('Submit', true)));
+?>
</p>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
$character['Character']['id']), true);
echo $form->create('', array('url' => $url2));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
echo $form->input('parent_id');
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="actions">
<ul>
echo $form->input('parent_id');
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="actions">
<ul>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Back');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
<?php
echo $token->create();
?>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</p>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Back');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
- <?php echo $form->end('Submit');?>
+ <?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
- <?php echo $form->end('Submit');?>
+ <?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
'action' => 'login'),
'type' => 'GET',
'id' => 'CancelButton'));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
- <?php echo $form->end('Submit');?>
+ <?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
);
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'action' => 'login'),
'type' => 'GET',
'id' => 'CancelButton'));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
);
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
<div class="search form">
<?php echo $form->create('User', array('action' => 'listview', 'type' => 'post')); ?>
<?php echo $form->input('name'); ?>
-<?php echo $form->end('Search'); ?>
+<?php echo $form->end(array('label' => __('Submit', true))); ?>
</div>
</fieldset>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
- echo $form->end('Cancel');
+ echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'type' => 'GET',
'id' => 'CancelButton'
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="backButton">
'action' => 'view', $this->data['User']['id']),
'type' => 'GET',
));
-echo $form->end('Cancel');
+echo $form->end(array('label' => __('Cancel', true)));
?>
</div>
));
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="actions">
);
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="actions">
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
echo $token->create();
?>
</fieldset>
-<?php echo $form->end('Submit');?>
+<?php echo $form->end(array('label' => __('Submit', true)));?>
</div>
<div class="actions">
echo $form->create('User', array('action' => 'mobile_login'));
echo $form->input('username');
echo $form->input('password');
- echo $form->end('Login');
+ echo $form->end(array('label' => __('Submit', true)));