This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <gd.h> | |
/* does not try to create a symmetric pattern */ | |
void dashed_line(gdImagePtr im, int x1, int y1, int x2, int y2, int color) | |
{ | |
int wid = im->thick; /* this may have to be adjusted */ | |
int *oldStyle, oldStyleLength = im->styleLength, oldStylePos = im->stylePos; | |
int *newStyle, newStyleLength = wid * gdDashSize * 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmsimple/classes/Search.php | 6 +++++- | |
cmsimple/functions.php | 6 ++++-- | |
cmsimple/tplfuncs.php | 13 +++++++++++-- | |
3 files changed, 20 insertions(+), 5 deletions(-) | |
diff --git a/cmsimple/classes/Search.php b/cmsimple/classes/Search.php | |
index 1b5b458..6785cf4 100644 | |
--- a/cmsimple/classes/Search.php | |
+++ b/cmsimple/classes/Search.php | |
@@ -214,7 +214,11 @@ class Search |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext/enchant/enchant.c | 8 ++++---- | |
1 file changed, 4 insertions(+), 4 deletions(-) | |
diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c | |
index 77f6840161..b00697a858 100644 | |
--- a/ext/enchant/enchant.c | |
+++ b/ext/enchant/enchant.c | |
@@ -737,7 +737,7 @@ PHP_FUNCTION(enchant_dict_quick_check) | |
for (i = 0; i < n_sugg; i++) { | |
add_next_index_string(sugg, suggs[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmsimple/cms.php | 5 +++++ | |
1 file changed, 5 insertions(+) | |
diff --git a/cmsimple/cms.php b/cmsimple/cms.php | |
index fbfe9437..f71e341c 100644 | |
--- a/cmsimple/cms.php | |
+++ b/cmsimple/cms.php | |
@@ -338,6 +338,7 @@ if (preg_match('/\/([A-z]{2})\/index.php$/', sv('SCRIPT_NAME'), $temp) | |
$pth['folder']['content'] = $pth['folder']['base'] . $cf['folders']['content']; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XH-Shop,1.0,1.0,,,https://github.com/cmsimple-xh/xhshop/releases/tag/1.0,https://gist.githubusercontent.com/cmb69/d6f681e90d62ad17b37a1b71631dc85f/raw/xhshop1.nfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// General options | |
theme : "advanced", | |
element_format : "%ELEMENT_FORMAT%", | |
language : "%LANGUAGE%", | |
plugins : "calleditor,advimage,advlink,autosave,contextmenu,emotions,fullscreen,insertdatetime,lists,media,paste,save,searchreplace,table,wordcount", | |
/* | |
style_formats : [ | |
{title : "Normal", block : "p", classes : true , remove : "all", exact : false}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<x:books xmlns:x="urn:books"> | |
<book id="1"> | |
<author>Writer</author> | |
<title>The First Book</title> | |
<genre>Fiction</genre> | |
<price>44.95</price> | |
<pub_date>2000-10-01</pub_date> | |
<review>An amazing story of nothing.</review> | |
</book> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\cmb\php\bugs\73048>php 73048.php | |
Bearbeitete Datei: parent | |
1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein Verarbeitungsfehler aufgetreten. | |
Bearbeitete Datei: parent\child | |
1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein Verarbeitungsfehler aufgetreten. | |
Bearbeitete Datei: parent | |
1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein Verarbeitungsfehler aufgetreten. | |
Datenträger in Laufwerk C: ist System | |
Volumeseriennummer: 04CF-334A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$name = "/tmp/hello.txt.gz"; | |
$file = "compress.zlib://" . $name; | |
$stream = fopen($file, 'w'); | |
var_dump(flock($stream, LOCK_EX)); | |
fputs($stream, 'hello'); | |
fclose($stream); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class VariableStream { | |
var $position; | |
var $varname; | |
function stream_open($path, $mode, $options, &$opened_path) | |
{ | |
$url = parse_url($path); | |
$this->varname = $url["host"]; |