@@ -1270,7 +1270,7 @@ |
||
1270 | 1270 | |
1271 | 1271 | // TODO prendre en compte le filtre |
1272 | 1272 | foreach ($pragmas as $var) { |
1273 | - $sql = "PRAGMA $var"; |
|
1273 | + $sql = "pragma $var"; |
|
1274 | 1274 | $resql = $this->query($sql); |
1275 | 1275 | if ($resql) { |
1276 | 1276 | $obj = $this->fetch_row($resql); |
@@ -682,7 +682,7 @@ |
||
682 | 682 | { |
683 | 683 | $base = new DateTime("$year-03-21", new DateTimeZone("UTC")); |
684 | 684 | $days = easter_days($year); // Return number of days between 21 march and easter day. |
685 | - $tmp = $base->add(new DateInterval("P{$days}D")); |
|
685 | + $tmp = $base->add(new DateInterval("p{$days}d")); |
|
686 | 686 | return $tmp->getTimestamp(); |
687 | 687 | } |
688 | 688 |
@@ -221,7 +221,7 @@ |
||
221 | 221 | } |
222 | 222 | }); |
223 | 223 | </script> |
224 | -SCRIPT; |
|
224 | +script; |
|
225 | 225 | } |
226 | 226 | |
227 | 227 | ?> |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | - If you're having problems creating your postgres dump, make sure you use "--format p --inserts" |
62 | 62 | - Default output engine if not specified is InnoDB |
63 | 63 | |
64 | -XHTML; |
|
64 | +xhtml; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | function formatsize($s) |
101 | 101 | { |
102 | 102 | if ($s < pow(2, 14)) { |
103 | - return "{$s}B"; |
|
103 | + return "{$s}b"; |
|
104 | 104 | } elseif ($s < pow(2, 20)) { |
105 | 105 | return sprintf("%.1f", round($s / 1024, 1)) . "K"; |
106 | 106 | } elseif ($s < pow(2, 30)) { |
@@ -123,7 +123,7 @@ |
||
123 | 123 | Encryption Example |
124 | 124 | |
125 | 125 | Consult the source code documentation for the SetProtection() method. |
126 | -EOD; |
|
126 | +eod; |
|
127 | 127 | |
128 | 128 | // print a block of text using Write() |
129 | 129 | $pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); |
@@ -105,7 +105,7 @@ |
||
105 | 105 | |
106 | 106 | print "Generates ".GEN_NUMBER_SOCIETE." companies\n"; |
107 | 107 | for ($s = 0; $s < GEN_NUMBER_SOCIETE; $s++) { |
108 | - print "Company $s\n"; |
|
108 | + print "company $s\n"; |
|
109 | 109 | $soc = new Societe($db); |
110 | 110 | $soc->name = "Company num ".time()."$s"; |
111 | 111 | $soc->town = $listoftown[mt_rand(0, count($listoftown)-1)]; |
@@ -106,7 +106,7 @@ |
||
106 | 106 | $produit->tva_tx = "20.0"; |
107 | 107 | $ret=$produit->create($user); |
108 | 108 | if ($ret < 0) { |
109 | - print "Error $ret - ".$produit->error."\n"; |
|
109 | + print "error $ret - ".$produit->error."\n"; |
|
110 | 110 | } else { |
111 | 111 | print " OK with ref ".$produit->ref."\n"; |
112 | 112 | } |
@@ -121,7 +121,7 @@ |
||
121 | 121 | || !file_exists($filename)) { |
122 | 122 | return false; |
123 | 123 | } |
124 | - if (isSet($localname)) { |
|
124 | + if (isset($localname)) { |
|
125 | 125 | $localname = preg_replace("/(?:\.|\/)*(.*)/", "\\1", $localname); |
126 | 126 | $localpath = dirname($localname); |
127 | 127 | $tmpfilename = $this->tmpdir . '/' . basename($localname); |
@@ -260,7 +260,7 @@ |
||
260 | 260 | |
261 | 261 | $xml = <<<IMG |
262 | 262 | <draw:frame draw:style-name="fr1" draw:name="$filename" text:anchor-type="aschar" svg:width="{$width}cm" svg:height="{$height}cm" draw:z-index="3"><draw:image xlink:href="Pictures/$file" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/></draw:frame> |
263 | -IMG; |
|
263 | +img; |
|
264 | 264 | $this->images[$value] = $file; |
265 | 265 | $this->setVars($key, $xml, false); |
266 | 266 | return $this; |