Skip to content

Commit

Permalink
* .htaccess
Browse files Browse the repository at this point in the history
  - Added query parameter for redirection

* diff.php
  - Removed superfluous target argument
  - Added redirection note

* General:
  - Fixed permissions
  • Loading branch information
PointedEars committed Apr 20, 2010
1 parent 55da0a6 commit 6077c5f
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 3 deletions.
Empty file modified .buildpath
100755 → 100644
Empty file.
Empty file modified .project
100755 → 100644
Empty file.
Empty file modified ChangeLog.historic
100755 → 100644
Empty file.
Empty file modified ct.css
100755 → 100644
Empty file.
16 changes: 13 additions & 3 deletions diff.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

$cmd = 'svn diff';
$opts = '-r PREV:HEAD -x --ignore-eol-style --no-diff-deleted';
$target = '.';
$subtitle = 'Differences to previous revision';
$type = isset($_REQUEST['type']) ? $_REQUEST['type'] : '';
$format = isset($_REQUEST['format']) ? $_REQUEST['format'] : '';
Expand All @@ -23,7 +22,7 @@
if ($format === FORMAT_TEXT)
{
header('Content-Type: text/plain; charset=UTF-8');
passthru("$cmd $opts $target");
passthru("$cmd $opts");
}
else
{
Expand Down Expand Up @@ -63,8 +62,19 @@
echo "type=$type&";
}
?>format=<?php echo FORMAT_TEXT; ?>">plain text</a>)</h2>
<?php
if (isset($_REQUEST['redir']) && $_REQUEST['redir'])
{
?>
<p><strong>You have been redirected here because the URI that was used
to access this resource is obsolete, and may stop working in the future.
Please update your bookmarks. If you followed a link from another site,
please notify its webmaster about the change.</strong></p>
<?php
}
?>
<pre><?php
exec("$cmd $opts $target | sed 's/&/&amp;/g; s/</\&lt;/g'", $output);
exec("$cmd $opts | sed 's/&/&amp;/g; s/</\&lt;/g'", $output);
echo join("\r\n", $output);
?></pre>
</body>
Expand Down
Empty file modified es-matrix-ie.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified es-matrix.inc.php
100755 → 100644
Empty file.
Empty file modified es-matrix.rexpfd
100755 → 100644
Empty file.
Empty file modified index-synhl.php
100755 → 100644
Empty file.
Empty file modified index.php
100755 → 100644
Empty file.
Empty file modified not-ns4.css
100755 → 100644
Empty file.
Empty file modified style.css
100755 → 100644
Empty file.
Empty file modified table.js
100755 → 100644
Empty file.

0 comments on commit 6077c5f

Please sign in to comment.