Changeset 35415 for trunk/dvodist/www-util/ipp.php
- Timestamp:
- Apr 19, 2013, 4:16:39 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/dvodist/www-util/ipp.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dvodist/www-util/ipp.php
r35238 r35415 1 1 <?php 2 3 global $rootdir;4 2 5 3 function head ($title) { … … 22 20 echo "<body>\n"; 23 21 22 echo "<!-- Start eXTReMe Pro Tracker Code V3/7\n"; 23 echo "Login: emagnier\n"; 24 echo "Help: https://www.extremetracking.com\n"; 25 echo "Installation instructions:\n"; 26 echo "Copy and paste this code between the two body tags into the\n"; 27 echo "*source* of your pages or in your footer/template. Best is\n"; 28 echo "to use a normal text editor such as notepad. -->\n"; 29 echo "<script type=\"text/javascript\"><!--\n"; 30 echo "EXd=document;location.protocol==\"https:\"?EXp=\"https\":EXp=\"http\";EXs=\"src\";\n"; 31 echo "EXd.write(\"<img \"+EXs+\"=\"+EXp+\"://nht-2.extreme-dm.com/n2.g?login=emagnier\",\n"; 32 echo "\"&url=\"+escape(EXd.URL)+\"&jv=\"+navigator.javaEnabled()+\"&\",\n"; 33 echo "\"d=\"+screen.width+\"x\"+screen.height+\"&c=\"+screen.colorDepth+\"\",\n"; 34 echo "\"&l=\"+escape(EXd.referrer)+\" width=0 height=0>\");//-->\n"; 35 echo "</script><noscript><img height=\"1\" width=\"1\" alt=\"\"\n"; 36 echo "src=\"http://nht-2.extreme-dm.com/n2.g?login=emagnier&url=nojs\">\n"; 37 echo "</noscript>\n"; 38 echo "<!-- End eXTReMe Pro Tracker Code -->\n"; 39 24 40 if (! $project) { $project = "none"; } 25 41 26 // echo "<p style=\"font-size:50%\">host: $ WWWHOST, db: $DBHOST</p>\n";42 // echo "<p style=\"font-size:50%\">host: $root</p>\n"; 27 43 echo "<table class=page cellspacing=10px><tr><td valign=top>\n"; 28 44 echo "<table class=menu cellspacing=0px>\n"; … … 76 92 } 77 93 78 global $rootdir;79 80 94 // hi-lite the current page (use select-style, not style) 81 95 $thisname = $_SERVER[SCRIPT_NAME]; 82 $page = $root dir. $base;96 $page = $root . $base; 83 97 if ($page == $thisname) { 84 98 $style = trim($line[1]); … … 92 106 break; 93 107 case 'picture': 94 // prepend the root dirif needed (reference to /)108 // prepend the root if needed (reference to /) 95 109 if ($name[0] == '/') { 96 110 $name = $root . $name; … … 99 113 break; 100 114 case 'piclink': 101 // prepend the root dirif needed (reference to /)115 // prepend the root if needed (reference to /) 102 116 if ($name[0] == '/') { 103 117 $name = $root . $name; … … 249 263 250 264 // lines which start with @ are processed by 'dirlist', all others are processed by Markdown 251 function do_markdown ($source) { 265 function do_markdown ($source, $root) { 266 252 267 if (!file_exists($source)) return; 253 268 … … 258 273 $to_dirlist = ""; 259 274 while ($line = fgets ($file, 1024)) { 275 // replace @WWWHOST@ with $root 276 $line = str_replace ("@WWWHOST@", $root, $line); 277 260 278 // echo "line: $line"; 261 279 if (!strncmp($line, "@", 1)) {
Note:
See TracChangeset
for help on using the changeset viewer.
