cvs: pres2 / index.php

From: Date: Tue, 26 Jul 2005 18:52:24 +0000
Subject: cvs: pres2 / index.php
Groups: php.pres 
Request: Send a blank email to pres+get-1169@lists.php.net to get a copy of this message
jmcastagnetto Tue Jul 26 14:52:24 2005 EDT Modified files: /pres2 index.php Log: Converting spaces to tab, in response to Derick pointing out that I used the former whereas the files use the latter. http://cvs.php.net/diff.php/pres2/index.php?r1=1.44&r2=1.45&ty=u Index: pres2/index.php diff -u pres2/index.php:1.44 pres2/index.php:1.45 --- pres2/index.php:1.44 Thu Jul 21 17:40:46 2005 +++ pres2/index.php Tue Jul 26 14:52:22 2005 @@ -5,7 +5,7 @@ require 'config.php'; require 'XML_Presentation.php'; - require_once 'messages.php'; + require_once 'messages.php'; session_start(); @@ -143,17 +143,17 @@ $_SESSION['show_speaker_notes'] = ($form_speaker=='true'); $_SESSION['selected_display_mode'] = $display_mode; - // flags for extensions - if (!extension_loaded('ming')) { - $flag_ext_ming = false; - } else { - $flag_ext_ming = true; - } - if (!extension_loaded('pdf')) { - $flag_ext_pdf = false; - } else { - $flag_ext_pdf = true; - } + // flags for extensions + if (!extension_loaded('ming')) { + $flag_ext_ming = false; + } else { + $flag_ext_ming = true; + } + if (!extension_loaded('pdf')) { + $flag_ext_pdf = false; + } else { + $flag_ext_pdf = true; + } ?> <form name="modes_form" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF'])?>" method="POST"> @@ -161,14 +161,14 @@ <select name="modes" onChange="change_mode()"> <option value="html" <?php echo ($display_mode=='html')?'SELECTED':''?>><?php echo message('OPT_FANCYHTML'); ?></option> <option value="plainhtml" <?php echo ($display_mode=='plainhtml')?'SELECTED':''?>><?php echo message('OPT_PLAINHTML'); ?></option> - <?php if ($flag_ext_ming) { ?> + <?php if ($flag_ext_ming) { ?> <option value="flash" <?php echo ($display_mode=='flash')?'SELECTED':''?>><?php echo message('OPT_FLASH'); ?></option> - <?php } ?> - <?php if ($flag_ext_pdf) { ?> + <?php } ?> + <?php if ($flag_ext_pdf) { ?> <option value="pdfus" <?php echo ($display_mode=='pdfus')?'SELECTED':''?>><?php echo message('OPT_PDFLETTER'); ?></option> <option value="pdfusl" <?php echo ($display_mode=='pdfusl')?'SELECTED':''?>><?php echo message('OPT_PDFLEGAL'); ?></option> <option value="pdfa4" <?php echo ($display_mode=='pdfa4')?'SELECTED':''?>><?php echo message('OPT_PDFA4'); ?></option> - <?php } ?> + <?php } ?> </select> <br /> <?php echo message('SHOW_NOTES'); ?> <input type="checkbox" name="speaker" <?php echo ($form_speaker=='true')?'checked':''?> onChange="change_mode()"> @@ -186,11 +186,11 @@ break; case 'flash': - echo "<p>".nl2br(message('FLASH_KEYBOARD_CONTROLS'))."</p>\n"; + echo "<p>".nl2br(message('FLASH_KEYBOARD_CONTROLS'))."</p>\n"; break; - /* this is a redundant check w/ the flags above -- JMC */ - /* + /* this is a redundant check w/ the flags above -- JMC */ + /* case 'pdfus': case 'pdfusl': case 'pdfa4': @@ -198,16 +198,16 @@ echo "<p>".message('NO_PDF_EXTENSION')."</p>\n"; } break; - */ + */ } ?> <p><?php echo message('AVAILABLE_PRESENTATIONS'); ?></p> <table align="center" class="index"> <tr><th><?php echo message('PRES_TITLE'); ?></th> - <th><?php echo message('PRES_DATE'); ?></th> - <th><?php echo message('PRES_LOCATION'); ?></th> - <th><?php echo message('PRES_SPEAKER'); ?></th> - <th><?php echo message('PRES_SLIDES'); ?></th></tr> + <th><?php echo message('PRES_DATE'); ?></th> + <th><?php echo message('PRES_LOCATION'); ?></th> + <th><?php echo message('PRES_SPEAKER'); ?></th> + <th><?php echo message('PRES_SLIDES'); ?></th></tr> <?php $prnum = sizeof($pr);

« previous php.pres (#1169) next »