This commit is contained in:
Sebastian Mendel
2007-10-17 14:14:59 +00:00
parent 3a81ff4b37
commit 4f685307b4
2 changed files with 2 additions and 3 deletions

View File

@@ -240,8 +240,7 @@ if ($import_file != 'none' && !$error) {
$tmp_subdir = (PMA_IS_WINDOWS ? '.\\tmp\\' : './tmp/'); $tmp_subdir = (PMA_IS_WINDOWS ? '.\\tmp\\' : './tmp/');
// function is_writeable() is valid on PHP3 and 4 if (is_writable($tmp_subdir)) {
if (is_writeable($tmp_subdir)) {
$import_file_new = $tmp_subdir . basename($import_file); $import_file_new = $tmp_subdir . basename($import_file);
if (move_uploaded_file($import_file, $import_file_new)) { if (move_uploaded_file($import_file, $import_file_new)) {
$import_file = $import_file_new; $import_file = $import_file_new;

View File

@@ -52,7 +52,7 @@ foreach ($types['mimetype'] as $key => $mimetype) {
<?php <?php
$odd_row = true; $odd_row = true;
foreach ($types['transformation'] as $key => $transform) { foreach ($types['transformation'] as $key => $transform) {
$func = strtolower(preg_replace('@(\.inc\.php3?)$@i', '', $types['transformation_file'][$key])); $func = strtolower(str_ireplace('.inc.php', '', $types['transformation_file'][$key]));
$desc = 'strTransformation_' . $func; $desc = 'strTransformation_' . $func;
?> ?>
<tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>"> <tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">