예제 #1
0
파일: menu.php 프로젝트: thaian2009/php
    $dbindex = intval($_GET['dbindex']);
    $databases['db_selected_index'] = $dbindex;
    $databases['db_actual'] = $databases['Name'][$dbindex];
    SelectDB($dbindex);
    WriteParams(0);
}
if (isset($databases['Name']) && count($databases['Name']) > 0) {
    $tpl->assign_block_vars('MAINTENANCE', array());
    $tpl->assign_vars(array('DB_ACTUAL' => $databases['db_actual'], 'DB_SELECTED_INDEX' => $databases['db_selected_index']));
}
$tpl->assign_var('GET_FILELIST', get_config_filelist());
if (isset($databases['Name']) && count($databases['Name']) > 0) {
    $tpl->assign_block_vars('DB_LIST', array());
    $datenbanken = count($databases['Name']);
    for ($i = 0; $i < $datenbanken; $i++) {
        $selected = $i == $databases['db_selected_index'] ? ' selected' : '';
        $tpl->assign_block_vars('DB_LIST.DB_ROW', array('ID' => $i, 'NAME' => $databases['Name'][$i], 'SELECTED' => $selected));
    }
} else {
    $tpl->assign_block_vars('NO_DB_FOUND', array());
}
$tpl->assign_var('PIC_CACHE', PicCache());
if (!isset($databases['Name']) || count($databases['Name']) < 1) {
    $tpl->assign_block_vars('DB_NAME_TRUE', array());
} else {
    $tpl->assign_block_vars('DB_NAME_FALSE', array());
}
$tpl->pparse('header');
$tpl->pparse('content');
$tpl->pparse('footer');
ob_end_flush();
예제 #2
0
                     }
                 }
             }
         }
         $a++;
         $dauer = time() - $restore['startzeit'];
     }
     $eingetragen = $a - 1;
 }
 $restore['offset'] = $restore['compressed'] ? gztell($restore['filehandle']) : ftell($restore['filehandle']);
 if ($restore['compressed']) {
     gzclose($restore['filehandle']);
 } else {
     fclose($restore['filehandle']);
 }
 $aus_header[] = PicCache($relativ_path);
 $aus_header[] = headline($lang['restore']);
 $aus_header[] = 'Browser : <img src="images/' . $BrowserIcon . '"> ';
 $restore['aufruf']++;
 if (!$restore['compressed']) {
     $prozent = $filegroesse > 0 ? $restore['offset'] * 100 / $filegroesse : 0;
 } else {
     if ($restore['anzahl_eintraege'] > 0) {
         $prozent = $restore['eintraege_ready'] * 100 / $restore['anzahl_eintraege'];
     } else {
         $prozent = 0;
     }
 }
 if ($prozent > 100) {
     $prozent = 100;
 }
예제 #3
0
}
//Ausgabestart
echo MSDHeader(1);
echo headline('', 0);
?>

<div id="wrapmenu">
<p><a href="http://www.mysqldumper.de/" target="_blank"><img src="css/<?php 
echo $config['theme'];
?>
/pics/h1_logo.gif" alt="MySQL Dumper - Homepage" width="190" height="30"></a></p>

<div id="menu">

<?php 
echo PicCache();
?>

<span class="version">Version <?php 
echo MSD_VERSION . '&nbsp;' . MSD_VERSION_ADD;
?>
</span>

<ul>
<li id="m1" class="active"><a 
href="main.php" target="MySQL_Dumper_content" onclick="setMenuActive('m1')"><?php 
echo $lang['home'];
?>
</a></li>
<li id="m2" class=""><a 
href="config_overview.php" target="MySQL_Dumper_content" onclick="setMenuActive('m2')"><?php