cvs: pres2 / index.php
| From: | Derick Rethans | Date: | Tue, 31 Aug 2004 06:16:54 +0000 |
| Subject: | cvs: pres2 / index.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1045@lists.php.net to get a copy of this message | ||
derick Tue Aug 31 02:16:54 2004 EDT
Modified files:
/pres2 index.php
Log:
- Fixed the whitespace
http://cvs.php.net/diff.php/pres2/index.php?r1=1.37&r2=1.38&ty=u
Index: pres2/index.php
diff -u pres2/index.php:1.37 pres2/index.php:1.38
--- pres2/index.php:1.37 Mon Aug 30 14:23:25 2004
+++ pres2/index.php Tue Aug 31 02:16:53 2004
@@ -29,13 +29,13 @@
@closedir($dir);
}
-
- if (!$ps) {
- echo "Could not find any slides (xml files) in \$presentationDir
$presentationDir<BR>";
- echo "Please modify config.php<BR>";
- exit;
- }
-
+
+ if (!$ps) {
+ echo "Could not find any slides (xml files) in \$presentationDir
$presentationDir<BR>";
+ echo "Please modify config.php<BR>";
+ exit;
+ }
+
$i = 0;
foreach($ps as $pres_id=>$filename) {
@@ -83,8 +83,8 @@
// default options for the file..
$p = &new XML_Presentation("index.xml");
- $p->setErrorHandling(PEAR_ERROR_DIE,"%s\n");
- $p->parse();
+ $p->setErrorHandling(PEAR_ERROR_DIE,"%s\n");
+ $p->parse();
$pres = $p->getObjects();
$pres = $pres[1];
?>
@@ -134,9 +134,9 @@
ksort($topics);
print('<table width="100%"><tr>'."\n");
$col = 0;
- if (!isset($topic_cols) || $topic_cols == 0) {
- $topic_cols = 1;
- }
+ if (!isset($topic_cols) || $topic_cols == 0) {
+ $topic_cols = 1;
+ }
$percent = 100 / $topic_cols;
foreach($topics as $i => $topic) {
printf('<td width="%.1f%%" class="output" style="font-size:
1.8em; padding-bottom: 15px"><a href="' . $baseDir . 'index.php/' .
urlencode($i) . '">' . $i . '</a> (' . $topic['count'] .
')</td>'."\n", $percent);