cvs: presentations / db-quebec7.xml ezc-php-norge.xml filter-quebec7.xml /slides/dbdesign stored_proc.xml /slides/ezc components.png
ez-background-title.jpg ez-background.jpg ez.css title-ezc-generic.xml /slides/input-filter filter-s-unsafe-raw.xml functions-and-array-flags.xml
functions-filter-data-non-existent.xml resources.xml
| From: | Derick Rethans | Date: | Thu, 03 May 2007 11:20:58 +0000 |
| Subject: | cvs: presentations / db-quebec7.xml ezc-php-norge.xml filter-quebec7.xml /slides/dbdesign stored_proc.xml /slides/ezc components.png ez-background-title.jpg ez-background.jpg ez.css title-ezc-generic.xml /slides/input-filter filter-s-unsafe-raw.xml functions-and-array-flags.xml functions-filter-data-non-existent.xml resources.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1398@lists.php.net to get a copy of this message | ||
derick Thu May 3 11:20:58 2007 UTC
Added files:
/presentations ezc-php-norge.xml filter-quebec7.xml
/presentations/slides/dbdesign stored_proc.xml
/presentations/slides/ezc ez-background-title.jpg ez-background.jpg
ez.css
/presentations/slides/input-filter functions-and-array-flags.xml
functions-filter-data-non-existent.xml
Modified files:
/presentations db-quebec7.xml
/presentations/slides/ezc components.png title-ezc-generic.xml
/presentations/slides/input-filter filter-s-unsafe-raw.xml
resources.xml
Log:
- Updated slides for database and filter talks
- New talk for ezc for PHP Norge.
http://cvs.php.net/viewvc.cgi/presentations/db-quebec7.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/db-quebec7.xml diff -u presentations/db-quebec7.xml:1.1 presentations/db-quebec7.xml:1.2 --- presentations/db-quebec7.xml:1.1 Tue Mar 6 15:56:32 2007 +++ presentations/db-quebec7.xml Thu May 3 11:20:57 2007 @@ -75,6 +75,8 @@ <slide>slides/dbdesign/trigger1.xml</slide> <slide>slides/dbdesign/trigger2.xml</slide> +<slide>slides/dbdesign/stored_proc.xml</slide> + <!-- TIPS & TRICKS --> <slide>slides/dbdesign/tips.xml</slide> <slide>slides/hpp/mysql_opt2.xml</slide> http://cvs.php.net/viewvc.cgi/presentations/slides/ezc/components.png?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/ezc/components.png http://cvs.php.net/viewvc.cgi/presentations/slides/ezc/title-ezc-generic.xml?r1=1.4&r2=1.5&diff_format=u Index: presentations/slides/ezc/title-ezc-generic.xml diff -u presentations/slides/ezc/title-ezc-generic.xml:1.4 presentations/slides/ezc/title-ezc-generic.xml:1.5 --- presentations/slides/ezc/title-ezc-generic.xml:1.4 Wed Feb 14 22:56:01 2007 +++ presentations/slides/ezc/title-ezc-generic.xml Thu May 3 11:20:58 2007 @@ -1,8 +1,8 @@ -<slide fontsize="3.5em"> +<slide template="title"> <title>Welcome!</title> <image align="center" filename="components.png" pdf-scale="0.7"/> -<break lines="15"/> +<break lines="10"/> <break/> <blurb class="event-date">:-:event:-: - :-:location:-:</blurb> <break/> http://cvs.php.net/viewvc.cgi/presentations/slides/input-filter/filter-s-unsafe-raw.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/input-filter/filter-s-unsafe-raw.xml diff -u presentations/slides/input-filter/filter-s-unsafe-raw.xml:1.1 presentations/slides/input-filter/filter-s-unsafe-raw.xml:1.2 --- presentations/slides/input-filter/filter-s-unsafe-raw.xml:1.1 Thu Sep 14 19:51:56 2006 +++ presentations/slides/input-filter/filter-s-unsafe-raw.xml Thu May 3 11:20:58 2007 @@ -12,7 +12,7 @@ 'FILTER_FLAG_ENCODE_HIGH', 'FILTER_FLAG_STRIP_LOW', 'FILTER_FLAG_STRIP_HIGH' ); -$filter = FILTER_SANITIZE_STRING; +$filter = FILTER_UNSAFE_RAW; include 'presentations/slides/input-filter/render-form.php'; include 'presentations/slides/input-filter/check-data.php'; ?>]]></example> http://cvs.php.net/viewvc.cgi/presentations/slides/input-filter/resources.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/input-filter/resources.xml diff -u presentations/slides/input-filter/resources.xml:1.3 presentations/slides/input-filter/resources.xml:1.4 --- presentations/slides/input-filter/resources.xml:1.3 Thu Nov 2 12:24:56 2006 +++ presentations/slides/input-filter/resources.xml Thu May 3 11:20:58 2007 @@ -8,6 +8,7 @@ <break lines="2" /> <link fontsize="3em" marginleft="2em" leader="These slides: " href="http://derickrethans.nl/talks.php" target="_new"/> + <link fontsize="3em" marginleft="2em" leader="UserInput: " href="http://components.ez.no/doc/UserInput" target="_new"/> <link fontsize="3em" marginleft="2em" leader="SQLite Input Filter: " href="http://derickrethans.nl/sqlite_filter.php" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Questions?: " href="mailto:dr@ez.no" target="_new"/> </slide> http://cvs.php.net/viewvc.cgi/presentations/ezc-php-norge.xml?view=markup&rev=1.1 Index: presentations/ezc-php-norge.xml +++ presentations/ezc-php-norge.xml <?xml version="1.0" encoding="iso-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#000000" logo1="" stylesheet="presentations/slides/ezc/ez.css" backgroundfixed="1" > <topic>Component Libraries</topic> <title>eZ Components: RAD with PHP</title> <event>PHP Norge Medlemsmøte</event> <location>Oslo, Norway</location> <date>May 10th, 2007</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://files.derickrethans.nl/ezc-vancouver7.pdf</url> <slide>slides/ezc/title-ezc-generic.xml</slide> <!-- introduction --> <slide>slides/toolbox/goals-library.xml</slide> <!-- overview --> <slide>slides/ezc/overview.xml</slide> <slide>slides/toolbox/dependencies.xml</slide> <slide>slides/ezc/install-download.xml</slide> <slide>slides/ezc/install-pear.xml</slide> <slide>slides/ezc/example-consoletools-table.xml</slide> <slide>slides/ezc/example-consoletools-progressbar.xml</slide> <slide>slides/ezc/example-eventlog.xml</slide> <slide>slides/ezc/example-database-instance.xml</slide> <slide>slides/ezc/example-database-query.xml</slide> <slide>slides/ezc/example-persistentobject.xml</slide> <slide>slides/ezc/example-imageconversion.xml</slide> <slide>slides/ezc/example-imageconversion2.xml</slide> <slide>slides/ezc/example-mail.xml</slide> <slide>slides/ezc/example-mail-parse.xml</slide> <slide>slides/ezc/example-mail-summary.xml</slide> <slide>slides/ezc/example-template-mail.xml</slide> <slide>slides/ezc/example-graph.xml</slide> <slide>slides/ezc/example-graph-result.xml</slide> <slide>slides/ezc/example-graph2.xml</slide> <slide>slides/ezc/example-graph2-result.xml</slide> <slide>slides/ezc/example-feed.xml</slide> <slide>slides/ezc/example-feed2.xml</slide> <!-- what's next? --> <slide>slides/ezc/future-2006.2-2007.1.xml</slide> <slide>slides/ezc/contributing.xml</slide> <slide>slides/ezc/questions.xml</slide> </presentation> http://cvs.php.net/viewvc.cgi/presentations/filter-quebec7.xml?view=markup&rev=1.1 Index: presentations/filter-quebec7.xml +++ presentations/filter-quebec7.xml <?xml version="1.0" encoding="iso-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#f1fbff" logo1="" stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>Security</topic> <title>Input Filter</title> <event>Conférence PHP Québec</event> <location>Montréal, Canada</location> <date>March 15th, 2007</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://derickrethans.nl/talks.php</url> <slide>slides/input-filter/title.xml</slide> <!-- SQL Injection / XSS Intro --> <slide>slides/input-filter/what-is-wrong1.xml</slide> <slide>slides/input-filter/what-is-wrong2.xml</slide> <!-- Solutions --> <slide>slides/input-filter/casting.xml</slide> <slide>slides/input-filter/filtering.xml</slide> <!-- Server solution --> <slide>slides/input-filter/bastions.xml</slide> <slide>slides/input-filter/mod_security.xml</slide> <!-- mod_security --> <slide>slides/input-filter/bastions2.xml</slide> <slide>slides/input-filter/sapi-input-filter.xml</slide> <!-- sapi input filter --> <slide>slides/input-filter/filter-none.xml</slide> <!-- current status --> <slide>slides/input-filter/filter-strip-all.xml</slide> <!-- rasmus 1st filter suggestion (strip all, raw accessor) --> <slide>slides/input-filter/filter-accessor.xml</slide> <!-- rasmus 2st filter suggestion (accessor only) --> <slide>slides/input-filter/php52.xml</slide> <slide>slides/input-filter/default-filter.xml</slide> <slide>slides/input-filter/functions-and-common-flags.xml</slide> <slide>slides/input-filter/functions-and-common-flags-array.xml</slide> <slide>slides/input-filter/functions-and-array-flags.xml</slide> <slide>slides/input-filter/functions-get-args.xml</slide> <slide>slides/input-filter/functions-filter-data.xml</slide> <!-- <slide>slides/input-filter/functions-filter-data-non-existent.xml</slide> --> <slide>slides/input-filter/sanitizing-filters.xml</slide> <slide>slides/input-filter/filter-s-string.xml</slide> <slide>slides/input-filter/filter-s-encoded.xml</slide> <slide>slides/input-filter/filter-s-special-chars.xml</slide> <slide>slides/input-filter/filter-s-unsafe-raw.xml</slide> <slide>slides/input-filter/filter-s-email.xml</slide> <slide>slides/input-filter/filter-s-url.xml</slide> <slide>slides/input-filter/filter-s-number-int.xml</slide> <slide>slides/input-filter/filter-s-number-float.xml</slide> <slide>slides/input-filter/filter-s-magic-quotes.xml</slide> <slide>slides/input-filter/validating-filters.xml</slide> <slide>slides/input-filter/filter-v-int.xml</slide> <slide>slides/input-filter/filter-v-boolean.xml</slide> <slide>slides/input-filter/filter-v-float.xml</slide> <slide>slides/input-filter/filter-v-regexp.xml</slide> <slide>slides/input-filter/filter-v-validate-url.xml</slide> <slide>slides/input-filter/filter-v-validate-email.xml</slide> <slide>slides/input-filter/filter-v-validate-ip.xml</slide> <slide>slides/input-filter/callback-filter.xml</slide> <slide>slides/input-filter/filter-c-callback.xml</slide> <slide>slides/toolbox/goals-library.xml</slide> <slide>slides/ezc/example-userinput.xml</slide> <slide>slides/input-filter/resources.xml</slide> </presentation> http://cvs.php.net/viewvc.cgi/presentations/slides/dbdesign/stored_proc.xml?view=markup&rev=1.1 Index: presentations/slides/dbdesign/stored_proc.xml +++ presentations/slides/dbdesign/stored_proc.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Stored Procedure</title> <subtitle>Update Problems</subtitle> <blurb>Another solution is a stored procedure:</blurb> <break/> <example><![CDATA[DELIMITER | CREATE PROCEDURE prc_update_airport_name (c char(3), n varchar(255)) BEGIN UPDATE airport_code SET airfield_name = n WHERE code = c; UPDATE flight_denorm SET from_airfield_name = n WHERE from_airport = c; UPDATE flight_denorm SET to_airfield_name = n WHERE to_airport = c; END | DELIMITER ;]]></example> <break/> <blurb>Use like:</blurb> <break/> <example><![CDATA[CALL prc_update_airport_name('AMS', 'Schiphol');]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/ezc/ez.css?view=markup&rev=1.1 Index: presentations/slides/ezc/ez.css +++ presentations/slides/ezc/ez.css <style title="Default" type="text/css"> body { font-size: 8pt; margin-left:24px; margin-right:0px; margin-top:0em; margin-bottom:0em; background-image: url(presentations/slides/ezc/ez-background.jpg); background-attachment: fixed; background-repeat: no-repeat; overflow: -moz-scrollbars-none; font-family: Arial, helvetica, sans-serif; } body.title { background-image: url(presentations/slides/ezc/ez-background-title.jpg); overflow: none; } div.sticky { margin: 0; position: fixed; top: -0.5em; left: 290px; right: auto; bottom: auto; } div.navbar { padding: 4; margin: 0; height: 14em; font-family: "MaxOT-book", verdana, tahoma, arial, helvetica, sans-serif; z-index: 99; } div.navbar_title, div.navbar_title a, div.subtitle { font-size: 26px; color: #000000; text-decoration: none; text-align: left; font-weight: bold; margin-top: 20px; } body.title div.navbar { visibility: hidden; display: none; } div.subtitle { margin-top: 0px; font-size: 18px; font-weight: normal; font-style: italic; } div.navbar_nr a { font-size: 13px; color: #77a; text-decoration: none; position: fixed; right: 10px; bottom: 0px; } div.mainarea { margin-top: 100px; padding-top: 10px; width: 1000px; height: 610px; overflow: auto; overflow: -moz-scrollbars-vertical; } body.title div.mainarea { margin-top: 250px; overflow: -moz-scrollbars-none; } ul.pres { list-style: circle; font-size: 18pt; } ul.numbered { font-size: 20pt; margin-right: 40px; list-style-type: decimal; } ul.level2 { list-style: circle; font-size: 16pt; margin-left: 40px; margin-top: -15px; } li.pres_bullet, div.link { font-size: 20pt; margin-right: 40px; } li.pres_bullet_nr { font-size: 20pt; margin-right: 40px; list-style-type: decimal; } ul.large div li.pres_bullet { font-size: 26pt; } ul.small div li.pres_bullet { font-size: 16pt; } div.title_blurb { font-size: 64px; text-align: center; font-weight: bold; } div.small_blurb { font-size: 18px; } div.blurb, div.bit_larger_output_text { font-size: 20pt; width: 100%; } div.bit_larger_output_text { margin-top: 8px; } div.x_small_blurb { font-size: 0.5em; } div.large_blurb { font-size: 26pt; } div.large_blurb_center { font-size: 38px; text-align: center; } div.blurb_center { text-align: center; } div.quote { font-size: 32px; text-align: center; margin-left: 40px; margin-right: 40px; } div.quote_attr { font-size: 24px; text-align: right; margin-right: 40px; } div.xx_large_blurb_center { font-size: 64px; text-align: center; } div.q_mark { text-align: center; font-size: 384px; } div.shadow, code { font-size: 14px; width: 920px; } div.example code, div.highlight code, div.bit_larger, div.bit_larger code, div.bit_larger_output { background: #eee; font-size: 16px; width: 100%; font-weight: bold; } div.example, div.highlight, div.bit_larger, div.bit_larger_output { margin-left: 20px; margin-right: 20px; } div.bit_larger_output { background: #e6e300; font-size: 20pt; font-weight: normal; } div.large code, div.large { font-size: 26px; background: #eee; font-weight: bold; margin-left: 20px; margin-right: 20px; } div.highlight code, div.highlight { background: #fffc00; font-weight: bold; } div.code_small, div.code_medium, div.code_large, div.example { background: #eee; } div.code_small code { font-size: 10px; } div.code_medium code, div.code_medium pre { font-size: 16px; } div.code_large code, div.code_large pre { font-size: 18px; } div.example pre { font-size: 16px; font-weight: bold; } div.event, div.event-date, div.event-presenter { text-align: center; font-size: 26pt; font-family: "MaxOT-book"; } div.pres-url-small { text-align: center; font-size: 18pt; font-family: "MaxOT-book"; } img.spaced { margin-right: 25px; margin-left: 25px; margin-top: 25px; margin-bottom: 25px; } table { font-size: 16pt; } table.dbtable { border-spacing: 0px; border-collapse: collapse; } table.dbtable tr { margin: 0px; padding: 0px; background-color: #f00; } table.dbtable td { margin: 0px; padding: 1px 5px 1px 5px; border: thin solid black; background-color: #fff; vertical-align: top; } table.dbtable td.header { font-weight: bold; text-align: center; } table.dbtable td.header-candidate-key { font-weight: bold; font-style: italic; text-align: center; color: blue; } table.dbtable td.header-key, table.dbtable td.header-key-moved-to { font-weight: bold; text-align: center; color: red; } table.dbtable td.header-moved, table.dbtable td.moved { border: 1px dotted #aaa; color: #aaa; } table.dbtable td.header-moved, table.dbtable td.header-moved-to { font-weight: bold; } table.dbtable td.header-moved-to, table.dbtable td.moved-to, table.dbtable td.header-key-moved-to { border: 2px solid black; } </style> http://cvs.php.net/viewvc.cgi/presentations/slides/input-filter/functions-and-array-flags.xml?view=markup&rev=1.1 Index: presentations/slides/input-filter/functions-and-array-flags.xml +++ presentations/slides/input-filter/functions-and-array-flags.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>More about dealing with arrays</title> <list> <bullet>*FILTER_REQUIRE_SCALAR* (default): requires the input variable to be not an array</bullet> <bullet>*FILTER_REQUIRE_ARRAY*: requires the input variable to be an array</bullet> <bullet>*FILTER_FORCE_ARRAY*: converts the input variable to an array, even if a scalar was submitted</bullet> </list> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/input-filter/functions-filter-data-non-existent.xml?view=markup&rev=1.1 Index: presentations/slides/input-filter/functions-filter-data-non-existent.xml +++ presentations/slides/input-filter/functions-filter-data-non-existent.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Getting Input</title> <example result="1"><![CDATA[<?php $data = filter_input( INPUT_GET, 'data', FILTER_VALIDATE_INT ); var_dump( $data ); $data = filter_input( INPUT_GET, 'data', FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE ); var_dump( $data ); ?>]]></example> <break/> </slide>
http://cvs.php.net/viewvc.cgi/presentations/db-quebec7.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/db-quebec7.xml diff -u presentations/db-quebec7.xml:1.1 presentations/db-quebec7.xml:1.2 --- presentations/db-quebec7.xml:1.1 Tue Mar 6 15:56:32 2007 +++ presentations/db-quebec7.xml Thu May 3 11:20:57 2007 @@ -75,6 +75,8 @@ <slide>slides/dbdesign/trigger1.xml</slide> <slide>slides/dbdesign/trigger2.xml</slide> +<slide>slides/dbdesign/stored_proc.xml</slide> + <!-- TIPS & TRICKS --> <slide>slides/dbdesign/tips.xml</slide> <slide>slides/hpp/mysql_opt2.xml</slide> http://cvs.php.net/viewvc.cgi/presentations/slides/ezc/components.png?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/ezc/components.png http://cvs.php.net/viewvc.cgi/presentations/slides/ezc/title-ezc-generic.xml?r1=1.4&r2=1.5&diff_format=u Index: presentations/slides/ezc/title-ezc-generic.xml diff -u presentations/slides/ezc/title-ezc-generic.xml:1.4 presentations/slides/ezc/title-ezc-generic.xml:1.5 --- presentations/slides/ezc/title-ezc-generic.xml:1.4 Wed Feb 14 22:56:01 2007 +++ presentations/slides/ezc/title-ezc-generic.xml Thu May 3 11:20:58 2007 @@ -1,8 +1,8 @@ -<slide fontsize="3.5em"> +<slide template="title"> <title>Welcome!</title> <image align="center" filename="components.png" pdf-scale="0.7"/> -<break lines="15"/> +<break lines="10"/> <break/> <blurb class="event-date">:-:event:-: - :-:location:-:</blurb> <break/> http://cvs.php.net/viewvc.cgi/presentations/slides/input-filter/filter-s-unsafe-raw.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/input-filter/filter-s-unsafe-raw.xml diff -u presentations/slides/input-filter/filter-s-unsafe-raw.xml:1.1 presentations/slides/input-filter/filter-s-unsafe-raw.xml:1.2 --- presentations/slides/input-filter/filter-s-unsafe-raw.xml:1.1 Thu Sep 14 19:51:56 2006 +++ presentations/slides/input-filter/filter-s-unsafe-raw.xml Thu May 3 11:20:58 2007 @@ -12,7 +12,7 @@ 'FILTER_FLAG_ENCODE_HIGH', 'FILTER_FLAG_STRIP_LOW', 'FILTER_FLAG_STRIP_HIGH' ); -$filter = FILTER_SANITIZE_STRING; +$filter = FILTER_UNSAFE_RAW; include 'presentations/slides/input-filter/render-form.php'; include 'presentations/slides/input-filter/check-data.php'; ?>]]></example> http://cvs.php.net/viewvc.cgi/presentations/slides/input-filter/resources.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/input-filter/resources.xml diff -u presentations/slides/input-filter/resources.xml:1.3 presentations/slides/input-filter/resources.xml:1.4 --- presentations/slides/input-filter/resources.xml:1.3 Thu Nov 2 12:24:56 2006 +++ presentations/slides/input-filter/resources.xml Thu May 3 11:20:58 2007 @@ -8,6 +8,7 @@ <break lines="2" /> <link fontsize="3em" marginleft="2em" leader="These slides: " href="http://derickrethans.nl/talks.php" target="_new"/> + <link fontsize="3em" marginleft="2em" leader="UserInput: " href="http://components.ez.no/doc/UserInput" target="_new"/> <link fontsize="3em" marginleft="2em" leader="SQLite Input Filter: " href="http://derickrethans.nl/sqlite_filter.php" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Questions?: " href="mailto:dr@ez.no" target="_new"/> </slide> http://cvs.php.net/viewvc.cgi/presentations/ezc-php-norge.xml?view=markup&rev=1.1 Index: presentations/ezc-php-norge.xml +++ presentations/ezc-php-norge.xml <?xml version="1.0" encoding="iso-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#000000" logo1="" stylesheet="presentations/slides/ezc/ez.css" backgroundfixed="1" > <topic>Component Libraries</topic> <title>eZ Components: RAD with PHP</title> <event>PHP Norge Medlemsmøte</event> <location>Oslo, Norway</location> <date>May 10th, 2007</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://files.derickrethans.nl/ezc-vancouver7.pdf</url> <slide>slides/ezc/title-ezc-generic.xml</slide> <!-- introduction --> <slide>slides/toolbox/goals-library.xml</slide> <!-- overview --> <slide>slides/ezc/overview.xml</slide> <slide>slides/toolbox/dependencies.xml</slide> <slide>slides/ezc/install-download.xml</slide> <slide>slides/ezc/install-pear.xml</slide> <slide>slides/ezc/example-consoletools-table.xml</slide> <slide>slides/ezc/example-consoletools-progressbar.xml</slide> <slide>slides/ezc/example-eventlog.xml</slide> <slide>slides/ezc/example-database-instance.xml</slide> <slide>slides/ezc/example-database-query.xml</slide> <slide>slides/ezc/example-persistentobject.xml</slide> <slide>slides/ezc/example-imageconversion.xml</slide> <slide>slides/ezc/example-imageconversion2.xml</slide> <slide>slides/ezc/example-mail.xml</slide> <slide>slides/ezc/example-mail-parse.xml</slide> <slide>slides/ezc/example-mail-summary.xml</slide> <slide>slides/ezc/example-template-mail.xml</slide> <slide>slides/ezc/example-graph.xml</slide> <slide>slides/ezc/example-graph-result.xml</slide> <slide>slides/ezc/example-graph2.xml</slide> <slide>slides/ezc/example-graph2-result.xml</slide> <slide>slides/ezc/example-feed.xml</slide> <slide>slides/ezc/example-feed2.xml</slide> <!-- what's next? --> <slide>slides/ezc/future-2006.2-2007.1.xml</slide> <slide>slides/ezc/contributing.xml</slide> <slide>slides/ezc/questions.xml</slide> </presentation> http://cvs.php.net/viewvc.cgi/presentations/filter-quebec7.xml?view=markup&rev=1.1 Index: presentations/filter-quebec7.xml +++ presentations/filter-quebec7.xml <?xml version="1.0" encoding="iso-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#f1fbff" logo1="" stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>Security</topic> <title>Input Filter</title> <event>Conférence PHP Québec</event> <location>Montréal, Canada</location> <date>March 15th, 2007</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://derickrethans.nl/talks.php</url> <slide>slides/input-filter/title.xml</slide> <!-- SQL Injection / XSS Intro --> <slide>slides/input-filter/what-is-wrong1.xml</slide> <slide>slides/input-filter/what-is-wrong2.xml</slide> <!-- Solutions --> <slide>slides/input-filter/casting.xml</slide> <slide>slides/input-filter/filtering.xml</slide> <!-- Server solution --> <slide>slides/input-filter/bastions.xml</slide> <slide>slides/input-filter/mod_security.xml</slide> <!-- mod_security --> <slide>slides/input-filter/bastions2.xml</slide> <slide>slides/input-filter/sapi-input-filter.xml</slide> <!-- sapi input filter --> <slide>slides/input-filter/filter-none.xml</slide> <!-- current status --> <slide>slides/input-filter/filter-strip-all.xml</slide> <!-- rasmus 1st filter suggestion (strip all, raw accessor) --> <slide>slides/input-filter/filter-accessor.xml</slide> <!-- rasmus 2st filter suggestion (accessor only) --> <slide>slides/input-filter/php52.xml</slide> <slide>slides/input-filter/default-filter.xml</slide> <slide>slides/input-filter/functions-and-common-flags.xml</slide> <slide>slides/input-filter/functions-and-common-flags-array.xml</slide> <slide>slides/input-filter/functions-and-array-flags.xml</slide> <slide>slides/input-filter/functions-get-args.xml</slide> <slide>slides/input-filter/functions-filter-data.xml</slide> <!-- <slide>slides/input-filter/functions-filter-data-non-existent.xml</slide> --> <slide>slides/input-filter/sanitizing-filters.xml</slide> <slide>slides/input-filter/filter-s-string.xml</slide> <slide>slides/input-filter/filter-s-encoded.xml</slide> <slide>slides/input-filter/filter-s-special-chars.xml</slide> <slide>slides/input-filter/filter-s-unsafe-raw.xml</slide> <slide>slides/input-filter/filter-s-email.xml</slide> <slide>slides/input-filter/filter-s-url.xml</slide> <slide>slides/input-filter/filter-s-number-int.xml</slide> <slide>slides/input-filter/filter-s-number-float.xml</slide> <slide>slides/input-filter/filter-s-magic-quotes.xml</slide> <slide>slides/input-filter/validating-filters.xml</slide> <slide>slides/input-filter/filter-v-int.xml</slide> <slide>slides/input-filter/filter-v-boolean.xml</slide> <slide>slides/input-filter/filter-v-float.xml</slide> <slide>slides/input-filter/filter-v-regexp.xml</slide> <slide>slides/input-filter/filter-v-validate-url.xml</slide> <slide>slides/input-filter/filter-v-validate-email.xml</slide> <slide>slides/input-filter/filter-v-validate-ip.xml</slide> <slide>slides/input-filter/callback-filter.xml</slide> <slide>slides/input-filter/filter-c-callback.xml</slide> <slide>slides/toolbox/goals-library.xml</slide> <slide>slides/ezc/example-userinput.xml</slide> <slide>slides/input-filter/resources.xml</slide> </presentation> http://cvs.php.net/viewvc.cgi/presentations/slides/dbdesign/stored_proc.xml?view=markup&rev=1.1 Index: presentations/slides/dbdesign/stored_proc.xml +++ presentations/slides/dbdesign/stored_proc.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Stored Procedure</title> <subtitle>Update Problems</subtitle> <blurb>Another solution is a stored procedure:</blurb> <break/> <example><![CDATA[DELIMITER | CREATE PROCEDURE prc_update_airport_name (c char(3), n varchar(255)) BEGIN UPDATE airport_code SET airfield_name = n WHERE code = c; UPDATE flight_denorm SET from_airfield_name = n WHERE from_airport = c; UPDATE flight_denorm SET to_airfield_name = n WHERE to_airport = c; END | DELIMITER ;]]></example> <break/> <blurb>Use like:</blurb> <break/> <example><![CDATA[CALL prc_update_airport_name('AMS', 'Schiphol');]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/ezc/ez.css?view=markup&rev=1.1 Index: presentations/slides/ezc/ez.css +++ presentations/slides/ezc/ez.css <style title="Default" type="text/css"> body { font-size: 8pt; margin-left:24px; margin-right:0px; margin-top:0em; margin-bottom:0em; background-image: url(presentations/slides/ezc/ez-background.jpg); background-attachment: fixed; background-repeat: no-repeat; overflow: -moz-scrollbars-none; font-family: Arial, helvetica, sans-serif; } body.title { background-image: url(presentations/slides/ezc/ez-background-title.jpg); overflow: none; } div.sticky { margin: 0; position: fixed; top: -0.5em; left: 290px; right: auto; bottom: auto; } div.navbar { padding: 4; margin: 0; height: 14em; font-family: "MaxOT-book", verdana, tahoma, arial, helvetica, sans-serif; z-index: 99; } div.navbar_title, div.navbar_title a, div.subtitle { font-size: 26px; color: #000000; text-decoration: none; text-align: left; font-weight: bold; margin-top: 20px; } body.title div.navbar { visibility: hidden; display: none; } div.subtitle { margin-top: 0px; font-size: 18px; font-weight: normal; font-style: italic; } div.navbar_nr a { font-size: 13px; color: #77a; text-decoration: none; position: fixed; right: 10px; bottom: 0px; } div.mainarea { margin-top: 100px; padding-top: 10px; width: 1000px; height: 610px; overflow: auto; overflow: -moz-scrollbars-vertical; } body.title div.mainarea { margin-top: 250px; overflow: -moz-scrollbars-none; } ul.pres { list-style: circle; font-size: 18pt; } ul.numbered { font-size: 20pt; margin-right: 40px; list-style-type: decimal; } ul.level2 { list-style: circle; font-size: 16pt; margin-left: 40px; margin-top: -15px; } li.pres_bullet, div.link { font-size: 20pt; margin-right: 40px; } li.pres_bullet_nr { font-size: 20pt; margin-right: 40px; list-style-type: decimal; } ul.large div li.pres_bullet { font-size: 26pt; } ul.small div li.pres_bullet { font-size: 16pt; } div.title_blurb { font-size: 64px; text-align: center; font-weight: bold; } div.small_blurb { font-size: 18px; } div.blurb, div.bit_larger_output_text { font-size: 20pt; width: 100%; } div.bit_larger_output_text { margin-top: 8px; } div.x_small_blurb { font-size: 0.5em; } div.large_blurb { font-size: 26pt; } div.large_blurb_center { font-size: 38px; text-align: center; } div.blurb_center { text-align: center; } div.quote { font-size: 32px; text-align: center; margin-left: 40px; margin-right: 40px; } div.quote_attr { font-size: 24px; text-align: right; margin-right: 40px; } div.xx_large_blurb_center { font-size: 64px; text-align: center; } div.q_mark { text-align: center; font-size: 384px; } div.shadow, code { font-size: 14px; width: 920px; } div.example code, div.highlight code, div.bit_larger, div.bit_larger code, div.bit_larger_output { background: #eee; font-size: 16px; width: 100%; font-weight: bold; } div.example, div.highlight, div.bit_larger, div.bit_larger_output { margin-left: 20px; margin-right: 20px; } div.bit_larger_output { background: #e6e300; font-size: 20pt; font-weight: normal; } div.large code, div.large { font-size: 26px; background: #eee; font-weight: bold; margin-left: 20px; margin-right: 20px; } div.highlight code, div.highlight { background: #fffc00; font-weight: bold; } div.code_small, div.code_medium, div.code_large, div.example { background: #eee; } div.code_small code { font-size: 10px; } div.code_medium code, div.code_medium pre { font-size: 16px; } div.code_large code, div.code_large pre { font-size: 18px; } div.example pre { font-size: 16px; font-weight: bold; } div.event, div.event-date, div.event-presenter { text-align: center; font-size: 26pt; font-family: "MaxOT-book"; } div.pres-url-small { text-align: center; font-size: 18pt; font-family: "MaxOT-book"; } img.spaced { margin-right: 25px; margin-left: 25px; margin-top: 25px; margin-bottom: 25px; } table { font-size: 16pt; } table.dbtable { border-spacing: 0px; border-collapse: collapse; } table.dbtable tr { margin: 0px; padding: 0px; background-color: #f00; } table.dbtable td { margin: 0px; padding: 1px 5px 1px 5px; border: thin solid black; background-color: #fff; vertical-align: top; } table.dbtable td.header { font-weight: bold; text-align: center; } table.dbtable td.header-candidate-key { font-weight: bold; font-style: italic; text-align: center; color: blue; } table.dbtable td.header-key, table.dbtable td.header-key-moved-to { font-weight: bold; text-align: center; color: red; } table.dbtable td.header-moved, table.dbtable td.moved { border: 1px dotted #aaa; color: #aaa; } table.dbtable td.header-moved, table.dbtable td.header-moved-to { font-weight: bold; } table.dbtable td.header-moved-to, table.dbtable td.moved-to, table.dbtable td.header-key-moved-to { border: 2px solid black; } </style> http://cvs.php.net/viewvc.cgi/presentations/slides/input-filter/functions-and-array-flags.xml?view=markup&rev=1.1 Index: presentations/slides/input-filter/functions-and-array-flags.xml +++ presentations/slides/input-filter/functions-and-array-flags.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>More about dealing with arrays</title> <list> <bullet>*FILTER_REQUIRE_SCALAR* (default): requires the input variable to be not an array</bullet> <bullet>*FILTER_REQUIRE_ARRAY*: requires the input variable to be an array</bullet> <bullet>*FILTER_FORCE_ARRAY*: converts the input variable to an array, even if a scalar was submitted</bullet> </list> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/input-filter/functions-filter-data-non-existent.xml?view=markup&rev=1.1 Index: presentations/slides/input-filter/functions-filter-data-non-existent.xml +++ presentations/slides/input-filter/functions-filter-data-non-existent.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Getting Input</title> <example result="1"><![CDATA[<?php $data = filter_input( INPUT_GET, 'data', FILTER_VALIDATE_INT ); var_dump( $data ); $data = filter_input( INPUT_GET, 'data', FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE ); var_dump( $data ); ?>]]></example> <break/> </slide>