You can subscribe to this list here.
2002 |
Jan
|
Feb
(42) |
Mar
(30) |
Apr
(26) |
May
(120) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: Horst N. <nog...@us...> - 2002-05-23 00:18:12
|
Update of /cvsroot/pictsinspace/PicTsInSpace/needed In directory usw-pr-cvs1:/tmp/cvs-serv1815/needed Modified Files: pictsinspace.js Log Message: Korrektur Fenstergrösße Opera im indiPopUp Index: pictsinspace.js =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/needed/pictsinspace.js,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** pictsinspace.js 22 May 2002 09:37:57 -0000 1.30 --- pictsinspace.js 23 May 2002 00:18:06 -0000 1.31 *************** *** 457,462 **** var FensterHeight =1; if(is_opera) { - FensterWidth = -6; FensterHeight = -6; } if(is_nav4) { --- 457,462 ---- var FensterHeight =1; if(is_opera) { FensterHeight = -6; + FensterWidth = -6; } if(is_nav4) { *************** *** 562,566 **** var newPosY = realPosY + (CPY); ! if (is_opera) rsizeB = Math.ceil((pict.a + ppt_B) + (CSX / 2)); URL = URL + "&rsizeB=" + rsizeB + "&rsizeH=" + rsizeH + "&PosX=" + newPosX + "&PosY=" + newPosY + "&album=" + album + "&wiw=" + wiw + "&skin=" + skin + "&ppt_color=" + ppt_color; --- 562,566 ---- var newPosY = realPosY + (CPY); ! if (is_opera) rsizeB = Math.ceil((pict.a + ppt_B) + (CSX / 2) + 4); URL = URL + "&rsizeB=" + rsizeB + "&rsizeH=" + rsizeH + "&PosX=" + newPosX + "&PosY=" + newPosY + "&album=" + album + "&wiw=" + wiw + "&skin=" + skin + "&ppt_color=" + ppt_color; |
From: Horst N. <nog...@us...> - 2002-05-22 09:38:00
|
Update of /cvsroot/pictsinspace/PicTsInSpace/needed In directory usw-pr-cvs1:/tmp/cvs-serv22683/needed Modified Files: pictsinspace.js Log Message: Korrektur bei Mozilla PopUp Resize Index: pictsinspace.js =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/needed/pictsinspace.js,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** pictsinspace.js 22 May 2002 09:14:09 -0000 1.29 --- pictsinspace.js 22 May 2002 09:37:57 -0000 1.30 *************** *** 398,401 **** --- 398,402 ---- } } else { + self.resizeTo(rsizeB + 24,rsizeH + 24); // Der Mozilla der Sack, zeigt immer Scrollbalken an, obwohl garkeine da sein sollen, wenn er von kleiner nach größer resized. Eigentlich passt die Größe. Deshalb hier der kleine Trick. self.resizeTo(rsizeB,rsizeH); self.moveTo(PosX,PosY); |
From: Horst N. <nog...@us...> - 2002-05-22 09:14:14
|
Update of /cvsroot/pictsinspace/PicTsInSpace/needed In directory usw-pr-cvs1:/tmp/cvs-serv16436/needed Modified Files: pictsinspace.js Log Message: Korrektur der Passepartouthöhe im WiW-Modus Index: pictsinspace.js =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/needed/pictsinspace.js,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** pictsinspace.js 21 May 2002 21:48:57 -0000 1.28 --- pictsinspace.js 22 May 2002 09:14:09 -0000 1.29 *************** *** 503,508 **** // Hier wird ein WiW-Frame geöffnet, S-M-oder-L, in zentraler Position win = new ob_win(); ! a2_max = win.docwidth - ppt_B; ! b2_max = win.docheight - ppt_H; if (FensterModus == 1) { --- 503,509 ---- // Hier wird ein WiW-Frame geöffnet, S-M-oder-L, in zentraler Position win = new ob_win(); ! browser.H += -14; ! a2_max = win.docwidth - ppt_B - browser.B; ! b2_max = win.docheight - ppt_H - browser.H; if (FensterModus == 1) { |
From: Horst N. <nog...@us...> - 2002-05-22 08:50:49
|
Update of /cvsroot/pictsinspace/PicTsInSpace In directory usw-pr-cvs1:/tmp/cvs-serv6381 Modified Files: designfunctions.inc.php Log Message: NO-Thumbs-Tabellen haben eine Totals-Anzeige bekommen Index: designfunctions.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/designfunctions.inc.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** designfunctions.inc.php 21 May 2002 21:48:57 -0000 1.15 --- designfunctions.inc.php 22 May 2002 08:50:45 -0000 1.16 *************** *** 422,425 **** --- 422,449 ---- $TXT .= "</tr>\n"; } + // Ausgabe einer Schlußzeile mit Totals + if ($alternate == 1) { + $alternateRow = $ar1color; + } else { + $alternateRow = $ar2color; + } + $TXT .= "<tr bgcolor=\"$alternateRow\">\r\n"; + $TXT .= "<td bgcolor=\"$alternateRow\" align=\"left\"><span class=\"text\"> </span></td>\r\n"; + $TXT .= "<td bgcolor=\"$alternateRow\" align=\"right\"><span class=\"text\"> </span></td>\r\n"; + $TXT .= "<td bgcolor=\"$alternateRow\" align=\"left\"><span class=\"text\"> </span></td>\r\n"; + $TXT .= "<td bgcolor=\"$alternateRow\" align=\"right\"><span class=\"text\">Gesamt</span></td>\r\n"; + if ($filesize_gesamt <= 5000000) { + $TXT .= "<td bgcolor=\"$alternateRow\" align=\"right\"><span class=\"text\">~ ".htmlentities((int)($filesize_gesamt / 1000))." k</span></td>\r\n"; + if ($filesize_gesamt <= 5000) { + $TXT .= "<td bgcolor=\"$alternateRow\" align=\"left\"><span class=\"text\"> (".htmlentities((int)($filesize_gesamt))." B)</span></td>\r\n"; + } else { + $TXT .= "<td bgcolor=\"$alternateRow\" align=\"left\"><span class=\"text\"> </span></td>\r\n"; + } + } else { + $TXT .= "<td bgcolor=\"$alternateRow\" align=\"right\"><span class=\"text\">~ ".htmlentities((int)($filesize_gesamt / 1000000))." MB</span></td>\r\n"; + $TXT .= "<td bgcolor=\"$alternateRow\" align=\"left\"><span class=\"text\"> (".htmlentities((int)($filesize_gesamt / 1000))." k)</span></td>\r\n"; + } + $TXT .= "<td bgcolor=\"$alternateRow\" align=\"right\"><span class=\"text\"> </span></td>\r\n"; + $TXT .= "</tr>\n"; $TXT .= "</table>\r\n</td>\r\n</tr>\r\n</table>\r\n"; |
From: Horst N. <nog...@us...> - 2002-05-21 21:49:00
|
Update of /cvsroot/pictsinspace/PicTsInSpace In directory usw-pr-cvs1:/tmp/cvs-serv30745 Modified Files: designfunctions.inc.php function.inc.php photo_fenster.php temp_photo_fenster.php Log Message: Design der Photofenster (Rahmen um Bilder und ColorChanger) optimiert, so das es fast in allen Browsern gleich ausschaut :)) Index: designfunctions.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/designfunctions.inc.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** designfunctions.inc.php 21 May 2002 11:12:39 -0000 1.14 --- designfunctions.inc.php 21 May 2002 21:48:57 -0000 1.15 *************** *** 183,208 **** } // alle wichtigen Values per hiddenfields misenden ! $availalben .= "<input type=\"hidden\" name=\"start\" value=\"0\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"mode\" value=\"".htmlentities($mode)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"reihen\" value=\"".htmlentities($reihen)."\"\n>"; ! $availalben .= "<input type=\"hidden\" name=\"spalten\" value=\"".htmlentities($spalten)."\"\n>"; ! $availalben .= "<input type=\"hidden\" name=\"skin\" value=\"".htmlentities($skin)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"fenster\" value=\"".htmlentities($fenster)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"FensterModus\" value=\"".htmlentities($FensterModus)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"seitenlinks\" value=\"".htmlentities($seitenlinks)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"wiw\" value=\"".htmlentities($wiw)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"ppt_color\" value=\"".htmlentities($ppt_color)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"PosX\" value=\"".htmlentities($PosX)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"PosY\" value=\"".htmlentities($PosY)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"SizeX\" value=\"".htmlentities($SizeX)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"SizeY\" value=\"".htmlentities($SizeY)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"CPX\" value=\"".htmlentities($CPX)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"CPY\" value=\"".htmlentities($CPY)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"CSX\" value=\"".htmlentities($CSX)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"CSY\" value=\"".htmlentities($CSY)."\">\n"; ! $availalben .= "<input type=\"hidden\" name=\"TabMode\" value=\"".htmlentities($TabMode)."\">\n"; // Start verfuegbare Alben einlesen! ! $availalben .= "<select name=\"album\" onChange=\"javascript:document.alben.submit(this.form)\">\n"; $handle = opendir(tr($alben_dir)); while($value = readdir($handle)) { --- 183,208 ---- } // alle wichtigen Values per hiddenfields misenden ! $availalben .= "<input type=\"hidden\" name=\"start\" value=\"0\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"mode\" value=\"".htmlentities($mode)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"reihen\" value=\"".htmlentities($reihen)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"spalten\" value=\"".htmlentities($spalten)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"skin\" value=\"".htmlentities($skin)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"fenster\" value=\"".htmlentities($fenster)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"FensterModus\" value=\"".htmlentities($FensterModus)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"seitenlinks\" value=\"".htmlentities($seitenlinks)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"wiw\" value=\"".htmlentities($wiw)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"ppt_color\" value=\"".htmlentities($ppt_color)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"PosX\" value=\"".htmlentities($PosX)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"PosY\" value=\"".htmlentities($PosY)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"SizeX\" value=\"".htmlentities($SizeX)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"SizeY\" value=\"".htmlentities($SizeY)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"CPX\" value=\"".htmlentities($CPX)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"CPY\" value=\"".htmlentities($CPY)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"CSX\" value=\"".htmlentities($CSX)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"CSY\" value=\"".htmlentities($CSY)."\">\r\n"; ! $availalben .= "<input type=\"hidden\" name=\"TabMode\" value=\"".htmlentities($TabMode)."\">\r\n"; // Start verfuegbare Alben einlesen! ! $availalben .= "<select name=\"album\" onChange=\"javascript:document.alben.submit(this.form)\">\r\n"; $handle = opendir(tr($alben_dir)); while($value = readdir($handle)) { *************** *** 210,216 **** if($value == "." || $value == "..") continue; // Kein echtes Verzeichnis if ($value == basename($album)) { ! $availalben .= "<option value=\"".htmlentities($value)."\" selected>".htmlentities($value)."</option>\n"; } else { ! $availalben .= "<option value=\"".htmlentities($value)."\">".htmlentities($value)."</option>\n"; } } --- 210,216 ---- if($value == "." || $value == "..") continue; // Kein echtes Verzeichnis if ($value == basename($album)) { ! $availalben .= "<option value=\"".htmlentities($value)."\" selected>".htmlentities($value)."</option>\r\n"; } else { ! $availalben .= "<option value=\"".htmlentities($value)."\">".htmlentities($value)."</option>\r\n"; } } *************** *** 327,332 **** $printThumb = "<img src=\"".htmlentities(ru($thumbnail))."\" ".$thumb_size[3]." border=\"1\" $imgtaginfo>"; } ! // 19.05. #NEU!# javascript:photo_open(URL,NAME,a1,b1,plusbreite,plushoehe,passepartout,fenster,FensterModus,album,wiw,ppt_color,PosX,PosY,SizeX,SizeY,CPX,CPY,CSX,CSY,TabMode) ! $printLink = "<a href=\"".htmlentities("javascript:photo_open('?photo=".addslashes($photos[$i])."','fotofenster',$image_size[0],$image_size[1],$plusbreite,$plushoehe,$passepartout,'$fenster',$FensterModus,'".addslashes($album)."','$wiw','$skin',$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY,$TabMode);")."\">\n".$printThumb."</a>"; If (strlen($photos[$i])>20) { $zeigedateiname = substr($photos[$i],0,17)."..."; --- 327,332 ---- $printThumb = "<img src=\"".htmlentities(ru($thumbnail))."\" ".$thumb_size[3]." border=\"1\" $imgtaginfo>"; } ! // 19.05. #NEU!# javascript:photo_open(URL,NAME,a1,b1,plusbreite,plushoehe,passepartout,fenster,FensterModus,album,wiw,ppt_color,PosX,PosY,SizeX,SizeY,CPX,CPY,CSX,CSY,'TabMode') ! $printLink = "<a href=\"".htmlentities("javascript:photo_open('?photo=".addslashes($photos[$i])."','fotofenster',$image_size[0],$image_size[1],$plusbreite,$plushoehe,$passepartout,'$fenster',$FensterModus,'".addslashes($album)."','$wiw','$skin',$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY,'$TabMode');")."\">\n".$printThumb."</a>"; If (strlen($photos[$i])>20) { $zeigedateiname = substr($photos[$i],0,17)."..."; *************** *** 448,455 **** } $output .= "<tr>\r\n"; ! $output .= "<td width=\"100%\" height=\"150\" cellpadding=\"10\" cellspacing=\"0\" border=\"0\" align=\"center\" valign=\"top\">\r\n"; $output .= "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"left\">\r\n"; $output .= "<tr>\r\n"; ! $output .= "<td width=\"*\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"left\" valign=\"middle\">"; return $output; } --- 448,455 ---- } $output .= "<tr>\r\n"; ! $output .= "<td width=\"100%\" height=\"150\" align=\"center\" valign=\"top\">\r\n"; $output .= "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"left\">\r\n"; $output .= "<tr>\r\n"; ! $output .= "<td width=\"*\" align=\"left\" valign=\"middle\">"; return $output; } Index: function.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/function.inc.php,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** function.inc.php 19 May 2002 23:50:35 -0000 1.28 --- function.inc.php 21 May 2002 21:48:57 -0000 1.29 *************** *** 26,30 **** // $client gibt ein Array zurück aus dem man u. a. folgende Werte auslesen kann: // $client->_browser_info[ x ] ! // für x gibts: browser || version || maj_ver || min_ver || javascript || platform || language || und noch anderes, gähn // Werte dazu: ns || 4.75 || 4 || .75 || 1.3 || win || de || // Werte dazu: ie --- 26,30 ---- // $client gibt ein Array zurück aus dem man u. a. folgende Werte auslesen kann: // $client->_browser_info[ x ] ! // für x gibts: browser || version || maj_ver || min_ver || javascript || platform || language || und noch anderes // Werte dazu: ns || 4.75 || 4 || .75 || 1.3 || win || de || // Werte dazu: ie *************** *** 35,52 **** $NN4 = false; if ($client->browser_is("ns") && $client->_browser_info["maj_ver"] == 4) $NN4 = 1; $IE = false; if ($client->browser_is("ie")) $IE = 1; ! $IE6 = false; // IE6 steht erst mal als Ausnahme hier, weil ich von dem gar nichts kenne ! if ($client->_browser_info["browser"] == "ie" && $client->_browser_info["maj_ver"] >= "6") $IE6 = true; // hier werden alle Browser aufgelistet, die definitiv NICHT über einen TabModus verfügen ! $canTab = 1; ! if ($IE==1 or $NN4 ==1) { $canTab = 0; ! } // hier werden alle Browser aufgelistet, die Faden können $canFade = 0; ! if (isSet($IE) or isSet($MOZZI)) { $canFade = 1; } --- 35,63 ---- $NN4 = false; if ($client->browser_is("ns") && $client->_browser_info["maj_ver"] == 4) $NN4 = 1; + $NN6 = false; + if ($client->browser_is("ns") && $client->_browser_info["maj_ver"] >= 6 && $client->_browser_info["long_name"] == "netscape6") $NN6 = 1; + $MOZI = false; + if ($client->browser_is("ns") && $client->_browser_info["maj_ver"] >= 5 && $client->_browser_info["long_name"] != "netscape6") $MOZI = 1; + // $GALEON = false; + // if ($client->browser_is(" ???? ")) $GALEON = 1; + $OPERA = false; + if ($client->browser_is("op")) $OPERA = 1; $IE = false; if ($client->browser_is("ie")) $IE = 1; ! // hier werden alle Browser aufgelistet, die definitiv NICHT über einen TabModus verfügen ! // nach dem heutigen Test gehört anscheinend nur Opera und Galeon zu den Tabbenden Browsern mit Ausschlieslichkeits-Option (21.05.2002) ! if ($IE==1 or $NN4==1 or $NN6==1 or $MOZI==1) { $canTab = 0; ! } else if ($OPERA==1 or $GALEON==1){ ! $canTab = 1; ! } else { ! $canTab = 1; ! } // hier werden alle Browser aufgelistet, die Faden können $canFade = 0; ! if ($IE==1 or $MOZI==1) { $canFade = 1; } Index: photo_fenster.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/photo_fenster.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** photo_fenster.php 16 May 2002 22:41:42 -0000 1.16 --- photo_fenster.php 21 May 2002 21:48:57 -0000 1.17 *************** *** 9,15 **** $MyURL = $REQUEST_URI; // hier sollte noch der String '&ppt_color=xxx' herausoperiert werden. Es funktioniert zwar auch durch einfaches anhaengen, ist aber nicht so schoen! function pptchanger() { ! global $MyURL,$clientmenu_ppt_color,$link,$marker; ! if ($clientmenu_ppt_color === 1) { $pptchanger = "<table width=\"6\" style=\"border: 1px solid $link;\" cellspacing=\"2\" cellpadding=\"0\"><tr>"; $pptchanger .= "<td width=\"5\" height=\"5\" bgcolor=\"#FFFFFF\"><a href=\"".$MyURL."&ppt_color=1\"><img src=\"needed/blank.gif\" width=\"5\" height=\"5\" border=\"0\" ALT=\"\" TITLE=\"Fenster mit weissem Passepartout laden!\"></a></td>"; $pptchanger .= "</tr><tr>"; --- 9,19 ---- $MyURL = $REQUEST_URI; // hier sollte noch der String '&ppt_color=xxx' herausoperiert werden. Es funktioniert zwar auch durch einfaches anhaengen, ist aber nicht so schoen! function pptchanger() { ! global $MyURL,$clientmenu_ppt_color,$link,$marker,$NN4; ! if ($clientmenu_ppt_color === 1) { ! if($NN4) { ! $pptchanger = "<table width=\"6\" border=\"1\" cellspacing=\"1\" cellpadding=\"0\"><tr>"; ! } else { $pptchanger = "<table width=\"6\" style=\"border: 1px solid $link;\" cellspacing=\"2\" cellpadding=\"0\"><tr>"; + } $pptchanger .= "<td width=\"5\" height=\"5\" bgcolor=\"#FFFFFF\"><a href=\"".$MyURL."&ppt_color=1\"><img src=\"needed/blank.gif\" width=\"5\" height=\"5\" border=\"0\" ALT=\"\" TITLE=\"Fenster mit weissem Passepartout laden!\"></a></td>"; $pptchanger .= "</tr><tr>"; *************** *** 21,25 **** $pptchanger .= "</tr></table>"; return $pptchanger; ! } } --- 25,29 ---- $pptchanger .= "</tr></table>"; return $pptchanger; ! } } *************** *** 176,187 **** <script src="needed/pictsinspace.js" language="javascript1.2" type="text/javascript"></script> ! <script src="needed/dhtmlevents.js" language="javascript1.2" type="text/javascript"></script> ! <script src="needed/DOM-fade.js" language="javascript1.2" type="text/javascript"></script> - <script type="text/JavaScript"> - <!-- - if(!is_nav4) PopupFocus(<?PHP echo ((int)$rsizeB).",".((int)$rsizeH).",".((int)$PosX).",".((int)$PosY).",'".((int)$wiw)."'";?>); - //--> - </script> </head> --- 180,195 ---- <script src="needed/pictsinspace.js" language="javascript1.2" type="text/javascript"></script> ! <?php ! if (!$NN4) { ! echo "<script src=\"needed/dhtmlevents.js\" language=\"javascript1.2\" type=\"text/javascript\"></script>"; ! echo "<script src=\"needed/DOM-fade.js\" language=\"javascript1.2\" type=\"text/javascript\"></script>"; ! echo "<script type=\"text/JavaScript\">\r\n"; ! echo "<!--"; ! echo "PopupFocus".(((int)$rsizeB).",".((int)$rsizeH).",".((int)$PosX).",".((int)$PosY).",'".((int)$wiw)."'"); ! echo "//-->"; ! echo "</script>"; ! } ! ?> </head> *************** *** 190,213 **** <?php ! if (preg_match("/MSIE/",$GLOBALS["HTTP_SERVER_VARS"]["HTTP_USER_AGENT"])) { ?> <table width="<?PHP echo (int)(($passepartout*2) + $tempbreite);?>" border="0" cellspacing="0" cellpadding="0" align="center" valign="top"> <tr> ! <td colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border=0 height="<?PHP echo (int)$passepartout;?>" align="center" valign="middle"> ! <img src="needed/blank.gif" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout);?>" alt="" title=""> ! </td> </tr> <tr> ! <td> ! <img src="needed/blank.gif" width="<?PHP echo (int)($passepartout - 2);?>" height="5" border="0" alt="" title=""> ! </td> ! <td width="<?PHP echo (int)$tempbreite;?>" height="<?PHP echo (int)$temphoehe;?>" align="center" valign="top" background="needed/cfg_bg.gif"> ! <img src="<?PHP echo htmlentities(ru($photo));?>" width="<?PHP echo (int)$tempbreite;?>" height="<?PHP echo (int)$temphoehe;?>" name="photo" style="border: 2px inset;" alt="" title=""> ! </td> ! <td valign="top" align="center"><?PHP echo pptchanger();?><img src="needed/blank.gif" width="<?PHP echo (int)($passepartout - 2);?>" height="5" border="0" alt="" title=""></td> </tr> <tr> ! <td colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout + $plushoehe);?>" align="center" valign="top"><?PHP echo bildunterschrift();?></td> </tr> </table> --- 198,215 ---- <?php ! if($NN4 == 1 or $OPERA == 1) { ?> <table width="<?PHP echo (int)(($passepartout*2) + $tempbreite);?>" border="0" cellspacing="0" cellpadding="0" align="center" valign="top"> <tr> ! <td colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)$passepartout;?>" align="center" valign="middle"><img src="needed/blank.gif" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout);?>" alt="" title=""></td> </tr> <tr> ! <td><img src="needed/blank.gif" height="<?PHP echo (int)$temphoehe;?>" width="<?PHP echo (int)($passepartout);?>" border="0" alt="" title=""></td> ! <td height="<?PHP echo (int)$temphoehe;?>" width="<?PHP echo (int)($tempbreite);?>" align="center" valign="top" background="needed/cfg_bg.gif"><img src="<?PHP echo htmlentities(ru($photo));?>" width="<?PHP echo (int)$tempbreite;?>" height="<?PHP echo (int)$temphoehe;?>" name="photo" border="2" alt="" title=""></td> ! <td valign="top" align="right"><?PHP echo pptchanger();?><img src="needed/blank.gif" height="5" width="<?PHP echo (int)($passepartout);?>" border="0" alt="" title=""></td> </tr> <tr> ! <td colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout + $plushoehe);?>" align="center" valign="middle"><?PHP echo bildunterschrift();?></td> </tr> </table> *************** *** 217,237 **** ?> ! <table width="<?PHP echo (int)(($passepartout*2) + $tempbreite);?>" border="0" cellspacing="0" cellpadding="0" align="center" valign="top"> <tr> ! <td colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)$passepartout;?>" align="center" valign="middle"> ! <img src="needed/blank.gif" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout);?>" alt="" title=""> ! </td> </tr> <tr> ! <td> ! <img src="needed/blank.gif" height="5" width="<?PHP echo (int)($passepartout - 2);?>" border="0" alt="" title=""> ! </td> ! <td height="<?PHP echo (int)$temphoehe;?>" width="<?PHP echo (int)($tempbreite);?>" align="center" valign="top" background="needed/cfg_bg.gif" style="border: 2px inset;"> ! <img src="<?PHP echo htmlentities(ru($photo));?>" width="<?PHP echo (int)$tempbreite;?>" height="<?PHP echo (int)$temphoehe;?>" name="photo" border="0" alt="" title=""> ! </td> ! <td valign="top" align="center"><?PHP echo pptchanger();?><img src="needed/blank.gif" height="5" width="<?PHP echo (int)($passepartout - 2);?>" border="0" alt="" title=""></td> </tr> <tr> ! <td colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout + $plushoehe);?>" align="center" valign="middle"><?PHP echo bildunterschrift();?></td> </tr> </table> --- 219,233 ---- ?> ! <table background="needed/cfg_bg.gif" width="<?PHP echo (int)(($passepartout*2) + $tempbreite);?>" border="0" cellspacing="0" cellpadding="0" align="center" valign="top"> <tr> ! <td colspan="3" bgcolor="<?PHP echo $bgcolor;?>" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border=0 height="<?PHP echo (int)$passepartout;?>" align="center" valign="middle"><img src="needed/blank.gif" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout);?>" alt="" title=""></td> </tr> <tr> ! <td bgcolor="<?PHP echo $bgcolor;?>"><img src="needed/blank.gif" width="<?PHP echo (int)($passepartout);?>" height="<?PHP echo (int)($temphoehe);?>" border="0" alt="" title=""></td> ! <td width="<?PHP echo (int)$tempbreite;?>" height="<?PHP echo (int)($temphoehe);?>" align="center" valign="top"><img src="<?PHP echo htmlentities(ru($photo));?>" width="<?PHP echo (int)$tempbreite;?>" height="<?PHP echo (int)$temphoehe;?>" name="photo" alt="" title="" style="border: 3px inset;"></td> ! <td bgcolor="<?PHP echo $bgcolor;?>" valign="top" align="right"><?PHP echo pptchanger();?><img src="needed/blank.gif" width="<?PHP echo (int)($passepartout);?>" height="5" border="0" alt="" title=""></td> </tr> <tr> ! <td bgcolor="<?PHP echo $bgcolor;?>" colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout + $plushoehe);?>" align="center" valign="middle"><?PHP echo bildunterschrift();?></td> </tr> </table> Index: temp_photo_fenster.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/temp_photo_fenster.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** temp_photo_fenster.php 15 May 2002 04:21:04 -0000 1.17 --- temp_photo_fenster.php 21 May 2002 21:48:57 -0000 1.18 *************** *** 11,14 **** --- 11,47 ---- $Title = "TEMP-Photo_Fenster - [".basename($photo)."] "; + + $MyURL = $REQUEST_URI; // hier sollte noch der String '&ppt_color=xxx' herausoperiert werden. Es funktioniert zwar auch durch einfaches anhaengen, ist aber nicht so schoen! + function pptchanger() { + global $MyURL,$clientmenu_ppt_color,$link,$marker,$NN4; + if ($clientmenu_ppt_color === 1) { + if($NN4) { + $pptchanger = "<table width=\"6\" border=\"1\" cellspacing=\"1\" cellpadding=\"0\"><tr>"; + } else { + $pptchanger = "<table width=\"6\" style=\"border: 1px solid $link;\" cellspacing=\"2\" cellpadding=\"0\"><tr>"; + } + $pptchanger .= "<td width=\"5\" height=\"5\" bgcolor=\"#FFFFFF\"><a href=\"".$MyURL."&ppt_color=1\"><img src=\"needed/blank.gif\" width=\"5\" height=\"5\" border=\"0\" ALT=\"\" TITLE=\"Fenster mit weissem Passepartout laden!\"></a></td>"; + $pptchanger .= "</tr><tr>"; + $pptchanger .= "<td width=\"5\" height=\"5\" bgcolor=\"#777777\"><a href=\"".$MyURL."&ppt_color=2\"><img src=\"needed/blank.gif\" width=\"5\" height=\"5\" border=\"0\" ALT=\"\" TITLE=\"Fenster mit grauem Passepartout laden!\"></a></td>"; + $pptchanger .= "</tr><tr>"; + $pptchanger .= "<td width=\"5\" height=\"5\" bgcolor=\"#000000\"><a href=\"".$MyURL."&ppt_color=3\"><img src=\"needed/blank.gif\" width=\"5\" height=\"5\" border=\"0\" ALT=\"\" TITLE=\"Fenster mit schwarzem Passepartout laden!\"></a></td>"; + $pptchanger .= "</tr><tr>"; + $pptchanger .= "<td width=\"5\" height=\"5\" bgcolor=\"".get_skin("bgcolor")."\"><a href=\"".$MyURL."&ppt_color=4\"><img src=\"needed/blank.gif\" width=\"5\" height=\"5\" border=\"0\" ALT=\"\" TITLE=\"Fenster mit Passepartoutfarbe entsprechend dem aktuellen Skin laden!\"></a></td>"; + $pptchanger .= "</tr></table>"; + return $pptchanger; + } + } + + function bildunterschrift() { + global $photo,$album,$photo_size,$wiw,$tempbreite,$temphoehe; + + $zipdown = save_link(basename($photo),$album); + + $bu = "<span class=marker>» </span><a class=\"fade\" href=\"javascript:window.close();\" onClick=\"if($wiw==1 && document.getElementById) {parent.hidelayer();return false;}\">Fenster schliessen</a><span class=marker> «<br></span>"; + $bu .= "$zipdown<span class=text> ".htmlentities(basename($photo))." <".((int)$photo_size[0])." x ".((int)$photo_size[1])."></span>"; + return $bu; + } + + if(!isSet($ppt_color)) { $ppt_color=1; *************** *** 47,78 **** } - $MyURL = $REQUEST_URI; // hier sollte noch der String '&ppt_color=xxx' herausoperiert werden. Es funktioniert zwar auch durch einfaches anhaengen, ist aber nicht so schoen! - - function pptchanger() { - global $MyURL,$clientmenu_ppt_color,$link,$marker; - if ($clientmenu_ppt_color === 1) { - $pptchanger = "<table width=\"6\" style=\"border: 1px solid $link;\" cellspacing=\"2\" cellpadding=\"0\"><tr>"; - $pptchanger .= "<td width=\"5\" height=\"5\" bgcolor=\"#FFFFFF\"><a href=\"".$MyURL."&ppt_color=1\"><img src=\"needed/blank.gif\" width=\"5\" height=\"5\" border=\"0\" ALT=\"\" TITLE=\"Fenster mit weissem Passepartout laden!\"></a></td>"; - $pptchanger .= "</tr><tr>"; - $pptchanger .= "<td width=\"5\" height=\"5\" bgcolor=\"#777777\"><a href=\"".$MyURL."&ppt_color=2\"><img src=\"needed/blank.gif\" width=\"5\" height=\"5\" border=\"0\" ALT=\"\" TITLE=\"Fenster mit grauem Passepartout laden!\"></a></td>"; - $pptchanger .= "</tr><tr>"; - $pptchanger .= "<td width=\"5\" height=\"5\" bgcolor=\"#000000\"><a href=\"".$MyURL."&ppt_color=3\"><img src=\"needed/blank.gif\" width=\"5\" height=\"5\" border=\"0\" ALT=\"\" TITLE=\"Fenster mit schwarzem Passepartout laden!\"></a></td>"; - $pptchanger .= "</tr><tr>"; - $pptchanger .= "<td width=\"5\" height=\"5\" bgcolor=\"".get_skin("bgcolor")."\"><a href=\"".$MyURL."&ppt_color=4\"><img src=\"needed/blank.gif\" width=\"5\" height=\"5\" border=\"0\" ALT=\"\" TITLE=\"Fenster mit Passepartoutfarbe entsprechend dem aktuellen Skin laden!\"></a></td>"; - $pptchanger .= "</tr></table>"; - return $pptchanger; - } - } - - function bildunterschrift() { - global $photo,$album,$photo_size,$wiw,$tempbreite,$temphoehe; - - $zipdown = save_link(basename($photo),$album); - - $bu = "<span class=marker>» </span><a class=\"fade\" href=\"javascript:window.close();\" onClick=\"if($wiw==1 && document.getElementById) {parent.hidelayer();return false;}\">Fenster schliessen</a><span class=marker> «<br></span>"; - $bu .= "$zipdown<span class=text> ".htmlentities(basename($photo))." <".((int)$photo_size[0])." x ".((int)$photo_size[1])."></span>"; - return $bu; - } - // beginne HTML-OutPut --- 80,83 ---- *************** *** 180,193 **** </style> - <script src="needed/pictsinspace.js" language="javascript1.2" type="text/javascript"></script> - <script src="needed/dhtmlevents.js" language="javascript1.2" type="text/javascript"></script> - <script src="needed/DOM-fade.js" language="javascript1.2" type="text/javascript"></script> ! ! <script type="text/JavaScript"> ! <!-- ! if(!is_nav4) PopupFocus(<?PHP echo ((int)$rsizeB).",".((int)$rsizeH).",".((int)$PosX).",".((int)$PosY).",'".((int)$wiw)."'";?>); ! //--> ! </script> </head> --- 185,201 ---- </style> ! <script src="needed/pictsinspace.js" language="javascript1.2" type="text/javascript"></script> ! <?php ! if (!$NN4) { ! echo "<script src=\"needed/dhtmlevents.js\" language=\"javascript1.2\" type=\"text/javascript\"></script>"; ! echo "<script src=\"needed/DOM-fade.js\" language=\"javascript1.2\" type=\"text/javascript\"></script>"; ! echo "<script type=\"text/JavaScript\">\r\n"; ! echo "<!--"; ! echo "PopupFocus".(((int)$rsizeB).",".((int)$rsizeH).",".((int)$PosX).",".((int)$PosY).",'".((int)$wiw)."'"); ! echo "//-->"; ! echo "</script>"; ! } ! ?> </head> *************** *** 196,219 **** <?php ! if (preg_match("/MSIE/",$GLOBALS["HTTP_SERVER_VARS"]["HTTP_USER_AGENT"])) { ?> ! <table height="<?PHP echo (int)($temphoehe + ($passepartout*2) + $plushoehe);?>" width="<?PHP echo (int)(($passepartout*2) + $tempbreite);?>" border="0" cellspacing="0" cellpadding="0" align="center" valign="top"> <tr> ! <td colspan="3" height="<?PHP echo (int)($passepartout);?>" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" align="center" valign="middle"> ! <img src="needed/blank.gif" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout);?>"> ! </td> </tr> <tr> ! <td height="<?PHP echo (int)($temphoehe);?>" width="<?PHP echo (int)($passepartout);?>"> ! <img src="needed/blank.gif" height="<?PHP echo (int)($temphoehe);?>" width="<?PHP echo (int)($passepartout);?>" border="0"> ! </td> ! <td height="<?PHP echo (int)($temphoehe);?>" width="<?PHP echo (int)($tempbreite);?>" align="center" valign="top" background="needed/cfg_bg.gif" border="0"> ! <img src="retr_photo.php?<?php wp("album=".rawurlencode(addslashes($album))."&p=".rawurlencode(basename($photo))."&w=".((int)$tempbreite)."&h=".((int)$temphoehe));?>" width="<?php wp((int)$tempbreite);?>" height="<?php wp((int)$temphoehe);?>" style="border: 2px inset;"> ! </td> ! <td valign="top" align="center" height="<?PHP echo (int)($temphoehe);?>" width="<?PHP echo (int)($passepartout);?>"><?PHP echo pptchanger();?><img src="needed/blank.gif" height="1" width="<?PHP echo (int)($passepartout);?>" border="0"></td> </tr> <tr> ! <td colspan="3" height="<?PHP echo (int)($plushoehe + $passepartout);?>" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" align="center" valign="top"><?PHP echo bildunterschrift();?></td> </tr> </table> --- 204,221 ---- <?php ! if($NN4 == 1 or $OPERA == 1) { ?> ! <table width="<?PHP echo (int)(($passepartout*2) + $tempbreite);?>" border="0" cellspacing="0" cellpadding="0" align="center" valign="top"> <tr> ! <td colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)$passepartout;?>" align="center" valign="middle"><img src="needed/blank.gif" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout);?>" alt="" title=""></td> </tr> <tr> ! <td><img src="needed/blank.gif" height="<?PHP echo (int)$temphoehe;?>" width="<?PHP echo (int)($passepartout);?>" border="0" alt="" title=""></td> ! <td height="<?PHP echo (int)$temphoehe;?>" width="<?PHP echo (int)($tempbreite);?>" align="center" valign="top" background="needed/cfg_bg.gif"><img src="retr_photo.php?<?php wp("album=".rawurlencode(addslashes($album))."&p=".rawurlencode(basename($photo))."&w=".((int)$tempbreite)."&h=".((int)$temphoehe));?>" width="<?php wp((int)$tempbreite);?>" height="<?php wp((int)$temphoehe);?>" border="2"></td> ! <td valign="top" align="right"><?PHP echo pptchanger();?><img src="needed/blank.gif" height="5" width="<?PHP echo (int)($passepartout);?>" border="0" alt="" title=""></td> </tr> <tr> ! <td colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout + $plushoehe);?>" align="center" valign="middle"><?PHP echo bildunterschrift();?></td> </tr> </table> *************** *** 223,243 **** ?> ! <table width="<?PHP echo (int)(($passepartout*2) + $tempbreite);?>" border=0 cellspacing=0 cellpadding=0 align=center valign=top> <tr> ! <td colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border=0 height="<?PHP echo (int)$passepartout;?>" align="center" valign="middle"> ! <img src="needed/blank.gif" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout);?>"> ! </td> </tr> <tr> ! <td> ! <img src="needed/blank.gif" width="<?PHP echo (int)($passepartout - 2);?>" border="0"> ! </td> ! <td height="<?PHP echo (int)$temphoehe;?>" width="<?PHP echo (int)($tempbreite);?>" align="center" valign="top" background="needed/cfg_bg.gif" style="border: 2px inset;"> ! <img src="retr_photo.php?<?php wp("album=".rawurlencode(addslashes($album))."&p=".rawurlencode(basename($photo))."&w=".((int)$tempbreite)."&h=".((int)$temphoehe));?>" width="<?php wp((int)$tempbreite);?>" height="<?php wp((int)$temphoehe);?>" border="0"> ! </td> ! <td valign="top" align="right"><?PHP echo pptchanger();?><img src="needed/blank.gif" width="<?PHP echo (int)($passepartout - 2);?>" border="0"></td> </tr> <tr> ! <td colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout + $plushoehe - 2);?>" align="center" valign="middle"><?PHP echo bildunterschrift();?></td> </tr> </table> --- 225,239 ---- ?> ! <table background="needed/cfg_bg.gif" width="<?PHP echo (int)(($passepartout*2) + $tempbreite);?>" border="0" cellspacing="0" cellpadding="0" align="center" valign="top"> <tr> ! <td colspan="3" bgcolor="<?PHP echo $bgcolor;?>" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border=0 height="<?PHP echo (int)$passepartout;?>" align="center" valign="middle"><img src="needed/blank.gif" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout);?>" alt="" title=""></td> </tr> <tr> ! <td bgcolor="<?PHP echo $bgcolor;?>"><img src="needed/blank.gif" width="<?PHP echo (int)($passepartout);?>" height="<?PHP echo (int)($temphoehe);?>" border="0" alt="" title=""></td> ! <td width="<?PHP echo (int)$tempbreite;?>" height="<?PHP echo (int)($temphoehe);?>" align="center" valign="top"><img src="retr_photo.php?<?php wp("album=".rawurlencode(addslashes($album))."&p=".rawurlencode(basename($photo))."&w=".((int)$tempbreite)."&h=".((int)$temphoehe));?>" width="<?php wp((int)$tempbreite);?>" height="<?php wp((int)$temphoehe);?>" style="border: 3px inset;"></td> ! <td bgcolor="<?PHP echo $bgcolor;?>" valign="top" align="right"><?PHP echo pptchanger();?><img src="needed/blank.gif" width="<?PHP echo (int)($passepartout);?>" height="5" border="0" alt="" title=""></td> </tr> <tr> ! <td bgcolor="<?PHP echo $bgcolor;?>" colspan="3" width="<?PHP echo (int)($tempbreite + ($passepartout * 2));?>" border="0" height="<?PHP echo (int)($passepartout + $plushoehe);?>" align="center" valign="middle"><?PHP echo bildunterschrift();?></td> </tr> </table> *************** *** 247,251 **** ?> - <?php printpanics(); ?> </body> --- 243,246 ---- *************** *** 253,255 **** <?PHP end_output(); ! ?> --- 248,250 ---- <?PHP end_output(); ! ?> \ No newline at end of file |
From: Horst N. <nog...@us...> - 2002-05-21 21:49:00
|
Update of /cvsroot/pictsinspace/PicTsInSpace/needed In directory usw-pr-cvs1:/tmp/cvs-serv30745/needed Modified Files: pictsinspace.js Log Message: Design der Photofenster (Rahmen um Bilder und ColorChanger) optimiert, so das es fast in allen Browsern gleich ausschaut :)) Index: pictsinspace.js =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/needed/pictsinspace.js,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** pictsinspace.js 20 May 2002 22:29:01 -0000 1.27 --- pictsinspace.js 21 May 2002 21:48:57 -0000 1.28 *************** *** 180,185 **** function ob_browserzugabe(menubar,toolbar,status,scrollbars,resizable) { ! var breite = 14; ! var hoehe = 32; // Fuer alle zusaetzlichen Browsermenueelemente werden // Standard-Pixelwerte addiert: --- 180,185 ---- function ob_browserzugabe(menubar,toolbar,status,scrollbars,resizable) { ! var breite = 12; ! var hoehe = 24; // Fuer alle zusaetzlichen Browsermenueelemente werden // Standard-Pixelwerte addiert: *************** *** 209,213 **** breite += 16; } ! if (!is_ie) hoehe += 10; this.B = breite; --- 209,215 ---- breite += 16; } ! // if (is_ie || is_realmozi) { ! // breite += 4; ! // } this.B = breite; *************** *** 439,443 **** ! if (!wiw) alert('Es fehlen Angabe die das Script für die Ausführung benötigt, deshalb kann es nicht ausgeführt werden!'); var ppt_B = (plusbreite) + (passepartout * 2); --- 441,445 ---- ! if (!wiw) alert('Es fehlen Angaben, die das Script für seine Ausführung benötigt, deshalb wird diese jetzt abgebrochen!'); var ppt_B = (plusbreite) + (passepartout * 2); *************** *** 451,456 **** var pict; ! var FensterWidth; ! var FensterHeight; var coords; var rizeB; --- 453,467 ---- var pict; ! var FensterWidth =1; ! var FensterHeight =1; ! if(is_opera) { ! FensterWidth = -6; ! FensterHeight = -6; ! } ! if(is_nav4) { ! FensterWidth = -6; ! FensterHeight = -12; ! } ! var coords; var rizeB; *************** *** 477,482 **** } ! FensterWidth = Math.floor(pict.a + ppt_B); ! FensterHeight = Math.floor(pict.b + ppt_H); PosX = Math.ceil((screen.B / 2) - (FensterWidth / 2) - browser.correctX); PosY = Math.ceil((screen.H / 2) - (FensterHeight / 2) - browser.correctY); --- 488,493 ---- } ! FensterWidth += Math.floor(pict.a + ppt_B + browser.B); ! FensterHeight += Math.floor(pict.b + ppt_H + browser.H); PosX = Math.ceil((screen.B / 2) - (FensterWidth / 2) - browser.correctX); PosY = Math.ceil((screen.H / 2) - (FensterHeight / 2) - browser.correctY); *************** *** 501,506 **** } ! FensterWidth = Math.floor(pict.a + ppt_B); ! FensterHeight = Math.floor(pict.b + ppt_H); URL = pict.URL + "&tempbreite=" + pict.a + "&temphoehe=" + pict.b; --- 512,517 ---- } ! FensterWidth += Math.floor(pict.a + ppt_B + browser.B); ! FensterHeight += Math.floor(pict.b + ppt_H + browser.H); URL = pict.URL + "&tempbreite=" + pict.a + "&temphoehe=" + pict.b; *************** *** 527,533 **** // Die Abfrage nach dem eingestellten TabMode erfolgte hier schon beim Testfenster var rsizeB, rsizeH; ! var CfW = 6; var CfH = 10; - if (is_ie) CfH = 5; a2_max = SizeX - ppt_B - CfW; b2_max = SizeY - ppt_H - CfH; --- 538,543 ---- // Die Abfrage nach dem eingestellten TabMode erfolgte hier schon beim Testfenster var rsizeB, rsizeH; ! var CfW = 10; var CfH = 10; a2_max = SizeX - ppt_B - CfW; b2_max = SizeY - ppt_H - CfH; *************** *** 538,543 **** } ! FensterWidth = Math.floor(pict.a + ppt_B + CfW); ! FensterHeight = Math.floor(pict.b + ppt_H + CfH); URL = pict.URL + "&tempbreite=" + pict.a + "&temphoehe=" + pict.b; --- 548,553 ---- } ! FensterWidth += Math.floor(pict.a + ppt_B + CfW); ! FensterHeight += Math.floor(pict.b + ppt_H + CfH); URL = pict.URL + "&tempbreite=" + pict.a + "&temphoehe=" + pict.b; |
From: Horst N. <nog...@us...> - 2002-05-21 11:12:42
|
Update of /cvsroot/pictsinspace/PicTsInSpace In directory usw-pr-cvs1:/tmp/cvs-serv15810 Modified Files: designfunctions.inc.php Log Message: abgespeckter TabellenWrapper Index: designfunctions.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/designfunctions.inc.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** designfunctions.inc.php 20 May 2002 22:29:01 -0000 1.13 --- designfunctions.inc.php 21 May 2002 11:12:39 -0000 1.14 *************** *** 504,507 **** --- 504,637 ---- function maintable_header($picpath) { $output = "<TR>\r\n"; + $output .= "<TD WIDTH=\"22\" HEIGHT=\"119\" valign=\"top\" align=\"left\"><IMG SRC=\"".$picpath."main_header_left.jpg\" WIDTH=\"22\" HEIGHT=\"119\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "<TD WIDTH=\"511\" HEIGHT=\"119\" valign=\"top\" align=\"left\"><IMG SRC=\"".$picpath."main_header_middle.jpg\" WIDTH=\"511\" HEIGHT=\"119\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "<TD WIDTH=\"21\" HEIGHT=\"119\" valign=\"top\" align=\"right\"><IMG SRC=\"".$picpath."main_header_right.jpg\" WIDTH=\"21\" HEIGHT=\"119\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "</TR>\r\n"; + return $output; + } + + function maintable_spacer($picpath) { + $output = "<TR>\r\n"; + $output .= "<TD WIDTH=\"22\" HEIGHT=\"16\" valign=\"top\" align=\"left\"><IMG SRC=\"".$picpath."main_spacer_left.jpg\" WIDTH=\"22\" HEIGHT=\"16\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "<TD WIDTH=\"511\" HEIGHT=\"16\" valign=\"top\" align=\"left\"><IMG SRC=\"".$picpath."main_spacer_middle.jpg\" WIDTH=\"511\" HEIGHT=\"16\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "<TD WIDTH=\"21\" HEIGHT=\"16\" valign=\"top\" align=\"right\"><IMG SRC=\"".$picpath."main_spacer_right.jpg\" WIDTH=\"21\" HEIGHT=\"16\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "</TR>\r\n"; + return $output; + } + + function maintable_value($picpath,$CONTENT) { + $output = "<TR>\r\n"; + $output .= "<TD background=\"".$picpath."main_bg_left.jpg\" valign=\"top\" align=\"left\"><IMG SRC=\"needed/blank.gif\" WIDTH=\"2\" HEIGHT=\"2\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "<TD background=\"".$picpath."main_bg_middle.jpg\" valign=\"top\" align=\"middle\">$CONTENT</TD>\r\n"; + $output .= "<TD background=\"".$picpath."main_bg_right.jpg\" valign=\"top\" align=\"right\"><IMG SRC=\"needed/blank.gif\" WIDTH=\"2\" HEIGHT=\"2\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "</TR>\r\n"; + return $output; + } + + function maintable_close($picpath) { + $output = "<TR>\r\n"; + $output .= "<TD WIDTH=\"22\" HEIGHT=\"25\" valign=\"bottom\" align=\"left\"><IMG SRC=\"".$picpath."main_bottom_left.jpg\" WIDTH=\"22\" HEIGHT=\"25\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "<TD WIDTH=\"511\" HEIGHT=\"25\" valign=\"bottom\" align=\"left\"><IMG SRC=\"".$picpath."main_bottom_middle.jpg\" WIDTH=\"511\" HEIGHT=\"25\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "<TD WIDTH=\"21\" HEIGHT=\"25\" valign=\"bottom\" align=\"right\"><IMG SRC=\"".$picpath."main_bottom_right.jpg\" WIDTH=\"21\" HEIGHT=\"25\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "</TR>\r\n</TABLE>\r\n"; + return $output; + } + + + function add_subtableval($align,$picpath,$praefix,$title,$cell1,$cell2,$cell3) { + // Anhand der Anzahl übermittelter $cell-Values wird die passende Tabellenzeile ausgewählt. + + // Wenn man alle Variablen weglässt bis auf picpath, wird eine Spacerzeile generiert. + // Wenn man alle ZellenVariablen weg lässt, aber einen Text angibt, wird eine Überschriftenzeile generiert. + // Eine Angaben zu $title und $cell1 erzeugt A) eine Beschreibung (immer rechtsbündig) und B) für den Rest derZeile eine lange Zelle mit dem Inhalt von $cell1 + // Eine Angaben zu $title, $cell1 und $cell2 erzeugt A) eine Beschreibung und B) für den Rest der Zeile zwei Zellen mit dem Inhalt von $cell1 und $cell2 + // Eine Angaben zu $title und $cell 1-3 erzeugt eine Beschreibung und 3 Zellen mit dem Inhalt von $cell 1-3 + // DesignAnmerkung: Wenn man z.B. nur 2 Zellen braucht, dann aber im Ergebnis die beiden Inhalte zu weit auseinander liegen, kann man für die 3. Zelle auch ein eingeben, dann rutscht es etwas mehr zusammen ;) + + // $align = 'L' eft 'R' ight 'M' iddle - leer lassen = 'M' + // $picpath = gibt den relativen HTML-Pfad zu den LayoutBildchen an, !!! Bitte mit endendem Slash !!! + // $praefix = wenn extrabildchen für diese Zeile vorhanden sind, haben sie diesen Namenspraefix, Keine Angabe nimmt die Standardbildchen ($praefix_..bildchen...gif oder subtitle_..bildchen...gif) + // $title = Textstring + // $cell 1-3 = Inhalt der Zellen 1- 3 (Also Selects Inputs Buttons etc) + + global $hidden_cfg; + if(!$praefix) $praefix = "subtable"; + if (strtolower($align) == 'l') $align = 'left'; + else if (strtolower($align) == 'r') $align = 'right'; + else $align = 'middle'; + + if($cell3 == "" && $cell2 == "" && $cell1 != "") { + // Fuer Zeilen mit 1 Element + $output = "<table Width=450 Border=0 CellPadding=0 CellSpacing=0>\r\n<tr>\r\n"; + $output .= "<td><img Src=\"needed/blank.gif\" Width=4 Height=40 BORDER=0 ALT=\"\" TITLE=\"\"></td>\r\n"; + $output .= "<td align=\"right\" valign=\"middle\" background=\"".$picpath.$praefix."_val1_title.gif\" Width=160 Height=40><span class=\"header2\">$title</span></td>\r\n"; + $output .= "<td align=\"$align\" valign=\"middle\" background=\"".$picpath.$praefix."_val1_1.gif\" Width=267 Height=40><span class=\"footer\">$cell1</span></td>\r\n"; + $output .= "<td><img Src=\"needed/blank.gif\" Width=19 Height=40 BORDER=0 ALT=\"\" TITLE=\"\"></td>\r\n"; + $output .= "</tr>\r\n</table>\r\n"; + return $output; + } + else if($cell3 == "" && $cell2 != "" && $cell1 != "") { + // Fuer Zeilen mit 2 Elementen + $output = "<table Width=450 Border=0 CellPadding=0 CellSpacing=0>\r\n<tr>\r\n"; + $output .= "<td><img Src=\"needed/blank.gif\" Width=4 Height=40 BORDER=0 ALT=\"\" TITLE=\"\"></td>\r\n"; + $output .= "<td align=\"right\" valign=\"middle\" background=\"".$picpath.$praefix."_val2_title.gif\" Width=160 Height=40><span class=\"header2\">$title</span></td>\r\n"; + $output .= "<td align=\"$align\" valign=\"middle\" background=\"".$picpath.$praefix."_val2_1.gif\" Width=133 Height=40><span class=\"footer\">$cell1</span></td>\r\n"; + $output .= "<td align=\"$align\" valign=\"middle\" background=\"".$picpath.$praefix."_val2_2.gif\" Width=134 Height=40><span class=\"footer\">$cell2</span></td>\r\n"; + $output .= "<td><img Src=\"needed/blank.gif\" Width=19 Height=40 BORDER=0 ALT=\"\" TITLE=\"\"></td>\r\n"; + $output .= "</tr>\r\n</table>\r\n"; + return $output; + } + else if($cell3 != "" && $cell2 != "" && $cell1 != "") { + // Fuer Zeilen mit 3 Elementen + $output = "<table Width=450 Border=0 CellPadding=0 CellSpacing=0>\r\n<tr>\r\n"; + $output .= "<td><img Src=\"needed/blank.gif\" Width=4 Height=40 BORDER=0 ALT=\"\" TITLE=\"\"></td>\r\n"; + $output .= "<td align=\"right\" valign=\"middle\" background=\"".$picpath.$praefix."_val3_title.gif\" Width=160 Height=40><span class=\"header2\">$title</span></td>\r\n"; + $output .= "<td align=\"$align\" valign=\"middle\" background=\"".$picpath.$praefix."_val3_1.gif\" Width=89 Height=40><span class=\"footer\">$cell1</span></td>\r\n"; + $output .= "<td align=\"$align\" valign=\"middle\" background=\"".$picpath.$praefix."_val3_2.gif\" Width=89 Height=40><span class=\"footer\">$cell2</span></td>\r\n"; + $output .= "<td align=\"$align\" valign=\"middle\" background=\"".$picpath.$praefix."_val3_3.gif\" Width=89 Height=40><span class=\"footer\">$cell3</span></td>\r\n"; + $output .= "<td><img Src=\"needed/blank.gif\" Width=19 Height=40 BORDER=0 ALT=\"\" TITLE=\"\"></td>\r\n"; + $output .= "</tr>\r\n</table>\r\n"; + return $output; + } + else if($cell3 == "" && $cell2 == "" && $cell1 == "" && $title != "") { + // Nur Titelzeile + $output = "<table Width=450 Border=0 CellPadding=0 CellSpacing=0>\r\n<tr>\r\n"; + $output .= "<td><img Src=\"needed/blank.gif\" Width=4 Height=40 BORDER=0 ALT=\"\" TITLE=\"\"></td>\r\n"; + $output .= "<td background=\"".$picpath.$praefix."_val0_title.gif\" Width=427 Height=40 align=\"$align\" valign=\"middle\"><span class=\"header2\">$title</span></td>\r\n"; + $output .= "<td><img Src=\"needed/blank.gif\" Width=19 Height=40 BORDER=0 ALT=\"\" TITLE=\"\"></td>\r\n"; + $output .= "</tr>\r\n</table>\r\n"; + return $output; + } + else if($cell3 == "" && $cell2 == "" && $cell1 == "" && $title == "") { + // Spacer + $output = "<table Width=450 Border=0 CellPadding=0 CellSpacing=0>\r\n<tr>\r\n"; + $output .= "<td><img Src=\"needed/blank.gif\" Width=450 Height=20 Border=0 Alt=\"\" TITLE=\"\"></td>\r\n"; + $output .= "</tr>\r\n</table>\r\n"; + return $output; + } + else { + echo wp("ERROR, es sind keine Variablen fuer die KonfigMenuZeile uebergeben worden!"); + } + + } + + // ENDE KONFIG-MAINTABLE + SUBTABLE FUNCTIONS!!! + + + + // FULLVERSION - START KONFIG-MAINTABLE + SUBTABLE FUNCTIONS: - FULLVERSION + + function full_maintable_start($picpath) { + $output = "<TABLE ALIGN=\"center\" WIDTH=\"554\" BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">\r\n"; + $output .= "<TR>\r\n"; + $output .= "<TD WIDTH=\"22\" HEIGHT=\"23\" valign=\"top\" align=\"left\"><IMG SRC=\"".$picpath."main_top_left.jpg\" WIDTH=\"22\" HEIGHT=\"23\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "<TD WIDTH=\"511\" HEIGHT=\"23\" valign=\"top\" align=\"left\"><IMG SRC=\"".$picpath."main_top_middle.jpg\" WIDTH=\"511\" HEIGHT=\"23\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; + $output .= "<TD WIDTH=\"21\" HEIGHT=\"23\" valign=\"top\" align=\"right\"><IMG SRC=\"".$picpath."main_top_right.jpg\" WIDTH=\"21\" HEIGHT=\"23\" ALT=\"\" TITLE=\"\" BORDER=\"0\"><TD>\r\n"; + $output .= "</TR>\r\n"; + return $output; + } + + function full_maintable_header($picpath) { + $output = "<TR>\r\n"; $output .= "<TD background=\"".$picpath."main_bg_left.jpg\" WIDTH=\"22\" HEIGHT=\"119\" valign=\"top\" align=\"left\"><IMG SRC=\"".$picpath."main_header_left.jpg\" WIDTH=\"22\" HEIGHT=\"119\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; $output .= "<TD background=\"".$picpath."main_bg_middle.jpg\" WIDTH=\"511\" HEIGHT=\"119\" valign=\"top\" align=\"left\"><IMG SRC=\"".$picpath."main_header_middle.jpg\" WIDTH=\"511\" HEIGHT=\"119\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; *************** *** 511,515 **** } ! function maintable_spacer($picpath) { $output = "<TR>\r\n"; $output .= "<TD background=\"".$picpath."main_bg_left.jpg\" WIDTH=\"22\" HEIGHT=\"16\" valign=\"top\" align=\"left\"><IMG SRC=\"".$picpath."main_spacer_left.jpg\" WIDTH=\"22\" HEIGHT=\"16\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; --- 641,645 ---- } ! function full_maintable_spacer($picpath) { $output = "<TR>\r\n"; $output .= "<TD background=\"".$picpath."main_bg_left.jpg\" WIDTH=\"22\" HEIGHT=\"16\" valign=\"top\" align=\"left\"><IMG SRC=\"".$picpath."main_spacer_left.jpg\" WIDTH=\"22\" HEIGHT=\"16\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; *************** *** 520,524 **** } ! function maintable_value($picpath,$CONTENT) { $output = "<TR>\r\n"; $output .= "<TD background=\"".$picpath."main_bg_left.jpg\" valign=\"top\" align=\"left\"><IMG SRC=\"needed/blank.gif\" WIDTH=\"2\" HEIGHT=\"2\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; --- 650,654 ---- } ! function full_maintable_value($picpath,$CONTENT) { $output = "<TR>\r\n"; $output .= "<TD background=\"".$picpath."main_bg_left.jpg\" valign=\"top\" align=\"left\"><IMG SRC=\"needed/blank.gif\" WIDTH=\"2\" HEIGHT=\"2\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; *************** *** 529,533 **** } ! function maintable_close($picpath) { $output = "<TR>\r\n"; $output .= "<TD background=\"".$picpath."main_bottom_middle.jpg\" WIDTH=\"22\" HEIGHT=\"25\" valign=\"bottom\" align=\"left\"><IMG SRC=\"".$picpath."main_bottom_left.jpg\" WIDTH=\"22\" HEIGHT=\"25\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; --- 659,663 ---- } ! function full_maintable_close($picpath) { $output = "<TR>\r\n"; $output .= "<TD background=\"".$picpath."main_bottom_middle.jpg\" WIDTH=\"22\" HEIGHT=\"25\" valign=\"bottom\" align=\"left\"><IMG SRC=\"".$picpath."main_bottom_left.jpg\" WIDTH=\"22\" HEIGHT=\"25\" ALT=\"\" TITLE=\"\" BORDER=\"0\"></TD>\r\n"; *************** *** 539,543 **** ! function add_subtableval($align,$picpath,$praefix,$title,$cell1,$cell2,$cell3) { // Anhand der Anzahl übermittelter $cell-Values wird die passende Tabellenzeile ausgewählt. --- 669,673 ---- ! function full_add_subtableval($align,$picpath,$praefix,$title,$cell1,$cell2,$cell3) { // Anhand der Anzahl übermittelter $cell-Values wird die passende Tabellenzeile ausgewählt. *************** *** 616,620 **** } ! // ENDE KONFIG-MAINTABLE + SUBTABLE FUNCTIONS!!! ?> --- 746,750 ---- } ! // FULLVERSION - ENDE KONFIG-MAINTABLE + SUBTABLE FUNCTIONS!!! - FULLVERSION ?> |
From: Horst N. <nog...@us...> - 2002-05-20 22:48:33
|
Update of /cvsroot/pictsinspace/PicTsInSpace In directory usw-pr-cvs1:/tmp/cvs-serv30340 Modified Files: index.php Log Message: Mini-Designverbesserung beim KonfigMenu Index: index.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/index.php,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** index.php 20 May 2002 22:29:01 -0000 1.64 --- index.php 20 May 2002 22:48:30 -0000 1.65 *************** *** 283,286 **** --- 283,287 ---- $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); get_cfg_TabMode($picpath); + $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); } else { $hidden_cfg .= "<input type=\"hidden\" name=\"TabMode\" value=\"0\"></td>\r\n"; |
From: Horst N. <nog...@us...> - 2002-05-20 22:43:01
|
Update of /cvsroot/pictsinspace/PicTsInSpace/needed In directory usw-pr-cvs1:/tmp/cvs-serv28860/needed Removed Files: picto_skins.gif picto_standard.gif picto_wiw.gif picto_zellenbg.gif Log Message: dito --- picto_skins.gif DELETED --- --- picto_standard.gif DELETED --- --- picto_wiw.gif DELETED --- --- picto_zellenbg.gif DELETED --- |
From: Horst N. <nog...@us...> - 2002-05-20 22:38:10
|
Update of /cvsroot/pictsinspace/PicTsInSpace/needed In directory usw-pr-cvs1:/tmp/cvs-serv27147/needed Removed Files: picto_angepasst.gif picto_cols.gif picto_l.gif picto_linie.gif picto_m.gif picto_popup.gif picto_rows.gif picto_s.gif picto_seitenlinks.gif Log Message: werden nicht mehr gebraucht --- picto_angepasst.gif DELETED --- --- picto_cols.gif DELETED --- --- picto_l.gif DELETED --- --- picto_linie.gif DELETED --- --- picto_m.gif DELETED --- --- picto_popup.gif DELETED --- --- picto_rows.gif DELETED --- --- picto_s.gif DELETED --- --- picto_seitenlinks.gif DELETED --- |
From: Horst N. <nog...@us...> - 2002-05-20 22:31:49
|
Update of /cvsroot/pictsinspace/PicTsInSpace/needed In directory usw-pr-cvs1:/tmp/cvs-serv25354/needed Added Files: logo_trans.gif Log Message: neues Bildchen --- NEW FILE: logo_trans.gif --- GIF89aò fhº{|SY¹ekÈ"$C)+MsyÖCFztyÈ×Ô!)29BJ¶29BJ¥47c!* dg*:§*u2A£!)dET»DS¹Xd¼gsÊèêú-Bµ'8C&5%4Dª!)Y !/9wVfÈVfÇ $1JÇ "3J¹(2H³#1x"0u6.CYÅ'1fIX¥+5 ;gyÓ-4XÙ'h)B¦7TÆ"R7R¼6P¸ (RkÐ/wØgwºwÉ9ZÏFcÌTf§Vv×.<kZuÌDiÖKg·4Dr «(SÂ9eÒFuè7QgÛ&msBU~-ÉDvÙ%2Mczª¦¼ç©ÎMxÃnæfÅv×Ûxª»ÙSZg-uèDg£Vz¸Vu¨LfµÞ©¶ÌKÝxÌHw¶©Ö¥ÍµÖHSb¥¸iÊV¦@{"]¨PçiɵÞez°Ìî7?IN½ãº¸ÈÚCs¦x§×µÖWi|$qµ²Æi±j±í?Xg)¾O´òÉï+жÍC¨Ó µëiÕüêûÿÐõýïÿtÊصôþÿïçûçÞèÔÍÚºÿççõÞÞÿïï÷ççóïïÿÿÿ!ù &ºã:ªÎPáÔ Mô¶H×ZJosB38À¼ü>´ëüÅ6ÏÃ9ÝvGC 5Ð`ÄèndÏÈ&ºHó4¤|ýºV¤É¾rÚ¤lûÒ=ùr ×óÄÖó¤ãN<Á+âwRéÜèV·ä : r`=.ä!m¸Â&¸` QÄÂ?K׸H³+ÄývSUJH¡ÅÃî :T( cH(tÜZ¼Âب Yä0ÀF¦á<©0 vÃ@3p¤ E,A6ÄÑ]¡ VPÚ 9H!bÃùJv2´Ïr 2hã«#,ñ@+ÓDç®àF¬B×x50ÄÌØ-qÙÿ;³¿tÀlà4¸A n°*,a¨Ã&ñIL øW2gÅFÕiÛ6°Á(pRl¦JE)Jsî TÈ2ÁF#0=b{ÒÒk )pË` ÅÄ O!$ý)P# 1^#Ðû#¼à²QÍlB¯ªW*Xa mW#ñ°&$U<«/ ;È,:kð¢Å8A/¸q¢ò0I¨ìô*{ìPínU°ì@ KXÃV'AÑ?°×´<Vù\/Výj#AaX`ìXEΩDÝþ¹¥yp0á2pðp1! o¯e+Àabp£=¸Æ*+ð7¼£ÄBÀn¦W½l;pAT_°ëU mØÁvÌÕ?tð=HFÇfÖ²L};ñ@² akÀðÄ(¬ÐD«ÞàÀ¾= AFhPÁMh^w%W Näס}°èiµÂ°k:ìÈ!$É+bÐþãÒÐÃm©ðgè9Âý3fhèz^®áîm£ B3zÀµà½aÄ$~C,PøQ0Â"\½?33ж´1T»Ç¡ Ä:qaFEVZ%{R¨ÀÈ(úPS9>©yà]y¿`Ct1 þÐùÖ©KÇ5Ä1ÝÀÎoèAmlá]®|eϺ JÀ8¢°è1h¼ã®Ã$8¡n¤Zóÿ²ôÁÆ_ìź <Ð\üíoO]u÷ ü³¯î»º .Ô¢°@ÂÞpô ¸¼å{©ÕæneHóúë[hB¡ Õ1Dtt|±kyðÒHÙn¹ÿ@æ[0Å<¤qxë9ª2è»9°0AÙ4Pj/KÀGbNo:`F yßg×yàG mq;Às2U ©Ð:ÆÉr{FS{Àw _¤Ð͸=9§gØg§PG4#`LÅ$L80PåGbû°°ù~ `0s8~ )f£ éÄD;H$mßu#0UZ ÿdQ##ß²äF±{ ß ~ÅóØo50P`XYByÀ p ²'dà Üà $# ltE9@5` 8Pê¥ mp¢) ¢°S³gMÊ8¹-½*¹iO!°Þ0f5À¨õj®V$`KYÑy©¥T¹ 7_k«rjN%z§ò ± r¢çt§V¢ÿ _ÙòJ³±z³9 µ§Ö$ß(n¹w!1vé@ÀýiÞà°) ÿ°8µ{µº À Q r+ %§·ÿW};;+°!, ¯p¨ ²[¹úÛê /)´ÁR ¸öä£ý¤F@L+À½÷pZ½ÝK¹×˵Z¹{Áß» ~Å p)¦n» @ÂÉ ò Ò pÛ°Ê Î{Ô½F|Ô¡×+ÁØ«ÄJ©Pÿü,~TÇUç=¡Â¡ Æ, ¨ÉÉ8[Ò<>²ù³jÇ1y ` ´§âPÎJõ ÿ\Ðk<EäÃ4ç©,¼tüÍ]ÑÍâ å ÁØ+Ò¹#M¡)õ¼)=ÙX Ì7+«3Í , ª`¿ ám¼z{µ)ý+ý¿Ý¬_!>àÐ [Tö¹Õ«Ë¼¹V*Wj/ÒPÕ ü9W°mÐN0ýÕ7 4-Ö àH!/ùë·þÇ R oðÕmÙbý±wÓñÅ» ]_¿ÛÖ ¬Àøh^ÐäY¡püÍ ¨Ö°Ü%×ÙãÒ¯.B¾ .Ã>Ñx '`y© M½²]&*MÉEZÌaP¢°ßÊýâÍ ¢0 0d¥ÓØäÞ° ½ýà?Íàú%Ô½Ú'`l[«äØëàWÎ=°Ub'ÿ=Z\â\ày0 ap³ðKÙ ÐÎLÖfý:5®æVÝÒP ç>r=×CÞ à®û µêHåîýÛå[D)V®ÆèðÒêE»²*«Ðb=Ðq »!3,n¾Ú<.þís×v¾ÚÀ °µ lQ¹Ñ¹WéÛûÈGüM` W::NN1¿ á ð¬ÿ\í¨îY¬n ÿi%¸ãÀ¬Wµ@D7fîèü Öô.Öeì~*'0Ûï áØ@?± Àó;ÿ%ZÔè?M>U»ÆÀQ¨Q¥N¥Z( Ã-¶(@X'O9ví~9s¦AÂ|ûê-$bE'N$9¢D"GìRòÊy¢ sç +¸²Âcr1äÎòD ÁpºigFqægb 'HÂA'~"O<óC£ hBn¸ æ#)üXj£Ìü«©&DÉi4NàdGäCr$#ÁÔÍ6tk¶íB<+Ô$«])æáÈ ,²ØÄMNDÿED<ÁF5Ú°.xqëÚÉGHp|&AGmrH#-B#¼ð¢x üªÌ,+dêl-»Ì49GãvâAgRÐ,U¬aG`q%MI^iͦ(ÌóÛÛ ±´KxårKKD4Th³ØGNùEtâ±ÙwÒÁgoÆkªØbª\¤«÷eÙP2ÇXSÿ1ÞwõdH©òàÞª¸æxÞx£ !æ lo{q@3Â>ñE£[:Ä7m¦|ëÄ,bä I7 Þ&ÁL¤° z ØÞqÄ7T@IL@¸×=|o|QÂTs°cëÇ`?ÙÃ"÷¸:@$ÿpÁ yÀRV± ¶ñ?ÀÉQñ¥ RMÅYÁ(åQ²A 3ÈÄÈJ5Xâ±øDhìÐX°X ,P$zb¹IðQD$JÖè3& 4T&aM>#¹yc (Ò|NJãÿ(@ù9T(çMlamØÂÉØD.6X´Â¹àEµÑYZØ h'ÚKfõÒä½Ðĸk)7 X¦[L8A°,ì3±Ì¾ x¼ÏÄVh(-WRPUÐ<Zà¨Ê7¸ X V(exÿ!XTG]DZÎ`¨IÓ0¸h c0 V¨Âa¨¬-ÖTVÅpKtÍ 7º P5 :0Hä9F®Sê ¨Ã#àö*·3Lº0ùD:OnØ,¶pE°bP 3[á ó2t·¸a`Vf³é(=ÔÃ)ã]=ÈQ$ Vj©Ýf7ð<ðæC( ¨SØ9k-`Ð kð1ö±2) hkk*8^#7rj/÷0ØcÔ"/¼/Ayò_C6dgSd69x6skÃ|õh½l ·I5x3¼å£>@èª00äDædþ~èöèød0åÃvlÇà'·vÂÔà°m@e¬BËú,3k¨,ZάC[{©]^n) #NàëA88Èm«Îp¿,Øvü>.éE°µmÔm(4HÍ``uVP` 3ØoÐ[°¡ð t$·@MË )pP_DÈduÈ´ÁÒV`Ì]ØÚÕùèåÏíÿ)h|á£@ú (þ8þÜD"zæ¦zDp~onL fýÀ+èr\«5`U01®i>àtV"X·¿ú³Àª¦UàÁö\Ùwnü(±ó.&øïI¡°F1`âtH9`qRAÔØ3§È?" @U1@H$Däò%Iw4ý«ió&Îÿ ±V´qÄ 4pB %8c)ÐpKPAb¬ÁÄÛ¯´Q®aQ 0 Ì!ÆFÓI2ÿ¦ ×]ÉA¤Quä'Ïq²ÆK-½ùÇ3©·§N 9àÀ8à# H\$¸Aد¨í®µ@X!À·yXâ ÑÛB/ 8r¦l9 fÉæ¶ mKpáÆÛpkn¡ GÈA° k Æmyc(äw ¸Í%ãßÏzDýõ7pøC¾äÐÂÍ!ÛK8'00}(*9ZԢŨÅ.¨©t%ä/Ì ºª r 25-àÁS®$CL%K%äÿ85Â:Ð)jÐ r 5.Á'(F Öwøå¡0äcü,Gù«vìáòC/} q¹D)\Ñ-Èa^ø×ïü(L,'É=i¢ÚØ1¶î +¦ËE(GiÊRÀ &û°»ã(Çjȳ_mäº\=A" ^ÐÂf0Áb©¡=xÔpÂ,ÂS7ËÐX%V!ä»s8ãâð Ρ`(px¤c×P-ÿ<ù-õJîúðãÆ°Ì¿ð [¸Äé G¥ÉØÃéø·70!p©VŦZBêÀ/À2QRÂõªjlî6ª\àÂmñ9à¶v} ^¼ä½öª:]SGQ B¡]¶^®lp9ÚÇ ´!m4¦L]%ä 9ÐJNEDF¦I6Ä!4'PÐHSyÁ ÂxÜl\±À£gfýðxxÇ~RI 6Á!W¬Ñ-\eØäth&a¸aðõ FfEð'Iÿ>èåø_2|Ã5l%&¨J5Ãpez%NÖoæÓ0uÁt$xK¬@%èÛ;À9,Æu^KÔ8ã|Èqc&´ÁõÜZ&¼à z¢d`döé`ôJ]dÚ8â&Fk°'H¥2kF©riî*Ã.hC/°Ùå@ddA¤ZÊ)B«É¤ÔjdIñÜ B´©1Ä<0À<ØÞ\g°\2 Ë`ÖVô]ÁlBÁ(ÁÑí!jbËrNÄñÀ×f\Q$AxúÀB0Â$¦úìB©Ri¨ä¨B7lÿ©$E¾ªeT¤«H¥A¤AmDA°Á»È¨ÒxC(@nJ«KØ¡F¤Î#0^ÄçP4AÎ À $$Á{pAÜ$±¦»~j¼ÊëBT/8èÂ$+mî뫲Ê!H 4 ò óG2CÞ0«ïY.²ZÖ8Ë/úðÍ´[»][Iá °ÅäŬ±ù'ÝHÙ@ $âvª4WøRóB²»6hIëú&2«ÖÎ7ÛA´,ó¯X¤ÌÁp#üôúÌshÁã¸ßpÂQÿA P@Cì£ !4.# ïN JÌàAÛYɶ="!~Û$ìwMPzn_úIíä-ÿ¡åë!ª¦¥$$wª'*ìH!t«?ÿ3Î]µ{ñ#È4Äy¯Ë9VÈy|3C±;²#ûàxKöç}[I~C¼b D±9J (pÙ&A4o;·_áJs/p:,*úÚu%<å.ÚÁqàÌ» .À.#1Ð]Äv¸uw»eA¿÷:VdÅÐà E(:¬GËm|¶{ükrȼsªÆâѪo%ÐÁøAËå"@»áÁ ÕM@ëÜÑô©&p»viã ®:¨{ËKÌqâ.¢¨"Å[¯ÿ=$£¬DÁ¢>ûRÂb?I^±AAæ5#2I&AíHä$ U êqÂÉRä#¸»t»¼ k#¦? ázØc6rA^½~³áøER§1Zã|w2b°_fì/(´bÿ"!°VÄØÞíô!ð-ýò5TDÆ%FÙÊ90¨¿/ÉabDÑ%ÓUÈùêMÞÂØ@¯|±CÖ"Å" Ñxjÿ tå^7'0N³M±åùéb )ÁáMü:®+Áaf}3 ¦[ÕÃSÀ®Ï¥E}¢C%ª³§(¤bPEäÒ0G&ëJ§ÒÌ`"!jØSF4QéOâ80X:ôh¿ bätãA¾e@4¾Ö/|á<ªR¹Å¡ÅË6øÚW¿þ°ì` [ØÀîu¯Ø 6!(ö3!HÀeñ Ï*TªhBZD6´©%)\± -0c®íb X»}E¨w¥ÊîVkü¸×¨ o[\ã÷·ÄEîrËÜZTcÉ8Æ.*ÐnL#Ù½Å-dt£©¯x]Úa¹È&0a¨â¼ª SxÁ&fÊñdDÂÇðÆ1¦an(@ÅwñÝnø¸À Ñiî³\æøêÊXÖµyíò¯ØÂÃÀæ5}½ëûØ°øõ®qå^{øضد MíiÚ>7ìc!( °è±wÁ»i!»Ó/A}fÃÑB ±½Ñëz?{¿Ïîµ²±ßchcý¼+ ײåEÐùÂ}àû"äAÿxÐANôýçE9Ð>Ô¹>êQ:T©QE)IãªËÖ½êÕ_£S;Rm]öTníãÊÙ |
From: Horst N. <nog...@us...> - 2002-05-20 22:29:04
|
Update of /cvsroot/pictsinspace/PicTsInSpace In directory usw-pr-cvs1:/tmp/cvs-serv24639 Modified Files: TODO designfunctions.inc.php index.php main.css.inc.php quickhelp.php Log Message: interaktive Abfrage nach TabMode in StartSeite; Startseite gestaltet mit kurzer Einleitung und Link zum Konfigmenü; Wenn Du das mal testen willst, mußt Du index.php?start=0 Index: TODO =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/TODO,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** TODO 19 May 2002 23:52:04 -0000 1.13 --- TODO 20 May 2002 22:29:01 -0000 1.14 *************** *** 4,12 **** ! o BrowserCheck-TabMode = interaktive Abfrage ob der Browser im Tabbed-Mode betrieben wird ! x Habe schon mal alle Bedienelemente dazu integriert und die Variable auch mit in die Startroutine aufgenommen. ! Funktioniert soweit alles ganz gut wie es scheint. ! o Jetzt muß (nur) noch der Wert mit einbezogen werden in die Berechnung für die zu öffnenden Fenster. ! o Es empfiehlt sich, auf der FirstStartSeite eine Frage einzubauen, ob der Browser überhaupt einen TabMode unterstützt, und wenn ja, wie die aktuelle Einstellung ist. o Sicherheit/Zuverlässigkeit --- 4,9 ---- ! X BrowserCheck-TabMode = interaktive Abfrage ob der Browser im Tabbed-Mode betrieben wird ! o Sicherheit/Zuverlässigkeit *************** *** 22,30 **** * TabbedMode = on/off; * FensterMode = autoPopUp / autoInLine / indiMode ! x Keine Statusanzeigen sondern habe Schnellumschaltfunktion eingebaut. ! Die gibt sowieso den Status bekannt, erlaubt aber auch mit nur einem Klick (bei den meisten Browsern) einen Modus zu wechseln! ! o Das Design dazu muß noch erstellt werden. Bis jetzt ist lediglich die Funktion integriert! ! o Wenn Du irgendwann mal Stroke integrieren möchtest, kannst Du evtl. mit einigen StrokeAuslösern diese MiniForms bedienen!? ! (Horst, 19.05.2002) --- 19,25 ---- * TabbedMode = on/off; * FensterMode = autoPopUp / autoInLine / indiMode ! (Hatte einen Denkfehler bei den SchnellumschaltForms, !!! ! Die verleiteten zu der Annahme, man könne seinen Browser damit umschalten. ! Deshalb sind die wieder weg.) *************** *** 34,38 **** o Cookieverwaltung ! o Eine Funktion die sich in jedes Fenster implementieren lässt, zum Speichern der --- 29,33 ---- o Cookieverwaltung ! * Mit Wahlmöglichkeit für die CookieLifeTime o Eine Funktion die sich in jedes Fenster implementieren lässt, zum Speichern der *************** *** 48,51 **** --- 43,49 ---- o WiW in Opera + + + o kleine Bibliothek mit netpbm-Befehlen Index: designfunctions.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/designfunctions.inc.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** designfunctions.inc.php 19 May 2002 23:50:35 -0000 1.12 --- designfunctions.inc.php 20 May 2002 22:29:01 -0000 1.13 *************** *** 19,22 **** --- 19,23 ---- } + // Gibt ein [?]-Link mit dem Chapter für die Quickhelp aus function quickhelp($chapter) { global $skin,$myskin,$TabMode; *************** *** 25,72 **** return "<a href=\"javascript:open_quickhelp('".$URL."');\" TiTle=\"QuickHelp\">[?]</a>"; } ! // gibt ein Schnellumschaltmenue für den TabModus aus ! function TabMode() { ! global $canTab,$savecfg,$TabMode,$PHP_SELF,$start,$mode,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$alben_dir,$album,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; ! if ($canTab === 1 ) { $availTabMode = "<span class=\"text\"><form name=\"TabMode\" action=\"$PHP_SELF\" method=\"get\">\r\n"; // alle wichtigen Values per hiddenfields mitsenden $availTabMode .= "<input type=\"hidden\" name=\"start\" value=\"0\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"mode\" value=\"".htmlentities($mode)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"reihen\" value=\"".htmlentities($reihen)."\"\n>"; ! $availTabMode .= "<input type=\"hidden\" name=\"spalten\" value=\"".htmlentities($spalten)."\"\n>"; ! $availTabMode .= "<input type=\"hidden\" name=\"skin\" value=\"".htmlentities($skin)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"fenster\" value=\"".htmlentities($fenster)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"FensterModus\" value=\"".htmlentities($FensterModus)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"seitenlinks\" value=\"".htmlentities($seitenlinks)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"wiw\" value=\"".htmlentities($wiw)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"ppt_color\" value=\"".htmlentities($ppt_color)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"PosX\" value=\"".htmlentities($PosX)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"PosY\" value=\"".htmlentities($PosY)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"SizeX\" value=\"".htmlentities($SizeX)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"SizeY\" value=\"".htmlentities($SizeY)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"CPX\" value=\"".htmlentities($CPX)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"CPY\" value=\"".htmlentities($CPY)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"CSX\" value=\"".htmlentities($CSX)."\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"CSY\" value=\"".htmlentities($CSY)."\">\n"; $availTabMode .= "<input type=\"hidden\" name=\"savecfg\" value=\"1\">\n"; ! $availTabMode .= "<span class=\"footer\">TabModus: "; if($TabMode=='0') { ! $availTabMode .= "Aus<input id=\"TabMode1\" type=\"radio\" name=\"TabMode\" checked value=\"0\" onChange=\"javascript:document.TabMode.submit(this.form)\"> \r\n"; } else { ! $availTabMode .= "Aus<input id=\"TabMode1\" type=\"radio\" name=\"TabMode\" value=\"0\" onChange=\"javascript:document.TabMode.submit(this.form)\"> \r\n"; } if($TabMode=='1') { ! $availTabMode .= " Ein<input id=\"TabMode2\" type=\"radio\" name=\"TabMode\" checked value=\"1\" onChange=\"javascript:document.TabMode.submit(this.form)\">\r\n"; } else { ! $availTabMode .= " Ein<input id=\"TabMode2\" type=\"radio\" name=\"TabMode\" value=\"1\" onChange=\"javascript:document.TabMode.submit(this.form)\">\r\n"; } ! $availTabMode .= "<input type=\"submit\" name=\"\" value=\"GO\">\r\n"; $availTabMode .= "</span>\r\n</form></span>\r\n"; --- 26,63 ---- return "<a href=\"javascript:open_quickhelp('".$URL."');\" TiTle=\"QuickHelp\">[?]</a>"; } + // Gibt ein "Chapter" als highlighted Link für die Quickhelp aus. $chapter muß in der QuickHelp als Kapitel in der richtigen Schreibweise vorhanden sein!! + function nqhl($chapter) { + global $MyCoords; + return "<a href=\"quickhelp.php?c=$chapter".$MyCoords."\" target=\"quickhelp\">$chapter</a>"; + } ! // Wird nur noch von der First-Star-Seite aufgerufen!! ! function TabMode($immer=false) { ! global $canTab,$savecfg,$TabMode,$PHP_SELF,$start,$mode,$skin,$myskin; ! if ($canTab === 1 || $immer == true) { $availTabMode = "<span class=\"text\"><form name=\"TabMode\" action=\"$PHP_SELF\" method=\"get\">\r\n"; // alle wichtigen Values per hiddenfields mitsenden $availTabMode .= "<input type=\"hidden\" name=\"start\" value=\"0\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"mode\" value=\"p\">\n"; ! $availTabMode .= "<input type=\"hidden\" name=\"skin\" value=\"".htmlentities($myskin)."\">\n"; $availTabMode .= "<input type=\"hidden\" name=\"savecfg\" value=\"1\">\n"; ! $availTabMode .= "<span class=\"header2\">"; if($TabMode=='0') { ! $availTabMode .= "Mein Browser hat keinen TabMode - oder TabMode ist aus<input id=\"TabMode1\" type=\"radio\" name=\"TabMode\" checked value=\"0\"><br>\r\n"; } else { ! $availTabMode .= "Mein Browser hat keinen TabMode - oder TabMode ist aus<input id=\"TabMode1\" type=\"radio\" name=\"TabMode\" value=\"0\"><br>\r\n"; } if($TabMode=='1') { ! $availTabMode .= " TabMode ist an<input id=\"TabMode2\" type=\"radio\" name=\"TabMode\" checked value=\"1\"><br>\r\n"; } else { ! $availTabMode .= " TabMode ist an<input id=\"TabMode2\" type=\"radio\" name=\"TabMode\" value=\"1\"><br>\r\n"; } ! $availTabMode .= "<br><input type=\"submit\" name=\"\" value=\"TabMode-Browsereinstellung speichern\">\r\n"; $availTabMode .= "</span>\r\n</form></span>\r\n"; Index: index.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/index.php,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** index.php 19 May 2002 23:50:35 -0000 1.63 --- index.php 20 May 2002 22:29:01 -0000 1.64 *************** *** 59,66 **** --- 59,68 ---- } + /* if($canTab === 0 && $mode == 'f') { $mode = 'p'; $TabMode = 0; } + */ // Den verschiedenen Modi die entsprechenden Aufgaben zuweisen: *************** *** 73,77 **** $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu().TabMode(); $KOPFCONTENT .= "<span class=header1>$Headline</span><br>"; $KOPFCONTENT .= close_pictsheader(); --- 75,79 ---- $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu(); $KOPFCONTENT .= "<span class=header1>$Headline</span><br>"; $KOPFCONTENT .= close_pictsheader(); *************** *** 95,99 **** $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu().TabMode(); $KOPFCONTENT .= "<span class=header1>$Headline</span><span class=\"text\"><br></span>"; $KOPFCONTENT .= infozeile()."<span class=\"text\"><br><br></span>"; --- 97,101 ---- $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu(); $KOPFCONTENT .= "<span class=header1>$Headline</span><span class=\"text\"><br></span>"; $KOPFCONTENT .= infozeile()."<span class=\"text\"><br><br></span>"; *************** *** 109,113 **** $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu().TabMode(); $KOPFCONTENT .= "<span class=header1>$Headline</span><br>"; $KOPFCONTENT .= close_pictsheader(); --- 111,115 ---- $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu(); $KOPFCONTENT .= "<span class=header1>$Headline</span><br>"; $KOPFCONTENT .= close_pictsheader(); *************** *** 118,122 **** $KOPFCONTENT = ""; ! } else if($mode=='p') { $mode = 'p'; // Thumbnailsdarstellung --- 120,124 ---- $KOPFCONTENT = ""; ! } else if($mode=='p') { $mode = 'p'; // Thumbnailsdarstellung *************** *** 127,131 **** $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu().TabMode(); $KOPFCONTENT .= "<span class=header1>$Headline</span><span class=\"text\"><br></span>"; $KOPFCONTENT .= infozeile()."<span class=\"text\"><br><br></span>"; --- 129,133 ---- $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu(); $KOPFCONTENT .= "<span class=header1>$Headline</span><span class=\"text\"><br></span>"; $KOPFCONTENT .= infozeile()."<span class=\"text\"><br><br></span>"; *************** *** 184,199 **** function firstStart() { ! global $canTab, $PHP_SELF, $skin, $start; $picpath = "needed/cfg1/"; $gb = "f"; ! ! $SUBCONTENT = "<span class=\"header1\"><br><br>Die First-Start-Seite<br><br></span>"; ! $SUBCONTENT .= "<span class=\"text2\">Hier kommt eine Begruessung hin, und die Frage nach dem eingestellten TabModus<br><br>Das wird aber erst richtig funktionieren, wenn die Moeglichkeit geschaffen ist, einzelne Werte ins Cookie zu speichern. Bis dahin muss man mit diesem holprigen <a href=\"$PHP_SELF?start=$start&mode=c&gb=$gb&TabMode=nix\">WorkAround</a> vorlieb nehmen!<br><br><br></span>"; $firstStartTable = "<span class=text><br><br></span>\r\n"; $firstStartTable .= maintable_start($picpath); $firstStartTable .= maintable_spacer($picpath); ! $firstStartTable .= maintable_value($picpath,$SUBCONTENT); $firstStartTable .= maintable_spacer($picpath); $firstStartTable .= maintable_close($picpath); --- 186,220 ---- function firstStart() { ! global $canTab, $PHP_SELF, $skin, $myskin, $start, $gb; $picpath = "needed/cfg1/"; $gb = "f"; ! ! $output = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n"; ! $output .= "<tr align=\"center\" valign=\"top\">\r\n"; ! $output .= "<td><span class=\"text\"><br><img src=\"needed/marke_M.gif\" width=\"209\" height=\"40\"><br><br><img src=\"needed/logo_trans.gif\" width=\"242\" height=\"173\"><br><br></span></td>\r\n"; ! $output .= "</tr>\r\n"; ! $output .= "<tr align=\"center\" valign=\"top\">\r\n"; ! $output .= "<td><span class=\"header1\">Herzlich Willkommen bei <i>PicTsInSpace V 0.1</i><br></span>\r\n"; ! $output .= "<span class=\"header2\">Waldemars ImageViewer<br></span>\r\n"; ! $output .= "<span class=\"text3\"><br>\r\n"; ! $output .= "<br>____________________<br><br>Diese Seite sehen Sie nur, wenn<br><br>\r\n"; ! $output .= "a) Sie das Programm zum ersten Mal aufgerufen haben,<br><span class=\"footer\">(in diesem Fall nochmals herzlich Willkommen und viel Freude mit Waldemar und seinen fliegenden Schweinen! Die Autoren.)</span><br><br>\r\n"; ! $output .= "b) Sie alle gespeicherten Einstellungen zur ".nqhl('Konfiguration')." verloren/gelöscht haben, bzw. die (von Ihnen wählbare) ".nqhl('CookieLifeTime')." abgelaufen ist.<br><br>\r\n"; ! $output .= "oder<br>c) wenn Waldemar ihren Browser als einen Browser mit der Möglichkeit zur Anzeige mehrerer Seiten im ".nqhl('TabMode')." erkannt hat,<br>bzw. Ihren BrowserTyp nicht kennt.<br>____________________<br><br>\r\n"; ! $output .= "<span class=\"header1\">Kurze Einleitung<br><br></span>Waldemar ist ein wohlerzogenes Schwein aus gutem virtuellem Hause.<br>\r\n"; ! $output .= "Sein Anliegen ist es, Ihnen die Ansicht Ihrer Bildarchive und EinzelBilder so angenehm wie möglich zu gestalten.<br>\r\n"; ! $output .= "Um Ihnen eine Präsentation Ihrer Bilder in 'angemessener' Form bieten zu können, flizzt er unermüdlich los, bestückt mit einem Maßband, und mißt Ihren Bildschirm pixelgenau aus. Bei Browsern im ".nqhl('TabMode')." muß er statt des gesamten Bildschirms nur die Größe des Elternfensters messen.<br><br>\r\n"; ! $output .= "Leider kann Waldemar bei Browsern mit der Möglichkeit des TabMode nicht erkennen in welchem Modus Sie den Browser gerade betreiben. Deshalb müßen Sie Ihm das unbedingt vorher einmal mitteilen.<br>Und natürlich (leider) jedesmal, wenn Sie die Einstellung in Ihrem Browser ändern.\r\n"; ! $output .= "<br>".TabMode(true)."<br>"; ! $output .= "Sie können auch zum KonfigurationsMenü wechseln, um gleich weitere Einstellungen vorzunehmen:<br><br><a href=\"$PHP_SELF?start=0&mode=c&gb=$gb&TabMode=nix\">... zum KonfigurationsMenü ->"; ! $output .= "<br><br></span></td>\r\n"; ! $output .= "</tr>\r\n"; ! $output .= "</table>\r\n"; $firstStartTable = "<span class=text><br><br></span>\r\n"; $firstStartTable .= maintable_start($picpath); $firstStartTable .= maintable_spacer($picpath); ! $firstStartTable .= maintable_value($picpath,$output); $firstStartTable .= maintable_spacer($picpath); $firstStartTable .= maintable_close($picpath); *************** *** 265,269 **** $hidden_cfg .= "<input type=\"hidden\" name=\"TabMode\" value=\"0\"></td>\r\n"; } ! $SUBCONTENT .= add_subtableval('',$picpath,"","Das Hauptfenster","","",""); $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); --- 286,290 ---- $hidden_cfg .= "<input type=\"hidden\" name=\"TabMode\" value=\"0\"></td>\r\n"; } ! $SUBCONTENT .= add_subtableval('',$picpath,"","Das Hauptfenster","","",""); $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); *************** *** 305,309 **** global $hidden_cfg, $SUBCONTENT, $start, $album, $gb, $savecfg, $SCRIPT_NAME; ! if ($gb == 'f') $gb = 'p'; --- 326,330 ---- global $hidden_cfg, $SUBCONTENT, $start, $album, $gb, $savecfg, $SCRIPT_NAME; ! if ($gb == 'f') $gb = 'p'; Index: main.css.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/main.css.inc.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** main.css.inc.php 17 May 2002 23:49:03 -0000 1.14 --- main.css.inc.php 20 May 2002 22:29:01 -0000 1.15 *************** *** 36,40 **** } <?PHP ! if ($mode == 'c') { ?> select { --- 36,40 ---- } <?PHP ! if ($mode == 'c' || $mode == 'f') { ?> select { *************** *** 113,117 **** } .text3 { ! font: 11px/140% Verdana,Helvetica,Arial,sans-serif; color: <?php wp(get_skin("color"));?>; } --- 113,117 ---- } .text3 { ! font: 12px/140% Verdana,Helvetica,Arial,sans-serif; color: <?php wp(get_skin("color"));?>; } Index: quickhelp.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/quickhelp.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** quickhelp.php 18 May 2002 23:26:32 -0000 1.5 --- quickhelp.php 20 May 2002 22:29:01 -0000 1.6 *************** *** 74,82 **** <?PHP - function nl($chapter) { - global $MyCoords; - return "<a href=\"quickhelp.php?c=$chapter".$MyCoords."\">$chapter</a>"; - } - function ah($headtext) { return "<span class=\"header3\"><i>$headtext</i></span>"; --- 74,77 ---- *************** *** 96,108 **** else if ($c == 'indiFenster') { $KOPF = "individuelles Fenster"; ! $MSG = "Sie können Anstelle der automatischen PopUpfenster oder der InLine-Fenster auch einen individuellen Platz auf ihrem Bildschirm angeben, an dem sich die Popupfenster öffnen sollen. Grundsätzlich müssen Sie Waldemar mitteilen ob Sie Ihren Browser im ".nl('TabbedMode')." betreiben oder nicht. Wenn diese Angabe stimmt, können Sie ein Testfenster öffnen, es an der gewünschten Stelle auf Ihrem Bildschirm platzieren und per \"speichern\" die Werte ans KonfigFormular schicken. Waldemar wird dann die PopUpFenster zentriert in diesem Bereich öffnen und sie sind dann maximal so gross wie das Testfenster.<br><br>Hier mit der Funktion Testfenster werden die Daten ermittelt. Wenn Sie den individuellen ".nl('FensterModus')." nutzen wollen, müssen Sie ihn auch einschalten ;)"; } ! else if ($c == 'TabbedMode') { ! $KOPF = "Browsereinstellung TabbedMode"; ! $MSG = "info zu TabbedMode ......"; } else if ($c == 'FensterModus') { $KOPF = "Die verschiedenen Anzeigefenster"; ! $MSG = "Sie können für die vergrösserte Bildanzeige zwischen verschiedenen Anzeigefenstern wählen:<br><br>".ah('automatische PopUpfenster')."<br>öffnet PopUpfenster und 'versucht' die passenden Werte Ihres Bidschirmes bzw. Desktops automatisch zu erkennen. Sie können zwischen 3 Grössen wählen: ".nl('S-M-L')."<br>Fü die automatischen PopUpFenster ist es wichtig, dass Sie Waldemar mitteilen ob Sie Ihren Browser im ".nl('TabbedMode')." betreiben oder nicht!<br><br>".ah('automatisches Fenster im Fenster ;)')."<br>öffnet ein Fenster mit der Bilddatei innerhalb des Hauptfensters. Cool!<br><br>".ah('individuelles PopUpfenster')."<br>in diesem Modus können Sie den genauen Platz am Bildschirm, (oder innerhalb des Mutterfensters im ".nl('TabbedMode').") bestimmen. Sie müssen dazu einmal ein Testfenster (".nl('indiFenster').") öffnen um den genauen Bereich und die maximale Grösse der PopUpfenster festzulegen. Leider kann der Opera-Browser wenn er nicht im ".nl('TabbedMode')." ist, die Position auf dem Bildschirm erkennen. Deshalb setzt Waldemar die Startpositionen für individuelle Fenster auf 50 50. Sie müssen dann leider die richtigen Werte von Hand eintragen, und evtl. ein wenig ausprobieren bis es genau passt. Das hängt zu 100% von Ihrem guten Auge und dem Erfassen von Pixelwerten in freier Wildbahn ab =:)"; } else if ($c == 'S-M-L') { --- 91,103 ---- else if ($c == 'indiFenster') { $KOPF = "individuelles Fenster"; ! $MSG = "Sie können Anstelle der automatischen PopUpfenster oder der InLine-Fenster auch einen individuellen Platz auf ihrem Bildschirm angeben, an dem sich die Popupfenster öffnen sollen. Grundsätzlich müssen Sie Waldemar mitteilen ob Sie Ihren Browser im ".nqhl('TabMode')." betreiben oder nicht. Wenn diese Angabe stimmt, können Sie ein Testfenster öffnen, es an der gewünschten Stelle auf Ihrem Bildschirm platzieren und per \"speichern\" die Werte ans KonfigFormular schicken. Waldemar wird dann die PopUpFenster zentriert in diesem Bereich öffnen und sie sind dann maximal so gross wie das Testfenster.<br><br>Hier mit der Funktion Testfenster werden die Daten ermittelt. Wenn Sie den individuellen ".nqhl('FensterModus')." nutzen wollen, müssen Sie ihn auch einschalten ;)"; } ! else if ($c == 'TabMode') { ! $KOPF = "Browsereinstellung TabMode"; ! $MSG = "info zu TabMode ......"; } else if ($c == 'FensterModus') { $KOPF = "Die verschiedenen Anzeigefenster"; ! $MSG = "Sie können für die vergrösserte Bildanzeige zwischen verschiedenen Anzeigefenstern wählen:<br><br>".ah('automatische PopUpfenster')."<br>öffnet PopUpfenster und 'versucht' die passenden Werte Ihres Bidschirmes bzw. Desktops automatisch zu erkennen. Sie können zwischen 3 Grössen wählen: ".nqhl('S-M-L')."<br>Fü die automatischen PopUpFenster ist es wichtig, dass Sie Waldemar mitteilen ob Sie Ihren Browser im ".nqhl('TabMode')." betreiben oder nicht!<br><br>".ah('automatisches Fenster im Fenster ;)')."<br>öffnet ein Fenster mit der Bilddatei innerhalb des Hauptfensters. Cool!<br><br>".ah('individuelles PopUpfenster')."<br>in diesem Modus können Sie den genauen Platz am Bildschirm, (oder innerhalb des Mutterfensters im ".nqhl('TabMode').") bestimmen. Sie müssen dazu einmal ein Testfenster (".nqhl('indiFenster').") öffnen um den genauen Bereich und die maximale Grösse der PopUpfenster festzulegen. Leider kann der Opera-Browser wenn er nicht im ".nqhl('TabMode')." ist, die Position auf dem Bildschirm erkennen. Deshalb setzt Waldemar die Startpositionen für individuelle Fenster auf 50 50. Sie müssen dann leider die richtigen Werte von Hand eintragen, und evtl. ein wenig ausprobieren bis es genau passt. Das hängt zu 100% von Ihrem guten Auge und dem Erfassen von Pixelwerten in freier Wildbahn ab =:)"; } else if ($c == 'S-M-L') { *************** *** 110,113 **** --- 105,112 ---- $MSG = "info zu S-M-L ......"; } + else if ($c == 'Konfiguration') { + $KOPF = "Konfiguration speichern"; + $MSG = "info zur Konfiguration ......"; + } else if ($c == 'chapterList') { $KOPF = "automatische Fenstergroessen"; *************** *** 122,129 **** function chapterList() { ! $liste = array('TabbedMode','Thumbnails','Seitenlinks','Skins','Passepartoutfarbe','FensterModus','S-M-L','indiFenster','DesignerMode','Konfiguration'); // sort($liste); foreach($liste as $chapter) { ! echo nl($chapter)."<br><br>"; } } --- 121,128 ---- function chapterList() { ! $liste = array('TabMode','Thumbnails','Seitenlinks','Skins','Passepartoutfarbe','FensterModus','S-M-L','indiFenster','DesignerMode','Konfiguration','CookieLifeTime'); // sort($liste); foreach($liste as $chapter) { ! echo nqhl($chapter)."<br><br>"; } } |
From: Horst N. <nog...@us...> - 2002-05-20 22:29:04
|
Update of /cvsroot/pictsinspace/PicTsInSpace/needed In directory usw-pr-cvs1:/tmp/cvs-serv24639/needed Modified Files: pictsinspace.js Log Message: interaktive Abfrage nach TabMode in StartSeite; Startseite gestaltet mit kurzer Einleitung und Link zum Konfigmenü; Wenn Du das mal testen willst, mußt Du index.php?start=0 Index: pictsinspace.js =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/needed/pictsinspace.js,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** pictsinspace.js 19 May 2002 12:24:08 -0000 1.26 --- pictsinspace.js 20 May 2002 22:29:01 -0000 1.27 *************** *** 118,126 **** } } ! this.b = scr.b; ! this.h = scr.h; this.V = scr.V; ! this.B = scr.B; ! this.H = scr.H; } --- 118,126 ---- } } ! this.b = scr.b; // max available width ! this.h = scr.h; // max available height this.V = scr.V; ! this.B = scr.B; // max width ! this.H = scr.H; // max height } *************** *** 168,171 **** --- 168,175 ---- this.docwidth = docwidth; // gibt die DokumentBreite (InnerWidth) zurueck this.docheight = docheight; // gibt die DokumentHoehe (InnerHeight) zurueck + this.b = docwidth; // gibt die DokumentBreite als max available_width für die Photo_Open_Funktion im TabMode zurück + this.B = docwidth; // gibt die DokumentBreite als max available_width für die Photo_Open_Funktion im TabMode zurück + this.h = docheight; // gibt die DokumentHoehe als max available_height für die Photo_Open_Funktion im TabMode zurück + this.H = docheight; // gibt die DokumentHoehe als max available_height für die Photo_Open_Funktion im TabMode zurück this.PosX = PosX; // gibt die Position des Fensters von Links zurueck this.PosY = PosY; // gibt die Position des Fensters von Oben zurueck *************** *** 459,463 **** if (wiw=='0') { // hier wird ein StandardPopUp geöffnet, S-M-oder-L, in zentraler Position ! screen = new ob_maxscreen(); a2_max = screen.b - ppt_B - browser.B; b2_max = screen.h - ppt_H - browser.H; --- 463,471 ---- if (wiw=='0') { // hier wird ein StandardPopUp geöffnet, S-M-oder-L, in zentraler Position ! if (TabMode == '1') { ! screen = new ob_win(); ! } else { ! screen = new ob_maxscreen(); ! } a2_max = screen.b - ppt_B - browser.B; b2_max = screen.h - ppt_H - browser.H; *************** *** 517,524 **** if (wiw=='2') { // hier wird ein Individuelles Fenster geöffnet in zentraler Position des zuvor ausgewählten Bildschirmbereichs var rsizeB, rsizeH; var CfW = 6; var CfH = 10; ! if (is_ie) CfH = 2; a2_max = SizeX - ppt_B - CfW; b2_max = SizeY - ppt_H - CfH; --- 525,533 ---- if (wiw=='2') { // hier wird ein Individuelles Fenster geöffnet in zentraler Position des zuvor ausgewählten Bildschirmbereichs + // Die Abfrage nach dem eingestellten TabMode erfolgte hier schon beim Testfenster var rsizeB, rsizeH; var CfW = 6; var CfH = 10; ! if (is_ie) CfH = 5; a2_max = SizeX - ppt_B - CfW; b2_max = SizeY - ppt_H - CfH; |
From: Horst N. <nog...@us...> - 2002-05-19 23:52:07
|
Update of /cvsroot/pictsinspace/PicTsInSpace In directory usw-pr-cvs1:/tmp/cvs-serv27792 Modified Files: TODO Log Message: x Index: TODO =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/TODO,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** TODO 19 May 2002 12:24:08 -0000 1.12 --- TODO 19 May 2002 23:52:04 -0000 1.13 *************** *** 8,12 **** Funktioniert soweit alles ganz gut wie es scheint. o Jetzt muß (nur) noch der Wert mit einbezogen werden in die Berechnung für die zu öffnenden Fenster. ! o Sicherheit/Zuverlässigkeit --- 8,12 ---- Funktioniert soweit alles ganz gut wie es scheint. o Jetzt muß (nur) noch der Wert mit einbezogen werden in die Berechnung für die zu öffnenden Fenster. ! o Es empfiehlt sich, auf der FirstStartSeite eine Frage einzubauen, ob der Browser überhaupt einen TabMode unterstützt, und wenn ja, wie die aktuelle Einstellung ist. o Sicherheit/Zuverlässigkeit *************** *** 23,27 **** * FensterMode = autoPopUp / autoInLine / indiMode x Keine Statusanzeigen sondern habe Schnellumschaltfunktion eingebaut. ! Die gibt sowieso den Status bekannt, erlaubt aber auch mit nur einem Klick einen Modus zu wechseln! o Das Design dazu muß noch erstellt werden. Bis jetzt ist lediglich die Funktion integriert! o Wenn Du irgendwann mal Stroke integrieren möchtest, kannst Du evtl. mit einigen StrokeAuslösern diese MiniForms bedienen!? --- 23,27 ---- * FensterMode = autoPopUp / autoInLine / indiMode x Keine Statusanzeigen sondern habe Schnellumschaltfunktion eingebaut. ! Die gibt sowieso den Status bekannt, erlaubt aber auch mit nur einem Klick (bei den meisten Browsern) einen Modus zu wechseln! o Das Design dazu muß noch erstellt werden. Bis jetzt ist lediglich die Funktion integriert! o Wenn Du irgendwann mal Stroke integrieren möchtest, kannst Du evtl. mit einigen StrokeAuslösern diese MiniForms bedienen!? *************** *** 54,61 **** Bekannte Fehler: - - X der NN4 zeigt zur Zeit kein KonfigForm an. - - X TabellenWrapper für Kopftabelle und Konfigmenü müssen noch für NN4 angepasst werden o Designermodus rechnet falsche Werte --- 54,57 ---- |
From: Horst N. <nog...@us...> - 2002-05-19 23:50:38
|
Update of /cvsroot/pictsinspace/PicTsInSpace In directory usw-pr-cvs1:/tmp/cvs-serv27559 Modified Files: designfunctions.inc.php function.inc.php index.php Log Message: Die Frage nach dem TabMode ist jetzt schon etwas sensitiver. Der NN4 und alle IE's bleiben unberührt von solchen Fragen. Alle anderen Browser werden noch befragt, und erhalten auch die Umschalt-bzw Wahlfunktion dazu. Es empfiehlt sich, auf der FirstStartSeite eine Frage einzubauen, ob der Browser überhaupt einen TabMode unterstützt, und wenn ja, wie die aktuelle Einstellung ist. Das kommt noch in die ToDo. Index: designfunctions.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/designfunctions.inc.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** designfunctions.inc.php 19 May 2002 12:24:08 -0000 1.11 --- designfunctions.inc.php 19 May 2002 23:50:35 -0000 1.12 *************** *** 26,34 **** } ! // listet Unterverzeichnisse in $alben_dir auf function TabMode() { ! global $savecfg, $TabMode, $PHP_SELF,$start,$mode,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$alben_dir,$album,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; $availTabMode = "<span class=\"text\"><form name=\"TabMode\" action=\"$PHP_SELF\" method=\"get\">\r\n"; --- 26,35 ---- } ! // gibt ein Schnellumschaltmenue für den TabModus aus function TabMode() { ! global $canTab,$savecfg,$TabMode,$PHP_SELF,$start,$mode,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$alben_dir,$album,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; + if ($canTab === 1 ) { $availTabMode = "<span class=\"text\"><form name=\"TabMode\" action=\"$PHP_SELF\" method=\"get\">\r\n"; *************** *** 67,73 **** --- 68,76 ---- } + $availTabMode .= "<input type=\"submit\" name=\"\" value=\"GO\">\r\n"; $availTabMode .= "</span>\r\n</form></span>\r\n"; return $availTabMode; + } } Index: function.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/function.inc.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** function.inc.php 18 May 2002 23:26:32 -0000 1.27 --- function.inc.php 19 May 2002 23:50:35 -0000 1.28 *************** *** 19,39 **** check_config(); ! // Clientsniffer starten, evtl. mit CookieCheck und LanguageDetection ! $client = new phpSniff('',0); ! //$client->_check_cookies = 1; ! //$client->_default_language = 1; ! $client->init(); ! // $client gibt ein Array zurück aus dem man u. a. folgende Werte auslesen kann: ! // $client->_browser_info[ x ] ! // für x gibts: browser || version || maj_ver || min_ver || javascript || platform || language || und noch anderes, gähn ! // Werte dazu: ns || 4.75 || 4 || .75 || 1.3 || win || de || ! // Werte dazu: ie ! // Werte dazu: op ! // Da können wir jetzt immer auf dieses Objekt zugreifen, wenn wir was Browserspezifisches entscheiden müßen. // hier können wir ein paaar Kurzformen für mehrmalsgebrauchte BrowserTypen definieren: $NN4 = false; ! if ($client->_browser_info["browser"] == "ns" && $client->_browser_info["maj_ver"] == "4") $NN4 = true; ! // if ($NN4) echo "Hallo Netscape4, altes Haus!"; --- 19,54 ---- check_config(); ! // Clientsniffer starten, evtl. mit CookieCheck und LanguageDetection ! $client = new phpSniff('',0); ! //$client->_check_cookies = 1; ! //$client->_default_language = 1; ! $client->init(); ! // $client gibt ein Array zurück aus dem man u. a. folgende Werte auslesen kann: ! // $client->_browser_info[ x ] ! // für x gibts: browser || version || maj_ver || min_ver || javascript || platform || language || und noch anderes, gähn ! // Werte dazu: ns || 4.75 || 4 || .75 || 1.3 || win || de || ! // Werte dazu: ie ! // Werte dazu: op ! // Da können wir jetzt immer auf dieses Objekt zugreifen, wenn wir was Browserspezifisches entscheiden müßen. // hier können wir ein paaar Kurzformen für mehrmalsgebrauchte BrowserTypen definieren: $NN4 = false; ! if ($client->browser_is("ns") && $client->_browser_info["maj_ver"] == 4) $NN4 = 1; ! $IE = false; ! if ($client->browser_is("ie")) $IE = 1; ! $IE6 = false; // IE6 steht erst mal als Ausnahme hier, weil ich von dem gar nichts kenne ! if ($client->_browser_info["browser"] == "ie" && $client->_browser_info["maj_ver"] >= "6") $IE6 = true; ! ! // hier werden alle Browser aufgelistet, die definitiv NICHT über einen TabModus verfügen ! $canTab = 1; ! if ($IE==1 or $NN4 ==1) { ! $canTab = 0; ! } ! ! // hier werden alle Browser aufgelistet, die Faden können ! $canFade = 0; ! if (isSet($IE) or isSet($MOZZI)) { ! $canFade = 1; ! } Index: index.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/index.php,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** index.php 19 May 2002 12:24:08 -0000 1.62 --- index.php 19 May 2002 23:50:35 -0000 1.63 *************** *** 59,62 **** --- 59,66 ---- } + if($canTab === 0 && $mode == 'f') { + $mode = 'p'; + $TabMode = 0; + } // Den verschiedenen Modi die entsprechenden Aufgaben zuweisen: *************** *** 180,200 **** function firstStart() { ! global $PHP_SELF, $skin, $start; ! ! $picpath = "needed/cfg1/"; ! $gb = "f"; ! ! $SUBCONTENT = "<span class=\"header1\"><br><br>Die First-Start-Seite<br><br></span>"; ! $SUBCONTENT .= "<span class=\"text2\">Hier kommt eine Begruessung hin, und die Frage nach dem eingestellten TabModus<br><br>Das wird aber erst richtig funktionieren, wenn die Moeglichkeit geschaffen ist, einzelne Werte ins Cookie zu speichern. Bis dahin muss man mit diesem holprigen <a href=\"$PHP_SELF?start=$start&mode=c&gb=$gb&TabMode=nix\">WorkAround</a> vorlieb nehmen!<br><br><br></span>"; ! $firstStartTable = "<span class=text><br><br></span>\r\n"; ! $firstStartTable .= maintable_start($picpath); ! $firstStartTable .= maintable_spacer($picpath); ! $firstStartTable .= maintable_value($picpath,$SUBCONTENT); ! $firstStartTable .= maintable_spacer($picpath); ! $firstStartTable .= maintable_close($picpath); ! return $firstStartTable ; } --- 184,203 ---- function firstStart() { + global $canTab, $PHP_SELF, $skin, $start; ! $picpath = "needed/cfg1/"; ! $gb = "f"; ! ! $SUBCONTENT = "<span class=\"header1\"><br><br>Die First-Start-Seite<br><br></span>"; ! $SUBCONTENT .= "<span class=\"text2\">Hier kommt eine Begruessung hin, und die Frage nach dem eingestellten TabModus<br><br>Das wird aber erst richtig funktionieren, wenn die Moeglichkeit geschaffen ist, einzelne Werte ins Cookie zu speichern. Bis dahin muss man mit diesem holprigen <a href=\"$PHP_SELF?start=$start&mode=c&gb=$gb&TabMode=nix\">WorkAround</a> vorlieb nehmen!<br><br><br></span>"; ! $firstStartTable = "<span class=text><br><br></span>\r\n"; ! $firstStartTable .= maintable_start($picpath); ! $firstStartTable .= maintable_spacer($picpath); ! $firstStartTable .= maintable_value($picpath,$SUBCONTENT); ! $firstStartTable .= maintable_spacer($picpath); ! $firstStartTable .= maintable_close($picpath); ! return $firstStartTable ; } *************** *** 233,237 **** function KonfigMenu() { ! global $hidden_cfg, $SUBCONTENT, $SCRIPT_NAME; $SUBCONTENT = "<form name=\"konfig\" action=\"".$SCRIPT_NAME."\" method=\"get\">\r\n"; --- 236,240 ---- function KonfigMenu() { ! global $canTab, $hidden_cfg, $SUBCONTENT, $SCRIPT_NAME; $SUBCONTENT = "<form name=\"konfig\" action=\"".$SCRIPT_NAME."\" method=\"get\">\r\n"; *************** *** 255,262 **** // $cell 1-3 = Inhalt der Zellen 1- 3 (Also Selects Inputs Buttons etc) ! $SUBCONTENT .= add_subtableval('',$picpath,"","Ihr Browser","","",""); ! $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); ! get_cfg_TabMode($picpath); ! $SUBCONTENT .= add_subtableval('',$picpath,"","Das Hauptfenster","","",""); $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); --- 258,269 ---- // $cell 1-3 = Inhalt der Zellen 1- 3 (Also Selects Inputs Buttons etc) ! if ($canTab === 1) { ! $SUBCONTENT .= add_subtableval('',$picpath,"","Ihr Browser","","",""); ! $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); ! get_cfg_TabMode($picpath); ! } else { ! $hidden_cfg .= "<input type=\"hidden\" name=\"TabMode\" value=\"0\"></td>\r\n"; ! } ! $SUBCONTENT .= add_subtableval('',$picpath,"","Das Hauptfenster","","",""); $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); *************** *** 318,324 **** function get_cfg_TabMode($picpath) { ! // Anzeige Fenster wählen, 0=autoPopUp, 1=wiw, 2=indiPopUp ! ! global $hidden_cfg, $SUBCONTENT, $TabMode; if($TabMode=='0') { --- 325,330 ---- function get_cfg_TabMode($picpath) { ! // Welche Einstellung hat der User für seinen Browser gewählt ? ! global $canTab, $hidden_cfg, $SUBCONTENT, $TabMode; if($TabMode=='0') { *************** *** 336,340 **** $SUBCONTENT .= add_subtableval('',$picpath,"","Browser TabMode ".quickhelp('TabMode'),$cell1,$cell2," "); $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); - } --- 342,345 ---- |
From: Horst N. <nog...@us...> - 2002-05-19 23:15:50
|
Update of /cvsroot/pictsinspace/PicTsInSpace/thirdparty/original_packages_and_infos/phpsniff In directory usw-pr-cvs1:/tmp/cvs-serv20931/thirdparty/original_packages_and_infos/phpsniff Modified Files: phpSniff.class.php Log Message: wenn mans schon originalpackages nennt, sollte mans auch original lassen, sorry! Index: phpSniff.class.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/thirdparty/original_packages_and_infos/phpsniff/phpSniff.class.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** phpSniff.class.php 18 May 2002 19:34:09 -0000 1.1 --- phpSniff.class.php 19 May 2002 23:15:47 -0000 1.2 *************** *** 19,24 **** *******************************************************************************/ ! // if(!defined('_PHP_SNIFF_CORE_INCLUDED')) include('phpSniff.core.php'); // OriginalZeile, arbeitet nicht fr uns. ! if(!defined('_PHP_SNIFF_CORE_INCLUDED')) include('./thirdparty/phpsniff/phpSniff.core.php'); // unsere Zeile. /** * phpSniff --- 19,23 ---- *******************************************************************************/ ! if(!defined('_PHP_SNIFF_CORE_INCLUDED')) include('phpSniff.core.php'); /** * phpSniff |
From: Horst N. <nog...@us...> - 2002-05-19 12:27:10
|
Update of /cvsroot/pictsinspace/PicTsInSpace/thirdparty/original_packages_and_infos/phpsniff In directory usw-pr-cvs1:/tmp/cvs-serv2840/thirdparty/original_packages_and_infos/phpsniff Added Files: CHANGES.info Log Message: gehört noch ins Package --- NEW FILE: CHANGES.info --- 2002.01.02; version 2.0.6 rraymond : changed license from GPL to LGPL 2001.12.21; version 2.0.5a rraymond : fixed undeclared constants in check cookie routine 2001.12.20; version 2.0.5 rraymond : added support for Windows XP rraymond : fixed some old Windows 98 version 9x 4.90 detection problems rraymond : added Windows XP HTTP_USER_AGENT to user_agent.inc 2001.12.17; version 2.0.4 rraymond : added browser_is() method rraymond : added language_is() method rraymond : added get_property() alias for property() method rraymond : added gecko property; reports mozilla build number (YYYYMMDD) rraymond : added _browser_search_regex class var rraymond : added _language_search_regex class var rraymond : updated demo to use new methods 2001.12.13; version 2.0.3 rraymond : initialized variables rraymond : fixed undeclared constants rraymond : added new property long_name : $client->property('long_name'); rraymond : updated demo to display new long_name property |
From: Horst N. <nog...@us...> - 2002-05-19 12:24:12
|
Update of /cvsroot/pictsinspace/PicTsInSpace/needed In directory usw-pr-cvs1:/tmp/cvs-serv2243/needed Modified Files: pictsinspace.js Log Message: Hauptsächlich TabMode eingebaut! Nähere Info steht in ToDo. Index: pictsinspace.js =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/needed/pictsinspace.js,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** pictsinspace.js 18 May 2002 19:10:57 -0000 1.25 --- pictsinspace.js 19 May 2002 12:24:08 -0000 1.26 *************** *** 411,415 **** // öffnet die BilderFenster als auto-PopUp, auto-WiW oder als Indi-PopUp: Klappt wunderbar in allen 6 Browsern! (Horst, 08.05.2002) ! function photo_open(URL,NAME,a1,b1,plusbreite,plushoehe,passepartout,fensterAlt,FensterModus,album,wiw,skin,ppt_color,PosX,PosY,SizeX,SizeY,CPX,CPY,CSX,CSY) { // URL = Uebergabe des Dateinamen (Bild) usw, // wird nachher noch um die URL des PHP-Scripts erweitert --- 411,415 ---- // öffnet die BilderFenster als auto-PopUp, auto-WiW oder als Indi-PopUp: Klappt wunderbar in allen 6 Browsern! (Horst, 08.05.2002) ! function photo_open(URL,NAME,a1,b1,plusbreite,plushoehe,passepartout,fensterAlt,FensterModus,album,wiw,skin,ppt_color,PosX,PosY,SizeX,SizeY,CPX,CPY,CSX,CSY,TabMode) { // URL = Uebergabe des Dateinamen (Bild) usw, // wird nachher noch um die URL des PHP-Scripts erweitert *************** *** 432,435 **** --- 432,437 ---- // CSX = " // CSY = " + // TabMode = Gibt mit 0 an das die PopUp-Fenster frei auf dem Bildschirm geöffnet werden, und mit 1, das sie innerhalb des Elternfensters geöffnet werden. + if (!wiw) alert('Es fehlen Angabe die das Script für die Ausführung benötigt, deshalb kann es nicht ausgeführt werden!'); |
From: Horst N. <nog...@us...> - 2002-05-19 12:24:12
|
Update of /cvsroot/pictsinspace/PicTsInSpace In directory usw-pr-cvs1:/tmp/cvs-serv2243 Modified Files: TODO config2.inc.php index.php designfunctions.inc.php Log Message: Hauptsächlich TabMode eingebaut! Nähere Info steht in ToDo. Index: TODO =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/TODO,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** TODO 18 May 2002 19:01:45 -0000 1.11 --- TODO 19 May 2002 12:24:08 -0000 1.12 *************** *** 3,27 **** o Dateinamen mit komischen Zeichen unter Windows!! ! o BrowserCheck-TabbedModus = interaktive Abfrage ob der Browser im Tabbed-Mode betrieben wird o Sicherheit/Zuverlässigkeit o Wir müßen uns finale Namen für die verschiedenen FensterModis überlegen!!! Für die Programm-Dokus in Quickhelp etc. o QuickHelp-Datei für Konfigmenue muß noch mit Hilfe-Texte ergänzt werden o winzige Statusanzeigen im Browserfenster für: * TabbedMode = on/off; * FensterMode = autoPopUp / autoInLine / indiMode ! * ...? o $MyURL = HTTP_REQUEST_URI, steht in Photofenster und in TempPhotoFenster, dort muß noch die Angabe zu &ppt_color=? rausoperiertwerden. - Das ist was für dich :) o Cookieverwaltung o Eine Funktion die sich in jedes Fenster implementieren lässt, zum Speichern der aktuellen Fenstergroesse und Position. x neues Konfigmenü Die einfache Version des neuen Menüs ist fertig. Es läuft jetzt auch wieder im NN4. --- 3,43 ---- o Dateinamen mit komischen Zeichen unter Windows!! ! ! o BrowserCheck-TabMode = interaktive Abfrage ob der Browser im Tabbed-Mode betrieben wird ! x Habe schon mal alle Bedienelemente dazu integriert und die Variable auch mit in die Startroutine aufgenommen. ! Funktioniert soweit alles ganz gut wie es scheint. ! o Jetzt muß (nur) noch der Wert mit einbezogen werden in die Berechnung für die zu öffnenden Fenster. ! o Sicherheit/Zuverlässigkeit + o Wir müßen uns finale Namen für die verschiedenen FensterModis überlegen!!! Für die Programm-Dokus in Quickhelp etc. + o QuickHelp-Datei für Konfigmenue muß noch mit Hilfe-Texte ergänzt werden + o winzige Statusanzeigen im Browserfenster für: * TabbedMode = on/off; * FensterMode = autoPopUp / autoInLine / indiMode ! x Keine Statusanzeigen sondern habe Schnellumschaltfunktion eingebaut. ! Die gibt sowieso den Status bekannt, erlaubt aber auch mit nur einem Klick einen Modus zu wechseln! ! o Das Design dazu muß noch erstellt werden. Bis jetzt ist lediglich die Funktion integriert! ! o Wenn Du irgendwann mal Stroke integrieren möchtest, kannst Du evtl. mit einigen StrokeAuslösern diese MiniForms bedienen!? ! (Horst, 19.05.2002) ! o $MyURL = HTTP_REQUEST_URI, steht in Photofenster und in TempPhotoFenster, dort muß noch die Angabe zu &ppt_color=? rausoperiertwerden. - Das ist was für dich :) + o Cookieverwaltung + o Eine Funktion die sich in jedes Fenster implementieren lässt, zum Speichern der aktuellen Fenstergroesse und Position. + x neues Konfigmenü Die einfache Version des neuen Menüs ist fertig. Es läuft jetzt auch wieder im NN4. *************** *** 30,34 **** --- 46,52 ---- # Transparenz + o WiW in Opera + __________________________________________ Index: config2.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/config2.inc.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** config2.inc.php 17 May 2002 23:49:02 -0000 1.3 --- config2.inc.php 19 May 2002 12:24:08 -0000 1.4 *************** *** 56,59 **** --- 56,63 ---- else $mode=$standard_mode; } + if(!isSet($TabMode)) { + if( ($tmp = getconfig("TabMode")) !== false) $TabMode = $tmp; + else $mode="f"; + } if(!isSet($thumbx)) { $thumbx = $standard_thumbx; Index: index.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/index.php,v retrieving revision 1.61 retrieving revision 1.62 diff -C2 -d -r1.61 -r1.62 *** index.php 18 May 2002 23:26:32 -0000 1.61 --- index.php 19 May 2002 12:24:08 -0000 1.62 *************** *** 52,56 **** if(isset($savecfg)) { $tosave = Array(); ! $saveable = Array("start", "reihen", "spalten", "skin", "fenster", "seitenlinks", "FensterModus", "mode", "album", "wiw", "ppt_color", "PosX", "PosY", "SizeX", "SizeY", "CPX", "CPY", "CSX", "CSY"); foreach($saveable as $tmp) { if(isset($$tmp)) $tosave[$tmp] = $$tmp; --- 52,56 ---- if(isset($savecfg)) { $tosave = Array(); ! $saveable = Array("start", "reihen", "spalten", "skin", "fenster", "seitenlinks", "FensterModus", "mode", "album", "wiw", "ppt_color", "PosX", "PosY", "SizeX", "SizeY", "CPX", "CPY", "CSX", "CSY", "TabMode"); foreach($saveable as $tmp) { if(isset($$tmp)) $tosave[$tmp] = $$tmp; *************** *** 69,73 **** $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu(); $KOPFCONTENT .= "<span class=header1>$Headline</span><br>"; $KOPFCONTENT .= close_pictsheader(); --- 69,73 ---- $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu().TabMode(); $KOPFCONTENT .= "<span class=header1>$Headline</span><br>"; $KOPFCONTENT .= close_pictsheader(); *************** *** 91,95 **** $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu(); $KOPFCONTENT .= "<span class=header1>$Headline</span><span class=\"text\"><br></span>"; $KOPFCONTENT .= infozeile()."<span class=\"text\"><br><br></span>"; --- 91,95 ---- $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu().TabMode(); $KOPFCONTENT .= "<span class=header1>$Headline</span><span class=\"text\"><br></span>"; $KOPFCONTENT .= infozeile()."<span class=\"text\"><br><br></span>"; *************** *** 105,109 **** $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu(); $KOPFCONTENT .= "<span class=header1>$Headline</span><br>"; $KOPFCONTENT .= close_pictsheader(); --- 105,109 ---- $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu().TabMode(); $KOPFCONTENT .= "<span class=header1>$Headline</span><br>"; $KOPFCONTENT .= close_pictsheader(); *************** *** 114,118 **** $KOPFCONTENT = ""; ! } else { // Modus 'p' wird der default, falls kein gültiger angegeben wurde $mode = 'p'; // Thumbnailsdarstellung --- 114,118 ---- $KOPFCONTENT = ""; ! } else if($mode=='p') { $mode = 'p'; // Thumbnailsdarstellung *************** *** 123,127 **** $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu(); $KOPFCONTENT .= "<span class=header1>$Headline</span><span class=\"text\"><br></span>"; $KOPFCONTENT .= infozeile()."<span class=\"text\"><br><br></span>"; --- 123,127 ---- $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu().TabMode(); $KOPFCONTENT .= "<span class=header1>$Headline</span><span class=\"text\"><br></span>"; $KOPFCONTENT .= infozeile()."<span class=\"text\"><br><br></span>"; *************** *** 129,145 **** $KOPFCONTENT .= blaettern()."<span class=\"text\"><br><br></span>"; $KOPFCONTENT .= close_pictsheader(); ! /* ! // hier kannst Du mal die Wirkung ohne erbrochene Perlen testen ;) ! // wenn Du in deinem Browser mal die Eigenschaft ! // edit -> preferences -> appearence -> fonts -> Size (pixels) auf irgendwas wie 56 stellst!! ! // das ist der gleiche Effekt wie beim IE 5.x und drunter und NN4 die Möglichkeit Schriftansicht klein mittel etc. ! $KOPFCONTENT = start_pictsheader(); ! $KOPFCONTENT .= modimenu(); ! $KOPFCONTENT .= "<span class=header1>$Headline</span><br>"; ! $KOPFCONTENT .= infozeile()."<br><br>"; ! $KOPFCONTENT .= seitenzahlen()."<br>"; ! $KOPFCONTENT .= blaettern()."<br><br>"; ! $KOPFCONTENT .= close_pictsheader(); ! */ } --- 129,148 ---- $KOPFCONTENT .= blaettern()."<span class=\"text\"><br><br></span>"; $KOPFCONTENT .= close_pictsheader(); ! ! } else if($mode=='f') { ! // firstStart, es ist kein TabMode gesetzt! ! $myskin = $skin; ! $skin = "_Standard"; ! $BODYCONTENT = footer(); ! ! $KOPFCONTENT = firstStart(); ! ! } else { // Als neues Default nehmen wir firstStart ! // firstStart, es ist kein TabMode gesetzt! ! $myskin = $skin; ! $skin = "_Standard"; ! $BODYCONTENT = footer(); ! ! $KOPFCONTENT = firstStart(); } *************** *** 176,179 **** --- 179,202 ---- // + function firstStart() { + + global $PHP_SELF, $skin, $start; + + $picpath = "needed/cfg1/"; + $gb = "f"; + + $SUBCONTENT = "<span class=\"header1\"><br><br>Die First-Start-Seite<br><br></span>"; + $SUBCONTENT .= "<span class=\"text2\">Hier kommt eine Begruessung hin, und die Frage nach dem eingestellten TabModus<br><br>Das wird aber erst richtig funktionieren, wenn die Moeglichkeit geschaffen ist, einzelne Werte ins Cookie zu speichern. Bis dahin muss man mit diesem holprigen <a href=\"$PHP_SELF?start=$start&mode=c&gb=$gb&TabMode=nix\">WorkAround</a> vorlieb nehmen!<br><br><br></span>"; + + $firstStartTable = "<span class=text><br><br></span>\r\n"; + $firstStartTable .= maintable_start($picpath); + $firstStartTable .= maintable_spacer($picpath); + $firstStartTable .= maintable_value($picpath,$SUBCONTENT); + $firstStartTable .= maintable_spacer($picpath); + $firstStartTable .= maintable_close($picpath); + + return $firstStartTable ; + } + function infozeile() { *************** *** 232,235 **** --- 255,262 ---- // $cell 1-3 = Inhalt der Zellen 1- 3 (Also Selects Inputs Buttons etc) + $SUBCONTENT .= add_subtableval('',$picpath,"","Ihr Browser","","",""); + $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); + get_cfg_TabMode($picpath); + $SUBCONTENT .= add_subtableval('',$picpath,"","Das Hauptfenster","","",""); $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); *************** *** 271,274 **** --- 298,303 ---- global $hidden_cfg, $SUBCONTENT, $start, $album, $gb, $savecfg, $SCRIPT_NAME; + + if ($gb == 'f') $gb = 'p'; $output = "<table width=\"448\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n"; *************** *** 287,290 **** --- 316,342 ---- $SUBCONTENT .= $output; } + + function get_cfg_TabMode($picpath) { + // Anzeige Fenster wählen, 0=autoPopUp, 1=wiw, 2=indiPopUp + + global $hidden_cfg, $SUBCONTENT, $TabMode; + + if($TabMode=='0') { + $cell1 = "Aus <input id=\"TabMode1\" type=\"radio\" name=\"TabMode\" checked value=\"0\">\r\n"; + } else { + $cell1 = "Aus <input id=\"TabMode1\" type=\"radio\" name=\"TabMode\" value=\"0\">\r\n"; + } + + if($TabMode=='1') { + $cell2 = "Ein <input id=\"TabMode2\" type=\"radio\" name=\"TabMode\" checked value=\"1\">\r\n"; + } else { + $cell2 = "Ein <input id=\"TabMode2\" type=\"radio\" name=\"TabMode\" value=\"1\">\r\n"; + } + + $SUBCONTENT .= add_subtableval('',$picpath,"","Browser TabMode ".quickhelp('TabMode'),$cell1,$cell2," "); + $SUBCONTENT .= add_subtableval('',$picpath,"","","","",""); + + } + function get_cfg_wiw($picpath) { Index: designfunctions.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/designfunctions.inc.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** designfunctions.inc.php 18 May 2002 23:26:32 -0000 1.10 --- designfunctions.inc.php 19 May 2002 12:24:08 -0000 1.11 *************** *** 20,24 **** function quickhelp($chapter) { ! global $skin,$myskin; if (!isSet($myskin)) $myskin = $skin; $URL = "quickhelp.php?c=$chapter&skin=$myskin"; --- 20,24 ---- function quickhelp($chapter) { ! global $skin,$myskin,$TabMode; if (!isSet($myskin)) $myskin = $skin; $URL = "quickhelp.php?c=$chapter&skin=$myskin"; *************** *** 26,33 **** } // Erzeugt die Blättern-Links (und die Rel-Links, wenn die Browserunterstützung dafür vorhanden ist) function blaettern($inhead = false) { ! global $album,$PHP_SELF,$start,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$mode,$erste_seite,$letzte_seite,$seite_zurueck,$seite_vor,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; $prev_start = $start - $bilder_pro_seite; --- 26,80 ---- } + // listet Unterverzeichnisse in $alben_dir auf + function TabMode() { + + global $savecfg, $TabMode, $PHP_SELF,$start,$mode,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$alben_dir,$album,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; + + $availTabMode = "<span class=\"text\"><form name=\"TabMode\" action=\"$PHP_SELF\" method=\"get\">\r\n"; + + // alle wichtigen Values per hiddenfields mitsenden + $availTabMode .= "<input type=\"hidden\" name=\"start\" value=\"0\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"mode\" value=\"".htmlentities($mode)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"reihen\" value=\"".htmlentities($reihen)."\"\n>"; + $availTabMode .= "<input type=\"hidden\" name=\"spalten\" value=\"".htmlentities($spalten)."\"\n>"; + $availTabMode .= "<input type=\"hidden\" name=\"skin\" value=\"".htmlentities($skin)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"fenster\" value=\"".htmlentities($fenster)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"FensterModus\" value=\"".htmlentities($FensterModus)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"seitenlinks\" value=\"".htmlentities($seitenlinks)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"wiw\" value=\"".htmlentities($wiw)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"ppt_color\" value=\"".htmlentities($ppt_color)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"PosX\" value=\"".htmlentities($PosX)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"PosY\" value=\"".htmlentities($PosY)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"SizeX\" value=\"".htmlentities($SizeX)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"SizeY\" value=\"".htmlentities($SizeY)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"CPX\" value=\"".htmlentities($CPX)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"CPY\" value=\"".htmlentities($CPY)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"CSX\" value=\"".htmlentities($CSX)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"CSY\" value=\"".htmlentities($CSY)."\">\n"; + $availTabMode .= "<input type=\"hidden\" name=\"savecfg\" value=\"1\">\n"; + + $availTabMode .= "<span class=\"footer\">TabModus: "; + if($TabMode=='0') { + $availTabMode .= "Aus<input id=\"TabMode1\" type=\"radio\" name=\"TabMode\" checked value=\"0\" onChange=\"javascript:document.TabMode.submit(this.form)\"> \r\n"; + } else { + $availTabMode .= "Aus<input id=\"TabMode1\" type=\"radio\" name=\"TabMode\" value=\"0\" onChange=\"javascript:document.TabMode.submit(this.form)\"> \r\n"; + } + + if($TabMode=='1') { + $availTabMode .= " Ein<input id=\"TabMode2\" type=\"radio\" name=\"TabMode\" checked value=\"1\" onChange=\"javascript:document.TabMode.submit(this.form)\">\r\n"; + } else { + $availTabMode .= " Ein<input id=\"TabMode2\" type=\"radio\" name=\"TabMode\" value=\"1\" onChange=\"javascript:document.TabMode.submit(this.form)\">\r\n"; + } + + $availTabMode .= "</span>\r\n</form></span>\r\n"; + + return $availTabMode; + } + + // Erzeugt die Blättern-Links (und die Rel-Links, wenn die Browserunterstützung dafür vorhanden ist) function blaettern($inhead = false) { ! global $TabMode,$album,$PHP_SELF,$start,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$mode,$erste_seite,$letzte_seite,$seite_zurueck,$seite_vor,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; $prev_start = $start - $bilder_pro_seite; *************** *** 39,46 **** } ! $n = basename($PHP_SELF)."?start=$next_start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY"; ! $v = basename($PHP_SELF)."?start=$prev_start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY"; ! $e = basename($PHP_SELF)."?start=$first_start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY"; ! $l = basename($PHP_SELF)."?start=$last_start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY"; $L1a = "<span class=marker>|<</span><a href=\"".htmlentities($e)."\">".htmlentities($erste_seite)."</a>"; $L1b = "<span class=a_inactive>|<".htmlentities($erste_seite)."</span>"; --- 86,93 ---- } ! $n = basename($PHP_SELF)."?start=$next_start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode"; ! $v = basename($PHP_SELF)."?start=$prev_start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode"; ! $e = basename($PHP_SELF)."?start=$first_start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode"; ! $l = basename($PHP_SELF)."?start=$last_start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode"; $L1a = "<span class=marker>|<</span><a href=\"".htmlentities($e)."\">".htmlentities($erste_seite)."</a>"; $L1b = "<span class=a_inactive>|<".htmlentities($erste_seite)."</span>"; *************** *** 89,93 **** function seitenzahlen() { ! global $album,$PHP_SELF,$start,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$mode,$Seiten,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; $Seiten = ceil($photos_gesamt / $bilder_pro_seite); --- 136,140 ---- function seitenzahlen() { ! global $TabMode,$album,$PHP_SELF,$start,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$mode,$Seiten,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; $Seiten = ceil($photos_gesamt / $bilder_pro_seite); *************** *** 101,106 **** } ! $forwLink = "<span class=marker> »</span><a href=\"".basename($PHP_SELF)."?".htmlentities("start=".($bilder_pro_seite * $seitenlinks * ($ZeilenPosition))."&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY")."\">...</a>"; ! $backLink = "<a href=\"".basename($PHP_SELF)."?".htmlentities("start=".(($bilder_pro_seite * $seitenlinks * ($ZeilenPosition -1)) -$bilder_pro_seite)."&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY")."\">...</a><span class=marker>« </span>"; $Zeilen_i = 0; --- 148,153 ---- } ! $forwLink = "<span class=marker> »</span><a href=\"".basename($PHP_SELF)."?".htmlentities("start=".($bilder_pro_seite * $seitenlinks * ($ZeilenPosition))."&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode")."\">...</a>"; ! $backLink = "<a href=\"".basename($PHP_SELF)."?".htmlentities("start=".(($bilder_pro_seite * $seitenlinks * ($ZeilenPosition -1)) -$bilder_pro_seite)."&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode")."\">...</a><span class=marker>« </span>"; $Zeilen_i = 0; *************** *** 116,120 **** $Link = "<span class=marker> »</span><span class=dieseSeite>".((int)$page)."</span><span class=marker>« </span>"; } else { ! $Link = "<span class=marker> »</span><a href=\"".basename($PHP_SELF)."?".htmlentities("start=$Pagestart&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY")."\">".((int)$page)."</a><span class=marker>« </span>"; } $PageLinks .= $Link."\n"; --- 163,167 ---- $Link = "<span class=marker> »</span><span class=dieseSeite>".((int)$page)."</span><span class=marker>« </span>"; } else { ! $Link = "<span class=marker> »</span><a href=\"".basename($PHP_SELF)."?".htmlentities("start=$Pagestart&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode")."\">".((int)$page)."</a><span class=marker>« </span>"; } $PageLinks .= $Link."\n"; *************** *** 134,138 **** function alben($inmodimenu) { ! global $PHP_SELF,$start,$mode,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$alben_dir,$album,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; if ($inmodimenu == 1) { --- 181,185 ---- function alben($inmodimenu) { ! global $TabMode,$PHP_SELF,$start,$mode,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$alben_dir,$album,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; if ($inmodimenu == 1) { *************** *** 160,163 **** --- 207,211 ---- $availalben .= "<input type=\"hidden\" name=\"CSX\" value=\"".htmlentities($CSX)."\">\n"; $availalben .= "<input type=\"hidden\" name=\"CSY\" value=\"".htmlentities($CSY)."\">\n"; + $availalben .= "<input type=\"hidden\" name=\"TabMode\" value=\"".htmlentities($TabMode)."\">\n"; // Start verfuegbare Alben einlesen! *************** *** 190,198 **** function modimenu($inhead = false) { ! global $PHP_SELF,$start,$mode,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$alben_dir,$album,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; if($inhead) { ! echo '<link rel="search" title="Suchen" href="'.basename($PHP_SELF)."?".htmlentities("start=$start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=s&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY").'">'; ! echo '<link rel="help" title="Infos - Hilfe" href="'.basename($PHP_SELF)."?".htmlentities("start=$start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=h&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY").'">'; } $modi = alben("1"); --- 238,246 ---- function modimenu($inhead = false) { ! global $TabMode,$PHP_SELF,$start,$mode,$bilder_pro_seite,$photos_gesamt,$seitenlinks,$reihen,$spalten,$skin,$fenster,$FensterModus,$alben_dir,$album,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; if($inhead) { ! echo '<link rel="search" title="Suchen" href="'.basename($PHP_SELF)."?".htmlentities("start=$start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=s&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode").'">'; ! echo '<link rel="help" title="Infos - Hilfe" href="'.basename($PHP_SELF)."?".htmlentities("start=$start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=h&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode").'">'; } $modi = alben("1"); *************** *** 213,217 **** $ml = "<span class=footer> [</span><span class=text>".htmlentities($modilink)."</span><span class=footer>] </span>"; } else { ! $ml = "<span class=footer> [</span><a href=\"".basename($PHP_SELF)."?".htmlentities("start=$start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$value&gb=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY")."\">".htmlentities($modilink)."</a><span class=footer>] </span>"; } } else { --- 261,265 ---- $ml = "<span class=footer> [</span><span class=text>".htmlentities($modilink)."</span><span class=footer>] </span>"; } else { ! $ml = "<span class=footer> [</span><a href=\"".basename($PHP_SELF)."?".htmlentities("start=$start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$value&gb=$mode&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode")."\">".htmlentities($modilink)."</a><span class=footer>] </span>"; } } else { *************** *** 219,223 **** $ml = "<span class=footer> [</span><span class=text>".htmlentities($modilink)."</span><span class=footer>] </span>"; } else { ! $ml = "<span class=footer> [</span><a href=\"".basename($PHP_SELF)."?".htmlentities("start=$start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$value&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY")."\">".htmlentities($modilink)."</a><span class=footer>] </span>"; } } --- 267,271 ---- $ml = "<span class=footer> [</span><span class=text>".htmlentities($modilink)."</span><span class=footer>] </span>"; } else { ! $ml = "<span class=footer> [</span><a href=\"".basename($PHP_SELF)."?".htmlentities("start=$start&reihen=$reihen&spalten=$spalten&skin=$skin&fenster=$fenster&seitenlinks=$seitenlinks&FensterModus=$FensterModus&mode=$value&album=$album&wiw=$wiw&ppt_color=$ppt_color&PosX=$PosX&PosY=$PosY&SizeX=$SizeX&SizeY=$SizeY&CPX=$CPX&CPY=$CPY&CSX=$CSX&CSY=$CSY&TabMode=$TabMode")."\">".htmlentities($modilink)."</a><span class=footer>] </span>"; } } *************** *** 233,237 **** ob_implicit_flush(0); ! global $album,$PHP_SELF,$start,$mode,$netpbm,$PS,$bilder_dir,$dateitypen,$thumbnail_dir,$thumbx,$thumby,$temp_dir,$skin_dir,$skin,$photos,$photos_gesamt,$reihen,$spalten,$bilder_pro_seite,$Seiten,$passepartout,$plushoehe,$plusbreite,$seitenlinks,$skin,$fenster,$FensterModus,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; // beinhaltet das Array mit allen gefundenen Bilddateien im Bilderverzeichnis --- 281,285 ---- ob_implicit_flush(0); ! global $TabMode,$album,$PHP_SELF,$start,$mode,$netpbm,$PS,$bilder_dir,$dateitypen,$thumbnail_dir,$thumbx,$thumby,$temp_dir,$skin_dir,$skin,$photos,$photos_gesamt,$reihen,$spalten,$bilder_pro_seite,$Seiten,$passepartout,$plushoehe,$plusbreite,$seitenlinks,$skin,$fenster,$FensterModus,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; // beinhaltet das Array mit allen gefundenen Bilddateien im Bilderverzeichnis *************** *** 285,290 **** $printThumb = "<img src=\"".htmlentities(ru($thumbnail))."\" ".$thumb_size[3]." border=\"1\" $imgtaginfo>"; } ! //#NEU!#-01.05.- javascript:photo_open(URL,NAME,a1,b1,plusbreite,plushoehe,passepartout,fenster,FensterModus,album,wiw,ppt_color) ! $printLink = "<a href=\"".htmlentities("javascript:photo_open('?photo=".addslashes($photos[$i])."','fotofenster',$image_size[0],$image_size[1],$plusbreite,$plushoehe,$passepartout,'$fenster',$FensterModus,'".addslashes($album)."','$wiw','$skin',$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY);")."\">\n".$printThumb."</a>"; If (strlen($photos[$i])>20) { $zeigedateiname = substr($photos[$i],0,17)."..."; --- 333,338 ---- $printThumb = "<img src=\"".htmlentities(ru($thumbnail))."\" ".$thumb_size[3]." border=\"1\" $imgtaginfo>"; } ! // 19.05. #NEU!# javascript:photo_open(URL,NAME,a1,b1,plusbreite,plushoehe,passepartout,fenster,FensterModus,album,wiw,ppt_color,PosX,PosY,SizeX,SizeY,CPX,CPY,CSX,CSY,TabMode) ! $printLink = "<a href=\"".htmlentities("javascript:photo_open('?photo=".addslashes($photos[$i])."','fotofenster',$image_size[0],$image_size[1],$plusbreite,$plushoehe,$passepartout,'$fenster',$FensterModus,'".addslashes($album)."','$wiw','$skin',$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY,$TabMode);")."\">\n".$printThumb."</a>"; If (strlen($photos[$i])>20) { $zeigedateiname = substr($photos[$i],0,17)."..."; *************** *** 314,318 **** function nothumbs() { ! global $filesize_gesamt,$album,$PHP_SELF,$start,$mode,$netpbm,$PS,$bilder_dir,$dateitypen,$thumbnail_dir,$thumbx,$thumby,$temp_dir,$skin_dir,$skin,$photos,$photos_gesamt,$reihen,$spalten,$bilder_pro_seite,$Seiten,$passepartout,$plushoehe,$plusbreite,$seitenlinks,$skin,$fenster,$FensterModus,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; // beinhaltet das Array mit allen gefundenen Bilddateien im Bilderverzeichnis --- 362,366 ---- function nothumbs() { ! global $TabMode,$filesize_gesamt,$album,$PHP_SELF,$start,$mode,$netpbm,$PS,$bilder_dir,$dateitypen,$thumbnail_dir,$thumbx,$thumby,$temp_dir,$skin_dir,$skin,$photos,$photos_gesamt,$reihen,$spalten,$bilder_pro_seite,$Seiten,$passepartout,$plushoehe,$plusbreite,$seitenlinks,$skin,$fenster,$FensterModus,$wiw,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY; // beinhaltet das Array mit allen gefundenen Bilddateien im Bilderverzeichnis *************** *** 343,357 **** //echo "$ar1color $ar2color"; ! foreach($photos as $text) { $i++; // die Groessee und andere Infos zum Bild ermitteln ! $image_size = getimagesize($bilder_dir.$text); ! $file_size = filesize($bilder_dir.$text); ! $file_name = "<a href=\"".htmlentities(ru(dir_concat($bilder_dir,$text)))."\" target=\"_blank\" TITLE=\"Nur Bild in neues Fenster!\r\nZum anzeigen des Bildes gemaess den Viewer-Einstellungen bitte auf [show] klicken!\"><span class=\"text2\">".htmlentities(basename($text))."</span></a>"; ! $file_date = date("d.m.Y - G:i",filemtime(tr($bilder_dir.$text))); $Bildmasse = "<".$image_size[0]." x ".$image_size[1].">"; ! $TITLE = "TITLE=\"$text - zum anzeigen klicken!\r\nUm die nackte Bilddatei in den Browser zu laden, klicken Sie bitte auf den Dateinamen!\""; ! $link = "<a $TITLE href=\"".htmlentities("javascript:photo_open('?photo=".addslashes($text)."','fotofenster',$image_size[0],$image_size[1],$plusbreite,$plushoehe,$passepartout,'$fenster',$FensterModus,'".addslashes($album)."','$wiw','$skin',$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY);")."\">[show]</a>"; ! $zipdown = save_link($text,$album); if($i < 10) $leadingzero = '00'; --- 391,405 ---- //echo "$ar1color $ar2color"; ! foreach($photos as $bild) { $i++; // die Groessee und andere Infos zum Bild ermitteln ! $image_size = getimagesize($bilder_dir.$bild); ! $file_size = filesize($bilder_dir.$bild); ! $file_name = "<a href=\"".htmlentities(ru(dir_concat($bilder_dir,$bild)))."\" target=\"_blank\" TITLE=\"Nur Bild in neues Fenster!\r\nZum anzeigen des Bildes gemaess den Viewer-Einstellungen bitte auf [show] klicken!\"><span class=\"text2\">".htmlentities(basename($bild))."</span></a>"; ! $file_date = date("d.m.Y - G:i",filemtime(tr($bilder_dir.$bild))); $Bildmasse = "<".$image_size[0]." x ".$image_size[1].">"; ! $TITLE = "TITLE=\"$bild - zum anzeigen klicken!\r\nUm die nackte Bilddatei in den Browser zu laden, klicken Sie bitte auf den Dateinamen!\""; ! $link = "<a $TITLE href=\"".htmlentities("javascript:photo_open('?photo=".addslashes($bild)."','fotofenster',$image_size[0],$image_size[1],$plusbreite,$plushoehe,$passepartout,'$fenster',$FensterModus,'".addslashes($album)."','$wiw','$skin',$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY,$ppt_color,$PosX,$PosY,$SizeX,$SizeY,$CPX,$CPY,$CSX,$CSY,$TabMode);")."\">[show]</a>"; ! $zipdown = save_link($bild,$album); if($i < 10) $leadingzero = '00'; |
From: Horst N. <nog...@us...> - 2002-05-18 23:26:38
|
Update of /cvsroot/pictsinspace/PicTsInSpace In directory usw-pr-cvs1:/tmp/cvs-serv25491 Modified Files: designfunctions.inc.php function.inc.php index.php quickhelp.php Log Message: Clientsniffer-Objekt wird jetzt aus function.in.php gestartet, damit es richtigerweise auch in alle Datein zur Verfügung steht. Das Quickhelpfenster ist im Design jetzt auch für den NN4 angepasst. Index: designfunctions.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/designfunctions.inc.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** designfunctions.inc.php 18 May 2002 19:01:45 -0000 1.9 --- designfunctions.inc.php 18 May 2002 23:26:32 -0000 1.10 *************** *** 413,420 **** } function close_pictsheader($logo = true) { ! $output = "</td>\r\n"; if ($logo) { ! $output .= "<td vAlign=\"top\" align=\"right\" width=\"180\" height=\"150\">\r\n<table width=\"150\" height=\"150\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 2px inset;\">"; ! $output .= "<tr><td vAlign=\"top\" align=\"right\" width=\"150\" height=\"150\"><img src=\"needed/PicTsInSpace_logo_150x150.jpg\" width=\"150\" height=\"150\" alt=\"\" title=\"\"></td>\r\n</tr>\r\n</table>\r\n</td>\r\n"; } $output .= "</tr>\r\n"; --- 413,424 ---- } function close_pictsheader($logo = true) { ! global $NN4; ! $output = "</td>\r\n"; if ($logo) { ! if ($NN4) { ! $output .= "<td vAlign=\"top\" align=\"right\" width=\"180\" height=\"150\"><img src=\"needed/PicTsInSpace_logo_150x150.jpg\" width=\"150\" height=\"150\" border=\"1\" alt=\"\" title=\"\"></td>\r\n"; ! } else { ! $output .= "<td vAlign=\"top\" align=\"right\" width=\"180\" height=\"150\"><img src=\"needed/PicTsInSpace_logo_150x150.jpg\" width=\"150\" height=\"150\" style=\"border: 2px inset;\" alt=\"\" title=\"\"></td>\r\n"; ! } } $output .= "</tr>\r\n"; Index: function.inc.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/function.inc.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** function.inc.php 18 May 2002 19:01:45 -0000 1.26 --- function.inc.php 18 May 2002 23:26:32 -0000 1.27 *************** *** 19,22 **** --- 19,41 ---- check_config(); + // Clientsniffer starten, evtl. mit CookieCheck und LanguageDetection + $client = new phpSniff('',0); + //$client->_check_cookies = 1; + //$client->_default_language = 1; + $client->init(); + // $client gibt ein Array zurück aus dem man u. a. folgende Werte auslesen kann: + // $client->_browser_info[ x ] + // für x gibts: browser || version || maj_ver || min_ver || javascript || platform || language || und noch anderes, gähn + // Werte dazu: ns || 4.75 || 4 || .75 || 1.3 || win || de || + // Werte dazu: ie + // Werte dazu: op + // Da können wir jetzt immer auf dieses Objekt zugreifen, wenn wir was Browserspezifisches entscheiden müßen. + + // hier können wir ein paaar Kurzformen für mehrmalsgebrauchte BrowserTypen definieren: + $NN4 = false; + if ($client->_browser_info["browser"] == "ns" && $client->_browser_info["maj_ver"] == "4") $NN4 = true; + // if ($NN4) echo "Hallo Netscape4, altes Haus!"; + + // Funktion zur Cacheverwaltung, nimmt einen Dateinamen, eine Breite und eine Höhe // Gibt einen Dateinamen unter dem der Thumb registriert wurde Index: index.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/index.php,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** index.php 18 May 2002 19:01:45 -0000 1.60 --- index.php 18 May 2002 23:26:32 -0000 1.61 *************** *** 49,73 **** } - - // Clientsniffer starten, evtl. mit CookieCheck und LanguageDetection - $client = new phpSniff('',0); - //$client->_check_cookies = 1; - //$client->_default_language = 1; - $client->init(); - // $client gibt ein Array zurück aus dem man u. a. folgende Werte auslesen kann: - // $client->_browser_info[ x ] - // für x gibts: browser || version || maj_ver || min_ver || javascript || platform || language || und noch anderes, gähn - // Werte dazu: ns || 4.75 || 4 || .75 || 1.3 || win || de || - // Werte dazu: ie - // Werte dazu: op - // Da können wir jetzt immer auf dieses Objekt zugreifen, wenn wir was Browserspezifisches entscheiden müßen. - - // hier können wir ein paaar Kurzformen für mehrmalsgebrauchte BrowserTypen definieren: - $NN4 = false; - if ($client->_browser_info["browser"] == "ns" && $client->_browser_info["maj_ver"] == "4") $NN4 = true; - // if ($NN4) echo "Hallo Netscape4, altes Haus!"; - - - // Hallo Henryk, wenn Du die Cookiesache neu organisiert, kannst Du vielleicht eine CookieÜberprüfung vom Clientsniffer mit integrieren. if(isset($savecfg)) { --- 49,52 ---- *************** *** 295,299 **** $output = "<table width=\"448\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n"; $output .= "<tr>\r\n"; ! $output .= "<td align=\"center\" valign=\"middle\"><span class=\"footer\">".quickhelp('Konfiguration')." <b>Konfiguration speichern:</b> <input type=\"checkbox\" name=\"savecfg\" value=\"1\"></span></td>\r\n"; $output .= "<td align=\"center\" valign=\"middle\" width=\"20\" height=\"40\"><img src=\"needed/blank.gif\" width=\"20\" height=\"40\"></td>\r\n"; $output .= "<td align=\"center\" valign=\"middle\"><span class=\"footer\"><input type=\"submit\" name=\"\" value=\"Änderungen übernehmen\"></span></td>\r\n"; --- 274,278 ---- $output = "<table width=\"448\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n"; $output .= "<tr>\r\n"; ! $output .= "<td align=\"center\" valign=\"middle\"><span class=\"footer\">".quickhelp('Konfiguration')." </span><span class=\"dieseSeite\"><b>Konfiguration speichern:</b></span><span class=\"footer\"> <input type=\"checkbox\" name=\"savecfg\" value=\"1\"></span></td>\r\n"; $output .= "<td align=\"center\" valign=\"middle\" width=\"20\" height=\"40\"><img src=\"needed/blank.gif\" width=\"20\" height=\"40\"></td>\r\n"; $output .= "<td align=\"center\" valign=\"middle\"><span class=\"footer\"><input type=\"submit\" name=\"\" value=\"Änderungen übernehmen\"></span></td>\r\n"; Index: quickhelp.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/quickhelp.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** quickhelp.php 18 May 2002 19:01:45 -0000 1.4 --- quickhelp.php 18 May 2002 23:26:32 -0000 1.5 *************** *** 19,67 **** ?> - <style type="text/css"> - <!-- - table.h100proz { - Width: 100%; - Height: 100%; - border: 0; - } - --> - </style> - </head> ! <body bgcolor="<?php wp(get_skin("bgcolor"));?>" text="<?php wp(get_skin("color"));?>" link="<?php wp(get_skin("link"));?>" alink="<?php wp(get_skin("link"));?>" vlink="<?php wp(get_skin("link"));?>" <?php echo get_skin("background_html");?> leftmargin="5" topmargin="5" marginwidth="0" marginheight="0"> <?PHP echo start_pictsheader();?> ! <table width="100%"> ! <tr> ! <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr align="left" valign="top" background="needed/quickhelp_bg.gif"> ! <td colspan="3" background="needed/quickhelp_bg.gif"><table width="100%" height="45" cellpadding="0" cellspacing="0" style="border: 1px inset;"><tr><td><img src="needed/quickhelpheader.jpg" width="215" height="45"></td> ! <td align="right" valign="middle" class="footer"><img src="needed/transpic_32x32.gif" width="32" height="32" border="0"> </td></tr></table></td> ! </tr> ! <tr> ! <td colspan="3" height="10"><img src="needed/blank.gif" width="20" height="10" border="0"></td> ! </tr> ! <tr> ! <td class="footer"> </td> ! <td class="footer"> </td> ! <td class="footer" align="right" valign="middle"><a href="quickhelp.php?c=chapterList<?PHP echo $MyCoords;?>">Übersicht</a></td> ! </tr> ! <tr> ! <td colspan="3" height="12"><img src="needed/blank.gif" width="20" height="12" border="0"></td> ! </tr> ! </table></td> ! </tr> ! <tr> ! <td class="headerQH"><?PHP echo $KOPF;?><br><br></td> ! </tr> ! <tr> ! <td class="text3"><?PHP if ($c == 'chapterList') chapterList(); else echo $MSG;?></td> ! </tr> ! <tr> ! <td class="footer"><?PHP echo footer();?></td> ! </tr> ! </table> <?PHP --- 19,65 ---- ?> </head> ! <body bgcolor="<?php wp(get_skin("bgcolor"));?>" text="<?php wp(get_skin("color"));?>" link="<?php wp(get_skin("link"));?>" alink="<?php wp(get_skin("link"));?>" vlink="<?php wp(get_skin("link"));?>" <?php echo get_skin("background_html");?> leftmargin="0" topmargin="0" marginwidth="10" marginheight="0"> <?PHP echo start_pictsheader();?> ! <?PHP if ($NN4) { ?> ! <table width="100%" border="1" cellspacing="0" cellpadding="0"> ! <?PHP } else { ?> ! <table width="100%" style="border: <?php wp(get_skin("color2"));?> 1px inset;" cellspacing="0" cellpadding="0"> ! <?PHP } ?> ! <tr> ! <td background="needed/quickhelp_bg.gif"><table width="100%" align="left" cellpadding="0" cellspacing="0"> ! <tr> ! <td align="left"><img src="needed/quickhelpheader.jpg" width="215" height="45"></td> ! <td align="right" valign="middle" class="footer"><img src="needed/transpic_32x32.gif" width="32" height="32" border="0"> </td> ! </tr> ! </table></td> ! </tr> ! </table> ! <table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td colspan="3" height="10"><img src="needed/blank.gif" width="20" height="10" border="0"></td> ! </tr> ! <tr> ! <td width="33%" class="footer"> </td> ! <td width="33%" class="footer"> </td> ! <td width="34%" class="footer" align="right" valign="middle"><a href="quickhelp.php?c=chapterList<?PHP echo $MyCoords;?>">Übersicht</a> </td> ! </tr> ! <tr> ! <td colspan="3" height="12"><img src="needed/blank.gif" width="20" height="12" border="0"></td> ! </tr> ! </table> ! <table width="100%" border="0" cellspacing="10" cellpadding="0"> ! <tr> ! <td class="headerQH"><?PHP echo $KOPF;?><br><br></td> ! </tr> ! <tr> ! <td class="text3"><?PHP if ($c == 'chapterList') chapterList(); else echo $MSG;?></td> ! </tr> ! <tr> ! <td align="middle" class="footer"><?PHP echo footer();?></td> ! </tr> ! </table> <?PHP |
From: Horst N. <nog...@us...> - 2002-05-18 19:37:07
|
Update of /cvsroot/pictsinspace/PicTsInSpace/thirdparty In directory usw-pr-cvs1:/tmp/cvs-serv27852/thirdparty Modified Files: class.color.php Log Message: x Index: class.color.php =================================================================== RCS file: /cvsroot/pictsinspace/PicTsInSpace/thirdparty/class.color.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** class.color.php 17 May 2002 23:51:01 -0000 1.1 --- class.color.php 18 May 2002 19:37:05 -0000 1.2 *************** *** 17,21 **** // // $Id$ - /** * Color --- 17,20 ---- *************** *** 501,506 **** } // }}} - - /* * Local variables: --- 500,503 ---- *************** *** 509,512 **** * End: */ ! ! ?> --- 506,508 ---- * End: */ ! ?> \ No newline at end of file |
From: Horst N. <nog...@us...> - 2002-05-18 19:35:34
|
Update of /cvsroot/pictsinspace/PicTsInSpace/thirdparty/original_packages_and_infos/phpsniff In directory usw-pr-cvs1:/tmp/cvs-serv27211/thirdparty/original_packages_and_infos/phpsniff Added Files: index.php phpSniff.core.php phpTimer.class.php user_agent.inc Log Message: x --- NEW FILE: index.php --- <?php /******************************************************************************* phpSniff: HTTP_USER_AGENT Client Sniffer for PHP Copyright (C) 2001 Roger Raymond ~ eps...@us... This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *******************************************************************************/ if(!defined('_PHP_SNIFF_INCLUDED')) include('phpSniff.class.php'); if(!defined('_PHP_TIMER_INCLUDED')) include('phpTimer.class.php'); // initialize some vars if(!isset($UA)) $UA = ''; if(!isset($cc)) $cc = ''; if(!isset($dl)) $dl = ''; if(!isset($am)) $am = ''; $timer = new phpTimer(); $timer->start('main'); $timer->start('client1'); $client = new phpSniff($UA,0); if($cc) $client->_check_cookies = $cc; if($dl) $client->_default_language = $dl; if($am) $client->_allow_masquerading = $am; $client->init(); $timer->stop('client1'); $c1_bg = '#cccccc'; $c2_bg = '#ffffff'; $c3_bg = '#000000'; function makeSelectOption ($link,$text) { global $client; $o = "<option value=\"$link\""; $o .= $client->property('ua') == strtolower($link) ? ' selected' : ''; $o .= ">$text</option>"; print $o; } function example ($search,$output) { global $c2_bg, $c1_bg, $client; ?> <tr> <td bgcolor="<?php print $c1_bg; ?>"><?php print $search; ?></td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $output ? 'true' : 'false'; ?></td> </tr> <?php } function is ($search) { global $client; example($search,$client->is($search)); } function language_is ($search) { global $client; example($search,$client->language_is($search)); } function browser_is ($search) { global $client; example($search,$client->browser_is($search)); } ?> <html> <head><title>phpSniff <?php print $client->_version; ?> on SourceForge</title></head> <body> <?php // fix for cgi versions of php ~ 6/28/2001 ~ RR $script_path = getenv('PATH_INFO') ? getenv('PATH_INFO') : getenv('SCRIPT_NAME'); ?> <form name="user_agent_string" method="get" action="<?php print $script_path; ?>"> <p><a href="http://sourceforge.net/project/showfiles.php?group_id=26044">Download</a> | <a href="http://sourceforge.net/projects/phpsniff/">SourceForge Project Page</a> | <a href="index.phps">Index Source Code</a> | <a href="phpSniff.core.phps">phpSniff.core Source Code</a> | <a href="phpSniff.class.phps">phpSniff.class Source Code</a> | <a href="CHANGES">CHANGE LOG</a> </p> <table border="0" cellpadding="3" cellspacing="0" bgcolor="<?php print $c3_bg; ?>" width="100%"> <tr> <td align="left" valign="top"> <font color="#ffffff"><b>CURRENT BROWSER INFORMATION</b></font><br> <font color="#ffffff" size="-1"> <?php printf('phpSniff version : %s - php version : %s</font>',$client->_version, PHP_VERSION); ?> </font> </td> <td align="right" valign="top"> <font color="#ffffff"> <select name="UA"> <?php makeSelectOption('','Your current browser'); include('user_agent.inc'); while(list(,$v) = each($user_agent)) { makeSelectOption($v,$v); } ?> </select><br> <input type="checkbox" name="cc" <?php if($client->_check_cookies) print 'checked'; ?> > Check For Cookies <input type="checkbox" name="am" <?php if($client->_allow_masquerading) print 'checked'; ?> > Allow Masquerading <input type="text" name="dl" size="7" value="<?php print $client->_default_language; ?>"> Default Language <input type="submit" name="submit" value="submit"> </font> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="<?php print $c3_bg; ?>"><tr> <td align="right" valign="top"> <table border="0" cellpadding="3" cellspacing="1" width="100%"> <tr><td colspan="2" nowrap><font color="#ffcc00">Current Configuration</font></td></tr> <tr> <td colspan="2"bgcolor="<?php print $c1_bg; ?>"><b>regex used to search HTTP_USER_AGENT string</b><br> preg_match_all("<?php print $client->_browser_regex; ?>");</td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">$_check_cookies</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->_check_cookies ? 'true' : 'false'; ?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">$_default_language</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->_default_language; ?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">$_allow_masquerading</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->_allow_masquerading ? 'true' : 'false'; ?></td> </tr> <tr><td colspan="2" nowrap><font color="#ffcc00">$client->property(<i>property_name</i>);</font></td></tr> <tr> <td bgcolor="<?php print $c1_bg; ?>"><b>property_name</b></td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><b>return value</b></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">ua</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->get_property('ua');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">browser</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('browser'); ?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">long_name</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('long_name');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">version</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('version');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">maj_ver</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('maj_ver');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">min_ver</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('min_ver');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">letter_ver</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('letter_ver');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">javascript</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('javascript');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">platform</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('platform');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">os</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('os');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">cookies</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('cookies') ? 'true' : 'false';?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">ip</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('ip');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">language</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('language');?></td> </tr> <tr> <td bgcolor="<?php print $c1_bg; ?>">gecko</td> <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('gecko');?></td> </tr> </table> </td> <td align="left" valign="top"> <table border="0" cellpadding="3" cellspacing="1" width="100%"> <tr><td colspan="2" nowrap><font color="#ffcc00"> </font></td></tr> <tr> <td bgcolor="<?php print $c1_bg; ?>" nowrap><b>search_phrase</b></td> <td width="100%" bgcolor="<?php print $c2_bg; ?>" nowrap><b>return boolean</b></td> </tr> <tr> <td bgcolor="<?php print $c3_bg; ?>" colspan="2" nowrap><font color="#ffcc00">$client->browser_is(<i>browser</i>)</font></td> </tr> <?php browser_is('aol'); browser_is('webtv'); browser_is('ie'); browser_is('ie5.5'); browser_is('ie5up'); browser_is('ns'); browser_is('ns5up'); browser_is('op5up'); browser_is('ow4'); ?> <tr> <td bgcolor="<?php print $c3_bg; ?>" colspan="2" nowrap><font color="#ffcc00">$client->language_is(<i>language</i>)</font></td> </tr> <?php language_is('en'); language_is('en-us'); language_is('monkey-us'); language_is('fr-ca'); language_is('cz'); ?> <tr> <tr> <td bgcolor="<?php print $c3_bg; ?>" colspan="2" nowrap><font color="#ffcc00">$client->is(<i>search</i>)</font></td> </tr> <?php is('b:ie6up'); is('b:ns5up'); is('l:en'); is('l:fr-ca'); ?> <tr> </table> </td></tr></table> </form> <p> <?php $timer->stop('main'); printf("<pre>\n". "client instantiation time : %s\n" . "page execution time : %s\n" . "</pre>" , $timer->get_current('client1'), $timer->get_current('main')); ?> </p> <?php print ('<p align="left"><font size="-2">_______________________________<br>'); print ('©2001 asphyxia fabrications<br></font></p>'); ?> <A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=26044" width="88" height="31" border="0" alt="SourceForge Logo"></A> </body> </html> --- NEW FILE: phpSniff.core.php --- <?php /******************************************************************************* phpSniff: HTTP_USER_AGENT Client Sniffer for PHP Copyright (C) 2001 Roger Raymond ~ eps...@us... This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *******************************************************************************/ if(!defined('_PHP_SNIFF_CORE_INCLUDED')) define('_PHP_SNIFF_CORE_INCLUDED',1); /** * phpSniff_core * here sits the core functionality for the client sniffer * * @author Roger Raymond * @created 2001.05.19 * @modified 2001.12.21 **/ class phpSniff_core { // initialize some vars var $_browser_info = array( 'ua' => '', 'browser' => 'Unknown', 'version' => 0, 'maj_ver' => 0, 'min_ver' => 0, 'letter_ver' => '', 'javascript' => '0.0', 'platform' => 'Unknown', 'os' => 'Unknown', 'ip' => 'Unknown', 'cookies' => 0, 'language' => '', 'long_name' => '', 'gecko' => ''); var $_get_languages_ran_once = false; var $_browser_search_regex = '([a-z]+)([0-9]*)([\.0-9]*)(up)?'; var $_language_search_regex = '([a-z-]{2,})'; /** * init * this method starts the madness **/ function init () { // run the cookie check routine first // [note: method only runs if allowed] $this->_test_cookies(); // rip the user agent to pieces $this->_get_browser_info(); // look for other languages $this->_get_languages(); // establish the operating platform $this->_get_os_info(); // determine javascript version $this->_get_javascript(); // collect the ip $this->_get_ip(); // gecko build $this->_get_gecko(); } /** * property * @param $p property to return . optional (null returns entire array) * @return array/string entire array or value of property **/ function property ($p=null) { if($p==null) { return $this->_browser_info; } else { return $this->_browser_info[strtolower($p)]; } } /** * get_property * alias for property **/ function get_property ($p) { return $this->property($p); } /** * is * @param $s string search phrase format = l:lang;b:browser * @return bool true on success * ex: $client->is('b:OP5Up'); **/ function is ($s) { // perform language search if(preg_match('/l:'.$this->_language_search_regex.'/i',$s,$match)) { return $this->_perform_language_search($match); } // perform browser search elseif(preg_match('/b:'.$this->_browser_search_regex.'/i',$s,$match)) { return $this->_perform_browser_search($match); } return false; } /** * browser_is * @param $s string search phrase for browser * @return bool true on success * ex: $client->browser_is('OP5Up'); **/ function browser_is ($s) { preg_match('/'.$this->_browser_search_regex.'/i',$s,$match); return $this->_perform_browser_search($match); } /** * language_is * @param $s string search phrase for language * @return bool true on success * ex: $client->language_is('en-US'); **/ function language_is ($s) { preg_match('/'.$this->_language_search_regex.'/i',$s,$match); return $this->_perform_language_search($match); } /** * _perform_browser_search * @param $data string what we're searching for * @return bool true on success * @private **/ function _perform_browser_search ($data) { $search = array(); $search['phrase'] = $data[0]; $search['name'] = strtolower($data[1]); // browser name $search['maj_ver'] = $data[2]; // browser maj_ver $search['min_ver'] = $data[3]; // browser min_ver $search['up'] = !empty($data[4]); // searching for version higher? $looking_for = $search['maj_ver'].$search['min_ver']; if($search['name'] == 'aol' || $search['name'] == 'webtv') { return stristr($this->_browser_info['ua'],$search['name']); } elseif($this->_browser_info['browser'] == $search['name']) { $majv = $search['maj_ver'] ? $this->_browser_info['maj_ver'] : ''; $minv = $search['min_ver'] ? $this->_browser_info['min_ver'] : ''; $what_we_are = $majv.$minv; if($search['up'] && ($what_we_are >= $looking_for)) { return true; } elseif($what_we_are == $looking_for) { return true; } } return false; } function _perform_language_search ($data) { // if we've not grabbed the languages, then do so. $this->_get_languages(); return stristr($this->_browser_info['language'],$data[1]); } function _get_languages () { // capture available languages and insert into container if(!$this->_get_languages_ran_once) { if($languages = getenv('HTTP_ACCEPT_LANGUAGE')) { $languages = preg_replace('/(;q=[0-9]+.[0-9]+)/i','',$languages); } else { $languages = $this->_default_language; } $this->_insert('language',$languages); $this->_get_languages_ran_once = true; } } function _get_os_info () { // regexes to use $regex_windows = '/(win[dows]*)[\s]?([0-9a-z]*)[\w\s]?([a-z0-9.]*)/i'; $regex_mac = '/(68)[k0]{1,3}|[p\S]{1,5}(pc)/i'; $regex_os2 = '/os\/2|ibm-webexplorer/i'; $regex_sunos = '/(sun|i86)[os\s]*([0-9]*)/i'; $regex_irix = '/(irix)[\s]*([0-9]*)/i'; $regex_hpux = '/(hp-ux)[\s]*([0-9]*)/i'; $regex_aix = '/aix([0-9]*)/i'; $regex_dec = '/dec|osfl|alphaserver|ultrix|alphastation/i'; $regex_vms = '/vax|openvms/i'; $regex_sco = '/sco|unix_sv/i'; $regex_linux = '/x11|inux/i'; $regex_bsd = '/(free)?(bsd)/i'; // look for Windows Box if(preg_match_all($regex_windows,$this->_browser_info['ua'],$match)) { /** Windows has some of the most ridiculous HTTP_USER_AGENT strings */ //$match[1][count($match[0])-1]; $v = $match[2][count($match[0])-1]; $v2 = $match[3][count($match[0])-1]; // Establish NT 5.1 as Windows XP if(stristr($v,'NT') && $v2 == 5.1) $v = 'xp'; // Establish NT 5.0 and Windows 2000 as win2k elseif($v == '2000') $v = '2k'; elseif(stristr($v,'NT') && $v2 == 5.0) $v = '2k'; // Establish 9x 4.90 as Windows 98 elseif(stristr($v,'9x') && $v2 == 4.9) $v = '98'; // See if we're running windows 3.1 elseif($v.$v2 == '16bit') $v = '31'; // otherwise display as is (31,95,98,NT,ME,XP) else $v .= $v2; // update browser info container array if(empty($v)) $v = 'win'; $this->_insert('os',strtolower($v)); $this->_insert('platform','win'); } // look for OS2 elseif( preg_match($regex_os2,$this->_browser_info['ua'])) { $this->_insert('os','os2'); $this->_insert('platform','os2'); } // look for mac // sets: platform = mac ; os = 68k or ppc elseif( preg_match($regex_mac,$this->_browser_info['ua'],$match) ) { $this->_insert('platform','mac'); $os = !empty($match[1]) ? '68k' : ''; $os = !empty($match[2]) ? 'ppc' : $os; $this->_insert('os',$os); } // look for *nix boxes // sunos sets: platform = *nix ; os = sun|sun4|sun5|suni86 elseif(preg_match($regex_sunos,$this->_browser_info['ua'],$match)) { $this->_insert('platform','*nix'); if(!stristr('sun',$match[1])) $match[1] = 'sun'.$match[1]; $this->_insert('os',$match[1].$match[2]); } // irix sets: platform = *nix ; os = irix|irix5|irix6|... elseif(preg_match($regex_irix,$this->_browser_info['ua'],$match)) { $this->_insert('platform','*nix'); $this->_insert('os',$match[1].$match[2]); } // hp-ux sets: platform = *nix ; os = hpux9|hpux10|... elseif(preg_match($regex_hpux,$this->_browser_info['ua'],$match)) { $this->_insert('platform','*nix'); $match[1] = str_replace('-','',$match[1]); $match[2] = (int) $match[2]; $this->_insert('os',$match[1].$match[2]); } // aix sets: platform = *nix ; os = aix|aix1|aix2|aix3|... elseif(preg_match($regex_aix,$this->_browser_info['ua'],$match)) { $this->_insert('platform','*nix'); $this->_insert('os','aix'.$match[1]); } // dec sets: platform = *nix ; os = dec elseif(preg_match($regex_dec,$this->_browser_info['ua'],$match)) { $this->_insert('platform','*nix'); $this->_insert('os','dec'); } // vms sets: platform = *nix ; os = vms elseif(preg_match($regex_vms,$this->_browser_info['ua'],$match)) { $this->_insert('platform','*nix'); $this->_insert('os','vms'); } // sco sets: platform = *nix ; os = sco elseif(preg_match($regex_sco,$this->_browser_info['ua'],$match)) { $this->_insert('platform','*nix'); $this->_insert('os','sco'); } // unixware sets: platform = *nix ; os = unixware elseif(stristr('unix_system_v',$this->_browser_info['ua'])) { $this->_insert('platform','*nix'); $this->_insert('os','unixware'); } // mpras sets: platform = *nix ; os = mpras elseif(stristr('ncr',$this->_browser_info['ua'])) { $this->_insert('platform','*nix'); $this->_insert('os','mpras'); } // reliant sets: platform = *nix ; os = reliant elseif(stristr('reliantunix',$this->_browser_info['ua'])) { $this->_insert('platform','*nix'); $this->_insert('os','reliant'); } // sinix sets: platform = *nix ; os = sinix elseif(stristr('sinix',$this->_browser_info['ua'])) { $this->_insert('platform','*nix'); $this->_insert('os','sinix'); } // bsd sets: platform = *nix ; os = bsd|freebsd elseif(preg_match($regex_bsd,$this->_browser_info['ua'],$match)) { $this->_insert('platform','*nix'); $this->_insert('os',$match[1].$match[2]); } // last one to look for // linux sets: platform = *nix ; os = linux elseif(preg_match($regex_linux,$this->_browser_info['ua'],$match)) { $this->_insert('platform','*nix'); $this->_insert('os','linux'); } } function _get_browser_info () { $this->_build_regex(); if(preg_match_all($this->_browser_regex,$this->_browser_info['ua'],$results)) { // get the position of the last browser found $count = count($results[0])-1; // if we're allowing masquerading, revert to the next to last browser found // if possible, otherwise stay put if($this->_allow_masquerading && $count > 0) $count--; // insert findings into the container $this->_insert('browser',$this->_get_short_name($results[1][$count])); $this->_insert('long_name',$results[1][$count]); $this->_insert('maj_ver',$results[2][$count]); // parse the minor version string and look for alpha chars preg_match('/([.\0-9]+)([\.a-z0-9]+)?/i',$results[3][$count],$match); $this->_insert('min_ver',$match[1]); if(isset($match[2])) $this->_insert('letter_ver',$match[2]); // insert findings into container $this->_insert('version',$this->_browser_info['maj_ver'].$this->property('min_ver')); } } function _get_ip () { if(getenv('HTTP_CLIENT_IP')) { $ip = getenv('HTTP_CLIENT_IP'); } else { $ip = getenv('REMOTE_ADDR'); } $this->_insert('ip',$ip); } function _build_regex () { $browsers = ''; while(list($k,) = each($this->_browsers)) { if(!empty($browsers)) $browsers .= "|"; $browsers .= $k; } $version_string = "[\/\sa-z]*([0-9]+)([\.0-9a-z]+)"; $this->_browser_regex = "/($browsers)$version_string/i"; } function _get_short_name ($long_name) { return $this->_browsers[strtolower($long_name)]; } function _insert ($k,$v) { $this->_browser_info[strtolower($k)] = strtolower($v); } function _test_cookies () { global $ctest,$phpSniff_testCookie; if($this->_check_cookies) { if ($ctest != 1) { SetCookie('phpSniff_testCookie','test',0,'/'); // See if we were passed anything in the QueryString we might need $QS = getenv('QUERY_STRING'); // fix compatability issues when PHP is // running as CGI ~ 6/28/2001 v2.0.2 ~ RR $script_path = getenv('PATH_INFO') ? getenv('PATH_INFO') : getenv('SCRIPT_NAME'); $location = $script_path . ($QS=="" ? "?ctest=1" : "?" . $QS . "&ctest=1"); header("Location: $location"); exit; } // Check for the cookie on page reload elseif ($phpSniff_testCookie == "test") { $this->_insert('cookies',true); } else { $this->_insert('cookies',false); } } else $this->_insert('cookies',false); } function _get_javascript () { $set=false; // see if we have any matches while(list($version,$browser) = each($this->_javascript_versions)) { $browser = explode(',',$browser); while(list(,$search) = each($browser)) { if($this->is('b:'.$search)) { $this->_insert('javascript',$version); $set = true; break; } } if($set) break; } } function _get_gecko () { if(preg_match('/gecko\/([0-9]+)/i',$this->property('ua'),$match)) { $this->_insert('gecko',$match[1]); } } } ?> --- NEW FILE: phpTimer.class.php --- <?php /******************************************************************************* phpTimer: A simple script to time script execution Copyright (C) 2001 Roger Raymond ~ eps...@us... This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *******************************************************************************/ if(!defined('_PHP_TIMER_INCLUDED')) define('_PHP_TIMER_INCLUDED',1); class phpTimer { function phpTimer() { $this->_version = '0.1'; $this->_enabled = true; } function start ($name = 'default') { if($this->_enabled) { $this->_timing_start_times[$name] = explode(' ', microtime()); } } function stop ($name = 'default') { if($this->_enabled) { $this->_timing_stop_times[$name] = explode(' ', microtime()); } } function get_current ($name = 'default') { if($this->_enabled) { if (!isset($this->_timing_start_times[$name])) { return 0; } if (!isset($this->_timing_stop_times[$name])) { $stop_time = explode(' ', microtime()); } else { $stop_time = $this->_timing_stop_times[$name]; } // do the big numbers first so the small ones aren't lost $current = $stop_time[1] - $this->_timing_start_times[$name][1]; $current += $stop_time[0] - $this->_timing_start_times[$name][0]; return sprintf("%.10f",$current); } else { return 0; } } } --- NEW FILE: user_agent.inc --- <?php /******************************************************************************* user_agent.inc: an array containing browser HTTP_USER_AGENT values for testing Copyright (C) 2001 Roger Raymond ~ eps...@us... This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *******************************************************************************/ $user_agent = array( 'Mozilla/3.0 (compatible; Opera/3.0; Windows 95/NT4)', 'Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 5.11 [en]', 'Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)', 'Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0)', 'Mozilla/4.5 [en] (Win95; U)', 'Mozilla/4.5 (Macintosh; U; PPC)', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9+) Gecko/20010509', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20010131 Netscape6/6.01', 'Opera/5.11 (Windows 2000; U) [en]', 'NCSA Mosaic/2.6b1 (X11;UNIX_SV 4.2MP R4000) libwww/2.12 modified', 'Lynx/2.7 libwww-FM/2.14', 'amaya/V4.3.2 libwww/5.3.1', 'Mozilla/4.0 (compatible; MSIE 5.5; Mac_PowerPC; OmniWeb/4.0)', 'mozilla/4.0 (compatible; msie 5.0; linux 2.4.16 i686) opera 5.0 [en]', 'mozilla/5.0 (compatible; konqueror/2.2.1; linux)', 'mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; q312461)', 'mozilla/4.0 (compatible; msie 5.5; windows 98; win 9x 4.90)'); ?> |
From: Horst N. <nog...@us...> - 2002-05-18 19:34:11
|
Update of /cvsroot/pictsinspace/PicTsInSpace/thirdparty/original_packages_and_infos/phpsniff In directory usw-pr-cvs1:/tmp/cvs-serv26660/thirdparty/original_packages_and_infos/phpsniff Added Files: phpSniff.class.php Log Message: x --- NEW FILE: phpSniff.class.php --- <?php /******************************************************************************* phpSniff: HTTP_USER_AGENT Client Sniffer for PHP Copyright (C) 2001 Roger Raymond ~ eps...@us... This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *******************************************************************************/ // if(!defined('_PHP_SNIFF_CORE_INCLUDED')) include('phpSniff.core.php'); // OriginalZeile, arbeitet nicht fr uns. if(!defined('_PHP_SNIFF_CORE_INCLUDED')) include('./thirdparty/phpsniff/phpSniff.core.php'); // unsere Zeile. /** * phpSniff * this file is used to set up the * default values for the class * * @author Roger Raymond * @created 2001.06.12 * @modified 2001.12.21 **/ class phpSniff extends phpSniff_core { var $_version = '2.0.6'; /** * Configuration * * $_check_cookies * default : null * desc : Allow for the script to redirect the browser in order * : to check for cookies. In order for this to work, this * : class must be instantiated before any headers are sent. * * $_default_language * default : en-us * desc : language to report as if no languages are found * * $_allow_masquerading * default : null * desc : Allow for browser to Masquerade as another. * : (ie: Opera identifies as MSIE 5.0) * * $_browsers * desc : 2D Array of browsers we wish to search for * : in key => value pairs. * : key = browser to search for [as in HTTP_USER_AGENT] * : value = value to return as 'browser' property * * $_javascript_versions * desc : 2D Array of javascript version supported by which browser * : in key => value pairs. * : key = javascript version * : value = search parameter for browsers that support the * : javascript version listed in the key (comma delimited) * : note: the search parameters rely on the values * : set in the $_browsers array **/ var $_check_cookies = NULL; var $_default_language = 'en-us'; var $_allow_masquerading = NULL; var $_browsers = array( 'microsoft internet explorer' => 'ie', 'msie' => 'ie', 'netscape6' => 'ns', 'mozilla' => 'ns', 'opera' => 'op', 'konqueror' => 'kq', 'icab' => 'ic', 'lynx' => 'lx', 'ncsa mosaic' => 'mo', 'amaya' => 'ay', 'omniweb' => 'ow'); var $_javascript_versions = array( '1.5' => 'NS5UP,IE6UP', '1.4' => '', '1.3' => 'NS4.05UP,IE5UP,OP5UP', '1.2' => 'NS4UP,IE4UP', '1.1' => 'NS3UP,OP', '1.0' => 'NS2UP,IE3UP' ); function phpSniff($UA='',$run = true) { // populate the HTTP_USER_AGENT string if(empty($UA)) $UA = getenv('HTTP_USER_AGENT'); $this->_insert('ua',$UA); if($run) $this->init(); } } ?> |
From: Horst N. <nog...@us...> - 2002-05-18 19:25:32
|
Update of /cvsroot/pictsinspace/PicTsInSpace/thirdparty/original_packages_and_infos/color.php In directory usw-pr-cvs1:/tmp/cvs-serv23158/thirdparty/original_packages_and_infos/color.php Added Files: ColorClassTest.html Log Message: x --- NEW FILE: ColorClassTest.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0045)http://www.newbienetwork.net/class.colour.php --> <HTML><HEAD><TITLE>Color Class Test</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD> <BODY bgColor=white> <TABLE cellSpacing=0 cellPadding=2 width=400 align=center border=0> <CAPTION><B>Color Ranges: FF0000 to 0000FF With Hue Change</B></CAPTION></TR> <TBODY> <TR> <TD bgColor=#ffffff><FONT color=#000000>FFFFFF</FONT></TD> <TD bgColor=#fdf2f2><FONT color=#000000>FDF2F2</FONT></TD> <TD bgColor=#fce6e5><FONT color=#000000>FCE6E5</FONT></TD> <TD bgColor=#fbdad8><FONT color=#000000>FBDAD8</FONT></TD> <TD bgColor=#f9cecc><FONT color=#000000>F9CECC</FONT></TD> <TD bgColor=#f8c2bf><FONT color=#000000>F8C2BF</FONT></TD> <TD bgColor=#f7b5b2><FONT color=#000000>F7B5B2</FONT></TD> <TD bgColor=#f5a9a6><FONT color=#000000>F5A9A6</FONT></TD> <TD bgColor=#f49d99><FONT color=#000000>F49D99</FONT></TD> [...1261 lines suppressed...] color=#0000bb>$color </FONT><FONT color=#007700>> </FONT><FONT color=#0000bb>177 </FONT><FONT color=#007700>&& </FONT><FONT color=#0000bb>$color </FONT><FONT color=#007700>< </FONT><FONT color=#0000bb>229 </FONT><FONT color=#007700>) {<BR> </FONT><FONT color=#0000bb>$color </FONT><FONT color=#007700>= </FONT><FONT color=#0000bb>204</FONT><FONT color=#007700>;<BR> return </FONT><FONT color=#0000bb>$color</FONT><FONT color=#007700>;<BR> } else {<BR> </FONT><FONT color=#0000bb>$color </FONT><FONT color=#007700>= </FONT><FONT color=#0000bb>255</FONT><FONT color=#007700>;<BR> return </FONT><FONT color=#0000bb>$color</FONT><FONT color=#007700>;<BR> }<BR> }<BR> }<BR> }<BR></FONT><FONT color=#ff8000>// }}}<BR><BR></FONT><FONT color=#0000bb>show_source</FONT><FONT color=#007700>(</FONT><FONT color=#dd0000>'class.colour.php'</FONT><FONT color=#007700>);<BR><BR></FONT><FONT color=#ff8000>/*<BR>* @tabsize 4 SPACES<BR>*/<BR></FONT><FONT color=#0000bb>?></FONT> <BR></FONT></CODE></BODY></HTML> |
From: Horst N. <nog...@us...> - 2002-05-18 19:25:02
|
Update of /cvsroot/pictsinspace/PicTsInSpace/thirdparty/original_packages_and_infos/color.php In directory usw-pr-cvs1:/tmp/cvs-serv22928/thirdparty/original_packages_and_infos/color.php Added Files: color.php Log Message: x --- NEW FILE: color.php --- <?php // +----------------------------------------------------------------------+ // | PHP version 4.0 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | li...@ph... so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Authors: Jason Lotito <ja...@le...> | // +----------------------------------------------------------------------+ // // $Id: color.php,v 1.1 2002/05/18 19:24:59 nogajski Exp $ /** * Color * Handles and manages color mixing. * * TODO: Eventually, I would like to expand upon this class to include other * color types, and make it handle colors in a cleaner manner, however, as of * right now, I would rather get it out rather than remain vaporware. At least * this way, other people can take a look at it, and make suggestions. * Besides, someone else might get more use out of it than I. * * The class is really simple to use, and pretty much does its job fairly well. * A sample of what can be done with this class is found here: * http://www.newbienetwork.net/class.colour.php * As you can well see, it is very good at what it does, and is rather quick. * If someone has ideas or thoughts on this, please let me know. I would like * expand it to handling image colors, as well as converting to CMYK, and even * the dreaded Pantone(TM) colors! If someone knows of converting algo's or * know of anything that might be of interest to me, let me know =). * about it to. * * Also, one more thing - Yes, I know, I will be try to get off the setColors() * 2 color limitation, but since this script started out as a simple function * that could _mix_ to colors together, it just kept going like that. * * If you notice, the version is only 0.1. This is because I don't know of * anyone really using it, and so it hasn't been tested completely. The more * input I get back on it, the closer it goes to a 1.0 release. * * @version 0.2 * @author Jason Lotito <ja...@le...> * * Changelog * 3/14/2002 - Add support for HSV2RGB and HSV2HEX - Thanks to Jurgen Schwietering */ class Color { /** * first color that the class handles for ranges and mixes. * @access private * @see setColors */ var $color1 = array(); /** * second color that the class handles for ranges and mixes. * @access private */ var $color2 = array(); /** * Boolean value for determining whether colors outputted should be websafe or not. Defaults to false. * @access private * @see setWebSafe */ var $_websafeb = false; /** * the websafe ranges we use to determine where to set each value. The key * is the websafe part, and the value is the non-websafe value. * @access private */ var $websafe = array( '00' => '00', '33' => '51', '66' => '102', '99' => '153', 'cc' => '204', 'ff' => '255'); /** * mixColors * Given two colors, this will return a mix of the two together. * * @access public * @param string(optional) $col1 The first color you want to mix * @param string(optional) $col2 The second color you want to mix * @result string The mixed color. * @author Jason Lotito <ja...@le...> */ function mixColors ( $col1=false, $col2=false ) { if ( $col1 ) { $this->_setColors($col1, $col2); } // RED $color3[0] = ( $this->color1[0] + $this->color2[0] ) / 2; // GREEN $color3[1] = ( $this->color1[1] + $this->color2[1] ) / 2; // BLUE $color3[2] = ( $this->color1[2] + $this->color2[2] ) / 2; if ( $this->_websafeb ) { array_walk( $color3, '_makeWebSafe' ); } return $this->_returnColor( $color3 ); } /** * setWebSafe * Sets whether we should output websafe colors or not. * * @access public * @param bool=true If set to true (def.), websafe is on, otherwise not. * @author Jason Lotito <ja...@le...> */ function setWebSafe( $bool=true ) { $this->_websafeb = $bool; } /** * setColors * This class primarily works with two colors, and using this function, you * can easily set both colors. * * @access public * @param string The first color in hex format * @param string The second color in hex format * @author Jason Lotito <ja...@le...> */ function setColors( $col1, $col2 ) { $this->_setColors($col1, $col2); } /** * getRange * Given a degree, you can get the range of colors between one color and * another color. * * @access public * @param string $degrees How much each 'step' between the colors we should take. * @return array Returns an array of all the colors, one element for each color. * @author Jason Lotito <ja...@le...> */ function getRange ( $degrees=2 ) { if ( $degrees == 0 ) $degrees = 1; /** The degrees give us how much we should advance each color at each phase of the loop. This way, the advance is equal throughout all the colors. TODO: Allow for degrees for individual parts of the colors. */ // RED $red_steps = ( $this->color2[0] - $this->color[0] ) / $degrees; // GREEN $green_steps = ( $this->color2[1] - $this->color[1] ) / $degrees; // BLUE $blue_steps = ( $this->color2[2] - $this->color[2] ) / $degrees; $allcolors = array(); $x = 0; /** The loop stops once any color has gone beyond the end color. */ // Loop through all the degrees between the colors for ( $x = 0; $x < $degrees; $x++ ) { $col[0] = $red_steps * $x; $col[1] = $green_steps * $x; $col[2] = $blue_steps * $x; // Loop through each R, G, and B for ( $i = 0; $i < 3; $i++ ) { $partcolor = $this->color1[$i] + $col[$i]; // If the color is less than 256 if ( $partcolor < 256 ) { // Makes sure the colors is not less than 0 if ( $partcolor > -1 ) { $newcolor[$i] = $partcolor; } else { $newcolor[$i] = 0; } // Color was greater than 255 } else { $newcolor[$i] = 255; } } if ( $this->_websafeb ) { array_walk( $newcolor, '_makeWebSafe' ); } $allcolors[] = $this->_returnColor($newcolor); } return $allcolors; } /** * changeLightness * Changes the lightness of the color. * * The argument it takes determines the direction to go. If you give it a * negative number, it will make the color darker, however, if you give it * a positive number, it gets lighter. * @access public * @param int degree The degree of the change you wish to take place. * @author Jason Lotito <ja...@le...> */ function changeLightness ( $degree=10 ) { $color2 =& $this->color2; $color1 =& $this->color1; for ( $x = 0; $x < 3; $x++ ) { if ( ( $color1[$x] + $degree ) < 256 ) { if ( ( $color1[$x] + $degree ) > -1 ) { $color1[$x] += $degree; } else { $color1[$x] = 0; } } else { $color1[$x] = 255; } } for ( $x = 0; $x < 3; $x++ ) { if ( ( $color2[$x] + $degree ) < 256 ) { if ( ( $color2[$x] + $degree ) > -1 ) { $color2[$x] += $degree; } else { $color2[$x] = 0; } } else { $color2[$x] = 255; } } } /** * getTextColor * Given a color, will return whether you should use a dark font or a light font. * * You can change the dark and the light color, however by default, they are * set to be 'white' (ffffff) and 'black' (000000), which are standard text * colors. This is determined by the G(reen) value of RGB. * * @access public * @param string $color The color to analyze * @param string $light(optional) The light color value to return if we should have light text * @param string $dark(optional) The dark color value to return if we should have dark text * @author Jason Lotito <ja...@le...> */ function getTextColor ( $color, $light='FFFFFF', $dark='000000' ) { $color = Color::_splitColor($color); if ( $color[1] > hexdec('66') ) { return $dark; } else { return $light; } } /** * _setColors * Internal method to correctly set the colors. * * @access private * @param string Color 1 * @param string Color 2 * @author Jason Lotito <ja...@le...> */ function _setColors ( $col1, $col2 ) { $this->color1 = Color::_splitColor($col1); $this->color2 = Color::_splitColor($col2); } /** * _splitColor * Given a color, it will properly split it up into a 3 element dec. array. * * @access private * @param string The color. * @return array 3 element array containing the RGB information. * @author Jason Lotito <ja...@le...> */ function _splitColor ( $color ) { $c[] = hexdec( substr( $color, 0, 2 ) ); $c[] = hexdec( substr( $color, 2, 2 ) ); $c[] = hexdec( substr( $color, 4, 2 ) ); return $c; } /** * _returnColor * Given an array of 3 elements containing RGB decimal information, it will * return an HTML compatible HEX color. * * @access private * @author Jason Lotito <ja...@le...> */ function _returnColor ( $color ) { return sprintf("%02X%02X%02X",$color[0],$color[1],$color[2]); } /** * rgb2hex * Given an array of 3 elements containing RGB information, it will return * a string of the HEX color. * * @access public * @param array 3 element array. * @return string * @author Jason Lotito <ja...@le...> */ function rgb2hex ( $color ) { return Color::_returnColor( $color ); } /** * hex2rgb * Given a hex color, returns a 4 element array, with keys 0-2 containing * the RGB values appropriately and with key 3 containing the original * color. * * @access public * @param string The HEX string of the color. * @return array 4 element array. * @author Jason Lotito <ja...@le...> */ function hex2rgb ( $hex ) { $return = Color::_splitColor( $hex ); $return['hex'] = $hex; return $return; } /** * hsv2rgb * Converts a HSV (Hue, Saturation, Brightness) value to RGB. * * @access public * @param integer $h Hue * @param integer $s Saturation * @param integer $v Brightness * @return string The RGB value. * @author Jason Lotito <ja...@le...> */ function hsv2rgb ( $h, $s, $v ) { return Color::hex2rgb(Color::hsv2hex($h, $s, $v)); } /** * hsv2hex * Converts a HSV (Hue, Saturation, Brightness) value to Hexidecimal. * * Originally written by @author. Integrated into Class by Jason Lotito. * * @access public * @param integer $h Hue * @param integer $s Saturation * @param integer $v Brightness * @return string The hex value. * @author @author Jurgen Schwietering <ju...@sc...> */ function hsv2hex ( $h, $s, $v ) { $s /= 256.0; $v /= 256.0; if ( $s == 0.0 ) { $r = $g = $b = $v; return ""; } else { $h = $h/256.0*6.0; $i = floor($h); $f = $h - $i; $v *= 256.0; $p = (integer)($v * (1.0 - $s)); $q = (integer)($v * (1.0 - $s * $f)); $t = (integer)($v * (1.0 - $s * (1.0 - $f))); switch( $i ) { case 0: $r = $v; $g = $t; $b = $p; break; case 1: $r = $q; $g = $v; $b = $p; break; case 2: $r = $p; $g = $v; $b = $t; break; case 3: $r = $p; $g = $q; $b = $v; break; case 4: $r = $t; $g = $p; $b = $v; break; default: $r = $v; $g = $p; $b = $q; break; } } $newcolor = array($r, $g, $b); return $this->_returnColor($newcolor); } } // For Array Walk // {{{ /** * _makeWebSafe * Function for array_walk() to easily change colors from whatever to * the closests websafe representation. * * @access private * @param int One element of the decimal RGB value of a color. * @return int The websafe equivalent of the color setting. * @author Jason Lotito <ja...@le...> */ function _makeWebSafe ( &$color ) { if ( $color == 0 ) { return $color; } else { if ( ($color % 51) == 0 ) { return $color; } else { if ( $color < 26 ) { $color = 00; return $color; } else if ( $color < 77 && $color > 25 ) { $color = 51; return $color; } else if ( $color > 76 && $color < 127 ) { $color = 102; return $color; } else if ( $color > 126 && $color < 178 ) { $color = 153; return $color; } else if ( $color > 177 && $color < 229 ) { $color = 204; return $color; } else { $color = 255; return $color; } } } } // }}} /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: */ ?> |