Italiano English
Edit History Actions

attachment:css.php of test.ninux.org

Attachment 'css.php'

Download

   1 <?php
   2 
   3 $moinmoinmywikidir="/var/testwiki/";
   4 
   5 $nomecss="MentalNinux(2f)skin(2d)orange(2e)css";
   6 
   7 $nomicss=array(
   8 "o" => "MentalNinux(2f)skin(2d)orange(2e)css",
   9 "b" => "MentalNinux(2f)base(2e)css",
  10 "c" => "MentalNinux(2f)common(2e)css",
  11 "n" => "MentalNinux(2f)ninux5d(2e)css",
  12 "p" => "MentalNinux(2f)print(2e)css",
  13 "r" => "MentalNinux(2f)projection(2e)css",
  14 "s" => "MentalNinux(2f)screen(2e)css",
  15 );
  16 
  17 $nomecss=$nomicss[$_GET["file"]];
  18 
  19 
  20 $filename=file($moinmoinmywikidir."/data/pages/".$nomecss."/current");
  21 $nomefile=rtrim($filename[0]);
  22 
  23 $lines = file($moinmoinmywikidir."/data/pages/".$nomecss."/revisions/".$nomefile);
  24 
  25 header('Content-type:text/css');
  26 
  27 
  28 //salto la prima riga
  29 $primariga=true;
  30 
  31 foreach($lines as $line) {
  32    if($primariga) {
  33    	$primariga=false;
  34    } else {
  35 	echo $line;
  36    }
  37 }
  38 
  39 ?>

New Attachment

File to upload
Rename to
Overwrite existing attachment of same name
In which Country is ninux.org based?

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2007-01-18 00:28:25, 0.0 KB) [[attachment:base.css]]
  • [get | view] (2007-01-18 00:28:41, 0.0 KB) [[attachment:common.css]]
  • [get | view] (2007-01-18 00:23:25, 0.8 KB) [[attachment:css.php]]
  • [get | view] (2007-01-18 00:26:39, 0.1 KB) [[attachment:ev0.py]]
  • [get | view] (2007-01-18 00:26:52, 0.1 KB) [[attachment:ev1.py]]
  • [get | view] (2007-01-18 00:27:20, 0.1 KB) [[attachment:ev2.py]]
  • [get | view] (2007-01-18 00:27:51, 0.1 KB) [[attachment:ev3.py]]
  • [get | view] (2007-01-31 15:45:47, 1.0 KB) [[attachment:hi.py]]