#4518 - files with spaces can now be renamed under File Manager.
authorharris wong <hwong@ocad.ca>
Mon, 13 Sep 2010 17:01:19 +0000 (17:01 -0000)
committerharris wong <hwong@ocad.ca>
Mon, 13 Sep 2010 17:01:19 +0000 (17:01 -0000)
#4509 - authenticated access on protected course and private course fixed.
#4520 - Forum edit post can now use the code picker.
#4516 - Non-english course title now displays properly under my start page
#4534 - Under admin->theme, clicking on the row now select the theme

docs/bounce.php
docs/mods/_core/file_manager/rename.php
docs/mods/_core/themes/index.php
docs/mods/_standard/forums/edit_post.php
docs/themes/default/users/index.tmpl.php

index a105b20..4e7acb1 100644 (file)
@@ -93,7 +93,7 @@ if ($_SERVER['PHP_SELF'] == $_base_path."acl.php") {
        $result = mysql_query($sql, $db);
        if ($row = mysql_fetch_assoc($result)) {
                $set_to_public = true;
-               $_GET['course'] = $row['course_id'];
+               $_REQUEST['course'] = $row['course_id'];
                $_SESSION['member_id'] = 0;
                $_SESSION['valid_user'] = false;
                $_SESSION['login'] = 'guest';
index 5f0f3cd..48b5f55 100644 (file)
@@ -37,7 +37,6 @@ if (isset($_POST['rename_action'])) {
        $_POST['new_name'] = str_replace(array(' ', '/', '\\', ':', '*', '?', '"', '<', '>', '|', '\''), '', $_POST['new_name']);
 
        $_POST['oldname'] = trim($_POST['oldname']);
-       $_POST['oldname'] = str_replace(' ', '_', $_POST['oldname']);
        $_POST['oldname'] = str_replace(array(' ', '/', '\\', ':', '*', '?', '"', '<', '>', '|', '\''), '', $_POST['oldname']);
 
        $path_parts_new = pathinfo($_POST['new_name']);
index 8cb7be4..b40f541 100644 (file)
@@ -139,7 +139,7 @@ print_data_table($result, MOBILE_DEVICE);
 </tfoot>\r
 <?php while($row = mysql_fetch_assoc($result)) : ?>\r
        <tbody>\r
-       <tr onmousedown="document.form['t_<?php echo $row['dir_name']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['dir_name']; ?>">\r
+       <tr onmousedown="document.form_<?php echo $type; ?>['t_<?php echo $row['dir_name']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['dir_name']; ?>">\r
                <td valign="top">\r
                        <input type="radio" id="t_<?php echo $row['dir_name']; ?>" name="theme_dir" value="<?php echo $row['dir_name']; ?>" />\r
                        <input type="hidden" name="<?php echo $row['dir_name']; ?>_version" value="<?php echo $row['version']; ?>" />\r
index 385d23f..ea45c1d 100644 (file)
@@ -139,6 +139,12 @@ require(AT_INCLUDE_PATH.'header.inc.php');
                &middot; <?php echo _AT('forum_html_disabled'); ?></small>
        </div>
 
+    <div class="row">  
+               <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#jumpcodes" title="<?php echo _AT('jump_codes'); ?>"><img src="images/clr.gif" height="1" width="1" alt="<?php echo _AT('jump_codes'); ?>" border="0" /></a><?php require(AT_INCLUDE_PATH.'html/code_picker.inc.php'); ?>
+
+               <a name="jumpcodes"></a>
+    </div>
+
        <div class="row buttons">
                <input name="submit" type="submit" value="  <?php echo _AT('save'); ?>" accesskey="s" />
                <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
index 94e44c9..3fb90cd 100644 (file)
@@ -46,7 +46,7 @@
 
     </td>
 
-    <td><?php echo '<a href="'.url_rewrite('bounce.php?course=' . $row['course_id']) . '"> '.htmlentities($row['title']).'</a>' ?>
+    <td><?php echo '<a href="'.url_rewrite('bounce.php?course=' . $row['course_id']) . '"> '.htmlentities_utf8($row['title']).'</a>' ?>
     <br /><small><?php echo _AT('category'); ?>: <?php echo get_category_name($row['cat_id']); ?></small>
     </td>
     <td><small><?php echo '<a href="'.AT_BASE_HREF.'inbox/send_message.php?id='.$row['member_id'].'">'. get_display_name($row['member_id']).'<a/>'; ?></td>