cvs: presentations /slides/intro hackref.xml modular.png modular.xml people1.xml people10.xml people2.xml people4.xml people6.xml people8.xml
people9.xml

From: Date: Mon, 03 Mar 2008 20:47:00 +0000
Subject: cvs: presentations /slides/intro hackref.xml modular.png modular.xml people1.xml people10.xml people2.xml people4.xml people6.xml people8.xml
people9.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1463@lists.php.net to get a copy of this message
rasmus Mon Mar 3 20:47:00 2008 UTC Added files: /presentations/slides/intro modular.png modular.xml Modified files: /presentations/slides/intro hackref.xml people1.xml people10.xml people2.xml people4.xml people6.xml people8.xml people9.xml Log: Another Georgia Tech talk

http://cvs.php.net/viewvc.cgi/presentations/slides/intro/hackref.xml?r1=1.4&r2=1.5&diff_format=u Index: presentations/slides/intro/hackref.xml diff -u presentations/slides/intro/hackref.xml:1.4 presentations/slides/intro/hackref.xml:1.5 --- presentations/slides/intro/hackref.xml:1.4 Fri Feb 29 22:33:55 2008 +++ presentations/slides/intro/hackref.xml Mon Mar 3 20:47:00 2008 @@ -1,6 +1,7 @@ <slide title="Resources"> <break lines="6"/> <link fontsize="3em" marginleft="3em" leader="Slides: " href=":-:url:-:"/> +<link fontsize="3em" marginleft="3em" leader="Code: " href="http://lerdorf.com/people.tar.gz"/> <link fontsize="3em" marginleft="3em" leader="Hack Day: " href="http://developer.yahoo.com/hacku/"/> <link fontsize="3em" marginleft="3em" leader="YDN: " href="http://developer.yahoo.com/"/> <link fontsize="3em" marginleft="3em" leader="Mobile: " href="http://mobile.yahoo.com/go"/> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/people1.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/intro/people1.xml diff -u presentations/slides/intro/people1.xml:1.1 presentations/slides/intro/people1.xml:1.2 --- presentations/slides/intro/people1.xml:1.1 Tue Oct 9 21:15:38 2007 +++ presentations/slides/intro/people1.xml Mon Mar 3 20:47:00 2008 @@ -5,24 +5,24 @@ Putting it all together in a full application. </blurb> -<example title="Main page" result="0" marginright="1em" fontsize="1.5" type="xml"><![CDATA[<div style="margin: 20px 0px 0px 20px; float: left; width:900px; border: 3px solid black;"> - <div id="jsmapContainer" style="top:0px; left:0px; width:900px; height:500px;"></div> - <div style="padding: 0.5em; float: left;"> - <form id="locF" onsubmit="return false"> - <label for="loc">Location:<label> - <input type="text" name="loc" id="loc" size="80"/> - </form> - <div id="status" style="display: inline;"></div> - </div> - <div id="buttonContainer" style="padding: 0.5em; float: right;"> - <form> - <input type="button" id="login" value="Login"></input> - <input type="button" id="add" value="Add"></input> - </form> - </div> +<example title="Main page" result="0" marginleft="1em" marginright="0.5em" fontsize="1.4" type="xml"><![CDATA[<div style="margin: 20px 0px 0px 20px;float:left;width:900px;border:3px solid black;"> + <div id="jsmapContainer" style="top:0px; left:0px; width:900px; height:500px;"></div> + <div style="padding: 0.5em; float: left;"> + <form id="locF" onsubmit="return false"> + <label for="loc">Location:<label> + <input type="text" name="loc" id="loc" size="80"/> + </form> + <div id="status" style="display: inline;"></div> + </div> + <div id="buttonContainer" style="padding: 0.5em; float: right;"> + <form> + <input type="button" id="login" value="Login"></input> + <input type="button" id="add" value="Add"></input> + </form> + </div> </div>]]></example> -<example title="Login Dialog" result="0" marginright="1em" fontsize="1.5" type="xml"><![CDATA[<div id="loginUserDlg"> +<example title="Login Dialog" result="0" marginleft="1em" marginright="0.5em" fontsize="1.4" type="xml"><![CDATA[<div id="loginUserDlg"> <div class="hd">Login</div> <div class="bd"> <form id="loginUserForm" method="POST" action="rpc.php"> @@ -33,7 +33,7 @@ </div> </div>]]></example> -<example title="Add User Dialog" result="0" marginright="1em" fontsize="1.5" type="xml"><![CDATA[<div id="addUserDlg"> +<example title="Add User Dialog" result="0" marginleft="1em" marginright="0.5em" fontsize="1.4" type="xml"><![CDATA[<div id="addUserDlg"> <div class="hd">New Marker Data</div> <div class="bd"> <form id="addUserForm" method="POST" action="rpc.php"> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/people10.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/people10.xml diff -u presentations/slides/intro/people10.xml:1.2 presentations/slides/intro/people10.xml:1.3 --- presentations/slides/intro/people10.xml:1.2 Sat Jan 19 19:24:29 2008 +++ presentations/slides/intro/people10.xml Mon Mar 3 20:47:00 2008 @@ -5,14 +5,15 @@ Login Javascript </blurb> -<example result="0" marginright="1em" fontsize="1.5"><![CDATA[var logged_in = <?php echo $logged_in ? 'true' : 'false'?>; +<example result="0" marginleft="1em" marginright="0.5em" fontsize="1.5"><![CDATA[var logged_in = <?php echo $logged_in ? 'true' : 'false'?>; var setCookie = function(cookieName,cookieValue, expire) { var today = new Date(); var expire = new Date(); if(expire) { expire.setTime(today.getTime() + 3600000*24*7); - document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); + document.cookie = cookieName+"="+escape(cookieValue) + + ";expires="+expire.toGMTString(); } else { document.cookie = cookieName+"="+escape(cookieValue); } http://cvs.php.net/viewvc.cgi/presentations/slides/intro/people2.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/people2.xml diff -u presentations/slides/intro/people2.xml:1.2 presentations/slides/intro/people2.xml:1.3 --- presentations/slides/intro/people2.xml:1.2 Sat Jan 19 19:24:29 2008 +++ presentations/slides/intro/people2.xml Mon Mar 3 20:47:00 2008 @@ -5,20 +5,20 @@ Javascript to render map and center pin </blurb> -<example result="0" marginright="1em" fontsize="1.5"><![CDATA[ YAHOO.people.container.jsmap = new YMap(document.getElementById('jsmapContainer')); - YAHOO.people.container.jsmap.setMapType(YAHOO_MAP_REG); - YAHOO.people.container.jsmap.addZoomLong(); - YAHOO.people.container.jsmap.addTypeControl(); - YAHOO.people.container.jsmap.removeZoomScale(); - YAHOO.people.container.jsmap.drawZoomAndCenter("Libya",16); +<example result="0" marginright="1em" fontsize="1.4"><![CDATA[YAHOO.people.container.jsmap = new YMap(document.getElementById('jsmapContainer')); +YAHOO.people.container.jsmap.setMapType(YAHOO_MAP_REG); +YAHOO.people.container.jsmap.addZoomLong(); +YAHOO.people.container.jsmap.addTypeControl(); +YAHOO.people.container.jsmap.removeZoomScale(); +YAHOO.people.container.jsmap.drawZoomAndCenter("Libya",16); - var container_size = YAHOO.people.container.jsmap.getContainerSize(); - map_center = new YCoordPoint(container_size.width/2, container_size.height/2-17); - var cross = YUtility.createNode('img','cross'); - cross.src = 'http://www.lerdorf.com/black_pin.png'; - cross.height = 19; - cross.width= 23; - center_marker = new YCustomOverlay(map_center, cross); - YAHOO.people.container.jsmap.addOverlay(center_marker);]]></example> +var container_size = YAHOO.people.container.jsmap.getContainerSize(); +map_center = new YCoordPoint(container_size.width/2, container_size.height/2-17); +var cross = YUtility.createNode('img','cross'); +cross.src = 'http://www.lerdorf.com/black_pin.png'; +cross.height = 19; +cross.width= 23; +center_marker = new YCustomOverlay(map_center, cross); +YAHOO.people.container.jsmap.addOverlay(center_marker);]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/people4.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/people4.xml diff -u presentations/slides/intro/people4.xml:1.2 presentations/slides/intro/people4.xml:1.3 --- presentations/slides/intro/people4.xml:1.2 Sat Jan 19 19:24:29 2008 +++ presentations/slides/intro/people4.xml Mon Mar 3 20:47:00 2008 @@ -15,7 +15,7 @@ newTab.set('contentVisible', true); YAHOO.util.Dom.setStyle(newTab.get('contentEl'), 'opacity', 0); - newTab.anim = newTab.anim || new YAHOO.util.Anim( newTab.get('contentEl') ); + newTab.anim = newTab.anim || new YAHOO.util.Anim(newTab.get('contentEl')); newTab.anim.attributes.opacity = { to: 1 }; var hideContent = function() { @@ -23,7 +23,7 @@ oldTab.anim.onComplete.unsubscribe(hideContent); }; - oldTab.anim = oldTab.anim || new YAHOO.util.Anim( oldTab.get('contentEl') ); + oldTab.anim = oldTab.anim || new YAHOO.util.Anim(oldTab.get('contentEl')); oldTab.anim.onComplete.subscribe(hideContent, this, true); oldTab.anim.attributes.opacity = { to: 0 }; http://cvs.php.net/viewvc.cgi/presentations/slides/intro/people6.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/people6.xml diff -u presentations/slides/intro/people6.xml:1.2 presentations/slides/intro/people6.xml:1.3 --- presentations/slides/intro/people6.xml:1.2 Sat Jan 19 19:24:29 2008 +++ presentations/slides/intro/people6.xml Mon Mar 3 20:47:00 2008 @@ -5,7 +5,7 @@ Events and initial start up </blurb> -<example result="0" marginright="1em" fontsize="1.5"><![CDATA[var updateLatLon = function() { +<example result="0" marginleft="1em" marginright="0.5em" fontsize="1.4"><![CDATA[var updateLatLon = function() { var ll = YAHOO.people.container.jsmap.getCenterLatLon(); document.getElementById('latitude').value = ll['Lat']; document.getElementById('longitude').value = ll['Lon']; @@ -18,15 +18,16 @@ }; var callback = { success:handleMarkers } -YAHOO.util.Connect.asyncRequest('GET','http://www.lerdorf.com/people/rpc.php?action=markers', callback); +YAHOO.util.Connect.asyncRequest('GET', + 'http://www.lerdorf.com/people/rpc.php?action=markers',callback); YEvent.Capture(YAHOO.people.container.jsmap, EventsList.endPan, updateLatLon); YEvent.Capture(YAHOO.people.container.jsmap, EventsList.endAutoPan, updateLatLon); YEvent.Capture(YAHOO.people.container.jsmap, EventsList.endMapDraw, updateLatLon); -YAHOO.util.Event.addListener("addButton", "click", YAHOO.people.container.addUser.show, +YAHOO.util.Event.addListener("addButton","click",YAHOO.people.container.addUser.show, YAHOO.people.container.addUser, true); -YAHOO.util.Event.addListener("loginButton", "click", YAHOO.people.container.loginUser.show, +YAHOO.util.Event.addListener("loginButton","click",YAHOO.people.container.loginUser.show, YAHOO.people.container.loginUser, true); YAHOO.util.Event.addListener("locF", "submit", updateMap); ]]></example> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/people8.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/people8.xml diff -u presentations/slides/intro/people8.xml:1.2 presentations/slides/intro/people8.xml:1.3 --- presentations/slides/intro/people8.xml:1.2 Sat Jan 19 19:24:29 2008 +++ presentations/slides/intro/people8.xml Mon Mar 3 20:47:00 2008 @@ -5,7 +5,7 @@ Implement autocomplete </blurb> -<example result="0" marginright="1em" fontsize="1.5"><![CDATA[var oDS = new YAHOO.widget.DS_XHR("http://www.lerdorf.com/people/rpc.php", [","]); +<example result="0" marginleft="1em" marginright="0.5em" fontsize="1.4"><![CDATA[var oDS = new YAHOO.widget.DS_XHR("http://www.lerdorf.com/people/rpc.php", [","]); oDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT; oDS.scriptQueryParam = "q"; oDS.scriptQueryAppend = "action=lang"; http://cvs.php.net/viewvc.cgi/presentations/slides/intro/people9.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/people9.xml diff -u presentations/slides/intro/people9.xml:1.2 presentations/slides/intro/people9.xml:1.3 --- presentations/slides/intro/people9.xml:1.2 Sat Jan 19 19:24:29 2008 +++ presentations/slides/intro/people9.xml Mon Mar 3 20:47:00 2008 @@ -5,7 +5,7 @@ Backend code for login and XSRF prevention </blurb> -<example result="0" marginright="1em" fontsize="1.5"><![CDATA[<?php +<example result="0" marginleft="1em" marginright="0.5em" fontsize="1.4"><![CDATA[<?php $logged_in = session_check(); $token = null; @@ -26,7 +26,8 @@ function session_check() { global $server_secret; - if($_COOKIE['auth'] && $_COOKIE['id'] && $_COOKIE['auth'] == sha1($server_secret.$_COOKIE['id'])) { + if($_COOKIE['auth'] && $_COOKIE['id'] && $_COOKIE['auth'] == + sha1($server_secret.$_COOKIE['id'])) { SetCookie('token', sha1($auth.rand())); return 1; } @@ -34,7 +35,7 @@ } ?>]]></example> -<example result="0" marginright="1em" fontsize="1.5" type="javascript"><![CDATA[<?php +<example result="0" marginleft="1em" marginright="0.5em" fontsize="1.4" type="javascript"><![CDATA[<?php case 'add': auth_check(); $id = $people->insert($_REQUEST); http://cvs.php.net/viewvc.cgi/presentations/slides/intro/modular.xml?view=markup&rev=1.1 Index: presentations/slides/intro/modular.xml +++ presentations/slides/intro/modular.xml <slide title="Modular Architecture"> <break lines="5" /> <image filename="modular.png" align="center"/> </slide>
« previous php.pres (#1463) next »