cvs: pres2 / css.php display.php index.php keyboard.js.php show.php
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jul 2004 11:42:04 +0000 |
| Subject: | cvs: pres2 / css.php display.php index.php keyboard.js.php show.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1008@lists.php.net to get a copy of this message | ||
rasmus Thu Jul 1 07:42:04 2004 EDT
Modified files:
/pres2 css.php display.php index.php keyboard.js.php show.php
Log:
Make it work with short_tags off
http://cvs.php.net/diff.php/pres2/css.php?r1=1.15&r2=1.16&ty=u Index: pres2/css.php diff -u pres2/css.php:1.15 pres2/css.php:1.16 --- pres2/css.php:1.15 Wed Oct 22 01:03:57 2003 +++ pres2/css.php Thu Jul 1 07:42:03 2004 @@ -23,9 +23,9 @@ margin: 0; <?php if(!$css_supports_fixed): // Need a much smarter check here ?> position: absolute; -<?else:?> +<?php else:?> position: fixed; -<?endif?> +<?php endif?> top: 0em; left: 0em; right: auto; @@ -36,9 +36,9 @@ margin: 0; <?php if(!$css_supports_fixed): // Need a much smarter check here ?> position: absolute; -<?else:?> +<?php else:?> position: fixed; -<?endif?> +<?php endif?> top: auto; left: 0em; right: auto; http://cvs.php.net/diff.php/pres2/display.php?r1=1.17&r2=1.18&ty=u Index: pres2/display.php diff -u pres2/display.php:1.17 pres2/display.php:1.18 --- pres2/display.php:1.17 Wed Jun 30 05:42:08 2004 +++ pres2/display.php Thu Jul 1 07:42:03 2004 @@ -108,17 +108,17 @@ } ?> <td align="center"> - <?echo "<div align=\"center\" style=\"font-size: $titlesize; margin: 0 ".$offset."em 0 0;\"><a title=\"".$this->pres->slides[$this->slideNum]->filename."\" href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$this->slideNum\" style=\"text-decoration: none; color: $titlecolor;\">".markup_text($slide->title)."</a></div>";?> + <?php echo "<div align=\"center\" style=\"font-size: $titlesize; margin: 0 ".$offset."em 0 0;\"><a title=\"".$this->pres->slides[$this->slideNum]->filename."\" href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$this->slideNum\" style=\"text-decoration: none; color: $titlecolor;\">".markup_text($slide->title)."</a></div>";?> </td> </tr></table> <br /> <table style="float: right"> <tr> - <td class="c1"><b><?= $this->pres->title ?></b></td> + <td class="c1"><b><?php echo $this->pres->title ?></b></td> <td><img src="images/vline.gif" hspace="5" /></td> - <td class="c1"><?= date('Y-m-d') ?></td> + <td class="c1"><?php echo date('Y-m-d') ?></td> <td><img src="images/blank.gif" width="5" /></td> - <td><? if( $this->slideNum > 0){ + <td><?php if( $this->slideNum > 0){ $prevSlide = $this->slideNum - 1; echo "<a title=\"$this->prevTitle\" href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$prevSlide\">" . '<img src="images/back.gif" border="0" hspace="2" /></a>'; @@ -127,8 +127,8 @@ ?></td> <td bgcolor="999999"><img src="images/blank.gif" width="25" height="1" /><br /> <span class="c2"><b><i> - <a title="<?= $this->slideNum.' of '.$this->maxSlideNum?>" href="<?= "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>" onClick="window.open('<?= "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>','slidelist','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=300,height=500,left=<?= $this->winW-300 ?>,top=0'); return false" class="linka"><?= $this->slideNum ?></a> </i></b></span></td> - <td><? if( !empty($this->nextSlideNum) ) + <a title="<?php echo $this->slideNum.' of '.$this->maxSlideNum?>" href="<?php echo "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>" onClick="window.open('<?php echo "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>','slidelist','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=300,height=500,left=<?php echo $this->winW-300 ?>,top=0'); return false" class="linka"><?php echo $this->slideNum ?></a> </i></b></span></td> + <td><?php if( !empty($this->nextSlideNum) ) echo "<a title=\"$this->nextTitle\" href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$this->nextSlideNum\">" . '<img src="images/next.gif" border="0" hspace="2" /></a>'; ?></td> @@ -136,9 +136,9 @@ </tr> </table> <br clear="left" /> - <hr style="margin-left: 0; margin-right: 0; border: 0; color: <?=$titlecolor?>; background-color: <?=$titlecolor?>; height: 2px"> + <hr style="margin-left: 0; margin-right: 0; border: 0; color: <?php echo $titlecolor?>; background-color: <?php echo $titlecolor?>; height: 2px"> </div></div> - <? + <?php break; case 'mysql': @@ -155,17 +155,17 @@ } ?> <td align="center"> - <b style="color: CC6600; font-size: 1.5em; font-family: arial, helvetica, verdana"><?= markup_text($slide->title) ?></b> + <b style="color: CC6600; font-size: 1.5em; font-family: arial, helvetica, verdana"><?php echo markup_text($slide->title) ?></b> </td> </tr></table> <br /> <table style="float: right"> <tr> - <td class="c1"><b><?= $this->pres->title ?></b></td> + <td class="c1"><b><?php echo $this->pres->title ?></b></td> <td><img src="images/vline.gif" hspace="5" /></td> - <td class="c1"><?= date('Y-m-d') ?></td> + <td class="c1"><?php echo date('Y-m-d') ?></td> <td><img src="images/blank.gif" width="5" /></td> - <td><? if( $this->slideNum > 0){ + <td><?php if( $this->slideNum > 0){ $prevSlide = $this->slideNum - 1; echo "<a href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$prevSlide\">" . '<img src="images/back.gif" border="0" hspace="2" /></a>'; @@ -174,8 +174,8 @@ ?></td> <td bgcolor="999999"><img src="images/blank.gif" width="25" height="1" /><br /> <span class="c2"><b><i> - <a href="<?= "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>" onClick="window.open('<?= "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>','slidelist','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=300,height=500,left=<?= $this->winW-300 ?>,top=0'); return false" class="linka"><?= $this->slideNum ?></a> </i></b></span></td> - <td><? if( !empty($this->nextSlideNum) ) + <a href="<?php echo "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>" onClick="window.open('<?php echo "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>','slidelist','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=300,height=500,left=<?php echo $this->winW-300 ?>,top=0'); return false" class="linka"><?php echo $this->slideNum ?></a> </i></b></span></td> + <td><?php if( !empty($this->nextSlideNum) ) echo "<a href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$this->nextSlideNum\">" . '<img src="images/next.gif" border="0" hspace="2" /></a>'; ?></td> @@ -185,7 +185,7 @@ <br clear="left" /> <hr style="border: 0; color: #CC6600; background-color: #CC6600; height: 2px"> </div></div> - <? + <?php break; case 'css': @@ -322,8 +322,8 @@ } } ?> -<div <?=$effect?> align="<?=$image->align?>" style="margin-left: <?=$image->marginleft?>; margin-right: <?=$image->marginright?>;"> -<img align="<?=$image->align?>" src="<?=$this->slideDir.$image->filename?>" <?=$size?>> +<div <?php echo $effect?> align="<?php echo $image->align?>" style="margin-left: <?php echo $image->marginleft?>; margin-right: <?php echo $image->marginright?>;"> +<img align="<?php echo $image->align?>" src="<?php echo $this->slideDir.$image->filename?>" <?php echo $size?>> </div> <?php if(isset($image->clear)) echo "<br clear=\"".$image->clear."\"/>\n"; @@ -658,7 +658,7 @@ <img style="margin-bottom: -0.3em" src="images/bottomswoop.gif" width="100%" height="50" /> <span class="c4">© Copyright 2002 MySQL AB</span> </div> - <? + <?php } break; /* (this seemed too intrusive) @@ -666,9 +666,9 @@ if($this->nextTitle) { ?> <span class="C5"> - <?echo 'next: '.markup_text($this->nextTitle);?> + <?php echo 'next: '.markup_text($this->nextTitle);?> </span> - <? + <?php } break; */ @@ -814,8 +814,8 @@ $size = $size[3]; } ?> -<div align="<?=$image->align?>" style="margin-left: <?=$image->marginleft?>; margin-right: <?=$image->marginright?>;"> -<img src="<?=$this->slideDir.$image->filename?>" <?=$size?>> +<div align="<?php echo $image->align?>" style="margin-left: <?php echo $image->marginleft?>; margin-right: <?php echo $image->marginright?>;"> +<img src="<?php echo $this->slideDir.$image->filename?>" <?php echo $size?>> </div> <?php } @@ -967,10 +967,10 @@ list($dx,$dy) = getFlashDimensions($slide->titleFont,$slide->title,flash_fixsize($slide->titleSize)); $dx = $this->winW; // full width ?> -<div align="<?=$slide->titleAlign?>" class="sticky" id="stickyBar"> -<embed src="<?=$this->baseDir?>flash.php/<?echo time()?>?type=title&dy=<?=$dy?>&dx=<?=$dx?>&coid=<?=$this->coid?>" quality=high loop=false +<div align="<?php echo $slide->titleAlign?>" class="sticky" id="stickyBar"> +<embed src="<?php echo $this->baseDir?>flash.php/<?php echo time()?>?type=title&dy=<?php echo $dy?>&dx=<?php echo $dx?>&coid=<?php echo $this->coid?>" quality=high loop=false pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" -type="application/x-shockwave-flash" width="<?=$dx?>" height="<?=$dy?>"> +type="application/x-shockwave-flash" width="<?php echo $dx?>" height="<?php echo $dy?>"> </embed> </div> <?php http://cvs.php.net/diff.php/pres2/index.php?r1=1.32&r2=1.33&ty=u Index: pres2/index.php diff -u pres2/index.php:1.32 pres2/index.php:1.33 --- pres2/index.php:1.32 Wed Jan 7 18:04:07 2004 +++ pres2/index.php Thu Jul 1 07:42:03 2004 @@ -143,18 +143,18 @@ $_SESSION['show_speaker_notes'] = ($form_speaker=='true'); $_SESSION['selected_display_mode'] = $display_mode; ?> -<form name="modes_form" action="<?=$_SERVER['PHP_SELF']?>" method="POST"> +<form name="modes_form" action="<?php echo $_SERVER['PHP_SELF']?>" method="POST"> <p>Please select a display mode: <select name="modes" onChange="change_mode()"> -<option value="html" <?=($display_mode=='html')?'SELECTED':''?>>Fancy HTML (Best with Mozilla)</option> -<option value="plainhtml" <?=($display_mode=='plainhtml')?'SELECTED':''?>>Plain HTML</option> -<option value="flash" <?=($display_mode=='flash')?'SELECTED':''?>>Flash 5 (navbar only)</option> -<option value="pdfus" <?=($display_mode=='pdfus')?'SELECTED':''?>>PDF (US-Letter)</option> -<option value="pdfusl" <?=($display_mode=='pdfusl')?'SELECTED':''?>>PDF (US-Legal)</option> -<option value="pdfa4" <?=($display_mode=='pdfa4')?'SELECTED':''?>>PDF (A4)</option> +<option value="html" <?php echo ($display_mode=='html')?'SELECTED':''?>>Fancy HTML (Best with Mozilla)</option> +<option value="plainhtml" <?php echo ($display_mode=='plainhtml')?'SELECTED':''?>>Plain HTML</option> +<option value="flash" <?php echo ($display_mode=='flash')?'SELECTED':''?>>Flash 5 (navbar only)</option> +<option value="pdfus" <?php echo ($display_mode=='pdfus')?'SELECTED':''?>>PDF (US-Letter)</option> +<option value="pdfusl" <?php echo ($display_mode=='pdfusl')?'SELECTED':''?>>PDF (US-Legal)</option> +<option value="pdfa4" <?php echo ($display_mode=='pdfa4')?'SELECTED':''?>>PDF (A4)</option> </select> <br /> -Show Speaker Notes: <input type="checkbox" name="speaker" <?=($form_speaker=='true')?'checked':''?> onChange="change_mode()"> +Show Speaker Notes: <input type="checkbox" name="speaker" <?php echo ($form_speaker=='true')?'checked':''?> onChange="change_mode()"> </p> </form> <?php http://cvs.php.net/diff.php/pres2/keyboard.js.php?r1=1.17&r2=1.18&ty=u Index: pres2/keyboard.js.php diff -u pres2/keyboard.js.php:1.17 pres2/keyboard.js.php:1.18 --- pres2/keyboard.js.php:1.17 Thu Oct 23 13:44:09 2003 +++ pres2/keyboard.js.php Thu Jul 1 07:42:03 2004 @@ -41,9 +41,9 @@ var currentEffect = 0; onload = function() { - <?if(!isset($_COOKIE['dims'])) {?> + <?php if(!isset($_COOKIE['dims'])) {?> get_dims(); - <? } ?> + <?php } ?> // make banner sticky on old Windows IEs <?php @@ -61,7 +61,7 @@ if(divs[i].getAttribute('effect') == 'slide') { divs[i].setAttribute('gotox',divs[i].offsetLeft); divs[i].setAttribute('gotoy',0); - divs[i].setAttribute('style','position:relative;left:-<?=$this->winW+10?>;top:0;'); + divs[i].setAttribute('style','position:relative;left:-<?php echo $this->winW+10?>;top:0;'); } else if(divs[i].getAttribute('effect') == 'hide') { style = divs[i].getAttribute('style'); divs[i].setAttribute('style',style+'visibility:hidden;'); http://cvs.php.net/diff.php/pres2/show.php?r1=1.54&r2=1.55&ty=u Index: pres2/show.php diff -u pres2/show.php:1.54 pres2/show.php:1.55 --- pres2/show.php:1.54 Wed Nov 5 10:33:56 2003 +++ pres2/show.php Thu Jul 1 07:42:03 2004 @@ -1,4 +1,5 @@ <?php + apd_set_pprof_trace(); error_reporting(E_ALL); require_once 'config.php';
http://cvs.php.net/diff.php/pres2/css.php?r1=1.15&r2=1.16&ty=u Index: pres2/css.php diff -u pres2/css.php:1.15 pres2/css.php:1.16 --- pres2/css.php:1.15 Wed Oct 22 01:03:57 2003 +++ pres2/css.php Thu Jul 1 07:42:03 2004 @@ -23,9 +23,9 @@ margin: 0; <?php if(!$css_supports_fixed): // Need a much smarter check here ?> position: absolute; -<?else:?> +<?php else:?> position: fixed; -<?endif?> +<?php endif?> top: 0em; left: 0em; right: auto; @@ -36,9 +36,9 @@ margin: 0; <?php if(!$css_supports_fixed): // Need a much smarter check here ?> position: absolute; -<?else:?> +<?php else:?> position: fixed; -<?endif?> +<?php endif?> top: auto; left: 0em; right: auto; http://cvs.php.net/diff.php/pres2/display.php?r1=1.17&r2=1.18&ty=u Index: pres2/display.php diff -u pres2/display.php:1.17 pres2/display.php:1.18 --- pres2/display.php:1.17 Wed Jun 30 05:42:08 2004 +++ pres2/display.php Thu Jul 1 07:42:03 2004 @@ -108,17 +108,17 @@ } ?> <td align="center"> - <?echo "<div align=\"center\" style=\"font-size: $titlesize; margin: 0 ".$offset."em 0 0;\"><a title=\"".$this->pres->slides[$this->slideNum]->filename."\" href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$this->slideNum\" style=\"text-decoration: none; color: $titlecolor;\">".markup_text($slide->title)."</a></div>";?> + <?php echo "<div align=\"center\" style=\"font-size: $titlesize; margin: 0 ".$offset."em 0 0;\"><a title=\"".$this->pres->slides[$this->slideNum]->filename."\" href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$this->slideNum\" style=\"text-decoration: none; color: $titlecolor;\">".markup_text($slide->title)."</a></div>";?> </td> </tr></table> <br /> <table style="float: right"> <tr> - <td class="c1"><b><?= $this->pres->title ?></b></td> + <td class="c1"><b><?php echo $this->pres->title ?></b></td> <td><img src="images/vline.gif" hspace="5" /></td> - <td class="c1"><?= date('Y-m-d') ?></td> + <td class="c1"><?php echo date('Y-m-d') ?></td> <td><img src="images/blank.gif" width="5" /></td> - <td><? if( $this->slideNum > 0){ + <td><?php if( $this->slideNum > 0){ $prevSlide = $this->slideNum - 1; echo "<a title=\"$this->prevTitle\" href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$prevSlide\">" . '<img src="images/back.gif" border="0" hspace="2" /></a>'; @@ -127,8 +127,8 @@ ?></td> <td bgcolor="999999"><img src="images/blank.gif" width="25" height="1" /><br /> <span class="c2"><b><i> - <a title="<?= $this->slideNum.' of '.$this->maxSlideNum?>" href="<?= "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>" onClick="window.open('<?= "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>','slidelist','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=300,height=500,left=<?= $this->winW-300 ?>,top=0'); return false" class="linka"><?= $this->slideNum ?></a> </i></b></span></td> - <td><? if( !empty($this->nextSlideNum) ) + <a title="<?php echo $this->slideNum.' of '.$this->maxSlideNum?>" href="<?php echo "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>" onClick="window.open('<?php echo "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>','slidelist','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=300,height=500,left=<?php echo $this->winW-300 ?>,top=0'); return false" class="linka"><?php echo $this->slideNum ?></a> </i></b></span></td> + <td><?php if( !empty($this->nextSlideNum) ) echo "<a title=\"$this->nextTitle\" href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$this->nextSlideNum\">" . '<img src="images/next.gif" border="0" hspace="2" /></a>'; ?></td> @@ -136,9 +136,9 @@ </tr> </table> <br clear="left" /> - <hr style="margin-left: 0; margin-right: 0; border: 0; color: <?=$titlecolor?>; background-color: <?=$titlecolor?>; height: 2px"> + <hr style="margin-left: 0; margin-right: 0; border: 0; color: <?php echo $titlecolor?>; background-color: <?php echo $titlecolor?>; height: 2px"> </div></div> - <? + <?php break; case 'mysql': @@ -155,17 +155,17 @@ } ?> <td align="center"> - <b style="color: CC6600; font-size: 1.5em; font-family: arial, helvetica, verdana"><?= markup_text($slide->title) ?></b> + <b style="color: CC6600; font-size: 1.5em; font-family: arial, helvetica, verdana"><?php echo markup_text($slide->title) ?></b> </td> </tr></table> <br /> <table style="float: right"> <tr> - <td class="c1"><b><?= $this->pres->title ?></b></td> + <td class="c1"><b><?php echo $this->pres->title ?></b></td> <td><img src="images/vline.gif" hspace="5" /></td> - <td class="c1"><?= date('Y-m-d') ?></td> + <td class="c1"><?php echo date('Y-m-d') ?></td> <td><img src="images/blank.gif" width="5" /></td> - <td><? if( $this->slideNum > 0){ + <td><?php if( $this->slideNum > 0){ $prevSlide = $this->slideNum - 1; echo "<a href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$prevSlide\">" . '<img src="images/back.gif" border="0" hspace="2" /></a>'; @@ -174,8 +174,8 @@ ?></td> <td bgcolor="999999"><img src="images/blank.gif" width="25" height="1" /><br /> <span class="c2"><b><i> - <a href="<?= "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>" onClick="window.open('<?= "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>','slidelist','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=300,height=500,left=<?= $this->winW-300 ?>,top=0'); return false" class="linka"><?= $this->slideNum ?></a> </i></b></span></td> - <td><? if( !empty($this->nextSlideNum) ) + <a href="<?php echo "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>" onClick="window.open('<?php echo "http://$_SERVER[HTTP_HOST]{$this->baseDir}/slidelist.php" ?>','slidelist','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=300,height=500,left=<?php echo $this->winW-300 ?>,top=0'); return false" class="linka"><?php echo $this->slideNum ?></a> </i></b></span></td> + <td><?php if( !empty($this->nextSlideNum) ) echo "<a href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$this->nextSlideNum\">" . '<img src="images/next.gif" border="0" hspace="2" /></a>'; ?></td> @@ -185,7 +185,7 @@ <br clear="left" /> <hr style="border: 0; color: #CC6600; background-color: #CC6600; height: 2px"> </div></div> - <? + <?php break; case 'css': @@ -322,8 +322,8 @@ } } ?> -<div <?=$effect?> align="<?=$image->align?>" style="margin-left: <?=$image->marginleft?>; margin-right: <?=$image->marginright?>;"> -<img align="<?=$image->align?>" src="<?=$this->slideDir.$image->filename?>" <?=$size?>> +<div <?php echo $effect?> align="<?php echo $image->align?>" style="margin-left: <?php echo $image->marginleft?>; margin-right: <?php echo $image->marginright?>;"> +<img align="<?php echo $image->align?>" src="<?php echo $this->slideDir.$image->filename?>" <?php echo $size?>> </div> <?php if(isset($image->clear)) echo "<br clear=\"".$image->clear."\"/>\n"; @@ -658,7 +658,7 @@ <img style="margin-bottom: -0.3em" src="images/bottomswoop.gif" width="100%" height="50" /> <span class="c4">© Copyright 2002 MySQL AB</span> </div> - <? + <?php } break; /* (this seemed too intrusive) @@ -666,9 +666,9 @@ if($this->nextTitle) { ?> <span class="C5"> - <?echo 'next: '.markup_text($this->nextTitle);?> + <?php echo 'next: '.markup_text($this->nextTitle);?> </span> - <? + <?php } break; */ @@ -814,8 +814,8 @@ $size = $size[3]; } ?> -<div align="<?=$image->align?>" style="margin-left: <?=$image->marginleft?>; margin-right: <?=$image->marginright?>;"> -<img src="<?=$this->slideDir.$image->filename?>" <?=$size?>> +<div align="<?php echo $image->align?>" style="margin-left: <?php echo $image->marginleft?>; margin-right: <?php echo $image->marginright?>;"> +<img src="<?php echo $this->slideDir.$image->filename?>" <?php echo $size?>> </div> <?php } @@ -967,10 +967,10 @@ list($dx,$dy) = getFlashDimensions($slide->titleFont,$slide->title,flash_fixsize($slide->titleSize)); $dx = $this->winW; // full width ?> -<div align="<?=$slide->titleAlign?>" class="sticky" id="stickyBar"> -<embed src="<?=$this->baseDir?>flash.php/<?echo time()?>?type=title&dy=<?=$dy?>&dx=<?=$dx?>&coid=<?=$this->coid?>" quality=high loop=false +<div align="<?php echo $slide->titleAlign?>" class="sticky" id="stickyBar"> +<embed src="<?php echo $this->baseDir?>flash.php/<?php echo time()?>?type=title&dy=<?php echo $dy?>&dx=<?php echo $dx?>&coid=<?php echo $this->coid?>" quality=high loop=false pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" -type="application/x-shockwave-flash" width="<?=$dx?>" height="<?=$dy?>"> +type="application/x-shockwave-flash" width="<?php echo $dx?>" height="<?php echo $dy?>"> </embed> </div> <?php http://cvs.php.net/diff.php/pres2/index.php?r1=1.32&r2=1.33&ty=u Index: pres2/index.php diff -u pres2/index.php:1.32 pres2/index.php:1.33 --- pres2/index.php:1.32 Wed Jan 7 18:04:07 2004 +++ pres2/index.php Thu Jul 1 07:42:03 2004 @@ -143,18 +143,18 @@ $_SESSION['show_speaker_notes'] = ($form_speaker=='true'); $_SESSION['selected_display_mode'] = $display_mode; ?> -<form name="modes_form" action="<?=$_SERVER['PHP_SELF']?>" method="POST"> +<form name="modes_form" action="<?php echo $_SERVER['PHP_SELF']?>" method="POST"> <p>Please select a display mode: <select name="modes" onChange="change_mode()"> -<option value="html" <?=($display_mode=='html')?'SELECTED':''?>>Fancy HTML (Best with Mozilla)</option> -<option value="plainhtml" <?=($display_mode=='plainhtml')?'SELECTED':''?>>Plain HTML</option> -<option value="flash" <?=($display_mode=='flash')?'SELECTED':''?>>Flash 5 (navbar only)</option> -<option value="pdfus" <?=($display_mode=='pdfus')?'SELECTED':''?>>PDF (US-Letter)</option> -<option value="pdfusl" <?=($display_mode=='pdfusl')?'SELECTED':''?>>PDF (US-Legal)</option> -<option value="pdfa4" <?=($display_mode=='pdfa4')?'SELECTED':''?>>PDF (A4)</option> +<option value="html" <?php echo ($display_mode=='html')?'SELECTED':''?>>Fancy HTML (Best with Mozilla)</option> +<option value="plainhtml" <?php echo ($display_mode=='plainhtml')?'SELECTED':''?>>Plain HTML</option> +<option value="flash" <?php echo ($display_mode=='flash')?'SELECTED':''?>>Flash 5 (navbar only)</option> +<option value="pdfus" <?php echo ($display_mode=='pdfus')?'SELECTED':''?>>PDF (US-Letter)</option> +<option value="pdfusl" <?php echo ($display_mode=='pdfusl')?'SELECTED':''?>>PDF (US-Legal)</option> +<option value="pdfa4" <?php echo ($display_mode=='pdfa4')?'SELECTED':''?>>PDF (A4)</option> </select> <br /> -Show Speaker Notes: <input type="checkbox" name="speaker" <?=($form_speaker=='true')?'checked':''?> onChange="change_mode()"> +Show Speaker Notes: <input type="checkbox" name="speaker" <?php echo ($form_speaker=='true')?'checked':''?> onChange="change_mode()"> </p> </form> <?php http://cvs.php.net/diff.php/pres2/keyboard.js.php?r1=1.17&r2=1.18&ty=u Index: pres2/keyboard.js.php diff -u pres2/keyboard.js.php:1.17 pres2/keyboard.js.php:1.18 --- pres2/keyboard.js.php:1.17 Thu Oct 23 13:44:09 2003 +++ pres2/keyboard.js.php Thu Jul 1 07:42:03 2004 @@ -41,9 +41,9 @@ var currentEffect = 0; onload = function() { - <?if(!isset($_COOKIE['dims'])) {?> + <?php if(!isset($_COOKIE['dims'])) {?> get_dims(); - <? } ?> + <?php } ?> // make banner sticky on old Windows IEs <?php @@ -61,7 +61,7 @@ if(divs[i].getAttribute('effect') == 'slide') { divs[i].setAttribute('gotox',divs[i].offsetLeft); divs[i].setAttribute('gotoy',0); - divs[i].setAttribute('style','position:relative;left:-<?=$this->winW+10?>;top:0;'); + divs[i].setAttribute('style','position:relative;left:-<?php echo $this->winW+10?>;top:0;'); } else if(divs[i].getAttribute('effect') == 'hide') { style = divs[i].getAttribute('style'); divs[i].setAttribute('style',style+'visibility:hidden;'); http://cvs.php.net/diff.php/pres2/show.php?r1=1.54&r2=1.55&ty=u Index: pres2/show.php diff -u pres2/show.php:1.54 pres2/show.php:1.55 --- pres2/show.php:1.54 Wed Nov 5 10:33:56 2003 +++ pres2/show.php Thu Jul 1 07:42:03 2004 @@ -1,4 +1,5 @@ <?php + apd_set_pprof_trace(); error_reporting(E_ALL); require_once 'config.php';