Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 25 of 99) sorted by relevance

1234

/plugin/scrape/vendor/ezyang/htmlpurifier/library/HTMLPurifier/
DStringHashParser.php46 $fh = fopen($file, 'r');
47 if (!$fh) {
50 $ret = $this->parseHandle($fh);
51 fclose($fh);
66 $fh = fopen($file, 'r');
67 if (!$fh) {
70 while (!feof($fh)) {
71 $ret[] = $this->parseHandle($fh);
73 fclose($fh);
82 * @param resource $fh File handle with pointer at start of valid string-hash
[all …]
/plugin/simplechat/
Dajax.php45 $fh = fopen($filename,'a+'); variable
46 fwrite( $fh , $newmsgline );
47 fclose($fh );
58 $fh = @fopen( $filename, "r" ); variable
59 if( $fh ) {
60 while(!feof($fh)){
61 $line = fgets($fh);
65 fclose($fh);
75 $fh = fopen($filename,'a+'); variable
76 fwrite( $fh , $newmsgline );
[all …]
Dsyntax.php99 $fh = @fopen( $filename, "r" );
100 if( $fh ) {
101 while(!feof($fh)){
102 $line = fgets($fh);
108 fclose($fh);
/plugin/toolbox/
Dextension.php13 $fh = fopen(__DIR__ . '/extension/script.js', 'w'); variable
16 fwrite($fh, "/**
30 fwrite($fh, 'var toolbox_lang = ' . json_encode($lang['js']) . ";\n");
33 …fwrite($fh, "var toolbox_icon = '//github.com/splitbrain/dokuwiki-plugin-toolbox/raw/master/pix/';…
39 fwrite($fh, file_get_contents($script));
43 fwrite($fh, "var tb = document.getElementById('toolbox__picker');");
44 fwrite($fh, "if(!tb) initToolbar('tool__bar','wiki__text',toolbar);");
47 fclose($fh);
/plugin/booking/
Dhelper.php47 $fh = fopen($file, 'r');
48 if (!$fh) return [];
52 while (($line = fgets($fh, 4096)) !== false) {
72 fclose($fh);
147 $fh = fopen($file, 'r+');
148 if (!$fh) return false;
155 while (($line = fgets($fh, 4096)) !== false) {
161 fseek($fh, -1 * $len, SEEK_CUR); // jump back to beginning of line
162 fwrite($fh, str_pad('', $len - 1)); // write spaces instead (keep new line)
165 fclose($fh);
/plugin/svg/
Dinstall.php57 $fh = fopen( SYNTAX_PLUGIN_SVG_MEDIADIR . '.install.php', 'w' );
58 fwrite( $fh, '<?php define("SYNTAX_PLUGIN_SVG_INSTALLED",true); ?>' );
59 fclose( $fh );
61 $fh = fopen( SYNTAX_PLUGIN_SVG_MEDIADIR . 'media/.htaccess', 'w' );
62 fwrite( $fh, "order allow,deny\nallow from all\n" );
63 fclose( $fh );
/plugin/siteexport/inc/
Ddebug.php81 $fh = false;
97 $fh = @fopen($this->debugFile, "a+");
98 if ( !$fh && !$ajaxCanLog ) {
116 if ( $fh !== false ) {
117 fwrite($fh, $log);
139 if ( $fh ) {
140 fwrite($fh, $log);
147 if ( $fh ) {
148 fclose($fh);
/plugin/supa/helper/
Dhelper.php44 $fh = fopen( $filename, 'r' );
45 $data = fread( $fh, filesize( $filename ) );
46 fclose( $fh );
55 $fh = fopen( $filename, "w" );
56 fwrite( $fh, $decoded );
57 fclose( $fh );
/plugin/upgrade/myvendor/splitbrain/php-archive/src/
DZip.php21 protected $fh; variable in splitbrain\\PHPArchive\\Zip
57 $this->fh = @fopen($this->file, 'rb');
58 if (!$this->fh) {
102 @rewind($this->fh);
103 @fseek($this->fh, $centd['offset']);
150 @fseek($this->fh, $pos_entry);
153 … $pos_entry = ftell($this->fh); // position of the next file in central file directory
154 fseek($this->fh, $header['offset']); // seek to beginning of file header
212 $buffer = fread($this->fh, $read_size);
275 $this->fh = 0;
[all …]
DTar.php23 protected $fh; variable in splitbrain\\PHPArchive\\Tar
68 $this->fh = @gzopen($this->file, 'rb');
70 $this->fh = @bzopen($this->file, 'r');
72 $this->fh = @fopen($this->file, 'rb');
75 if (!$this->fh) {
267 $this->fh = 0;
276 $this->fh = @gzopen($this->file, 'wb'.$this->complevel);
278 $this->fh = @bzopen($this->file, 'w');
280 $this->fh = @fopen($this->file, 'wb');
283 if (!$this->fh) {
[all …]
/plugin/dw2pdf/vendor/setasign/fpdi/src/PdfParser/Filter/
DFlate.php46 $fh = fopen('php://temp', 'w+b');
47 fwrite($fh, "\x1f\x8b\x08\x00\x00\x00\x00\x00" . $oData);
48 stream_filter_append($fh, 'zlib.inflate', STREAM_FILTER_READ, ['window' => 30]);
49 fseek($fh, 0);
50 $data = stream_get_contents($fh);
51 fclose($fh);
/plugin/elwikiupgrade/
DVerboseTarLib.class.php21 protected $fh; variable in VerboseTar
42 $this->fh = @gzopen($this->file, 'rb');
44 $this->fh = @bzopen($this->file, 'r');
46 $this->fh = @fopen($this->file, 'rb');
49 … if(!$this->fh) throw new VerboseTarIOException('Could not open file for reading: '.$this->file);
220 $this->fh = 0;
224 $this->fh = @gzopen($this->file, 'wb'.$complevel);
226 $this->fh = @bzopen($this->file, 'w');
228 $this->fh = @fopen($this->file, 'wb');
231 … if(!$this->fh) throw new VerboseTarIOException('Could not open file for writing: '.$this->file);
[all …]
/plugin/freechat/phpfreechat/src/
Dpfctools.php293 if (false === $fh = fopen($filename, 'rb', $incpath)) {
300 if (!flock($fh, LOCK_SH)) {
306 $data = fread($fh, $fsize);
309 while (!feof($fh)) {
310 $data .= fread($fh, 8192);
314 fclose($fh);
326 if (false === $fh = fopen($filename, 'rb', $incpath))
334 $data = fread($fh, $fsize);
338 while (!feof($fh)) {
339 $data .= fread($fh, 8192);
[all …]
/plugin/spatialhelper/helper/
Dsitemap.php102 $fh = fopen(mediaFN($mediaID), 'wb');
103 fwrite($fh, $RSSstart);
137 fwrite($fh, $entry);
142 fwrite($fh, $RSSend);
143 return fclose($fh);
198 $fh = fopen(mediaFN($mediaID), 'wb');
199 fwrite($fh, $KMLstart);
237 fwrite($fh, $plcm);
241 fwrite($fh, $KMLend);
242 return fclose($fh);
/plugin/vote/
Dsyntax.php158 $fh = fopen( $vote_log_file, 'w' );
159 fwrite( $fh, serialize( $vote_skelton ) );
160 fclose( $fh );
170 $fh = fopen( $file, 'a' );
171 fwrite( $fh, $data );
172 fclose( $fh );
195 $fh = fopen( $vote_log_file, 'w' );
196 fwrite( $fh, serialize( $vote_log ) );
197 fclose( $fh);
/plugin/freechat/phpfreechat/src/containers/
Dfile.class.php210 $fh = fopen($leaffilename, 'r+');
213 if (flock($fh, LOCK_EX))
215 $leafvalue = chop(fread($fh, filesize($leaffilename)));
217 rewind($fh);
218 fwrite($fh, $leafvalue);
219 fflush($fh);
220 ftruncate($fh, ftell($fh));
221 flock($fh, LOCK_UN);
228 fclose($fh);
/plugin/dw2pdf/vendor/mpdf/mpdf/src/
DRemoteContentFetcher.php113 if (!($fh = @fsockopen($prefix . $p['host'], $port, $errno, $errstr, $timeout))) {
122 fwrite($fh, $getstring);
125 $s = fgets($fh, 1024);
130 while (!feof($fh)) {
131 $s = fgets($fh, 1024);
139 while (!feof($fh)) {
140 $data .= fgets($fh, 1024);
143 fclose($fh);
/plugin/fckg/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/
Dspellchecker.php86 if( $fh = fopen( $tempfile, 'w' )) {
94 fwrite ( $fh, "%\n" ); # exit terse mode
95 fwrite ( $fh, "^$input_separator\n" );
96 fwrite ( $fh, "!\n" ); # enter terse mode
99 fwrite( $fh, "^$value\n" );
102 fclose( $fh );
Dspellchecker.pl54 my( $fh, $tmpfilename ) = tempfile( DIR => $dir );
64 print $fh "\%\n"; # exit terse mode
65 print $fh "^$input_separator\n";
66 print $fh "!\n"; # enter terse mode
69 print $fh "^$line\n";
/plugin/wysiwyg/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/
Dspellchecker.php82 if( $fh = fopen( $tempfile, 'w' )) {
86 fwrite ( $fh, "%\n" ); # exit terse mode
87 fwrite ( $fh, "^$input_separator\n" );
88 fwrite ( $fh, "!\n" ); # enter terse mode
91 fwrite( $fh, "^$value\n" );
94 fclose( $fh );
Dspellchecker.pl54 my( $fh, $tmpfilename ) = tempfile( DIR => $dir );
62 print $fh "\%\n"; # exit terse mode
63 print $fh "^$input_separator\n";
64 print $fh "!\n"; # enter terse mode
67 print $fh "^$line\n";
/plugin/grensladawritezor/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/
Dspellchecker.php82 if( $fh = fopen( $tempfile, 'w' )) {
86 fwrite ( $fh, "%\n" ); # exit terse mode
87 fwrite ( $fh, "^$input_separator\n" );
88 fwrite ( $fh, "!\n" ); # enter terse mode
91 fwrite( $fh, "^$value\n" );
94 fclose( $fh );
Dspellchecker.pl54 my( $fh, $tmpfilename ) = tempfile( DIR => $dir );
62 print $fh "\%\n"; # exit terse mode
63 print $fh "^$input_separator\n";
64 print $fh "!\n"; # enter terse mode
67 print $fh "^$line\n";
/plugin/nsexport/packer/
Dpacker.php79 $fh = @fopen($filename, 'rb');
80 while (!feof($fh)) {
81 echo fread($fh, 1024);
83 fclose($fh);
/plugin/maintenance/
Dhelper.php54 $fh = fopen($lockfile, 'wb');
55 if (flock($fh, LOCK_EX | LOCK_NB)) {
116 $fh = fopen($lockfile, 'wb');
117 if (flock($fh, LOCK_EX | LOCK_NB)) {
118 @flock($fh, LOCK_UN);

1234