rtoss

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/Web Favorities/ @ 35  →  /Web Favorities/ @ 36
/Web Favorities/fav_common.php
@@ -1,15 +1,27 @@
<?php
$oldNetscape=false;$noXML=false;$SidebarSuffix1='';$admAppend='';$aAppend='';
$NoNavi=$oldNetscape=$noXML=false;$mozver=$iever=$SidebarSuffix1=$admAppend=$aAppend='';
 
if (isset($_GET["F"]) && !$_GET["F"]=="Y") {
if (strpos(strtolower($_SERVER["HTTP_USER_AGENT"]),"mozilla/4.0")===false && strpos(strtolower($_SERVER["HTTP_USER_AGENT"]),"mozilla/5.0")===false && strpos(strtolower($_SERVER["HTTP_USER_AGENT"]),"opera/")===false)
$ua=strtolower($_SERVER["HTTP_USER_AGENT"]);
if(strpos($ua,'mozilla/')!==false) {
preg_match('#mozilla/(\d+\.*\d+)#',$ua,$m);
$mozver=$m[1];
}
if(strpos($ua,'msie ')!==false) {
preg_match('#msie (\d+\.*\d+)#',$ua,$m);
$iever=$m[1];
}
 
if ((strpos($ua,"mozilla/4.0")===false && strpos($ua,"mozilla/5.0")===false && strpos($ua,"opera/")===false) ||
(strpos($ua,"mozilla/5.0")!==false && strpos($ua,"opera")===false && strpos($ua,"gecko")===false && strpos($ua,"webkit")===false && strpos($ua,"khtml")===false) ||
($mozver && $mozver < '4.0') || ($iever && $iever < '5.5'))
$oldNetscape=true;
if (strpos(strtolower($_SERVER["HTTP_USER_AGENT"]),"mozilla/5.0") && strpos(strtolower($_SERVER["HTTP_USER_AGENT"]),"opera")===false && strpos(strtolower($_SERVER["HTTP_USER_AGENT"]),"gecko")===false)
$oldNetscape=true;
 
if (isset($_GET["F"])) {
if ($_GET["F"]=="Y") $oldNetscape=false;
if ($_GET["F"]=="N") $oldNetscape=true;
}
if ($oldNetscape) $NoNavi=true;
 
if (isset($_GET["F"]) && $_GET["F"]=="N") $oldNetscape=true;
 
if (!isset($_GET["noxml"]))
if ((strpos(strtoupper($_SERVER["HTTP_USER_AGENT"]),"MSIE") ? strpos(strtoupper($_SERVER["HTTP_USER_AGENT"]),"MSIE")+1 : 0)>0)
$noXML=true;
/Web Favorities/fav.php
@@ -141,7 +141,8 @@
 
if (ie && !window.XMLHttpRequest) { //<IE7
divNavi.style.pixelTop = document.body.scrollTop + offsetTop;
divNavi.style.pixelLeft = document.body.clientWidth + document.body.scrollLeft - divNavi.offsetWidth - offsetTop;
// divNavi.style.pixelLeft = document.body.clientWidth + document.body.scrollLeft - divNavi.offsetWidth - offsetTop;
divNavi.style.pixelRight = offsetTop;
} else if (ns6||opera||ie) {
var obj = document.getElementById("divNavi");
if (!(geckoCSS2||opera||webkit||ie))
@@ -218,14 +219,14 @@
<a name="top"></a>';
if (isset($_SESSION['isLogined'])) echo '<a href="'.text2xml("fav_action.php?action=order&id=-1".$SidebarSuffix2).'" class="admtool" '.$admAppend.'>'.$MyFav_CatOrder.'</a> ';
if (!$oldNetscape) echo '<a id="aToggle" href="'.text2xml("javascript:toggleAllDiv('aToggle','force');").'" class="admtool">'.($shrinkFirst?$MyFav_ExpandAll:$MyFav_ShrinkAll).'</a> <a id="aToggle2" href="'.text2xml("javascript:toggleAllDiv('aToggle2','invert');").'" class="admtool">'.$MyFav_InvertAll.'</a>';
echo '<div class="divNavi'.($DispNavi?'':'-hide').'" id="divNavi" onmouseover="restoreNavi()" onmouseout="NaviTimout()">';
//if ($DispNavi) {
echo '<div class="'.($NoNavi?'dh':($DispNavi?'divNavi':'divNavi-hide')).'" id="divNavi" onmouseover="restoreNavi()" onmouseout="NaviTimout()">';
if (!$NoNavi) {
echo '<a href="#bottom" style="font-size:x-small;" onmouseover="restoreNavi()">'.$MyFav_GotoBottom."</a><br />\n";
while($row = sqlite_fetch_array($rs))
echo '<a href="#'.$row['id'].'" class="navi" onmouseover="restoreNavi()" '.((!$oldNetscape)?'onclick="'.text2xml("ExpandDiv('d".$row['id']."','a".$row['id']."');").'"':'').'>'.text2xml($row['name'])."</a><br />\n";
echo '<a href="#top" style="font-size:x-small;">'.$MyFav_GotoTop."</a><br />\n";
sqlite_rewind($rs);
//}
}
echo '</div>
<dl>';
while($row = sqlite_fetch_array($rs)) {
/Web Favorities/CHANGELOG.txt
@@ -10,6 +10,8 @@
* Fixed navigation bar hiding when not in sidebar mode
* Fixed navigation bar in WebKit engines
* Fixed navigation bar in IE >= 7.0
* Made IE < 5.5 working in OldNetscape mode
* OldNetscape mode will not show navigation bar
+ Add cookie-based submenu show/hide memory
+ Add [Bookmark This!] bookmarklet (fixed '&' problem in 20070814, and '#' problem later)
+ Add view protected site password short time memorization. (1 hour)