Changed the "select folder" link to a button in bookmark_edit.php and bookmark_new.php.
Fixed HTML encoded strings when importing bookmarks in Netscape format. Fixed some typos in index.php and added the "My Bookmarks" link in search mode.
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -5,7 +5,7 @@
|
|||||||
- Added the possibility to mark bookmarks and folders public/private
|
- Added the possibility to mark bookmarks and folders public/private
|
||||||
when importing them.
|
when importing them.
|
||||||
|
|
||||||
20.04.2008, Version 0.8.9 beat
|
20.04.2008, Version 0.8.9 beta
|
||||||
- Added the possibility to either convert favicon using ImageMagick or
|
- Added the possibility to either convert favicon using ImageMagick or
|
||||||
leave them in the ICO format. Updating favicon.php and install.php
|
leave them in the ICO format. Updating favicon.php and install.php
|
||||||
accordingly.
|
accordingly.
|
||||||
|
|||||||
@@ -146,14 +146,14 @@ else if ($post_title == "" || $post_url == "" || $post_icon) {
|
|||||||
<input type=text name="url" size="50" value="<?php echo $row->url; ?>">
|
<input type=text name="url" size="50" value="<?php echo $row->url; ?>">
|
||||||
<p>Description<br>
|
<p>Description<br>
|
||||||
<textarea name="description" cols="50" rows="8"><?php echo $row->description; ?></textarea></p>
|
<textarea name="description" cols="50" rows="8"><?php echo $row->description; ?></textarea></p>
|
||||||
<p><a href="javascript:window.childof=document.forms['bmedit'].childof; window.path=document.forms['bmedit'].path; selectfolder('<?php echo $query_string; ?>')">Select/Change folder</a><br>
|
<p><input type="button" value="Select folder" onClick="window.childof=document.forms['bmedit'].childof; window.path=document.forms['bmedit'].path; selectfolder('<?php echo $query_string; ?>')"><br>
|
||||||
<input type="text" name="path" value="<?php echo $path; ?>" size="50" readonly>
|
<input type="text" name="path" value="<?php echo $path; ?>" size="50" readonly>
|
||||||
<input type="text" name="childof" value="<?php echo $row->childof; ?>" size="1" class="invisible" readonly></p>
|
<input type="text" name="childof" value="<?php echo $row->childof; ?>" size="1" class="invisible" readonly></p>
|
||||||
<p>Tags<br>
|
<p>Tags<br>
|
||||||
<input type=text name="tags" size="50" value="Not yet working"></p>
|
<input type=text name="tags" size="50" value="Not yet working"></p>
|
||||||
<input type="submit" value=" OK ">
|
<input type="submit" value=" OK ">
|
||||||
<input type="button" value=" Cancel " onClick="self.close()">
|
<input type="button" value=" Cancel " onClick="self.close()">
|
||||||
<input type="submit" value="Refresh Icon" name="favicon">
|
<?php if ($settings['show_bookmark_icon']) : ?><input type="submit" value="Refresh Icon" name="favicon"><?php endif; ?>
|
||||||
Public <input type="checkbox" name="public" <?php echo $row->public ? "checked" : "";?>>
|
Public <input type="checkbox" name="public" <?php echo $row->public ? "checked" : "";?>>
|
||||||
</form>
|
</form>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ if ($post_title == '' || $post_url == '') {
|
|||||||
<input type=text name="url" size="50" value="<?php echo $url; ?>"></p>
|
<input type=text name="url" size="50" value="<?php echo $url; ?>"></p>
|
||||||
<p>Description<br>
|
<p>Description<br>
|
||||||
<textarea name="description" cols="50" rows="8"><?php echo $post_description; ?></textarea></p>
|
<textarea name="description" cols="50" rows="8"><?php echo $post_description; ?></textarea></p>
|
||||||
<p><a href="javascript:window.childof=document.forms['bmnew'].childof; window.path=document.forms['bmnew'].path; selectfolder('<?php echo $query_string; ?>')">Select/Change folder</a><br>
|
<p><input type="button" value="Select folder" onClick="window.childof=document.forms['bmnew'].childof; window.path=document.forms['bmnew'].path; selectfolder('<?php echo $query_string; ?>')"><br>
|
||||||
<input type="text" name="path" value="<?php echo $path; ?>" size="50" readonly>
|
<input type="text" name="path" value="<?php echo $path; ?>" size="50" readonly>
|
||||||
<input type="text" name="childof" value="<?php echo $folderid; ?>" size="1" class="invisible" readonly></p>
|
<input type="text" name="childof" value="<?php echo $folderid; ?>" size="1" class="invisible" readonly></p>
|
||||||
<p>Tags<br>
|
<p>Tags<br>
|
||||||
|
|||||||
@@ -256,6 +256,8 @@ class import {
|
|||||||
function import_netscape () {
|
function import_netscape () {
|
||||||
while (!feof ($this->fp)){
|
while (!feof ($this->fp)){
|
||||||
$line = trim (fgets ($this->fp));
|
$line = trim (fgets ($this->fp));
|
||||||
|
# netscape seems to store html encoded values
|
||||||
|
$line = html_entity_decode ($line, ENT_QUOTES, $this->charset);
|
||||||
|
|
||||||
# a folder has been found
|
# a folder has been found
|
||||||
if (ereg ("<DT><H3", $line)) {
|
if (ereg ("<DT><H3", $line)) {
|
||||||
|
|||||||
17
index.php
17
index.php
@@ -12,12 +12,9 @@ else {
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<table class="caption">
|
<table class="caption">
|
||||||
<tr>
|
<tr>
|
||||||
<td><span class="caption"><img src="./images/logo.png" alt=""> Online-Bookmarks of <?php echo $username; ?></span>
|
<td><span class="caption"><img src="./images/logo.png" alt=""> <?php echo $username; ?>'s Online Bookmarks</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="captionright">
|
<td class="captionright">
|
||||||
@@ -54,6 +51,9 @@ else {
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="menu">
|
<td class="menu">
|
||||||
|
<?php if ($search_mode) { ?>
|
||||||
|
<a href="./index.php"><?php echo $settings['root_folder_name']; ?></a><br>
|
||||||
|
<?php } ?>
|
||||||
<a href="javascript:bookmarknew('<?php echo $folderid; ?>')">New Bookmark</a><br>
|
<a href="javascript:bookmarknew('<?php echo $folderid; ?>')">New Bookmark</a><br>
|
||||||
<a href="javascript:bookmarkedit(checkselected())">Edit Bookmarks</a><br>
|
<a href="javascript:bookmarkedit(checkselected())">Edit Bookmarks</a><br>
|
||||||
<a href="javascript:bookmarkmove(checkselected())">Move Bookmarks</a><br>
|
<a href="javascript:bookmarkmove(checkselected())">Move Bookmarks</a><br>
|
||||||
@@ -89,7 +89,9 @@ else {
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="menu">
|
<td class="menu">
|
||||||
|
<?php if (admin_only ()) { ?>
|
||||||
<a href="./admin.php">Admin</a><br>
|
<a href="./admin.php">Admin</a><br>
|
||||||
|
<?php } ?>
|
||||||
<a href="./import.php">Import</a><br>
|
<a href="./import.php">Import</a><br>
|
||||||
<a href="./export.php">Export</a><br>
|
<a href="./export.php">Export</a><br>
|
||||||
<a href="./sidebar.php">View as Sidebar</a><br>
|
<a href="./sidebar.php">View as Sidebar</a><br>
|
||||||
@@ -108,7 +110,8 @@ else {
|
|||||||
<?php if ($search_mode): ?>
|
<?php if ($search_mode): ?>
|
||||||
|
|
||||||
<td class="main4">
|
<td class="main4">
|
||||||
<div style="height: <?php echo $table_height; ?>; overflow:auto;">
|
<div style="height: <?php echo $table_height; ?>; overflow:auto;">
|
||||||
|
<div style="margin-left:3px;" class="sh"><a class="f" href="./index.php"><img src="./images/folder_open.gif"> Back to <?php echo $settings['root_folder_name']?></a></div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$query = sprintf ("SELECT bookmark.title,
|
$query = sprintf ("SELECT bookmark.title,
|
||||||
@@ -152,7 +155,7 @@ else {
|
|||||||
$settings['show_column_edit'],
|
$settings['show_column_edit'],
|
||||||
$settings['show_column_move'],
|
$settings['show_column_move'],
|
||||||
$settings['show_column_delete'],
|
$settings['show_column_delete'],
|
||||||
true);
|
$settings['show_public']);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo '<div> No Bookmarks found matching ' . $search . '.</div>';
|
echo '<div> No Bookmarks found matching ' . $search . '.</div>';
|
||||||
@@ -164,7 +167,7 @@ else {
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user