summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-01-29 00:57:07 +0000
committerxue <>2006-01-29 00:57:07 +0000
commitb69c890891147d8edfb4c2542ee290702afbe45a (patch)
treeb8e53bde72eea77d6d1ae917345bcf9cd3c5e9e0
parentb703e05d9154845b6e5c6f1bf20b0a42df7c3613 (diff)
updated texbuilder to reflect the latest content of quickstart tutorial.
-rw-r--r--buildscripts/texbuilder/build.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/buildscripts/texbuilder/build.php b/buildscripts/texbuilder/build.php
index 1866f868..7e2c4e54 100644
--- a/buildscripts/texbuilder/build.php
+++ b/buildscripts/texbuilder/build.php
@@ -1,5 +1,5 @@
<?php
-//page root location
+//page root location
$base = realpath(dirname(__FILE__).'/../../demos/quickstart/protected/pages/');
//list page into chapters
@@ -35,6 +35,11 @@ $pages['Controls'] = array(
'Controls/DataList.page',
'Controls/DataGrid.page');
+$pages['Security'] = array(
+ 'Security/Auth.page',
+ 'Security/ViewState.page',
+ 'Security/XSS.page');
+
$pages['Advanced Topics'] = array(
'Advanced/Assets.page',
'Advanced/MasterContent.page',
@@ -64,8 +69,8 @@ function include_image($matches)
$info = getimagesize($file);
switch($info[2])
{
- case 1:
- $im = imagecreatefromgif($file);
+ case 1:
+ $im = imagecreatefromgif($file);
break;
case 2: $im = imagecreatefromjpeg($file); break;
case 3: $im = imagecreatefrompng($file); break;
@@ -149,12 +154,12 @@ function parse_html($page,$html)
$html = preg_replace('/<\/com:TTextHighlighter>/', '`2`', $html);
$html = preg_replace_callback('/(`1`)([^`]*)(`2`)/m', 'escape_verbatim', $html);
$html = preg_replace_callback('/(<div class="source">)([^<]*)(<\/div>)/', 'escape_verbatim', $html);
-
+
$html = preg_replace_callback('/<img\s+src="?<%~([^"]*)%>"?[^\\/]*\/>/', 'include_image', $html);
//runbar
- $html = preg_replace('/<com:RunBar\s+PagePath="([^"]*)"\s+\/>/',
- 'Try, \texttt{http://../quickstart/index.php?page=$1}', $html);
+ $html = preg_replace('/<com:RunBar\s+PagePath="([^"]*)"\s+\/>/',
+ 'Try, \texttt{http://www.pradosoft.com/prado3/demos/quickstart/index.php?page=$1}', $html);
//text modifiers
$html = preg_replace('/<b>([^<]*)<\/b>/', '\textbf{$1}', $html);