Changeset 5176
- Timestamp:
- Mar 18, 2010, 3:30:04 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/site_reader_local.php
r3282 r5176 115 115 $fs = array_merge($fs, $tmp_fs); 116 116 } 117 ksort($fs); 117 118 } //end if is_dir 118 119 return $fs; … … 199 200 { 200 201 $high_file = dirname($file).'/pwg_high/'.basename($file); 201 202 202 203 $data['high_filesize'] = floor(filesize($high_file)/1024); 203 204 } 204 205 205 206 if ($conf['use_exif']) 206 207 { -
trunk/include/common.inc.php
r5138 r5176 82 82 'hash_hmac', //(hash) - enabled by default as of PHP 5.1.2 83 83 'preg_last_error', // PHP 5 >= 5.2.0 84 'file_put_contents', //PHP585 84 ) as $func) 86 85 { … … 106 105 107 106 // Database connection 108 $pwg_db_link = pwg_db_connect($conf['db_host'], $conf['db_user'], 109 $conf['db_password'], $conf['db_base']) 107 $pwg_db_link = pwg_db_connect($conf['db_host'], $conf['db_user'], 108 $conf['db_password'], $conf['db_base']) 110 109 or my_error('pwg_db_connect', true); 111 110 … … 117 116 include(PHPWG_ROOT_PATH.'include/user.inc.php'); 118 117 119 if ('fr_FR' == $user['language']) { 120 define('PHPWG_DOMAIN', 'fr.piwigo.org'); 121 } 122 else if ('de_DE' == $user['language']) { 123 define('PHPWG_DOMAIN', 'de.piwigo.org'); 124 } 125 else if ('es_ES' == $user['language']) { 126 define('PHPWG_DOMAIN', 'es.piwigo.org'); 127 } 128 else if ('pl_PL' == $user['language']) { 129 define('PHPWG_DOMAIN', 'pl.piwigo.org'); 130 } 131 else if ('zh_CN' == $user['language']) { 118 if (in_array( substr($user['language'],0,2), array('fr','de','es','pl') ) ) 119 { 120 define('PHPWG_DOMAIN', substr($user['language'],0,2).'.piwigo.org'); 121 } 122 elseif ('zh_CN' == $user['language']) { 132 123 define('PHPWG_DOMAIN', 'cn.piwigo.org'); 133 124 }
Note: See TracChangeset
for help on using the changeset viewer.