[PRES] [web-pres2] master: Remove trailing spaces
[email protected] (Derick Rethans) Wed, 10 Jun 2026 09:57:15 +0000
| Newsgroups | php.pres |
|---|---|
| Message-ID | <[email protected]> |
Author: Derick Rethans (derickr)
Date: 2026-06-10T10:57:10+01:00
Commit: https://github.com/php/web-pres2/commit/d0d46101004bfe3db136fb9e6230332d762ca6d8
Raw diff: https://github.com/php/web-pres2/commit/d0d46101004bfe3db136fb9e6230332d762ca6d8.diff
Remove trailing spaces
Changed paths:
M index.php
Diff:
diff --git a/index.php b/index.php
index 8173996..2139afe 100644
--- a/index.php
+++ b/index.php
@@ -8,7 +8,7 @@
require_once 'messages.php';
session_start();
-
+
$topics = array();
$ps = array();
@@ -22,15 +22,15 @@
@closedir($dir);
}
-
+
if (!$ps) {
echo message('SLIDES_NOT_FOUND')." \$presentationDir $presentationDir<BR>";
echo message('MODIFY_CONFIG')." config.php<BR>";
exit;
}
-
+
$i = 0;
-
+
foreach($ps as $pres_id=>$filename) {
$fh = fopen($filename, "rb");
$p = new XML_Presentation($fh);
@@ -65,7 +65,7 @@
if(isset($pres[1]->speaker)) {
$pr[$i]['speaker'] = $pres[1]->speaker;
} else $pr[$i]['speaker'] = ' ';
-
+
if(isset($pres[1]->topic)) {
$pr[$i]['topic'] = $pres[1]->topic;
if(!empty($pres[1]->topic)){
@@ -93,11 +93,11 @@
die("Could not parse index.xml, not sure what to do");
}
- $pres = $p->getObjects();
+ $pres = $p->getObjects();
$pres = $pres[1];
$HEAD_RAND = <<<HEAD_RAND
-
+
<script>
function change_mode() {
document.cookie="display_mode="+document.modes_form.modes.options[document.modes_form.modes.selectedIndex].value+"|"+document.modes_form.speaker.checked+";path=/";
@@ -134,7 +134,7 @@ function change_mode() {
?>
<?php if(empty($topic)){ ?>
<p><?php echo message('WELCOME_MSG'); ?></p>
-<?php
+<?php
ksort($topics);
print('<table width="100%"><tr>'."\n");
$col = 0;
@@ -144,17 +144,17 @@ function change_mode() {
$percent = (int)(100 / $topic_cols);
foreach($topics as $i => $topic) {
printf('<td width="%.1f%%" class="output" style="padding-bottom: 15px"><a href="' . $baseDir . 'index.php/%s">' . $i . '</a> (' . $topic['count'] . ')</td>'."\n", $percent, urlencode($i));
- if (++$col >= $topic_cols) {
- $col=0;
+ if (++$col >= $topic_cols) {
+ $col=0;
print("</tr>\n<tr>");
-
+
}
}
print('</tr></table>');
} else {
- if(empty($_COOKIE['display_mode'])) { $display_mode = 'html'; $form_speaker='false'; }
- else {
- list($display_mode,$form_speaker) = explode('|',$_COOKIE['display_mode']);
+ if(empty($_COOKIE['display_mode'])) { $display_mode = 'html'; $form_speaker='false'; }
+ else {
+ list($display_mode,$form_speaker) = explode('|',$_COOKIE['display_mode']);
}
$_SESSION['show_speaker_notes'] = ($form_speaker=='true');
$_SESSION['selected_display_mode'] = $display_mode;