Update of /cvsroot/webnotes/webnotes
In directory usw-pr-cvs1:/tmp/cvs-serv6169
Modified Files:
admin_index_files.php
Log Message:
- Fixed a typo in a variable name in all localisation files.
- Clean up of variables before saving to the database.
- The directory separators were not handled correctly when passed on the url.
- Changed some "&" to "& a m p ;"
- Renamed a configuration variable ($p_notes_order) to ($g_notes_order).
- Changed the contents of the note to be preformatted when displayed.
- Added a directory with two sample files, to be used for demonstration / testing.
Index: admin_index_files.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/admin_index_files.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- admin_index_files.php 3 Sep 2002 06:59:08 -0000 1.11
+++ admin_index_files.php 4 Sep 2002 13:36:57 -0000 1.12
@@ -12,8 +12,14 @@
<? include ( "core" . DIRECTORY_SEPARATOR . "api.php" ) ?>
<? login_cookie_check() ?>
<?
- if (!isset($f_dir)) {
+ if ( !isset( $f_dir ) ) {
$f_dir = dirname( __FILE__ );
+ } else {
+ $f_dir = stripslashes( urldecode( $f_dir ) );
+ }
+
+ if ( ( substr( $f_dir, -1 ) != '\\' ) && ( substr ( $f_dir, -1 ) != '/' ) ) {
+ $f_dir = $f_dir . DIRECTORY_SEPARATOR;
}
?>
<? print_html_top() ?>
@@ -36,17 +42,17 @@
<tr bgcolor="<? echo $g_white_color ?>">
<td>
<? echo $s_current_directory ?>:
- <? echo $f_dir."/"; ?>
+ <? echo $f_dir; ?>
</td>
</tr>
<?
- if (isset( $f_action ) && ( $f_action=="index" )) {
+ if ( isset( $f_action ) && ( $f_action == "index" ) ) {
?>
<tr bgcolor="<? echo $g_white_color ?>">
<td>
<? echo $s_indexed_following_files ?>:
<br />
- <? index_files( $f_dir."/" ) ?>
+ <? index_files( $f_dir ) ?>
</td>
</tr>
<? } ?>
|