Commit 7c4ae8683d279c20af44b39ff7e6cceecfeb9997
1 parent
d926bf58
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
1 additions
and
54 deletions
Show diff stats
classesphp/carrega_ext.php
@@ -44,7 +44,7 @@ Array com a lista de extensoes que devem ser carregadas pelo i3geo. | @@ -44,7 +44,7 @@ Array com a lista de extensoes que devem ser carregadas pelo i3geo. | ||
44 | Outras extensoes exigidas pelo i3geo também são verificadas, como mapscript e gd. | 44 | Outras extensoes exigidas pelo i3geo também são verificadas, como mapscript e gd. |
45 | */ | 45 | */ |
46 | $ler_extensoes = ""; | 46 | $ler_extensoes = ""; |
47 | -if(!function_exists("dl")){ | 47 | +if(function_exists("dl")){ |
48 | $extensoes = array("zlib","libxml","SimpleXML","dom","xml","simplexml","mbstring"); | 48 | $extensoes = array("zlib","libxml","SimpleXML","dom","xml","simplexml","mbstring"); |
49 | if (isset($ler_extensoes)) | 49 | if (isset($ler_extensoes)) |
50 | { | 50 | { |
@@ -65,18 +65,6 @@ if(!function_exists("dl")){ | @@ -65,18 +65,6 @@ if(!function_exists("dl")){ | ||
65 | { | 65 | { |
66 | @dl( 'php_'.$templ.".".$s ); | 66 | @dl( 'php_'.$templ.".".$s ); |
67 | $ler_extensoes[] = $templ; | 67 | $ler_extensoes[] = $templ; |
68 | - /* | ||
69 | - if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) | ||
70 | - { | ||
71 | - @dl('php_'.$templ.'.dll'); | ||
72 | - $ler_extensoes[] = $templ; | ||
73 | - } | ||
74 | - else | ||
75 | - { | ||
76 | - @dl('php_'.$templ.'.so'); | ||
77 | - $ler_extensoes[] = $templ; | ||
78 | - } | ||
79 | - */ | ||
80 | } | 68 | } |
81 | } | 69 | } |
82 | //verifica se carregou a gd se não, tenta carregar a gd2 | 70 | //verifica se carregou a gd se não, tenta carregar a gd2 |
@@ -84,58 +72,17 @@ if(!function_exists("dl")){ | @@ -84,58 +72,17 @@ if(!function_exists("dl")){ | ||
84 | { | 72 | { |
85 | @dl( 'php_gd.'.$s ); | 73 | @dl( 'php_gd.'.$s ); |
86 | $ler_extensoes[] = 'gd'; | 74 | $ler_extensoes[] = 'gd'; |
87 | - /* | ||
88 | - if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) | ||
89 | - { | ||
90 | - @dl('php_gd.dll'); | ||
91 | - $ler_extensoes[] = 'gd'; | ||
92 | - } | ||
93 | - else | ||
94 | - { | ||
95 | - @dl('php_gd.so'); | ||
96 | - $ler_extensoes[] = 'gd'; | ||
97 | - } | ||
98 | - */ | ||
99 | } | 75 | } |
100 | if (!function_exists('imagecreate')) | 76 | if (!function_exists('imagecreate')) |
101 | { | 77 | { |
102 | @dl( 'php_gd2.'.$s ); | 78 | @dl( 'php_gd2.'.$s ); |
103 | $ler_extensoes[] = 'gd2'; | 79 | $ler_extensoes[] = 'gd2'; |
104 | - /* | ||
105 | - if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) | ||
106 | - { | ||
107 | - @dl('php_gd2.dll'); | ||
108 | - $ler_extensoes[] = 'gd2'; | ||
109 | - } | ||
110 | - else | ||
111 | - { | ||
112 | - @dl('php_gd2.so'); | ||
113 | - $ler_extensoes[] = 'gd2'; | ||
114 | - } | ||
115 | - */ | ||
116 | } | 80 | } |
117 | //verifica se carregou o mapscript | 81 | //verifica se carregou o mapscript |
118 | if (!function_exists('ms_GetVersion')) | 82 | if (!function_exists('ms_GetVersion')) |
119 | { | 83 | { |
120 | @dl( 'php_mapscript.'.$s ); | 84 | @dl( 'php_mapscript.'.$s ); |
121 | $ler_extensoes[] = 'php_mapscript'; | 85 | $ler_extensoes[] = 'php_mapscript'; |
122 | - /* | ||
123 | - if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) | ||
124 | - { | ||
125 | - if(!@dl('php_mapscript_48.dll')) | ||
126 | - { | ||
127 | - @dl('php_mapscript.dll'); | ||
128 | - $ler_extensoes[] = 'mapscript'; | ||
129 | - } | ||
130 | - else | ||
131 | - {$ler_extensoes[] = 'mapscript_48';} | ||
132 | - } | ||
133 | - else | ||
134 | - { | ||
135 | - dl('php_mapscript.so'); | ||
136 | - $ler_extensoes[] = 'mapscript'; | ||
137 | - } | ||
138 | - */ | ||
139 | } | 86 | } |
140 | } | 87 | } |
141 | if((is_array($ler_extensoes)) && (count($ler_extensoes) > 0)) | 88 | if((is_array($ler_extensoes)) && (count($ler_extensoes) > 0)) |