From: Sverre B. <sv...@us...> - 2005-10-11 11:26:51
|
Update of /cvsroot/archive-access/archive-access/projects/wera/src/webapps/wera/handlers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24016/handlers Modified Files: html_javascript.php html_javascript.php.js Log Message: Added url and time in the javascript popup showing at the top of the viewed web page Index: html_javascript.php.js =================================================================== RCS file: /cvsroot/archive-access/archive-access/projects/wera/src/webapps/wera/handlers/html_javascript.php.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** html_javascript.php.js 4 Oct 2005 22:59:27 -0000 1.1 --- html_javascript.php.js 11 Oct 2005 11:26:54 -0000 1.2 *************** *** 78,84 **** "<div style='" + "position:relative;z-index:99999;"+ ! "border:1px solid;color:black;background-color:lightYellow;font-size:10px;font-family:sans-serif;padding:5px'>" + "WERA... External links, forms, and search boxes may not function within this collection. " + ! "[ <a style='color:blue;font-size:10px;text-decoration:underline' href=\"javascript:void(top.disclaimElem.style.display='none')\">hide</a> ]" + "</div>"; --- 78,85 ---- "<div style='" + "position:relative;z-index:99999;"+ ! "border:1px solid;color:black;background-color:lightYellow;font-size:10px;font-family:sans-serif;padding:5px'>" + "WERA... External links, forms, and search boxes may not function within this collection. " + ! " Url: " + weraUrl + ", time: " + weraTime + ! " [ <a style='color:blue;font-size:10px;text-decoration:underline' href=\"javascript:void(top.disclaimElem.style.display='none')\">hide</a> ]" + "</div>"; Index: html_javascript.php =================================================================== RCS file: /cvsroot/archive-access/archive-access/projects/wera/src/webapps/wera/handlers/html_javascript.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** html_javascript.php 5 Oct 2005 01:38:18 -0000 1.2 --- html_javascript.php 11 Oct 2005 11:26:54 -0000 1.3 *************** *** 72,78 **** $document = preg_replace("/<html>/i", "<HTML>\n" . $hrefstring . "</HEAD>", $document, 1); } ! $js_to_insert = "<SCRIPT language=\"Javascript\">\n"; $js_to_insert .= "var sWayBackCGI = \"##P#R#E#F#I#X##TIME#$time\"\n"; $js_to_insert .= "</SCRIPT>\n"; $js_to_insert .= file_get_contents($_SERVER['SCRIPT_FILENAME'] . ".js"); --- 72,80 ---- $document = preg_replace("/<html>/i", "<HTML>\n" . $hrefstring . "</HEAD>", $document, 1); } ! $weraTime = substr($time,0,4) . "-" . substr($time,4,2) . "-" . substr($time,6,2) . " " . substr($time,8,2) . ":" . substr($time,10,2) . ":" . substr($time,12,2); $js_to_insert = "<SCRIPT language=\"Javascript\">\n"; $js_to_insert .= "var sWayBackCGI = \"##P#R#E#F#I#X##TIME#$time\"\n"; + $js_to_insert .= "var weraTime = \"$weraTime\"\n"; + $js_to_insert .= "var weraUrl = \"$url\"\n"; $js_to_insert .= "</SCRIPT>\n"; $js_to_insert .= file_get_contents($_SERVER['SCRIPT_FILENAME'] . ".js"); |