Now we use DEBUG=0 as default... Also potential security hole - error pages showing database info - are only show when DEBUG>1.

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@270 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
brego 2005-06-22 18:52:34 +00:00
parent dd5f22418e
commit 0535607f5a
6 changed files with 27 additions and 23 deletions

View file

@ -16,7 +16,9 @@ view file, a user-customizable error page for handling invalid action dispatches
<em><?=Inflector::camelize($this->name);?></em>
</p>
<?if (DEBUG>1):?>
<h2>Controller dump:</h2>
<pre>
<? print_r($this); ?>
</pre>
<?endif?>

View file

@ -13,8 +13,9 @@ view file, a user-customizable error page for handling invalid controller dispat
<strong>Fatal</strong>: Unable to load controller <em><?=$this->missingController;?></em>
</p>
<?if (DEBUG>1):?>
<h2>Controller dump:</h2>
<pre>
<? print_r($this); ?>
</pre>
<?endif?>

View file

@ -15,8 +15,9 @@ view file, a user-customizable error page for handling missing/invalid views dur
action <em><?=$this->params['controller'];?>::<?=$this->params['action'];?></em>
</p>
<?if (DEBUG>1):?>
<h2>Controller dump:</h2>
<pre>
<? print_r($this); ?>
</pre>
<?endif?>

View file

@ -1,16 +1,16 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
<head>
<title><?=$title_for_layout?></title>
<?=$this->charsetTag('UTF-8')?>
<?=$this->cssTag('default')?>
</head>
<body>
<div id="container">
<div id="content">
<?=$content_for_layout?>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
<head>
<title><?=$title_for_layout?></title>
<?=$html->charsetTag('UTF-8')?>
<?=$html->cssTag('default')?>
</head>
<body>
<div id="container">
<div id="content">
<?=$content_for_layout?>
</div>
</div>
</body>
</html>

View file

@ -4,7 +4,7 @@
<h2>Introducing Cake</h2>
<p>Cake is a structure of libraries, classes and run-time infrastructure for PHP programmers. It's also what I use at work. It's based on certain conventions, so you may find it rigid at first. The directory structure is already laid out, and it's different from what most people use. From what I've experienced, a great many PHP programmers start as web- or graphic-designers, i.e. they are not university-educated programmers as many in C++ and Java-land. They invent their own, peculiar ways of solving problems and stick to them. Perhaps that's why so few people use PEAR and PECL libraries &ndash; they don't usually re-use their code. And I was one of them. (<?=$this->linkOut('continued...','http://sputnik.pl/docs/intro')?>)</p>
<p>Cake is a structure of libraries, classes and run-time infrastructure for PHP programmers. It's also what I use at work. It's based on certain conventions, so you may find it rigid at first. The directory structure is already laid out, and it's different from what most people use. From what I've experienced, a great many PHP programmers start as web- or graphic-designers, i.e. they are not university-educated programmers as many in C++ and Java-land. They invent their own, peculiar ways of solving problems and stick to them. Perhaps that's why so few people use PEAR and PECL libraries &ndash; they don't usually re-use their code. And I was one of them. (<?=$html->linkOut('continued...','http://sputnik.pl/docs/intro')?>)</p>
<h2>Features</h2>
@ -20,8 +20,8 @@
<h2>Getting involved</h2>
<p><b>NEW! <?=$this->linkOut('My Amazon Wishlish','http://www.amazon.com/gp/registry/registry.html?id=NODP8QT6LFTO')?></b> for when you'll want to show your appreciation.</p>
<p><b>NEW! <?=$html->linkOut('My Amazon Wishlish','http://www.amazon.com/gp/registry/registry.html?id=NODP8QT6LFTO')?></b> for when you'll want to show your appreciation.</p>
<p><?=$this->linkOut('Cake PHP Google Group','http://groups-beta.google.com/group/cake-php')?> &middot; <?=$this->linkOut('Cake Wiki (temporary)','http://cake.bplusf.net/')?> &middot; <?=$this->linkOut('Cake TRAC (SVN repository, etc.)','https://developers.nextco.com/cake')?></p>
<p><?=$html->linkOut('Cake PHP Google Group','http://groups-beta.google.com/group/cake-php')?> &middot; <?=$html->linkOut('Cake Wiki (temporary)','http://cake.bplusf.net/')?> &middot; <?=$html->linkOut('Cake TRAC (SVN repository, etc.)','https://developers.nextco.com/cake')?></p>
<p>See <?=$this->linkOut('Cake website','http://sputnik.pl/cake')?> for more information.</p>
<p>See <?=$html->linkOut('Cake website','http://sputnik.pl/cake')?> for more information.</p>

View file

@ -22,7 +22,7 @@
* - 1: development
* - 2: full debug with sql
*/
define ('DEBUG', 1);
define ('DEBUG', 0);
/**
* Compress output CSS (removing comments, whitespace, repeating tags etc.)