Changeset 28588
- Timestamp:
- Jun 2, 2014, 11:09:43 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/netinstall/trunk/piwigo-netinstall.php
r22589 r28588 86 86 87 87 // Try curl to read remote file 88 if (function_exists('curl_init') )88 if (function_exists('curl_init') && function_exists('curl_exec')) 89 89 { 90 90 $ch = @curl_init(); … … 112 112 } 113 113 } 114 115 if (!function_exists('fsockopen')) 116 { 117 return false; 118 } 114 119 115 120 // Try fsockopen to read remote file … … 244 249 header('Content-Type: text/html; charset=UTF-8'); 245 250 echo 246 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" '. 247 ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n". 248 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.substr(DC_LOADER_LANG,0,2).'" lang="'.substr(DC_LOADER_LANG,0,2).'">'."\n". 249 '<html lang="'.l10n('code').'" dir="'.l10n('direction').'"'."\n". 250 "<head>\n". 251 ' <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'."\n". 251 '<!DOCTYPE html>'."\n". 252 '<html lang="'.l10n('code').'" dir="'.l10n('direction').'">'."\n". 253 '<head>'."\n". 254 ' <meta charset="UTF-8" />'."\n". 252 255 ' <title>'.l10n('Piwigo NetInstall').'</title>'."\n". 253 256 ' <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" />'."\n". … … 392 395 if (!defined('DC_LOADER_LANG')) 393 396 { 397 $lang['code'] = 'en'; 398 $lang['direction'] = 'ltr'; 399 394 400 // No traduction for this part because can't fetch! 395 401 openPage(); 396 echo397 '<h2>Piwigo NetInstall</h2>'."\n";398 402 writeMessage('warning','Damnit!', array( 399 403 'Due to restrictions in your PHP configuration, NetInstall cannot get its job done.',
Note: See TracChangeset
for help on using the changeset viewer.