Permalink
Browse files

Whitespace cleanup FS#1709

Ignore-this: 27ea52110bce929b2c61ed8faba67cfc

darcs-hash:20091016205526-c0bf4-35eba4e65d37980a667ba982f7f1ea5b7b07f01c.gz
  • Loading branch information...
furun committed Oct 16, 2009
1 parent 623b29d commit 47583ff0428eaa0d97e26f61f81ac6d199e9b446
Showing 471 changed files with 1,176 additions and 1,185 deletions.
View
@@ -13,13 +13,13 @@
#------------------------------------------------------------------------------
function usage() {
print "Usage: wantedpages.php [wiki:namespace]
-
+
Outputs a list of wanted pages (pages which have
internal links but do not yet exist).
-
+
If the optional [wiki:namespace] is not provided,
defaults to the root wiki namespace
-
+
OPTIONS
-h, --help get help
";
@@ -54,12 +54,12 @@ function dw_get_pages($dir) {
global $conf;
$trunclen = strlen($conf['datadir'].':');
}
-
+
if ( !is_dir($dir) ) {
fwrite( STDERR, "Unable to read directory $dir\n");
exit(1);
}
-
+
$pages = array();
$dh = opendir($dir);
while ( false !== ( $entry = readdir($dh) ) ) {
View
@@ -45,7 +45,7 @@
$conf['useheading'] = 0; //use the first heading in a page as its name
$conf['refcheck'] = 1; //check for references before deleting media files
$conf['refshow'] = 0; //how many references should be shown, 5 is a good value
-$conf['showuseras'] = 'loginname'; // 'loginname' users login name
+$conf['showuseras'] = 'loginname'; // 'loginname' users login name
// 'username' users full name
// 'email' e-mail address (will be obfuscated as per mailguard)
// 'email_link' e-mail address as a mailto: link (obfuscated)
View
@@ -1,28 +1,27 @@
-# Smileys configured here will be replaced by the
-# configured images in the smiley directory
-
-8-) icon_cool.gif
-8-O icon_eek.gif
-8-o icon_eek.gif
-:-( icon_sad.gif
-:-) icon_smile.gif
-=) icon_smile2.gif
-:-/ icon_doubt.gif
-:-\ icon_doubt2.gif
-:-? icon_confused.gif
-:-D icon_biggrin.gif
-:-P icon_razz.gif
-:-o icon_surprised.gif
-:-O icon_surprised.gif
-:-x icon_silenced.gif
-:-X icon_silenced.gif
-:-| icon_neutral.gif
-;-) icon_wink.gif
-^_^ icon_fun.gif
-:?: icon_question.gif
-:!: icon_exclaim.gif
-LOL icon_lol.gif
-FIXME fixme.gif
-DELETEME delete.gif
-
-#;<P icon_kaddi.gif
+# Smileys configured here will be replaced by the
+# configured images in the smiley directory
+
+8-) icon_cool.gif
+8-O icon_eek.gif
+8-o icon_eek.gif
+:-( icon_sad.gif
+:-) icon_smile.gif
+=) icon_smile2.gif
+:-/ icon_doubt.gif
+:-\ icon_doubt2.gif
+:-? icon_confused.gif
+:-D icon_biggrin.gif
+:-P icon_razz.gif
+:-o icon_surprised.gif
+:-O icon_surprised.gif
+:-x icon_silenced.gif
+:-X icon_silenced.gif
+:-| icon_neutral.gif
+;-) icon_wink.gif
+^_^ icon_fun.gif
+:?: icon_question.gif
+:!: icon_exclaim.gif
+LOL icon_lol.gif
+FIXME fixme.gif
+DELETEME delete.gif
+
View
@@ -811,4 +811,3 @@ function query() {
}
}
-?>
View
@@ -622,4 +622,3 @@ function dec($var)
}
-?>
View
@@ -7569,7 +7569,7 @@ function fix_protocol($url, $http = 1)
{
return SimplePie_Misc::fix_protocol(SimplePie_Misc::compress_parse_url('http', $parsed['authority'], $parsed['path'], $parsed['query'], $parsed['fragment']), $http);
}
-
+
if ($parsed['scheme'] === '' && $parsed['authority'] === '' && !file_exists($url))
{
return SimplePie_Misc::fix_protocol(SimplePie_Misc::compress_parse_url('http', $parsed['path'], '', $parsed['query'], $parsed['fragment']), $http);
@@ -9779,7 +9779,7 @@ function stripos($haystack, $needle, $offset = 0)
trigger_error('needle is not a string or an integer', E_USER_WARNING);
return false;
}
-
+
return strpos(strtolower($haystack), $needle, $offset);
}
}
View
@@ -91,25 +91,25 @@ function get_file()
pack('V', strlen($ctrldir)) . pack('V', strlen($data)) . "\x00\x00";
}
- function add_dir($name)
- {
- $name = str_replace("\\", "/", $name);
- $fr = "\x50\x4b\x03\x04\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00";
+ function add_dir($name)
+ {
+ $name = str_replace("\\", "/", $name);
+ $fr = "\x50\x4b\x03\x04\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00";
- $fr .= pack("V",0).pack("V",0).pack("V",0).pack("v", strlen($name) );
- $fr .= pack("v", 0 ).$name.pack("V", 0).pack("V", 0).pack("V", 0);
+ $fr .= pack("V",0).pack("V",0).pack("V",0).pack("v", strlen($name) );
+ $fr .= pack("v", 0 ).$name.pack("V", 0).pack("V", 0).pack("V", 0);
$this -> datasec[] = $fr;
- $new_offset = strlen(implode("", $this->datasec));
+ $new_offset = strlen(implode("", $this->datasec));
- $cdrec = "\x50\x4b\x01\x02\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00";
- $cdrec .= pack("V",0).pack("V",0).pack("V",0).pack("v", strlen($name) );
- $cdrec .= pack("v", 0 ).pack("v", 0 ).pack("v", 0 ).pack("v", 0 );
- $ext = "\xff\xff\xff\xff";
- $cdrec .= pack("V", 16 ).pack("V", $this -> old_offset ).$name;
+ $cdrec = "\x50\x4b\x01\x02\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00";
+ $cdrec .= pack("V",0).pack("V",0).pack("V",0).pack("v", strlen($name) );
+ $cdrec .= pack("v", 0 ).pack("v", 0 ).pack("v", 0 ).pack("v", 0 );
+ $ext = "\xff\xff\xff\xff";
+ $cdrec .= pack("V", 16 ).pack("V", $this -> old_offset ).$name;
- $this -> ctrl_dir[] = $cdrec;
- $this -> old_offset = $new_offset;
+ $this -> ctrl_dir[] = $cdrec;
+ $this -> old_offset = $new_offset;
$this -> dirs[] = $name;
}
@@ -165,7 +165,7 @@ function DosTime() {
$timearray['mday'] = 1; $timearray['hours'] = 0;
$timearray['minutes'] = 0; $timearray['seconds'] = 0;
}
- return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | ($timearray['hours'] << 11) |
+ return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | ($timearray['hours'] << 11) |
($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);
}
@@ -194,7 +194,7 @@ function Extract ( $zn, $to, $index = Array(-1) )
@rewind($zip); fseek($zip, $header['offset']);
if(in_array("-1",$index)||in_array($i,$index))
$stat[$header['filename']]=$this->ExtractFile($header, $to, $zip);
-
+
}
fclose($zip);
return $stat;
@@ -378,17 +378,17 @@ function ExtractFile($header,$to,$zip)
}}
return true;
}
-
+
//--CS start
- // centralize mkdir calls and use dokuwiki io functions
+ // centralize mkdir calls and use dokuwiki io functions
function _mkdir($d) {
- return io_mkdir_p($d);
+ return io_mkdir_p($d);
}
//--CS end
function ExtractStr($zn, $name) {
- $ok = 0;
+ $ok = 0;
$zip = @fopen($zn,'rb');
if(!$zip) return(NULL);
$cdir = $this->ReadCentralDir($zip,$zn);
@@ -398,28 +398,28 @@ function ExtractStr($zn, $name) {
{
@fseek($zip, $pos_entry);
$header = $this->ReadCentralFileHeaders($zip);
- $header['index'] = $i;
+ $header['index'] = $i;
$pos_entry = ftell($zip);
- @rewind($zip);
+ @rewind($zip);
fseek($zip, $header['offset']);
if ($name == $header['stored_filename'] || $name == $header['filename']) {
$str = $this->ExtractStrFile($header, $zip);
fclose($zip);
return $str;
}
-
+
}
fclose($zip);
return null;
}
-
+
function ExtractStrFile($header,$zip) {
$hdr = $this->readfileheader($zip);
$binary_data = '';
if (!($header['external']==0x41FF0010) && !($header['external']==16))
{
if ($header['compression']==0)
- {
+ {
while ($size != 0)
{
$read_size = ($size < 2048 ? $size : 2048);
@@ -454,7 +454,7 @@ function ExtractStrFile($header,$zip) {
}
return NULL;
}
-
+
function _ret_bytes($val) {
$val = trim($val);
$last = $val{strlen($val)-1};
Oops, something went wrong.

0 comments on commit 47583ff

Please sign in to comment.